Changeset 206707
- Timestamp:
- 02/16/2010 08:41:20 PM (16 years ago)
- Location:
- lifestream/trunk
- Files:
-
- 3 edited
-
extensions/youtube/extension.inc.php (modified) (1 diff)
-
inc/core.php (modified) (1 diff)
-
inc/template.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lifestream/trunk/extensions/youtube/extension.inc.php
r206702 r206707 67 67 } 68 68 69 function render_item($row, $item , $options)69 function render_item($row, $item) 70 70 { 71 if (count($row->data) > 1 || !$item['player_url'] || ! $options['is_single'])71 if (count($row->data) > 1 || !$item['player_url'] || !ls_is_event()) 72 72 { 73 73 $attrs = array( -
lifestream/trunk/inc/core.php
r206693 r206707 715 715 { 716 716 $ls_template->get_events(); 717 718 717 include($this->get_template('event.php')); 719 718 exit; -
lifestream/trunk/inc/template.php
r206702 r206707 10 10 var $events = array(); 11 11 var $posts = array(); 12 var $in_event = false; 12 13 13 14 function __construct($lifestream) … … 18 19 } 19 20 21 function set_in_event($true_or_false=true) 22 { 23 $this->in_event = $true_or_false; 24 } 25 20 26 function set_event($event) 21 27 { … … 27 33 return is_single(); 28 34 } 35 36 function is_event() 37 { 38 return $this->in_event; 39 } 29 40 30 41 function get_events() … … 32 43 global $posts, $wp_query; 33 44 34 if ( $this->is_single())45 if (is_single()) 35 46 { 36 47 $this->page = 1; … … 100 111 if ($this->current_event + 1 < $this->event_count) 101 112 { 113 $this->set_in_event(true); 102 114 return true; 103 115 } … … 107 119 $this->rewind_events(); 108 120 } 109 121 $this->set_in_event(false); 110 122 $this->in_the_loop = false; 111 123 return false; … … 236 248 } 237 249 250 function ls_is_event() 251 { 252 global $ls_template; 253 254 return $ls_template->is_event(); 255 } 256 238 257 function ls_is_single() 239 258 {
Note: See TracChangeset
for help on using the changeset viewer.