/** * Initializes scripts */ function init_scripts() { ?> <script type="text/javascript"> //<![CDATA[ <?php if ('dynamic' == get_option('unwakeable_columns')) { ?> K2.layoutWidths = <?php /* Style Layout Widths */ if (K2_USING_STYLES) { $styleinfo = get_option('unwakeable_styleinfo'); if (empty($styleinfo['layout_widths'])) { echo '[560, 780, 950]'; } else { output_javascript_array($styleinfo['layout_widths']); } } else { echo '[560, 780, 950]'; } ?> ; jQuery(document).ready(dynamicColumns); jQuery(window).resize(dynamicColumns); <?php } ?> K2.AjaxURL = "<?php echo home_url(); ?> /"; K2.Animations = <?php echo (int) get_option('unwakeable_animations'); ?> ; jQuery(document).ready(function(){ <?php /* LiveSearch */ if ('1' == get_option('unwakeable_livesearch')) { ?> K2.LiveSearch = new LiveSearch( "<?php esc_attr_e('Type and Wait to Search', 'unwakeable'); ?> " ); <?php } ?> <?php /* Rolling Archives */ if ('1' == get_option('unwakeable_rollingarchives')) { ?> K2.RollingArchives = new RollingArchives( "<?php esc_attr_e('Page %1$d of %2$d', 'unwakeable'); ?> " ); jQuery('body').addClass('rollingarchives'); <?php } ?> jQuery('#dynamic-content').ajaxSuccess(function () { <?php echo get_option('unwakeable_ajaxdonejs'); ?> }); initARIA(); }); //]]> </script> <?php }
?> ", <?php echo $rolling_page; ?> , <?php echo $wp_query->max_num_pages; ?> , <?php output_javascript_hash($rolling_query); ?> , <?php output_javascript_array($page_dates); ?> ); k2Trimmer.setup(100); }); // ]]> </script> <?php } } ?> <div id="rollingcontent" class="hfeed"> <?php include TEMPLATEPATH . '/theloop.php';