Current Path : /home/church/public_html/wp-content/plugins/dynamic-widgets/mods/ |
Current File : /home/church/public_html/wp-content/plugins/dynamic-widgets/mods/week_module.php |
<?php /** * Week Module * * @version $Id: week_module.php 1095126 2015-02-20 12:59:35Z qurl $ * @copyright 2012 Jacco Drabbe */ defined('ABSPATH') or die("No script kiddies please!"); class DW_Week extends DWModule { protected static $info = 'Beware of double rules!'; protected static $except = 'Except the weeks'; public static $option = array( 'week' => 'Weeks' ); protected static $overrule = TRUE; protected static $question = 'Show widget on every week?'; protected static $type = 'complex'; public static function admin() { parent::admin(); for ( $i = 1; $i < 53; $i++ ) { $weeks[$i] = 'Week ' . $i; } self::mkGUI(self::$type, self::$option[self::$name], self::$question, self::$info, self::$except, $weeks); } } ?>