function widget($args, $instance) { extract($args); $text = apply_filters('widget_text', $instance['text'], $instance); echo $before_widget; // Do the title if (!empty($instance['title'])) { echo $before_title . apply_filters('widget_title', $instance['title']) . $after_title; } echo '<div id="dfcg-widget">'; // Display the DCG $dfcg = dynamic_content_gallery(); echo $dfcg; // Do the Text After if (!empty($instance['text'])) { echo '<div class="dfcg-after-gallery">'; echo $instance['filter'] ? wpautop($text) : $text; echo '</div>'; } echo '</div><!--end dfcg-widget-->' . "\n\n"; echo $after_widget; }
<?php genesis_before_content_sidebar_wrap(); ?> <div id="content-sidebar-wrap"> <?php genesis_before_content(); ?> <div id="content" class="hfeed"> <?php if (function_exists('dynamic_content_gallery')) { ?> <div class="dcg"> <?php dynamic_content_gallery(); ?> </div><!-- end .dcg --> <?php } ?> <div id="featured-top"> <div class="featured-top-left"> <?php if (!dynamic_sidebar('Featured Top Left')) { ?> <div class="widget"> <h4><?php _e("Featured Top Left", 'genesis'); ?>