Changeset 3201
- Timestamp:
- 10/02/13 12:27:59 (10 years ago)
- Location:
- plugins/infoBlog/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/infoBlog/trunk/_define.php
r2445 r3201 3 3 # This file is part of infoBlog, a plugin for Dotclear. 4 4 # 5 # Copyright (c) 2009 -2010Tomtom5 # Copyright (c) 2009 Tomtom 6 6 # http://blog.zenstyle.fr/ 7 7 # … … 17 17 /* Description */ 'Display all information about your blog', 18 18 /* Author */ 'Tomtom (http://plugins.zenstyle.fr/)', 19 /* Version */ '1.0. 4',19 /* Version */ '1.0.5', 20 20 /* Permissions */ 'admin' 21 21 ); -
plugins/infoBlog/trunk/_prepend.php
r2445 r3201 3 3 # This file is part of infoBlog, 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 12 if (!defined('DC_RC_PATH')) { return; } 13 13 require dirname(__FILE__).'/_widgets.php'; 14 14 -
plugins/infoBlog/trunk/_public.php
r2445 r3201 3 3 # This file is part of infoBlog, 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 15 13 class infoBlogPublic 16 14 { … … 26 24 global $core; 27 25 28 if ($w->homeonly && $core->url->type != 'default') { 26 if (($w->homeonly == 1 && $core->url->type != 'default') || 27 ($w->homeonly == 2 && $core->url->type == 'default')) { 29 28 return; 30 29 } … … 122 121 123 122 return 124 '<div id="info-blog">'. 123 $res = ($w->content_only ? '' : '<div class="info-blog'.($w->class ? ' '.html::escapeHTML($w->class) : '').'">'). 124 //'<div id="info-blog">'. 125 125 $title. 126 126 $res. 127 '</div>'; 127 // '</div>'; 128 ($w->content_only ? '' : '</div>'); 128 129 } 129 130 } -
plugins/infoBlog/trunk/_widgets.php
r2445 r3201 3 3 # This file is part of infoBlog, a plugin for Dotclear. 4 4 # 5 # Copyright (c) 2009 -2010Tomtom5 # Copyright (c) 2009 Tomtom 6 6 # http://blog.zenstyle.fr/ 7 7 # … … 37 37 $w->infoBlog->setting('displayauthors',__('Display authors'),true,'check'); 38 38 $w->infoBlog->setting('displayauthorstats',__('Display author statistics'),true,'check'); 39 $w->infoBlog->setting('homeonly',__('Home page only'),true,'check'); 39 $w->infoBlog->setting('homeonly',__('Display on:'),0,'combo', 40 array( 41 __('All pages') => 0, 42 __('Home page only') => 1, 43 __('Except on home page') => 2 44 ) 45 ); 46 $w->infoBlog->setting('content_only',__('Content only'),0,'check'); 47 $w->infoBlog->setting('class',__('CSS class:'),''); 40 48 } 41 49 }
Note: See TracChangeset
for help on using the changeset viewer.