function widget($args, $instance) { extract($args, EXTR_SKIP); $title = apply_filters('widget_title', $instance['title']); echo $before_widget; echo !empty($title) ? $before_title . $title . $after_title : ''; blu_get_google_ads(); echo $after_widget; }
$hide_title = get_post_meta($post->ID, 'bluth_page_hide_title', 'off'); $post_subtitle = get_post_meta($post->ID, 'bluth_page_subtitle', 'off'); get_header(); // Advert above content $ad_content_placement = of_get_option('ad_content_placement', array('home' => true, 'pages' => true, 'posts' => true)); $ad_content_mode = of_get_option('ad_content_mode', 'none'); $ad_content_box = of_get_option('ad_content_box', true); $ad_content_padding = of_get_option('ad_content_padding', true); if ($ad_content_mode != 'none' and $ad_content_placement['pages'] == true) { echo '<div class="above_content' . ($ad_content_box ? ' box' : '') . ($ad_content_padding ? ' pad15' : '') . '">'; if ($ad_content_mode == 'image') { echo '<a href="' . of_get_option('ad_content_image_link') . '" target="_blank"><img src="' . of_get_option('ad_content_image') . '"></a>'; } elseif ($ad_content_mode == 'html') { echo apply_filters('shortcode_filter', do_shortcode(of_get_option('ad_content_code'))); } elseif ($ad_content_mode == 'google_ads') { blu_get_google_ads(); } echo '</div>'; } ?> <div id="primary" class="row left_side"> <aside id="side-bar" class="span4 widget-area"> <?php dynamic_sidebar('sidebar_left'); ?> </aside> <div id="content" class="span8" role="main"> <?php