Changeset 553
- Timestamp:
- 11/09/08 20:26:40 (15 years ago)
- google:author:
- appears
- Location:
- plugins/dlManager
- Files:
-
- 1 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/dlManager/_define.php
r552 r553 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 5',30 /* Version */ '1.0-RC6', 31 31 /* Permissions */ 'admin' 32 32 ); -
plugins/dlManager/_public.php
r552 r553 185 185 # /pager 186 186 187 # download counter188 $_ctx->dlManager_count_dl =189 unserialize($core->blog->settings->dlmanager_count_dl);190 if (!is_array($_ctx->dlManager_count_dl))191 {192 $_ctx->dlManager_count_dl = array();193 }194 195 187 unset($files_array); 196 188 } … … 259 251 $_ctx->dlManager_BreadCrumb = dlManager::breadCrumb($file->relname); 260 252 # /BreadCrumb 261 262 # download counter263 $_ctx->dlManager_count_dl =264 unserialize($core->blog->settings->dlmanager_count_dl);265 if (!is_array($_ctx->dlManager_count_dl))266 {267 $_ctx->dlManager_count_dl = array();268 }269 253 270 254 # get static record … … 945 929 public static function itemDlCount() 946 930 { 947 return 948 '<?php echo (array_key_exists($_ctx->items->media_id,'. 949 '$_ctx->dlManager_count_dl) ? $_ctx->dlManager_count_dl[$_ctx->items->media_id] : "0"); ?>'; 931 return('<?php echo $_ctx->items->count_dl; ?>'); 950 932 } 951 933 … … 1001 983 return 1002 984 '<?php '. 1003 '$_ctx-> meta = dlManager::getImageMeta($_ctx->items); '.1004 'while ($_ctx-> meta->fetch()) : ?>'."\n".985 '$_ctx->imagemeta = dlManager::getImageMeta($_ctx->items); '. 986 'while ($_ctx->imagemeta->fetch()) : ?>'."\n". 1005 987 $content. 1006 '<?php endwhile; unset($_ctx-> meta); ?>';988 '<?php endwhile; unset($_ctx->imagemeta); ?>'; 1007 989 } 1008 990 … … 1016 998 $f = $GLOBALS['core']->tpl->getFilters($attr); 1017 999 1018 return('<?php echo '.sprintf($f,'$_ctx-> meta->name').'; ?>');1000 return('<?php echo '.sprintf($f,'$_ctx->imagemeta->name').'; ?>'); 1019 1001 } 1020 1002 … … 1028 1010 $f = $GLOBALS['core']->tpl->getFilters($attr); 1029 1011 1030 return('<?php echo '.sprintf($f,'$_ctx-> meta->value').'; ?>');1012 return('<?php echo '.sprintf($f,'$_ctx->imagemeta->value').'; ?>'); 1031 1013 } 1032 1014 -
plugins/dlManager/default-templates/media_player.html
r552 r553 113 113 <dd>{{tpl:DLMItemMTime format="date_format"}} {{tpl:DLMItemMTime format="time_format"}}</dd> 114 114 <tpl:DLMIfDownloadCounter> 115 <dt>{{tpl:lang Download number}}</dt>115 <dt>{{tpl:lang Downloads}}</dt> 116 116 <dd>{{tpl:DLMItemDlCount}}</dd> 117 117 </tpl:DLMIfDownloadCounter> -
plugins/dlManager/index.php
r552 r553 188 188 </p> 189 189 <p> 190 <a href="<?php echo dlManager::pageURL(); ?>">190 <a href="<?php echo dlManager::pageURL(); ?>"> 191 191 <?php printf(__('View the %s page'),__('Download manager')); ?></a> 192 192 </p> -
plugins/dlManager/lib.dlManager.php
r552 r553 165 165 global $core; 166 166 167 $count_dl = unserialize($core->blog->settings->dlmanager_count_dl); 168 if (!is_array($count_dl)) 169 { 170 $count_dl = array(); 171 } 172 167 173 $items = array(); 168 174 169 175 foreach ($array as $k => $v) 170 176 { 177 $dl = '0'; 178 if ($core->blog->settings->dlmanager_counter) 179 { 180 if ((isset($v->media_id)) 181 && (array_key_exists($v->media_id,$count_dl))) 182 { 183 $dl = $count_dl[$v->media_id]; 184 } 185 } 171 186 $items[] = array( 172 187 'dir_url' => (isset($v->dir_url) ? $v->dir_url : ''), … … 184 199 'media_dtstr' => (isset($v->media_dtstr) ? $v->media_dtstr : ''), 185 200 'media_thumb' => (isset($v->media_thumb) ? $v->media_thumb : ''), 186 'media_meta' => (isset($v->media_meta) ? $v->media_meta : '') 201 'media_meta' => (isset($v->media_meta) ? $v->media_meta : ''), 202 'count_dl' => $dl, 187 203 ); 188 204 } -
plugins/dlManager/locales/fr/main.po
r552 r553 3 3 "Project-Id-Version: DL Manager\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2008-11-09 04:14+0100\n"6 "PO-Revision-Date: 2008-11-09 04:14+0100\n"5 "POT-Creation-Date: 2008-11-09 19:36+0100\n" 6 "PO-Revision-Date: 2008-11-09 19:36+0100\n" 7 7 "Last-Translator: Moe <poedit@gniark.net>\n" 8 8 "Language-Team: Moe <poedit@gniark.net>\n" … … 18 18 19 19 #: _public.php:74 20 #: public_l10n.php:1 420 #: public_l10n.php:13 21 21 msgid "Home" 22 22 msgstr "" … … 34 34 msgstr "suivante" 35 35 36 #: _public.php:1213 36 #: _public.php:1194 37 #: public_l10n.php:21 38 msgid "Preview:" 39 msgstr "" 40 41 #: _public.php:1196 37 42 #: public_l10n.php:22 38 msgid "Preview:"39 msgstr ""40 41 #: _public.php:121542 #: public_l10n.php:2343 43 msgid "Preview" 44 44 msgstr "" … … 96 96 97 97 #: _admin.php:56 98 #: public_l10n.php:2 598 #: public_l10n.php:24 99 99 #: index.php:152 100 100 msgid "Sort files:" … … 127 127 128 128 #: _admin.php:72 129 #: public_l10n.php:1 2129 #: public_l10n.php:11 130 130 msgid "Files" 131 131 msgstr "Fichiers" … … 157 157 158 158 #: public_l10n.php:6 159 msgid "Download number"160 msgstr "Nombre de téléchargements"161 162 #: public_l10n.php:7163 159 msgid "Downloads" 164 160 msgstr "Téléchargements" 165 161 166 #: public_l10n.php: 8162 #: public_l10n.php:7 167 163 msgid "Download this file" 168 164 msgstr "Télécharger ce fichier" 169 165 170 #: public_l10n.php: 9166 #: public_l10n.php:8 171 167 msgid "Entries containing this media" 172 168 msgstr "Billets contenant ce média" 173 169 174 #: public_l10n.php: 10170 #: public_l10n.php:9 175 171 msgid "Extension" 176 172 msgstr "Extension" 177 173 178 #: public_l10n.php:1 1174 #: public_l10n.php:10 179 175 msgid "File" 180 176 msgstr "Fichier" 181 177 182 #: public_l10n.php:1 3178 #: public_l10n.php:12 183 179 msgid "Get back to the directory" 184 180 msgstr "Revenir au répertoire" 185 181 186 #: public_l10n.php:1 5182 #: public_l10n.php:14 187 183 msgid "Image meta" 188 184 msgstr "Méta données" 189 185 190 #: public_l10n.php:1 6186 #: public_l10n.php:15 191 187 msgid "Informations" 192 188 msgstr "Informations" 193 189 194 #: public_l10n.php:1 7190 #: public_l10n.php:16 195 191 msgid "Media type" 196 192 msgstr "Type de média" 197 193 198 #: public_l10n.php:1 8194 #: public_l10n.php:17 199 195 msgid "Modification time" 200 196 msgstr "Date de modification" 201 197 202 #: public_l10n.php:1 9198 #: public_l10n.php:18 203 199 msgid "No directory." 204 200 msgstr "Aucun répertoire." 205 201 206 #: public_l10n.php: 20202 #: public_l10n.php:19 207 203 msgid "No file." 208 204 msgstr "Aucun fichier." 209 205 210 #: public_l10n.php:2 1206 #: public_l10n.php:20 211 207 msgid "Page(s):" 212 208 msgstr "Page(s) :" 213 209 214 #: public_l10n.php:2 4210 #: public_l10n.php:23 215 211 msgid "Size" 216 212 msgstr "Taille" 217 213 218 #: public_l10n.php:2 6214 #: public_l10n.php:25 219 215 msgid "Type" 220 216 msgstr "Type" 221 217 222 #: public_l10n.php:2 7218 #: public_l10n.php:26 223 219 msgid "Zip file content" 224 220 msgstr "Contenu du fichier zip" … … 321 317 msgstr "Enregistrer la configuration" 322 318 323 #~ msgid "Hide files URLs"324 #~ msgstr "Cacher les URLs des fichiers"325 -
plugins/dlManager/public_l10n.php
r552 r553 1 <?php 1 <?php # made by Dotclear l10n.sh 2 2 __("Archives"); 3 3 __("Basename"); 4 4 __("Directories"); 5 5 __("Download manager"); 6 __("Download number");7 6 __("Downloads"); 8 7 __("Download this file");
Note: See TracChangeset
for help on using the changeset viewer.