protected function setFilterVisibility() { if ($this->part !== 'admin') { return null; } if (!isset($this->get_posts_params['active'])) { $this->setIntFilter('active'); $this->get_posts_params['active'] = $this->params->active; } $this->fields['active'] = array($this->form_id . '_visibility', __('m_news_filters_visibility'), form::select(array('active', $this->form_id . '_visibility'), array_merge(array(__('c_c_All_f') => -1), module_news::getPostsStatuses(true)), $this->get_posts_params['active']), $this->getActiveClass('active')); }
<?php } ?> <?php } ?> <?php } elseif ($bCanPublish) { ?> <p class="field col"><label for="p_active"><?php _e('m_news_post_status'); ?> </label> <?php echo form::select('p_active', module_news::getPostsStatus(true), $aPostData['post']['active']); ?> </p> <?php } ?> <?php if (!empty($okt->news->config->templates['item']['usables'])) { ?> <p class="field col"><label for="p_tpl"><?php _e('m_news_post_tpl'); ?> </label> <?php