';
if($this->params->get('article_index')==1)
{
$headingtext= JText::_('PLG_CONTENT_PAGEBREAK_ARTICLE_INDEX');
if($this->params->get('article_index_text')) {
htmlspecialchars($headingtext=$this->params->get('article_index_text'));
}
$row->toc .='
'.$headingtext.'
';
}
// TOC first Page link.
$class = ($limitstart === 0 && $showall === 0) ? 'toclink active' : 'toclink';
$row->toc .= '
-
'
. $heading .
'
';
$i = 2;
foreach ($matches as $bot) {
$link = JRoute::_(ContentHelperRoute::getArticleRoute($row->slug, $row->catid).'&showall=&limitstart='. ($i-1));
if (@$bot[0]) {
$attrs2 = JUtility::parseAttributes($bot[0]);
if (@$attrs2['alt']) {
$title = stripslashes($attrs2['alt']);
} elseif (@$attrs2['title']) {
$title = stripslashes($attrs2['title']);
} else {
$title = JText::sprintf('PLG_CONTENT_PAGEBREAK_PAGE_NUM', $i);
}
} else {
$title = JText::sprintf('PLG_CONTENT_PAGEBREAK_PAGE_NUM', $i);
}
$class = ($limitstart == $i-1) ? 'toclink active' : 'toclink';
$row->toc .= '
-
'
. $title .
'
';
$i++;
}
if ($this->params->get('showall')) {
$link = JRoute::_(ContentHelperRoute::getArticleRoute($row->slug, $row->catid).'&showall=1&limitstart=');
$class = ($showall == 1) ? 'toclink active' : 'toclink';
$row->toc .= '
-
'
. JText::_('PLG_CONTENT_PAGEBREAK_ALL_PAGES') .
'
';
}
$row->toc .= '
';
}
/**
* @return void
* @since 1.6
*/
protected function _createNavigation(&$row, $page, $n)
{
$pnSpace = '';
if (JText::_('JGLOBAL_LT') || JText::_('JGLOBAL_LT')) {
$pnSpace = ' ';
}
if ($page < $n-1) {
$page_next = $page + 1;
$link_next = JRoute::_(ContentHelperRoute::getArticleRoute($row->slug, $row->catid).'&showall=&limitstart='. ($page_next));
// Next >>
$next = '