public function getSourceOptions(DataContainer $dc) { $arrOptions = parent::getSourceOptions($dc); if ($this->User->isAdmin) { $arrOptions[] = 'singlefile'; return $arrOptions; } // Add the "singlefile" option if ($this->User->hasAccess('tl_news::singlefileSRC', 'alexf')) { $arrOptions[] = 'singlefile'; } return array_unique($arrOptions); }
/** * Add the type of input * * @param array $arrRow * * @return string */ public function listNewsPodcastArticles($arrRow) { $arrRow['headline'] = $arrRow['addPodcast'] == 1 ? $arrRow['headline'] . ' <img src="system/modules/news_podcasts/assets/icon_mic.svg" width="16" height="16" alt="Podcast">' : $arrRow['headline']; return parent::listNewsArticles($arrRow); }