get($themeslug.'_font') == "" ) {
$font = apply_filters( 'business_default_font', 'Arial' );
}
else {
$font = $options->get($themeslug.'_font');
} ?>
', " >
>
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 3.0
*/
function business_title_tag() {
global $options, $themeslug, $query, $post;
$blogtitle = ($options->get($themeslug.'_home_title'));
if (!is_404()) {
$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 3.0
*/
function business_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');
}
if ($options->get($themeslug.'_color_scheme') == '') {
$color = 'blue';
}
else {
$color = $options->get($themeslug.'_color_scheme');
}?>
get($themeslug.'_logo'); //Calls the logo URL from the theme options
if ($options->get($themeslug.'_custom_logo') == '1') { ?>
get($themeslug.'_facebook');
$hidefacebook = $options->get($themeslug.'_hide_facebook_icon');
$twitter = $options->get($themeslug.'_twitter');;
$hidetwitter = $options->get($themeslug.'_hide_twitter_icon');;
$gplus = $options->get($themeslug.'_gplus');
$hidegplus = $options->get($themeslug.'_hide_gplus_icon');
$flickr = $options->get($themeslug.'_flickr');
$hideflickr = $options->get($themeslug.'_hide_flickr');
$pinterest = $options->get($themeslug.'_pinterest');
$hidepinterest = $options->get($themeslug.'_hide_pinterest');
$linkedin = $options->get($themeslug.'_linkedin');
$hidelinkedin = $options->get($themeslug.'_hide_linkedin');
$youtube = $options->get($themeslug.'_youtube');
$hideyoutube = $options->get($themeslug.'_hide_youtube');
$googlemaps = $options->get($themeslug.'_googlemaps');
$hidegooglemaps = $options->get($themeslug.'_hide_googlemaps');
$email = $options->get($themeslug.'_email');
$hideemail = $options->get($themeslug.'_hide_email');
$rss = $options->get($themeslug.'_rsslink');
$hiderss = $options->get($themeslug.'_hide_rss_icon');
$folder = 'default';
?>