Changeset 596023
- Timestamp:
- 09/07/2012 04:46:42 PM (14 years ago)
- File:
-
- 1 edited
-
bcms/trunk/components/postloops.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bcms/trunk/components/postloops.php
r593252 r596023 374 374 function __construct( $args = '' ) 375 375 { 376 376 377 // get settings 377 378 $defaults = array( … … 426 427 // initialize scrollable 427 428 $('<?php echo $this->settings->parent_selector; ?>').scrollable({ circular: true }).navigator().autoscroll(<?php echo json_encode( $this->settings->autoscroll ); ?>) 429 430 //show the .items divs now that the scrollable is initialized 431 $('<?php echo $this->settings->child_selector; ?>').width( $(window).width() ).show(); 428 432 }); 429 433 })(jQuery); … … 432 436 } 433 437 } 434 435 438 436 439 … … 758 761 // get the templates, thumbnail size, and other stuff 759 762 $this->post_templates = (array) $postloops->get_templates('post'); 763 $cached->template = $this->post_templates[ $instance['template'] ]; 760 764 761 765 $postloops->current_postloop = &$instance; … … 835 839 // figure out what classes to put on the widget 836 840 $extra_classes = array(); 837 $extra_classes[] = str_replace( '9spot', 'nines' , sanitize_title_with_dashes( $ this->post_templates[ $instance['template'] ]['name'] ));841 $extra_classes[] = str_replace( '9spot', 'nines' , sanitize_title_with_dashes( $cached->template['name'] )); 838 842 $extra_classes[] = 'widget-post_loop-'. sanitize_title_with_dashes( $instance['title'] ); 839 843 $extra_classes = array_merge( $extra_classes , (array) $instance['extra_classes'] ); … … 849 853 850 854 if( isset( $cachekey )) 851 wp_cache_set( $cachekey , (object) array( 'html' => $cached->html , ' instance' => $instance , 'time' => time() ) , 'bcmspostloop' , $this->ttl );855 wp_cache_set( $cachekey , (object) array( 'html' => $cached->html , 'template' => $cached->template , 'instance' => $instance , 'time' => time() ) , 'bcmspostloop' , $this->ttl ); 852 856 } 853 857
Note: See TracChangeset
for help on using the changeset viewer.