/**
     * Renders form based on Shortcode's params
     *
     * @param array $instance
     */
    public function form($instance)
    {
        ?>
      <p>
        <label class="widefat" for="<?php 
        echo $this->get_field_id('_widget_title');
        ?>
"><?php 
        _e('Title', ud_get_wp_property('domain'));
        ?>
</label>
        <input class="widefat" id="<?php 
        echo $this->get_field_id('_widget_title');
        ?>
"
               name="<?php 
        echo $this->get_field_name('_widget_title');
        ?>
" type="text"
               value="<?php 
        echo !empty($instance['_widget_title']) ? $instance['_widget_title'] : '';
        ?>
"/>
        <span class="description"><?php 
        _e('Widget\'s Title', ud_get_wp_property('domain'));
        ?>
</span>
      </p>
      <?php 
        parent::form($instance);
    }
Пример #2
0
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct(false, $name = sprintf(__('Child %1s', ud_get_wp_property()->domain), WPP_F::property_label('plural')), array('description' => __('Show child properties (if any) for currently displayed property', ud_get_wp_property()->domain)));
 }