コード例 #1
0
ファイル: cupid-text-widget.php プロジェクト: adwleg/site
 public function __construct()
 {
     $this->widget_cssclass = 'cupid-text-widget';
     $this->widget_description = __("List Category", 'cupid');
     $this->widget_id = 'cupid_text_widget';
     $this->widget_name = __('cupid: Text Widget', 'cupid');
     $this->settings = array('title' => array('type' => 'text', 'std' => '', 'label' => __('Title', 'cupid')), 'content' => array('type' => 'text-area', 'std' => '', 'label' => __('Content', 'cupid')));
     parent::__construct();
 }
コード例 #2
0
ファイル: cupid-classes-widget.php プロジェクト: adwleg/site
 public function __construct()
 {
     $this->widget_cssclass = 'cupid-calsses-popular-widget';
     $this->widget_description = __("Popular Classes", 'cupid');
     $this->widget_id = 'widget_cupid_classes_popular';
     $this->widget_name = __('cupid: Popular Classes', 'cupid');
     $this->settings = array('title' => array('type' => 'text', 'std' => __('Popular Classes', 'cupid'), 'label' => __('Title', 'cupid')), 'number' => array('type' => 'text', 'std' => __('3', 'cupid'), 'label' => __('Number Classes Display', 'cupid')));
     parent::__construct();
 }