input;
$fieldid = $input->get('fieldid', '', 'string');
JHtml::_('jquery.framework');
$doc = JFactory::getDocument();
$doc->addStylesheet(PAGEBUILDERCK_MEDIA_URI . '/assets/ckbrowse.css');
$doc->addScript(PAGEBUILDERCK_MEDIA_URI . '/assets/ckbrowse.js');
?>
get('show_noauth');
$authorised = JAccess::getAuthorisedViewLevels(JFactory::getUser()->get('id'));
foreach ($this->articles as $item) {
// check if category or article
if ($item->type == 'article') {
$item->slug = $item->id . ':' . $item->alias;
if ($access || in_array($item->access, $authorised))
{
// We know that user has the privilege to view the article
$item->link = ContentHelperRoute::getArticleRoute($item->slug, $item->catid, $item->language);
} else {
continue;
}
} else {
if ($access || in_array($item->access, $authorised))
{
$item->link = ContentHelperRoute::getCategoryRoute($item->id);
} else {
continue;
}
}
?>