Changeset 536
- Timestamp:
- 10/27/08 00:00:23 (15 years ago)
- google:author:
- appears
- Location:
- plugins/dlManager
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dlManager/_define.php
r533 r536 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-beta 8',30 /* Version */ '1.0-beta9', 31 31 /* Permissions */ 'admin' 32 32 ); -
plugins/dlManager/_public.php
r533 r536 385 385 'itemImageThumbPath')); 386 386 387 # image meta 388 $core->tpl->addBlock('DLMItemImageMeta',array('dlManagerPageTpl', 389 'itemImageMeta')); 390 $core->tpl->addValue('DLMItemImageMetaName',array('dlManagerPageTpl', 391 'itemImageMetaName')); 392 $core->tpl->addValue('DLMItemImageMetaValue',array('dlManagerPageTpl', 393 'itemImageMetaValue')); 394 387 395 /** 388 396 @ingroup Download manager … … 860 868 'endif; ?>'); 861 869 } 870 871 /** 872 Loop on image meta 873 @param attr <b>array</b> Attribute 874 @param content <b>string</b> Content of the loop 875 @return <b>string</b> PHP block 876 */ 877 public static function itemImageMeta($attr,$content) 878 { 879 return("<?php ". 880 '$_ctx->dlManager_index = 0;'. 881 '$_ctx->dlManager_items = new ArrayObject();'. 882 'foreach ($_ctx->dlManager_item->media_meta as $k => $v) {'. 883 'if (!empty($v)) {$_ctx->dlManager_items[$k] = $v;}'. 884 '}'. 885 'foreach ($_ctx->dlManager_items as $name => $value) { ?>'."\n". 886 $content. 887 '<?php '. 888 '$_ctx->dlManager_index += 1; } '."\n". 889 'unset($_ctx->dlManager_items,$_ctx->dlManager_item,'. 890 '$_ctx->dlManager_index); ?>'); 891 } 892 893 /** 894 Image meta name 895 @param attr <b>array</b> Attribute 896 @return <b>string</b> PHP block 897 */ 898 public static function itemImageMetaName($attr) 899 { 900 $f = $GLOBALS['core']->tpl->getFilters($attr); 901 902 return('<?php echo '.sprintf($f,'$name').'; ?>'); 903 } 904 905 /** 906 Image meta value 907 @param attr <b>array</b> Attribute 908 @return <b>string</b> PHP block 909 */ 910 public static function itemImageMetaValue($attr) 911 { 912 $f = $GLOBALS['core']->tpl->getFilters($attr); 913 914 return('<?php echo '.sprintf($f,'$value').'; ?>'); 915 } 862 916 } 863 917 … … 901 955 foreach ($items as $item) { 902 956 $mediaplayer = ''; 903 if ($item->media_type == 'image' || $item->type == 'audio/mpeg3' || $item->type == 'video/x-flv') 957 if ($item->media_type == 'image') 958 { 959 $mediaplayer = 960 '<a href="'.$core->blog->url.$core->url->getBase('mediaplayer').'/'. 961 $item->media_id.'" title="'.__('Preview :').' '.$item->media_title.'">'. 962 '<img src="'.$core->blog->getQmarkURL(). 963 'pf=dlManager/images/image.png" alt="'.__('Preview').'" />'. 964 '</a>'; 965 } elseif ($item->type == 'audio/mpeg3' || $item->type == 'video/x-flv') 904 966 { 905 967 $mediaplayer = '<a href="'.$core->blog->url.$core->url->getBase('mediaplayer').'/'. 906 968 $item->media_id.'" title="'.__('Preview :').' '.$item->media_title.'">'. 907 '<img src="'.$core->blog->getQmarkURL().'pf=dlManager/images/control_play.png" alt="'.__('Preview').'" />'. 969 '<img src="'.$core->blog->getQmarkURL(). 970 'pf=dlManager/images/control_play.png" alt="'.__('Preview').'" />'. 908 971 '</a>'; 909 972 } -
plugins/dlManager/default-templates/media.html
r533 r536 50 50 51 51 <div id="dlmanager"> 52 <tpl:DLMIfSortIsEnabled>53 <form method="post" action="{{tpl:SysSelfURI}}">54 <p>55 {{tpl:lang Sort files:}}56 {{tpl:DLMFileSortOptions}}57 <input class="submit" type="submit" value="ok" />58 </p>59 </form>60 </tpl:DLMIfSortIsEnabled>61 62 52 <h3>{{tpl:lang Directories}}</h3> 63 53 … … 89 79 90 80 <h3>{{tpl:lang Files}}</h3> 91 81 82 <tpl:DLMIfSortIsEnabled> 83 <form method="post" action="{{tpl:SysSelfURI}}"> 84 <p> 85 {{tpl:lang Sort files:}} 86 {{tpl:DLMFileSortOptions}} 87 <input class="submit" type="submit" value="ok" /> 88 </p> 89 </form> 90 </tpl:DLMIfSortIsEnabled> 91 92 92 <tpl:DLMIfNoItem type="files"> 93 93 <p>{{tpl:lang No file.}}</p> … … 107 107 <!-- #<th>{{tpl:lang Media type}}</th>--> 108 108 <!-- #<th>{{tpl:lang Extension}}</th>--> 109 < !-- #<th>{{tpl:lang Modification time}}</th>-->110 <th>{{tpl:lang Download number}}</th>109 <th>{{tpl:lang Modification time}}</th> 110 <th>{{tpl:lang Downloads}}</th> 111 111 </tr> 112 112 </thead> … … 114 114 </tpl:DLMHeader> 115 115 <tr class="{{tpl:DLMItemMediaType}}"> 116 <td><img src="{{tpl:DLMItemIconPath}}" width="48" height="48" alt="{{tpl:DLMItemMediaType}}" /></td>116 <td><img src="{{tpl:DLMItemIconPath}}" width="48" height="48" title="{{tpl:DLMItemMediaType}}" alt="{{tpl:DLMItemMediaType}}" /></td> 117 117 <td> 118 118 <a href="{{tpl:DLMItemDlURL}}" title="{{tpl:DLMItemBasename}}"> … … 139 139 <!-- #<td>{{tpl:DLMItemExtension}}</td> 140 140 return "txt" --> 141 < !-- #<td>{{tpl:DLMItemMTime}}</td>-->141 <td>{{tpl:DLMItemMTime}}</td> 142 142 <td class="number">{{tpl:DLMItemDlCount}}</td> 143 143 </tr> -
plugins/dlManager/default-templates/media_player.html
r532 r536 38 38 <div id="content-info"> 39 39 <h2> 40 {{tpl:lang Preview}}40 {{tpl:lang Download manager}} 41 41 </h2> 42 42 </div> … … 51 51 52 52 <div id="dlmanager"> 53 <h3>{{tpl: DLMItemTitle}}</h3>53 <h3>{{tpl:lang Preview :}} {{tpl:DLMItemTitle}}</h3> 54 54 <p> 55 55 <a href="{{tpl:DLMItemDlURL}}" title="{{tpl:DLMItemBasename}}"> … … 76 76 <dt>{{tpl:lang Basename}}</dt> 77 77 <dd>{{tpl:DLMItemBasename}}</dd> 78 <dt>{{tpl:lang Media type}}</dt>79 <dd>{{tpl:DLMItem MediaType}}</dd>78 <dt>{{tpl:lang Type}}</dt> 79 <dd>{{tpl:DLMItemType}}</dd> 80 80 <dt>{{tpl:lang Size}}</dt> 81 81 <dd>{{tpl:DLMItemSize format="1"}}</dd> 82 <dt>{{tpl:lang Modification time}}</dt> 83 <dd>{{tpl:DLMItemMTime}}</dd> 82 84 <dt>{{tpl:lang Download number}}</dt> 83 85 <dd>{{tpl:DLMItemDlCount}}</dd> 84 86 </dl> 87 88 <tpl:DLMItemIf media_type="image"> 89 <tpl:DLMItemImageMeta> 90 <tpl:DLMHeader> 91 <h3>{{tpl:lang Image meta}}</h3> 92 <dl> 93 </tpl:DLMHeader> 94 <dt>{{tpl:DLMItemImageMetaName}}</dt> 95 <dd>{{tpl:DLMItemImageMetaValue}}</dd> 96 <tpl:DLMFooter> 97 </dl> 98 </tpl:DLMFooter> 99 </tpl:DLMItemImageMeta> 100 </tpl:DLMItemIf> 85 101 </div><!-- End #dlmanager --> 86 102 -
plugins/dlManager/locales/fr/main.po
r529 r536 3 3 "Project-Id-Version: DL Manager\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2008-10-2 1 16:40+0100\n"6 "PO-Revision-Date: 2008-10-2 1 16:40+0100\n"5 "POT-Creation-Date: 2008-10-26 23:28+0100\n" 6 "PO-Revision-Date: 2008-10-26 23:28+0100\n" 7 7 "Last-Translator: Moe <poedit@gniark.net>\n" 8 8 "Language-Team: Moe <poedit@gniark.net>\n" … … 17 17 "X-Poedit-SearchPath-0: .\n" 18 18 19 #: _public.php:15 419 #: _public.php:155 20 20 #: public_l10n.php:7 21 21 msgid "parent directory" 22 22 msgstr "répertoire parent" 23 23 24 #: lib.dlManager.php:69 24 #: _public.php:948 25 #: _public.php:954 26 msgid "Preview :" 27 msgstr "" 28 29 #: _public.php:949 30 #: _public.php:955 31 msgid "Preview" 32 msgstr "" 33 34 #: lib.dlManager.php:71 25 35 msgid "By names, ascendant" 26 36 msgstr "Par noms, croissants" 27 37 28 #: lib.dlManager.php:7 038 #: lib.dlManager.php:72 29 39 msgid "By names, descendant" 30 40 msgstr "Par noms, décroissants" 31 41 32 #: lib.dlManager.php:7 142 #: lib.dlManager.php:73 33 43 msgid "By dates, ascendant" 34 44 msgstr "Par dates, croissantes" 35 45 36 #: lib.dlManager.php:7 246 #: lib.dlManager.php:74 37 47 msgid "By dates, descendant" 38 48 msgstr "Par dates, décroissantes" 39 49 40 #: _admin.php:68 41 #: _admin.php:73 42 #: _admin.php:78 43 #: _admin.php:111 44 #: _admin.php:116 45 #: _admin.php:121 46 #: _admin.php:136 50 #: _admin.php:70 51 #: _admin.php:75 52 #: _admin.php:80 53 #: _admin.php:113 54 #: _admin.php:118 55 #: _admin.php:123 47 56 #: _admin.php:138 48 #: _admin.php:152 49 #: _admin.php:153 57 #: _admin.php:140 58 #: _admin.php:154 59 #: _admin.php:155 50 60 #: public_l10n.php:3 51 61 msgid "Download manager" 52 62 msgstr "Gestionnaire de téléchargements" 53 63 54 #: _admin.php:7 364 #: _admin.php:75 55 65 #, php-format 56 66 msgid "Enable the %s page" 57 67 msgstr "Activer la page %s" 58 68 59 #: _admin.php:7 769 #: _admin.php:79 60 70 #, php-format 61 71 msgid "The %s page display media on a public page." 62 72 msgstr "La page %s affiche les médias sur une page publique." 63 73 64 #: _admin.php:8 474 #: _admin.php:86 65 75 msgid "Allow visitors to choose how to sort files" 66 76 msgstr "Autoriser les visiteurs à choisir l'ordre des fichiers" 67 77 68 #: _admin.php: 8969 #: _admin.php:14 078 #: _admin.php:91 79 #: _admin.php:142 70 80 #: public_l10n.php:5 71 81 msgid "Sort files:" 72 82 msgstr "Trier les fichiers :" 73 83 74 #: _admin.php:9 575 #: _admin.php:10 584 #: _admin.php:97 85 #: _admin.php:107 76 86 msgid "Leave empty to cancel this feature." 77 msgstr " Type de média"78 79 #: _admin.php: 9987 msgstr "" 88 89 #: _admin.php:101 80 90 msgid "Display a subdirectory :" 81 91 msgstr "Afficher un sous-répertoire :" 82 92 83 #: _admin.php:10 693 #: _admin.php:108 84 94 msgid "The public directory will be displayed." 85 95 msgstr "Le répertoire public sera affiché." 86 96 87 #: _admin.php:11 097 #: _admin.php:112 88 98 #, php-format 89 99 msgid "Files can be excluded from %1$s by editing <strong>%2$s</strong> in <strong>%3$s</strong>." 90 100 msgstr "Les fichiers peuvent être exclus de %1$s en éditant <strong>%2$s</strong> dans <strong>%3$s</strong>." 91 101 92 #: _admin.php:11 1102 #: _admin.php:113 93 103 msgid "about:config" 94 104 msgstr "" 95 105 96 #: _admin.php:11 2106 #: _admin.php:114 97 107 #, php-format 98 108 msgid "For example, to exclude %1$s and %2$s files : <code>%3$s</code>" 99 109 msgstr "Par exemple, pour exclure les fichiers %1$s et %2$s : <code>%3$s</code>" 100 110 101 #: _admin.php:11 3111 #: _admin.php:115 102 112 msgid "PNG" 103 113 msgstr "" 104 114 105 #: _admin.php:11 3115 #: _admin.php:115 106 116 msgid "JPG" 107 117 msgstr "" 108 118 109 #: _admin.php:11 6119 #: _admin.php:118 110 120 #, php-format 111 121 msgid "URL of the %s page :" 112 122 msgstr "URL de la page %s :" 113 123 114 #: _admin.php:12 0124 #: _admin.php:122 115 125 #, php-format 116 126 msgid "View the %s page" 117 127 msgstr "Voir la page %s" 118 128 119 #: _admin.php:1 38129 #: _admin.php:140 120 130 msgid "Title:" 121 131 msgstr "Titre :" 122 132 123 #: _admin.php:1 38124 #: _admin.php:15 3133 #: _admin.php:140 134 #: _admin.php:155 125 135 msgid "optional" 126 136 msgstr "facultatif" 127 137 128 #: _admin.php:14 3138 #: _admin.php:145 129 139 msgid "root directory:" 130 140 msgstr "répertoire de base :" 131 141 132 #: _admin.php:14 6142 #: _admin.php:148 133 143 msgid "Block display:" 134 144 msgstr "Affichage du bloc :" 135 145 136 #: _admin.php:1 48146 #: _admin.php:150 137 147 msgid "Item display:" 138 148 msgstr "Affichage d'un élément :" 139 149 140 #: _admin.php:15 2150 #: _admin.php:154 141 151 #, php-format 142 152 msgid "Add a link to %s in the widget:" 143 153 msgstr "Ajouter un lien vers %s dans le widget :" 144 154 145 #: _admin.php:15 5155 #: _admin.php:157 146 156 msgid "Home page only" 147 157 msgstr "" … … 199 209 msgstr "Nombre de téléchargements" 200 210 201 #: public_l10n.php:24 211 #: public_l10n.php:22 212 msgid "Downloads" 213 msgstr "Téléchargements" 214 215 #: public_l10n.php:25 202 216 msgid "Download this file" 203 217 msgstr "Télécharger ce fichier" 204 218 205 #~ msgid "Activate the %s page"206 #~ msgstr "Activer la page %s"207 #~ msgid "Media"208 #~ msgstr "Médias"209 210 #, fuzzy211 #~ msgid "Download Manager"212 #~ msgstr "Gestionnaire de téléchargements"213 -
plugins/dlManager/public_l10n.php
r529 r536 20 20 __('Modification time'); 21 21 __('Download number'); 22 __('Downloads'); 22 23 23 24 # media_item.html
Note: See TracChangeset
for help on using the changeset viewer.