Dotclear

Changeset 3201


Ignore:
Timestamp:
10/02/13 12:27:59 (10 years ago)
Author:
brol
Message:

version 1.0.5 : ajout ligne de sécurité + intègre dans le widget class + content only + combo affichage (home only, all, except home)

Location:
plugins/infoBlog/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • plugins/infoBlog/trunk/_define.php

    r2445 r3201  
    33# This file is part of infoBlog, a plugin for Dotclear. 
    44#  
    5 # Copyright (c) 2009-2010 Tomtom 
     5# Copyright (c) 2009 Tomtom 
    66# http://blog.zenstyle.fr/ 
    77#  
     
    1717          /* Description */        'Display all information about your blog', 
    1818          /* Author */             'Tomtom (http://plugins.zenstyle.fr/)', 
    19           /* Version */            '1.0.4', 
     19          /* Version */            '1.0.5', 
    2020          /* Permissions */        'admin' 
    2121); 
  • plugins/infoBlog/trunk/_prepend.php

    r2445 r3201  
    33# This file is part of infoBlog, a plugin for Dotclear. 
    44#  
    5 # Copyright (c) 2009-2010 Tomtom 
     5# Copyright (c) 2009 Tomtom 
    66# http://blog.zenstyle.fr/ 
    77#  
     
    1010# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    1111# -- END LICENSE BLOCK ------------------------------------ 
    12  
     12if (!defined('DC_RC_PATH')) { return; } 
    1313require dirname(__FILE__).'/_widgets.php'; 
    1414 
  • plugins/infoBlog/trunk/_public.php

    r2445 r3201  
    33# This file is part of infoBlog, a plugin for Dotclear. 
    44#  
    5 # Copyright (c) 2009-2010 Tomtom 
     5# Copyright (c) 2009 Tomtom 
    66# http://blog.zenstyle.fr/ 
    77#  
     
    1010# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    1111# -- END LICENSE BLOCK ------------------------------------ 
    12  
    1312if (!defined('DC_RC_PATH')) { return; } 
    14  
    1513class infoBlogPublic 
    1614{ 
     
    2624          global $core; 
    2725 
    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')) { 
    2928               return; 
    3029          } 
     
    122121 
    123122          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">'. 
    125125               $title. 
    126126               $res. 
    127                '</div>'; 
     127          //   '</div>'; 
     128               ($w->content_only ? '' : '</div>'); 
    128129     } 
    129130} 
  • plugins/infoBlog/trunk/_widgets.php

    r2445 r3201  
    33# This file is part of infoBlog, a plugin for Dotclear. 
    44#  
    5 # Copyright (c) 2009-2010 Tomtom 
     5# Copyright (c) 2009 Tomtom 
    66# http://blog.zenstyle.fr/ 
    77#  
     
    3737          $w->infoBlog->setting('displayauthors',__('Display authors'),true,'check'); 
    3838          $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:'),''); 
    4048     } 
    4149} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map