function my_hmg_widget($args) { extract($args); echo $before_widget . $before_title; echo get_option('my_hmg_title'); echo $after_title; my_hmg_show(); echo $after_widget; }
<div id="mainsection" style="height:350px;"> <div id="slidemain"> <div class="banner"> <?php if (function_exists(my_hmg_show)) { my_hmg_show(); } ?> <?php if (is_front_page()) { ?> <?php /*$gallery_id = get_post_meta(get_the_Id(), 'Gallery-ID', true); if(empty($gallery_id)) $gallery_id = 3;