Dotclear

Changeset 847


Ignore:
Timestamp:
03/08/09 11:20:32 (15 years ago)
Author:
Tomtom33
Message:

Cleaning to release

Location:
plugins/lunarPhase
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • plugins/lunarPhase/_admin.php

    r637 r847  
    11<?php 
    22# -- BEGIN LICENSE BLOCK ---------------------------------- 
    3 # 
    4 # This file is part of plugin lunarPhase for Dotclear 2. 
    5 # Copyright (c) 2008 Thomas Bouron. 
    6 # 
     3# This file is part of lunarPhase, a plugin for Dotclear. 
     4#  
     5# Copyright (c) 2009 Tomtom 
     6# http://blog.zenstyle.fr/ 
     7#  
    78# Licensed under the GPL version 2.0 license. 
    8 # See LICENSE file or 
     9# A copy of this license is available in LICENSE file or at 
    910# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    10 # 
    1111# -- END LICENSE BLOCK ------------------------------------ 
     12 
    1213if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1314 
  • plugins/lunarPhase/_define.php

    r637 r847  
    11<?php 
    22# -- BEGIN LICENSE BLOCK ---------------------------------- 
    3 # 
    4 # This file is part of plugin lunarPhase for Dotclear 2. 
    5 # Copyright (c) 2008 Thomas Bouron. 
    6 # 
     3# This file is part of lunarPhase, a plugin for Dotclear. 
     4#  
     5# Copyright (c) 2009 Tomtom 
     6# http://blog.zenstyle.fr/ 
     7#  
    78# Licensed under the GPL version 2.0 license. 
    8 # See LICENSE file or 
     9# A copy of this license is available in LICENSE file or at 
    910# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    10 # 
    1111# -- END LICENSE BLOCK ------------------------------------ 
     12 
    1213if (!defined('DC_RC_PATH')) { return; } 
    1314 
    1415$this->registerModule( 
    15           /* Name */                    'lunarPhase', 
     16          /* Name */               'lunarPhase', 
    1617          /* Description */        'Display the moon phases', 
    1718          /* Author */             'Tomtom (http://plugins.zenstyle.fr)', 
    18           /* Verion */             '1.0-RC1', 
     19          /* Verion */             '1.0', 
    1920          /* Premission */         'usage,contentadmin' 
    2021); 
  • plugins/lunarPhase/_prepend.php

    r637 r847  
    11<?php 
    22# -- BEGIN LICENSE BLOCK ---------------------------------- 
    3 # 
    4 # This file is part of plugin lunarPhase for Dotclear 2. 
    5 # Copyright (c) 2008 Thomas Bouron. 
    6 # 
     3# This file is part of lunarPhase, a plugin for Dotclear. 
     4#  
     5# Copyright (c) 2009 Tomtom 
     6# http://blog.zenstyle.fr/ 
     7#  
    78# Licensed under the GPL version 2.0 license. 
    8 # See LICENSE file or 
     9# A copy of this license is available in LICENSE file or at 
    910# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    10 # 
    1111# -- END LICENSE BLOCK ------------------------------------ 
     12 
    1213global $__autoload; 
    1314 
  • plugins/lunarPhase/_public.php

    r637 r847  
    11<?php 
    22# -- BEGIN LICENSE BLOCK ---------------------------------- 
    3 # 
    4 # This file is part of plugin lunarPhase for Dotclear 2. 
    5 # Copyright (c) 2008 Thomas Bouron. 
    6 # 
     3# This file is part of lunarPhase, a plugin for Dotclear. 
     4#  
     5# Copyright (c) 2009 Tomtom 
     6# http://blog.zenstyle.fr/ 
     7#  
    78# Licensed under the GPL version 2.0 license. 
    8 # See LICENSE file or 
     9# A copy of this license is available in LICENSE file or at 
    910# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    10 # 
    1111# -- END LICENSE BLOCK ------------------------------------ 
     12 
    1213if (!defined('DC_RC_PATH')) { return; } 
    1314 
    1415$core->addBehavior('publicHeadContent',array('lunarPhaseBehaviors','addCss')); 
    1516 
    16 /** 
    17  * Class behaviorsLunarPhase 
    18  */ 
    1917class lunarPhaseBehaviors 
    2018{ 
     
    3230} 
    3331 
    34 /** 
    35  * Class lunarPhasePublic 
    36  */ 
    3732class lunarPhasePublic 
    3833{ 
     
    5247          } 
    5348 
    54           $res = 
    55                '<div id="lunarphase">'. 
    56                '<h2>'.$w->title.'</h2>'. 
     49          $res = strlen($w->title) > 0 ? '<h2>'.$w->title.'</h2>' : ''; 
     50 
     51          $res .= 
    5752               '<h3>'.__('In live').'</h3>'. 
    5853               '<ul class="lunarphase">'. 
     
    6156               '<h3>'.__('Previsions').'</h3>'. 
    6257               '<ul class="lunarphase">'; 
    63                foreach ($lp->previsions as $prevision) 
    64                { 
    65                     $mode = (!strpos($prevision->id,'moon')) ? 'illumination' : 'previsions'; 
    66                     $res .= $lp->setLine($prevision,$w,$mode); 
    67                } 
     58          foreach ($lp->previsions as $prevision) { 
     59               $mode = (!strpos($prevision->id,'moon')) ? 'illumination' : 'previsions'; 
     60               $res .= $lp->setLine($prevision,$w,$mode); 
     61          } 
    6862          $res .= 
    6963               '</ul>'. 
    7064               '</div>'; 
    7165 
    72           return $res; 
     66          return  
     67               '<div id="lunarphase">'. 
     68               $res. 
     69               '</div>'; 
    7370     } 
    74       
     71 
    7572     /** 
    7673      * Returns each line of the item list 
  • plugins/lunarPhase/_widgets.php

    r637 r847  
    11<?php 
    22# -- BEGIN LICENSE BLOCK ---------------------------------- 
    3 # 
    4 # This file is part of plugin lunarPhase for Dotclear 2. 
    5 # Copyright (c) 2008 Thomas Bouron. 
    6 # 
     3# This file is part of lunarPhase, a plugin for Dotclear. 
     4#  
     5# Copyright (c) 2009 Tomtom 
     6# http://blog.zenstyle.fr/ 
     7#  
    78# Licensed under the GPL version 2.0 license. 
    8 # See LICENSE file or 
     9# A copy of this license is available in LICENSE file or at 
    910# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    10 # 
    1111# -- END LICENSE BLOCK ------------------------------------ 
     12 
    1213if (!defined('DC_RC_PATH')) { return; } 
    1314 
    1415$core->addBehavior('initWidgets',array('lunarPhaseWidgets','initWidgets')); 
    1516 
    16 /** 
    17  * Class lunarPhaseWidget 
    18  */ 
    1917class lunarPhaseWidgets 
    2018{ 
  • plugins/lunarPhase/inc/class.lunarphase.php

    r637 r847  
    11<?php 
    22# -- BEGIN LICENSE BLOCK ---------------------------------- 
    3 # 
    4 # This file is part of plugin lunarPhase for Dotclear 2. 
    5 # Copyright (c) 2008 Thomas Bouron. 
    6 # 
     3# This file is part of lunarPhase, a plugin for Dotclear. 
     4#  
     5# Copyright (c) 2009 Tomtom 
     6# http://blog.zenstyle.fr/ 
     7#  
    78# Licensed under the GPL version 2.0 license. 
    8 # See LICENSE file or 
     9# A copy of this license is available in LICENSE file or at 
    910# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    10 # 
    1111# -- END LICENSE BLOCK ------------------------------------ 
    1212 
    13 /** 
    14  * Class lunarPhase 
    15  */ 
    1613class lunarPhase 
    1714{ 
  • plugins/lunarPhase/style.css

    r637 r847  
    11/* 
    22# -- BEGIN LICENSE BLOCK ---------------------------------- 
    3 # 
    4 # This file is part of plugin lunarPhase for Dotclear 2. 
    5 # Copyright (c) 2008 Thomas Bouron. 
    6 # 
     3# This file is part of lunarPhase, a plugin for Dotclear. 
     4#  
     5# Copyright (c) 2009 Tomtom 
     6# http://blog.zenstyle.fr/ 
     7#  
    78# Licensed under the GPL version 2.0 license. 
    8 # See LICENSE file or 
     9# A copy of this license is available in LICENSE file or at 
    910# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    10 # 
    1111# -- END LICENSE BLOCK ------------------------------------ 
    1212*/ 
Note: See TracChangeset for help on using the changeset viewer.

Sites map