', " >
>
ID, 'seo_title' , true);
$pagedescription = get_post_meta($post->ID, 'seo_description' , true);
$keywords = get_post_meta($post->ID, 'seo_keywords' , true); ?>
get($themeslug.'_home_title') != '' AND is_front_page()) { ?>
'/> get($themeslug.'_home_description') != '' AND is_front_page()) { ?>
' /> get($themeslug.'_home_keywords') != '' AND is_front_page()) { ?>
' /> ";
}
if ($pagedescription != '' AND !is_front_page()) {
echo "";
}
if ($keywords != '' AND !is_front_page()) {
echo "";
}
}
/**
* Establishes the theme title tags.
*
* @since 1.0
*/
function response_title_tag() {
global $options, $themeslug, $query, $post;
$blogtitle = ($options->get($themeslug.'_home_title'));
if (!is_404() && !is_search()) {
$title = get_post_meta($post->ID, 'seo_title' , true);
}
else {
$title = '';
}
echo "";
if (function_exists('is_tag') && is_tag()) { /*Title for tags */
bloginfo('name'); echo ' - '; single_tag_title("Tag Archive for ""); echo '" ';
}
elseif (is_archive()) { /*Title for archives */
bloginfo('name'); echo ' - '; wp_title(''); echo ' Archive ';
}
elseif (is_search()) { /*Title for search */
bloginfo('name'); echo ' - '; echo 'Search for "'.get_search_query().'" ';
}
elseif (is_404()) { /*Title for 404 */
bloginfo('name'); echo ' - '; echo 'Not Found ';
}
elseif (is_front_page() AND !is_page() AND $blogtitle == '') { /*Title if front page is latest posts and no custom title */
bloginfo('name'); echo ' - '; bloginfo('description');
}
elseif (is_front_page() AND !is_page() AND $blogtitle != '') { /*Title if front page is latest posts with custom title */
bloginfo('name'); echo ' - '; echo $blogtitle ;
}
elseif (is_front_page() AND is_page() AND $title == '') { /*Title if front page is static page and no custom title */
bloginfo('name'); echo ' - '; bloginfo('description');
}
elseif (is_front_page() AND is_page() AND $title != '') { /*Title if front page is static page with custom title */
bloginfo('name'); echo ' - '; echo $title ;
}
elseif (is_page() AND $title == '') { /*Title if static page is static page with no custom title */
bloginfo('name'); echo ' - '; wp_title('');
}
elseif (is_page() AND $title != '') { /*Title if static page is static page with custom title */
bloginfo('name'); echo ' - '; echo $title ;
}
elseif (is_page() AND is_front_page() AND $blogtitle == '') { /*Title if blog page with no custom title */
bloginfo('name'); echo ' - '; wp_title('');
}
elseif ($blogtitle != '') { /*Title if blog page with custom title */
bloginfo('name'); echo ' - '; echo $blogtitle ;
}
else { /*Title if blog page without custom title */
bloginfo('name'); echo ' - '; wp_title('');
}
echo "";
}
/**
* Sets the header link rel attributes
*
* @since 1.0
*/
function response_link_rel() {
global $themeslug, $options; //Call global variables
$favicon = $options->get($themeslug.'_favicon'); //Calls the favicon URL from the theme options
if ($options->get($themeslug.'_font') == "" AND $options->get($themeslug.'_custom_font') == "") {
$font = apply_filters( 'synapse_default_font', 'Arial' );
}
elseif ($options->get($themeslug.'_custom_font') != "" && $options->get($themeslug.'_font') == 'custom') {
$font = $options->get($themeslug.'_custom_font');
}
else {
$font = $options->get($themeslug.'_font');
}
?>
get($themeslug.'_logo'); //Calls the logo URL from the theme options
if ($options->get($themeslug.'_custom_logo') == '1') { ?>
'
%3$s
',
'fallback_cb' => $themename.'_menu_fallback',
'theme_location' => 'header-menu' // Setting up the location for the main-menu, Main Navigation.
)
);
?>