public function widget($args, $instance) { $title = isset($instance['title']) ? $instance['title'] : ''; $content = isset($instance['content']) ? $instance['content'] : ''; if (is_front_page() || is_home()) { echo '<div class="hide">'; echo ' <div id="splash-container">'; echo ' <div class="splash-content">'; echo ' <h2 class="align-center title">' . $title . '</h2>'; echo the_secondary_content($content); echo ' </div>'; echo ' </div>'; echo '</div>'; echo '<script>'; echo ' var jq = jQuery.noConflict();'; echo ' jq(document).ready(function(){'; echo ' jq.colorbox({inline:true, width:"auto", href:"#splash-container"});'; echo ' });'; echo '</script>'; } }
</div><!-- #primary-main --> </div><!-- #primary --> </div><!-- #primary-sidebar-container --> <div id="secondary"> <div id="secondary-main"> <?php the_secondary_content(get_post_meta($post->ID, 'secondary-content-container', true)); ?> </div> </div> </div><!-- .content --> </div><!-- #main-container --> </section><!-- #main --> <footer id="footer"> <div id="footer-container"> <div class="content"> <?php if (is_active_sidebar('footer-container-content-widget-container')) { dynamic_sidebar('footer-container-content-widget-container'); } ?> </div> </div> </footer> </div><!-- #main-footer-container -->