Changeset 547
- Timestamp:
- 11/05/08 01:00:33 (15 years ago)
- google:author:
- tbouron
- Location:
- plugins/dlManager
- Files:
-
- 5 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dlManager/_define.php
r544 r547 28 28 /* Description*/ "Download manager with a public page and a widget", 29 29 /* Author */ "Moe (http://gniark.net/), Osku and Tomtom (http://blog.zenstyle.fr)", 30 /* Version */ '1.0-RC 1',30 /* Version */ '1.0-RC2', 31 31 /* Permissions */ 'admin' 32 32 ); -
plugins/dlManager/_prepend.php
r533 r547 29 29 '^media(/.+)?$',array('dlManagerPageDocument','page')); 30 30 $core->url->register('mediaplayer','mediaplayer', 31 '^mediaplayer/([0-9]+ )?$',array('dlManagerPageDocument','player'));31 '^mediaplayer/([0-9]+(/js)?)?$',array('dlManagerPageDocument','player')); 32 32 $core->url->register('download','download', 33 33 '^download/([0-9]+)$',array('dlManagerPageDocument','wrapper')); -
plugins/dlManager/_public.php
r544 r547 163 163 164 164 $_ctx =& $GLOBALS['_ctx']; 165 166 165 167 166 # exit if the public_path (and Media root) doesn't exist 168 167 if (!is_dir($core->blog->public_path)) {self::p404();} 169 168 170 $file = $core->media->getFile( $args);169 $file = $core->media->getFile(str_replace('/js','',$args)); 171 170 172 171 if ((empty($file->file)) || (!is_readable($file->file))) … … 207 206 dirname(__FILE__).'/default-templates/'); 208 207 209 self::serveDocument('media_player.html','text/html'); 208 if (preg_match('#^.*\/js$#',$args)) { 209 self::serveDocument('media_player_js.html','text/html'); 210 } 211 else { 212 self::serveDocument('media_player.html','text/html'); 213 } 210 214 } 211 215 -
plugins/dlManager/default-templates/media.html
r544 r547 23 23 .size {white-space:pre;} 24 24 .number {text-align:right;} 25 .TB_overlayMacFFBGHack {background: url({{tpl:BlogURL}}pf=dlManager/default-templates/macFFBgHack.png) repeat;} 25 26 </style> 26 27 28 <link rel="stylesheet" href="{{tpl:BlogURL}}pf=dlManager/default-templates/thickbox.css" type="text/css" media="screen" /> 29 27 30 {{tpl:include src="_head.html"}} 31 32 <script type="text/javascript"> 33 $(document).ready(function () { 34 var tb_pathToImage = "{{tpl:BlogURL}}pf=dlManager/default-templates/loadingAnimation.gif"; 35 $("a.thickbox").each(function() { 36 $(this).attr("href",this.href+"/js"); 37 }); 38 }); 39 </script> 40 <script type="text/javascript" src="{{tpl:BlogURL}}pf=dlManager/default-templates/thickbox.js"></script> 28 41 </head> 29 42 … … 125 138 <!-- # image files --> 126 139 <tpl:DLMItemIf media_type="image"> 127 <a href="{{tpl:DLMItemPlayerURL}}" class="preview " title="{{tpl:lang Preview :}} {{tpl:DLMItemBasename}}">140 <a href="{{tpl:DLMItemPlayerURL}}" class="preview thickbox" title="{{tpl:lang Preview :}} {{tpl:DLMItemBasename}}"> 128 141 <img src="{{tpl:BlogQmarkURL}}pf=dlManager/images/image.png" alt="{{tpl:lang Preview}}" /> 129 142 </a> … … 131 144 <!-- # mp3 and flv files --> 132 145 <tpl:DLMItemIf operator="or" type="audio/mpeg3,video/x-flv"> 133 <a href="{{tpl:DLMItemPlayerURL}}" class="preview " title="{{tpl:lang Preview :}} {{tpl:DLMItemBasename}}">146 <a href="{{tpl:DLMItemPlayerURL}}" class="preview thickbox" title="{{tpl:lang Preview :}} {{tpl:DLMItemBasename}}"> 134 147 <img src="{{tpl:BlogQmarkURL}}pf=dlManager/images/control_play.png" alt="{{tpl:lang Preview}}" /> 135 148 </a> … … 137 150 <!-- # zip files --> 138 151 <tpl:DLMItemIf type="application/zip"> 139 <a href="{{tpl:DLMItemPlayerURL}}" class="preview " title="{{tpl:lang Preview :}} {{tpl:DLMItemBasename}}">152 <a href="{{tpl:DLMItemPlayerURL}}" class="preview thickbox" title="{{tpl:lang Preview :}} {{tpl:DLMItemBasename}}"> 140 153 <img src="{{tpl:BlogQmarkURL}}pf=dlManager/images/briefcase.png" alt="{{tpl:lang Preview}}" /> 141 154 </a>
Note: See TracChangeset
for help on using the changeset viewer.