Ejemplo n.º 1
0
 public function init()
 {
     parent::init();
     $this->columns = array('cb', 'name' => array('label' => t('Name')), 'language' => array('label' => t('Language'), 'value' => '$item->getLanguage();'), 'description' => array('label' => t('Description'), 'htmlOption' => ['class' => 'hidden-480']), 'count' => array('label' => t('Count'), 'value' => '$item->getCount();', 'htmlOption' => ['class' => 'hidden-480']), 'id' => array('label' => 'ID', 'value' => '$item->getId();', 'htmlOption' => ['class' => 'hidden-480']));
     $this->columns = Plugin::applyFilters('init_' . $this->taxonomy . '_term_columns', $this->columns);
     $this->columns['tool'] = array('label' => t('Action'), 'htmlOption' => ['class' => 'hidden-768']);
 }
Ejemplo n.º 2
0
 public function init()
 {
     parent::init();
     $this->columns = array('cb', 'title' => array('label' => t('Title')), 'highlight' => array('label' => '<span class="highlight-column-title"><i class="icon-star"></i></span>'), 'status' => array('label' => t('Status'), 'value' => '$item->getStatus();', 'htmlOption' => ['class' => 'hidden-xs']), 'category' => array('label' => t('Category')), 'ordering' => array('label' => t('Ordering'), 'value' => '$item->getOrdering();', 'htmlOption' => ['class' => 'hidden-768']), 'language' => array('label' => t('Language'), 'value' => '$item->getLanguage();', 'htmlOption' => ['class' => 'hidden-768']), 'date' => array('label' => t('Date'), 'htmlOption' => ['class' => 'hidden-768']), 'id' => array('label' => 'Id', 'value' => '$item->getId();', 'htmlOption' => ['class' => 'hidden-1024']));
     if ('post' != $this->taxonomy && 'contacts' != $this->taxonomy) {
         unset($this->columns['highlight']);
     }
     $this->columns = Plugin::applyFilters('init_' . $this->taxonomy . '_post_columns', $this->columns);
 }