Changeset 3321
- Timestamp:
- 01/11/15 20:43:01 (9 years ago)
- Location:
- plugins/dlManager/trunk
- Files:
-
- 7 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dlManager/trunk/_define.php
r3317 r3321 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.1. 6',30 /* Version */ '1.1.7', 31 31 /* Properties */ 32 32 array( 33 33 'permissions' => 'admin', 34 34 'type' => 'plugin', 35 'dc_min' => '2. 6',35 'dc_min' => '2.7.3', 36 36 'support' => 'http://lab.dotclear.org/wiki/plugin/dlManager/fr', 37 37 'details' => 'http://lab.dotclear.org/wiki/plugin/dlManager/fr' -
plugins/dlManager/trunk/_public.php
r3317 r3321 206 206 } 207 207 208 $core->tpl->setPath($core->tpl->getPath(), 209 dirname(__FILE__).'/default-templates/'); 208 $tplset = $core->themes->moduleInfo($core->blog->settings->system->theme,'tplset'); 209 if (!empty($tplset) && is_dir(dirname(__FILE__).'/default-templates/'.$tplset)) { 210 $core->tpl->setPath($core->tpl->getPath(), dirname(__FILE__).'/default-templates/'.$tplset); 211 } else { 212 $core->tpl->setPath($core->tpl->getPath(), dirname(__FILE__).'/default-templates/'.DC_DEFAULT_TPLSET); 213 } 210 214 211 215 self::serveDocument('media.html','text/html',true,false); … … 278 282 # /get static record 279 283 280 $core->tpl->setPath($core->tpl->getPath(), 281 dirname(__FILE__).'/default-templates/'); 284 $tplset = $core->themes->moduleInfo($core->blog->settings->system->theme,'tplset'); 285 if (!empty($tplset) && is_dir(dirname(__FILE__).'/default-templates/'.$tplset)) { 286 $core->tpl->setPath($core->tpl->getPath(), dirname(__FILE__).'/default-templates/'.$tplset); 287 } else { 288 $core->tpl->setPath($core->tpl->getPath(), dirname(__FILE__).'/default-templates/'.DC_DEFAULT_TPLSET); 289 } 282 290 283 291 self::serveDocument('media_player.html','text/html',true,false); -
plugins/dlManager/trunk/_widget.php
r3317 r3321 85 85 $w->dlManager->setting('content_only',__('Content only'),0,'check'); 86 86 $w->dlManager->setting('class',__('CSS class:'),''); 87 $w->dlManager->setting('offline',__('Offline'),0,'check'); 87 88 } 88 89 … … 95 96 { 96 97 global $core; 98 99 if ($w->offline) 100 return; 97 101 98 102 if (($w->homeonly == 1 && $core->url->type != 'default') || … … 214 218 215 219 # output 216 $header = (strlen($w->title) > 0)217 ? '<h2>'.html::escapeHTML($w->title).'</h2>' : null;218 219 220 $link = (strlen($w->link) > 0) ? '<p class="text"><a href="'. 220 221 dlManager::pageURL().'">'.html::escapeHTML($w->link).'</a></p>' : null; 221 222 222 return 223 ($w->content_only ? '' : '<div class="dlmanager'.($w->class ? ' '.html::escapeHTML($w->class) : '').'">'). 224 $header.$str.$link. 225 ($w->content_only ? '' : '</div>'); 223 $res = 224 ($w->title ? $w->renderTitle(html::escapeHTML($w->title)) : ''). 225 $str.$link; 226 227 return $w->renderDiv($w->content_only,'dlmanager '.$w->class,'',$res); 226 228 } 227 229 } -
plugins/dlManager/trunk/changelog
r3317 r3321 1 v1.1.6 ( 28-06-2014) Pierre Van Glabeke :1 v1.1.6 (10-01-2015) Pierre Van Glabeke : 2 2 Correction php 5.3 3 3 Ajout combo page, content_only et css dans le widget … … 8 8 Déplacement et renommage de facebox.css 9 9 Suppression fin de ligne unix 10 Compatibilité dc2.7 (widget + templates) 11 Dotclear 2.7.3 requis -
plugins/dlManager/trunk/js/facebox.js
r1655 r3321 81 81 overlay : true, 82 82 loadingImage : '/facebox/loading.gif', 83 closeImage : '/facebox/close label.gif',83 closeImage : '/facebox/close.png', 84 84 imageTypes : [ 'png', 'jpg', 'jpeg', 'gif' ], 85 85 faceboxHtml : '\ … … 98 98 <div class="footer"> \ 99 99 <a href="#" class="close"> \ 100 <img src="/facebox/close label.gif" title="close" alt="close" class="close_image" /> \100 <img src="/facebox/close.png" class="close_image" /> \ 101 101 </a> \ 102 102 </div> \ -
plugins/dlManager/trunk/js/facebox.pack.js
r1655 r3321 1 2 1 (function($){$.facebox=function(data,klass){$.facebox.loading() 3 2 if(data.ajax)fillFaceboxFromAjax(data.ajax) … … 6 5 else if($.isFunction(data))data.call($) 7 6 else $.facebox.reveal(data,klass)} 8 $.extend($.facebox,{settings:{opacity:0,overlay:true,loadingImage:'/facebox/loading.gif',closeImage:'/facebox/close label.gif',imageTypes:['png','jpg','jpeg','gif'],faceboxHtml:'\7 $.extend($.facebox,{settings:{opacity:0,overlay:true,loadingImage:'/facebox/loading.gif',closeImage:'/facebox/close.png',imageTypes:['png','jpg','jpeg','gif'],faceboxHtml:'\ 9 8 <div id="facebox" style="display:none;"> \ 10 9 <div class="popup"> \ … … 21 20 <div class="footer"> \ 22 21 <a href="#" class="close"> \ 23 <img src="/facebox/close label.gif" title="close" alt="close" class="close_image" /> \22 <img src="/facebox/close.png" class="close_image" /> \ 24 23 </a> \ 25 24 </div> \ -
plugins/dlManager/trunk/locales/fr/main.po
r3317 r3321 17 17 "X-Poedit-SearchPath-0: .\n" 18 18 19 #: _public.php:7420 #: public_l10n.php:1321 msgid "Home"22 msgstr ""23 24 19 #: _public.php:146 25 20 msgid "parent directory" … … 55 50 msgid "Download Manager" 56 51 msgstr "Gestionnaire de téléchargements" 57 58 #: public_l10n.php:259 msgid "Archives"60 msgstr ""61 52 62 53 #: public_l10n.php:3 … … 100 91 msgstr "Billets contenant ce média" 101 92 102 #: public_l10n.php:9103 msgid "Extension"104 msgstr "Extension"105 106 93 #: public_l10n.php:10 107 94 msgid "File" … … 148 135 #: _widget.php:184 149 136 msgid "Preview:" 150 msgstr " "137 msgstr "Voir :" 151 138 152 139 #: public_l10n.php:22 153 140 #: _widget.php:186 154 141 msgid "Preview" 155 msgstr " "142 msgstr "Voir" 156 143 157 144 #: public_l10n.php:23 … … 235 222 #: index.php:174 236 223 msgid "Leave empty to cancel this feature." 237 msgstr " "224 msgstr "Laisser vide pour annuler cette fonction." 238 225 239 226 #: index.php:168 … … 283 270 msgstr "Titre :" 284 271 285 #: _widget.php:48286 #: _widget.php:61287 #: _widget.php:67288 #: _widget.php:76289 msgid "optional"290 msgstr "optionnel"291 292 272 #: _widget.php:54 293 273 msgid "root directory:" … … 322 302 msgid "Add a link to %s in the widget:" 323 303 msgstr "Ajouter un lien vers %s dans le widget :" 304 305 msgid "close" 306 msgstr "fermer"
Note: See TracChangeset
for help on using the changeset viewer.