| | |
| | | $tabs = false; |
| | | } |
| | | |
| | | |
| | | $fields = $this->fields; |
| | | if (!$this->isTimeline) { |
| | | $first = ['post_thumbnail', 'post_title', 'price']; |
| | |
| | | if ($tabs) { |
| | | $tabs['basic']['content'] .= Form::render($f, '', $fields[$f]); |
| | | } else { |
| | | Form::render($f, '', $fields[$f]); |
| | | echo Form::render($f, '', $fields[$f]); |
| | | } |
| | | |
| | | unset($fields[$f]); |
| | | } |
| | | } |
| | |
| | | if (in_array($config['type'], ['taxonomy', 'selector'])) { |
| | | $config = array_merge($config, $this->taxConfig($config['taxonomy'], $config['label'])); |
| | | } |
| | | Form::render($n, '', $config); |
| | | echo Form::render($n, '', $config); |
| | | } |
| | | } |
| | | |
| | |
| | | <p class="description">You can unselect items by clicking the image here.</p> |
| | | <p class="hint"><strong>IMPORTANT: </strong> Whatever changes you make here will be applied to all selected <?=$this->plural?>.</p> |
| | | <div class="fields"> |
| | | <div class="field-group radio-options row"> |
| | | <?php |
| | | $this->getApplicableStatuses('bulk-'); |
| | | ?> |
| | | </div> |
| | | <?php |
| | | $this->getApplicableStatuses('bulk-'); |
| | | ?> |
| | | <?php |
| | | if (!empty($this->taxonomies)) { |
| | | ?> |
| | |
| | | } |
| | | |
| | | protected function getApplicableStatuses(string $prefix) { |
| | | ob_start(); |
| | | foreach ($this->statuses as $status) { |
| | | if ($status === 'all' || !array_key_exists($status, $this->allowedStatuses)) { |
| | | continue; |
| | |
| | | </label> |
| | | <?php |
| | | } |
| | | $out = ob_get_clean(); |
| | | echo Form::fieldWrap('post_status', $out, ['type'=>'group']); |
| | | } |
| | | } |