コード例 #1
0
ファイル: options.php プロジェクト: xpander54/wp-drz
 protected function _html()
 {
     $html = HTML::div()->class($this->getCSSClass(__CLASS__));
     foreach ($this->value as $value) {
         if ($value == '#') {
             $html->addNew('div')->add(__('Content', 'everything'), HTML::makeInput('hidden', $this->input_name . '[]', '#'));
         } else {
             $html->addNew('div')->add(__('Sidebar', 'everything'), '<br />', HTML::makeSelect($this->input_name . '[]', $value, $this->options));
         }
     }
     return $html;
 }
コード例 #2
0
ファイル: options.php プロジェクト: xpander54/wp-drz
 protected function _html()
 {
     return HTML::makeInput('text', $this->input_name, $this->value)->addClass($this->getCSSClass(__CLASS__), 'code')->data('settings', array('required' => $this->required, 'hash' => true, 'pickerBorderColor' => '#ccc', 'pickerInsetColor' => '#dfdfdf', 'pickerFaceColor' => '#f7f7f7'))->title($this->default ? __('Default', $this->domain) . ': ' . strtoupper($this->default) : null)->placeholder($this->placeholder);
 }