Changeset 847
- Timestamp:
- 03/08/09 11:20:32 (15 years ago)
- Location:
- plugins/lunarPhase
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/lunarPhase/_admin.php
r637 r847 1 1 <?php 2 2 # -- 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 # 7 8 # Licensed under the GPL version 2.0 license. 8 # See LICENSE file or9 # A copy of this license is available in LICENSE file or at 9 10 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 10 #11 11 # -- END LICENSE BLOCK ------------------------------------ 12 12 13 if (!defined('DC_CONTEXT_ADMIN')) { return; } 13 14 -
plugins/lunarPhase/_define.php
r637 r847 1 1 <?php 2 2 # -- 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 # 7 8 # Licensed under the GPL version 2.0 license. 8 # See LICENSE file or9 # A copy of this license is available in LICENSE file or at 9 10 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 10 #11 11 # -- END LICENSE BLOCK ------------------------------------ 12 12 13 if (!defined('DC_RC_PATH')) { return; } 13 14 14 15 $this->registerModule( 15 /* Name */ 16 /* Name */ 'lunarPhase', 16 17 /* Description */ 'Display the moon phases', 17 18 /* Author */ 'Tomtom (http://plugins.zenstyle.fr)', 18 /* Verion */ '1.0 -RC1',19 /* Verion */ '1.0', 19 20 /* Premission */ 'usage,contentadmin' 20 21 ); -
plugins/lunarPhase/_prepend.php
r637 r847 1 1 <?php 2 2 # -- 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 # 7 8 # Licensed under the GPL version 2.0 license. 8 # See LICENSE file or9 # A copy of this license is available in LICENSE file or at 9 10 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 10 #11 11 # -- END LICENSE BLOCK ------------------------------------ 12 12 13 global $__autoload; 13 14 -
plugins/lunarPhase/_public.php
r637 r847 1 1 <?php 2 2 # -- 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 # 7 8 # Licensed under the GPL version 2.0 license. 8 # See LICENSE file or9 # A copy of this license is available in LICENSE file or at 9 10 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 10 #11 11 # -- END LICENSE BLOCK ------------------------------------ 12 12 13 if (!defined('DC_RC_PATH')) { return; } 13 14 14 15 $core->addBehavior('publicHeadContent',array('lunarPhaseBehaviors','addCss')); 15 16 16 /**17 * Class behaviorsLunarPhase18 */19 17 class lunarPhaseBehaviors 20 18 { … … 32 30 } 33 31 34 /**35 * Class lunarPhasePublic36 */37 32 class lunarPhasePublic 38 33 { … … 52 47 } 53 48 54 $res = 55 '<div id="lunarphase">'. 56 '<h2>'.$w->title.'</h2>'.49 $res = strlen($w->title) > 0 ? '<h2>'.$w->title.'</h2>' : ''; 50 51 $res .= 57 52 '<h3>'.__('In live').'</h3>'. 58 53 '<ul class="lunarphase">'. … … 61 56 '<h3>'.__('Previsions').'</h3>'. 62 57 '<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 } 68 62 $res .= 69 63 '</ul>'. 70 64 '</div>'; 71 65 72 return $res; 66 return 67 '<div id="lunarphase">'. 68 $res. 69 '</div>'; 73 70 } 74 71 75 72 /** 76 73 * Returns each line of the item list -
plugins/lunarPhase/_widgets.php
r637 r847 1 1 <?php 2 2 # -- 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 # 7 8 # Licensed under the GPL version 2.0 license. 8 # See LICENSE file or9 # A copy of this license is available in LICENSE file or at 9 10 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 10 #11 11 # -- END LICENSE BLOCK ------------------------------------ 12 12 13 if (!defined('DC_RC_PATH')) { return; } 13 14 14 15 $core->addBehavior('initWidgets',array('lunarPhaseWidgets','initWidgets')); 15 16 16 /**17 * Class lunarPhaseWidget18 */19 17 class lunarPhaseWidgets 20 18 { -
plugins/lunarPhase/inc/class.lunarphase.php
r637 r847 1 1 <?php 2 2 # -- 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 # 7 8 # Licensed under the GPL version 2.0 license. 8 # See LICENSE file or9 # A copy of this license is available in LICENSE file or at 9 10 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 10 #11 11 # -- END LICENSE BLOCK ------------------------------------ 12 12 13 /**14 * Class lunarPhase15 */16 13 class lunarPhase 17 14 { -
plugins/lunarPhase/style.css
r637 r847 1 1 /* 2 2 # -- 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 # 7 8 # Licensed under the GPL version 2.0 license. 8 # See LICENSE file or9 # A copy of this license is available in LICENSE file or at 9 10 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 10 #11 11 # -- END LICENSE BLOCK ------------------------------------ 12 12 */
Note: See TracChangeset
for help on using the changeset viewer.