예제 #1
0
 public static function init()
 {
     $dir = dirname(__FILE__) . '/';
     require_once $dir . 'class-footer.php';
     require_once $dir . 'class-footer-widgets.php';
     Footer_Credits::init();
 }
예제 #2
0
 function owner_panel($terms)
 {
     $s = $this->fetch_text_field('owner', $terms['owner'], array('size' => 30)) . $this->fetch_text_field('country', $terms['country'], array('size' => 30)) . $this->fetch_form_field('address', $terms['address'], 'textarea', array(), array('cols' => 30, 'rows' => 5));
     if (Footer_Credits::is_html5()) {
         return $s . '<p>Leave the above address field blank and fill in the various parts of the organization address below if you want to be able to use HTML5 microdata.</p>' . '<h4>Organization Address</h4>' . $this->fetch_text_field('street_address', $terms['street_address'], array('size' => 30)) . $this->fetch_text_field('locality', $terms['locality'], array('size' => 30)) . $this->fetch_text_field('region', $terms['region'], array('size' => 30)) . $this->fetch_text_field('postal_code', $terms['postal_code'], array('size' => 12)) . '<h4>Geographical Co-ordinates</h4>' . '<p>The geographical co-ordinates are optional and are visible only to the search engines.</p>' . $this->fetch_text_field('latitude', $terms['latitude'], array('size' => 12)) . $this->fetch_text_field('longitude', $terms['longitude'], array('size' => 12)) . $this->fetch_text_field('map', $terms['map'], array('size' => 30));
     } else {
         return $s;
     }
 }
 function widget($args, $instance)
 {
     extract($args);
     $instance = wp_parse_args((array) $instance, $this->defaults);
     if (Footer_Putter_Utils::hide_widget($instance['visibility'])) {
         return;
     }
     //check visibility requirements
     if ($footer = Footer_Credits::footer($instance)) {
         printf('%1$s%2$s%3$s', $before_widget, $footer, $after_widget);
     }
 }
 public static function init()
 {
     $dir = dirname(__FILE__) . '/';
     require_once $dir . 'class-utils.php';
     require_once $dir . 'class-diy-options.php';
     require_once $dir . 'class-credits-options.php';
     require_once $dir . 'class-credits.php';
     require_once $dir . 'class-credits-widgets.php';
     require_once $dir . 'class-trademarks-widgets.php';
     Footer_Credits_Options::init();
     Footer_Credits::init();
 }
예제 #5
0
 public static function get_options($cache = true)
 {
     if ($cache && count(self::$options) > 0) {
         return self::$options;
     }
     $the_options = array();
     $the_options = get_option(self::OPTIONS_NAME);
     if (empty($the_options)) {
         self::$options = self::$defaults;
     } else {
         self::$options = shortcode_atts(self::$defaults, $the_options);
     }
     return self::$options;
 }
예제 #6
0
 function print_form_field($instance, $fld, $label, $type, $options = array(), $args = array())
 {
     $value = array_key_exists($fld, $instance) ? $instance[$fld] : false;
     print Footer_Credits::form_field($this->get_field_id($fld), $this->get_field_name($fld), $label, $value, $type, $options, $args);
 }
예제 #7
0
 public static function preview_panel($post, $metabox)
 {
     $options = $metabox['args']['options'];
     echo Footer_Credits::footer(array('nav_menu' => 'Footer Menu'));
 }