Ticket #454: player.diff
File player.diff, 3.2 KB (added by Moe, 17 years ago) |
---|
-
themes/default/tpl/_flv_player.html
3 3 <param name="movie" value="{{tpl:BlogQmarkURL}}pf=player_flv.swf" /> 4 4 <param name="wmode" value="transparent" /> 5 5 <param name="allowFullScreen" value="true" /> 6 <param name="FlashVars" value="flv={{tpl: AttachmentURL}}&width=400&height=300&margin=1&showfullscreen=1&showvolume=1&showtime=1" />6 <param name="FlashVars" value="flv={{tpl:FileURL}}&width=400&height=300&margin=1&showfullscreen=1&showvolume=1&showtime=1" /> 7 7 </object> 8 No newline at end of file -
themes/default/tpl/_mp3_player.html
1 1 <object type="application/x-shockwave-flash" data="{{tpl:BlogQmarkURL}}pf=player_mp3.swf" width="200" height="20"> 2 2 <param name="movie" value="{{tpl:BlogQmarkURL}}pf=player_mp3.swf" /> 3 3 <param name="wmode" value="transparent" /> 4 <param name="FlashVars" value="mp3={{tpl: AttachmentURL}}&loadingcolor=ff9900&bgcolor1=eeeeee&bgcolor2=cccccc&buttoncolor=0066cc&buttonovercolor=ff9900&slidercolor1=cccccc&slidercolor2=999999&sliderovercolor=0066cc" />4 <param name="FlashVars" value="mp3={{tpl:FileURL}}&loadingcolor=ff9900&bgcolor1=eeeeee&bgcolor2=cccccc&buttoncolor=0066cc&buttonovercolor=ff9900&slidercolor1=cccccc&slidercolor2=999999&sliderovercolor=0066cc" /> 5 5 </object> 6 No newline at end of file -
inc/public/class.dc.template.php
60 60 $this->addValue('AttachmentTitle',array($this,'AttachmentTitle')); 61 61 $this->addValue('AttachmentThumbnailURL',array($this,'AttachmentThumbnailURL')); 62 62 $this->addValue('AttachmentURL',array($this,'AttachmentURL')); 63 $this->addValue('FileURL',array($this,'FileURL')); 63 64 $this->addBlock('AttachmentIf',array($this,'AttachmentIf')); 64 65 65 66 # Blog … … 556 557 "?>\n". 557 558 558 559 '<?php foreach ($_ctx->attachments as $attach_i => $attach_f) : '. 559 '$GLOBALS[\'attach_i\'] = $attach_i; $GLOBALS[\'attach_f\'] = $attach_f; ?>'. 560 '$GLOBALS[\'attach_i\'] = $attach_i; $GLOBALS[\'attach_f\'] = $attach_f;'. 561 '$_ctx->file_url = $attach_f->file_url; ?>'. 560 562 $content. 561 '<?php endforeach; $_ctx->attachments = null; unset($attach_id ); unset($attach_f); ?>'.563 '<?php endforeach; $_ctx->attachments = null; unset($attach_id,$attach_f,$_ctx->file_url); ?>'. 562 564 563 565 "<?php } ?>\n"; 564 566 … … 703 705 return '<?php echo '.sprintf($f,'$attach_f->file_url').'; ?>'; 704 706 } 705 707 708 /*dtd 709 <!ELEMENT tpl:FileURL - O -- File URL --> 710 */ 711 public function FileURL($attr) 712 { 713 $f = $this->getFilters($attr); 714 return '<?php echo '.sprintf($f,'$_ctx->file_url').'; ?>'; 715 } 706 716 707 717 /* Blog ----------------------------------------------- */ 708 718 /*dtd