Changeset 3337
- Timestamp:
- 01/25/15 16:20:41 (8 years ago)
- Location:
- plugins/infoEntry/trunk
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/infoEntry/trunk/_define.php
r2446 r3337 3 3 # This file is part of infoEntry, a plugin for Dotclear. 4 4 # 5 # Copyright (c) 2009 -2010Tomtom5 # Copyright (c) 2009 Tomtom 6 6 # http://blog.zenstyle.fr/ 7 7 # … … 15 15 $this->registerModule( 16 16 /* Name */ 'infoEntry', 17 /* Description */ 'Display all information about entries', 18 /* Author */ 'Tomtom (http://plugins.zenstyle.fr/)', 19 /* Version */ '1.0.4', 20 /* Permissions */ 'admin' 17 /* Description */ 'Display all information on current entry', 18 /* Author */ 'Tomtom (http://plugins.zenstyle.fr/), Pierre Van Glabeke', 19 /* Version */ '1.1', 20 /* Properties */ 21 array( 22 'permissions' => 'admin', 23 'type' => 'plugin', 24 'dc_min' => '2.6', 25 'support' => 'http://lab.dotclear.org/wiki/plugin/infoEntry', 26 'details' => 'http://plugins.dotaddict.org/dc2/details/infoEntry' 27 ) 21 28 ); 22 23 ?> -
plugins/infoEntry/trunk/_prepend.php
r2446 r3337 3 3 # This file is part of infoEntry, a plugin for Dotclear. 4 4 # 5 # Copyright (c) 2009 -2010Tomtom5 # Copyright (c) 2009 Tomtom 6 6 # http://blog.zenstyle.fr/ 7 7 # … … 10 10 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 11 11 # -- END LICENSE BLOCK ------------------------------------ 12 if (!defined('DC_RC_PATH')) { return; } 12 13 13 14 require dirname(__FILE__).'/_widgets.php'; 14 15 ?> -
plugins/infoEntry/trunk/_public.php
r2446 r3337 3 3 # This file is part of infoEntry, a plugin for Dotclear. 4 4 # 5 # Copyright (c) 2009 -2010Tomtom5 # Copyright (c) 2009 Tomtom 6 6 # http://blog.zenstyle.fr/ 7 7 # … … 10 10 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 11 11 # -- END LICENSE BLOCK ------------------------------------ 12 13 12 if (!defined('DC_RC_PATH')) { return; } 14 13 … … 26 25 global $core, $_ctx; 27 26 27 if ($w->offline) 28 return; 29 28 30 if ($core->url->type != 'post') { return; } 29 31 30 $res = (strlen($w->title) > 0) ? '<h2>'.html::escapeHTML($w->title).'</h2>' : '';32 $res = '<ul>'; 31 33 32 $pmask = '< p class="%1$s">%2$s</p>';34 $pmask = '<li class="%1$s">%2$s</li>'; 33 35 $amask = '<a href="%1$s">%2$s</a>'; 34 36 … … 53 55 $_ctx->meta->sort($w->sortby,$w->orderby); 54 56 55 $res .= '<ul class="info-tags">';56 57 57 while ($_ctx->meta->fetch()) 58 58 { 59 59 $url = $core->blog->url.$core->url->getBase('tag').'/'.rawurlencode($_ctx->meta->meta_id); 60 60 $link = sprintf($amask,$url,html::escapeHTML($_ctx->meta->meta_id)); 61 $res .= '<li >'.$link.'</li>';61 $res .= '<li class="info-tags">'.$link.'</li>'; 62 62 } 63 63 64 $res .= '</ul>';64 //$res .= '</ul>'; 65 65 } 66 66 if ($w->displaynextentry) { … … 77 77 } 78 78 79 return 80 '<div id="info-entry">'. 81 $res. 82 '</div>'; 79 $res .= '</ul>'; 80 81 $res = 82 ($w->title ? $w->renderTitle(html::escapeHTML($w->title)) : ''). 83 $res; 84 85 return $w->renderDiv($w->content_only,'info-entry '.$w->class,'',$res); 83 86 } 84 87 … … 97 100 global $core, $_ctx; 98 101 99 $pmask = '< p class="%1$s">%2$s</p>';102 $pmask = '<li class="%1$s">%2$s</li>'; 100 103 $amask = '<a href="%1$s">%2$s</a>'; 101 104 $res = ''; … … 114 117 } 115 118 } 116 117 ?> -
plugins/infoEntry/trunk/_widgets.php
r2446 r3337 3 3 # This file is part of infoEntry, a plugin for Dotclear. 4 4 # 5 # Copyright (c) 2009 -2010Tomtom5 # Copyright (c) 2009 Tomtom 6 6 # http://blog.zenstyle.fr/ 7 7 # … … 24 24 public static function initWidgets($w) 25 25 { 26 $w->create('infoEntry',__('Information about entry'),array('infoEntryPublic','widget')); 26 $w->create('infoEntry',__('InfoEntry: information about entry'),array('infoEntryPublic','widget'), 27 null, 28 __('Display all information on current entry')); 27 29 $w->infoEntry->setting('title',__('Title:'),__('Information about entry'),'text'); 28 30 $w->infoEntry->setting('displayauthor',__('Display author'),true,'check'); … … 45 47 $w->infoEntry->setting('displaynextentrycat',__("Display next same category's entry"),true,'check'); 46 48 $w->infoEntry->setting('displaypreventrycat',__("Display previous same category's entry"),true,'check'); 49 $w->infoEntry->setting('content_only',__('Content only'),0,'check'); 50 $w->infoEntry->setting('class',__('CSS class:'),''); 51 $w->infoEntry->setting('offline',__('Offline'),0,'check'); 47 52 } 48 53 } 49 50 ?> -
plugins/infoEntry/trunk/locales/fr/main.po
r1755 r3337 1 # Français translation of infoEntry, a plugin for dotclear2 # This file is generated by LangOmatic, a plugin for Dotclear3 1 msgid "" 4 2 msgstr "" … … 7 5 "POT-Creation-Date: \n" 8 6 "PO-Revision-Date: \n" 9 "Last-Translator: Kozlika <kozlika@free.fr>\n"7 "Last-Translator: brol <contact@brol.info>\n" 10 8 "Language-Team: \n" 11 9 "MIME-Version: 1.0\n" … … 14 12 #: _public.php:68 15 13 msgid "Next entry: %s" 16 msgstr "Billet suivant 14 msgstr "Billet suivant : %s" 17 15 18 16 #: _public.php:71 19 17 msgid "Previous entry: %s" 20 msgstr "Billet précédent 18 msgstr "Billet précédent : %s" 21 19 22 20 #: _public.php:74 23 21 msgid "Next entry in category: %s" 24 msgstr "Billet suivant dans la catégorie 22 msgstr "Billet suivant dans la catégorie : %s" 25 23 26 24 #: _public.php:77 27 25 msgid "Previous entry in category: %s" 28 msgstr "Billet précédent dans la catégorie 26 msgstr "Billet précédent dans la catégorie : %s" 29 27 28 #: _widgets.php:26 29 msgid "InfoEntry: information about entry" 30 msgstr "InfoEntry : informations sur le billet" 31 32 #: _define.php:17 30 33 #: _widgets.php:28 34 msgid "Display all information on current entry" 35 msgstr "Afficher toutes les informations sur le billet courant" 36 31 37 #: _widgets.php:29 32 38 msgid "Information about entry" … … 43 49 #: _widgets.php:32 44 50 msgid "Date format (leave empty to use default format):" 45 msgstr "Format de la date (laisser vide pour utiliser le format par défaut) "51 msgstr "Format de la date (laisser vide pour utiliser le format par défaut) :" 46 52 47 53 #: _widgets.php:33 … … 55 61 #: _widgets.php:35 56 62 msgid "Feed format:" 57 msgstr "Format du fil "63 msgstr "Format du fil :" 58 64 59 65 #: _widgets.php:36 … … 67 73 #: _widgets.php:38 68 74 msgid "Display tags" 69 msgstr "Afficher les tags"75 msgstr "Afficher les mots-clés" 70 76 71 77 #: _widgets.php:45
Note: See TracChangeset
for help on using the changeset viewer.