Your IP : 3.17.162.245


Current Path : /home/church/public_html/wp-content/plugins/dynamic-widgets/mods/
Upload File :
Current File : /home/church/public_html/wp-content/plugins/dynamic-widgets/mods/frontpage_module.php

<?php
/**
 * Front Page Module
 *
 * @version $Id: frontpage_module.php 1095126 2015-02-20 12:59:35Z qurl $
 * @copyright 2011 Jacco Drabbe
 */

	defined('ABSPATH') or die("No script kiddies please!");

	class DW_Front_page extends DWModule {
		protected static $except = 'Except for:';
		protected static $info = 'This option only applies when your front page is set to display your latest posts (See Settings &gt; Reading).<br />When a static page is set, you can use the options for the static pages below.';
		public static $option = array( 'front-page' => 'Front Page' );
		protected static $question = 'Show widget on the front page?';
		protected static $type = 'complex';

		public static function admin() {
			parent::admin();

			$list = array( 1 => __('First page') );

			if ( get_option('show_on_front') == 'page' ) {
				self::$option = array( 'front-page' => 'Posts Page' );
				self::$question = 'Show widget on the posts page?';
			}
			self::mkGUI(self::$type, self::$option[self::$name], self::$question, self::$info, self::$except, $list);
		}
	}
?>