protected function makeLink($link, $pageNo, $activePage, $break = false) {
// first page
if ($activePage != $pageNo) {
- return '<li class="button '.($break ? 'break' : '').'"><a href="'.$this->insertPageNumber($link, $pageNo).'">'.StringUtil::formatInteger($pageNo).'</a></li>'."\n";
+ return '<li class="wcf-button '.($break ? 'break' : '').'"><a href="'.$this->insertPageNumber($link, $pageNo).'">'.StringUtil::formatInteger($pageNo).'</a></li>'."\n";
}
else {
- return '<li class="button '.($break ? 'break ' : '').'active"><span>'.StringUtil::formatInteger($pageNo).'</span></li>'."\n";
+ return '<li class="wcf-button '.($break ? 'break ' : '').'active"><span>'.StringUtil::formatInteger($pageNo).'</span></li>'."\n";
}
}
}
// open div and ul
- $html .= "<nav class=\"pageNavigation\" data-link=\"".$link."\">\n<ul>\n";
+ $html .= "<nav class=\"wcf-pageNavigation\" data-link=\"".$link."\">\n<ul>\n";
// previous page
$previousTitle = WCF::getLanguage()->getDynamicVariable('wcf.global.page.previous');
if ($tagArgs['page'] > 1) {
- $html .= '<li class="button skip"><a href="'.$this->insertPageNumber($link, $tagArgs['page'] - 1).'" title="'.$previousTitle.'" class="balloonTooltip"><img src="'.self::getIconPath('previous1').'" alt="" /></a></li>'."\n";
+ $html .= '<li class="wcf-button skip"><a href="'.$this->insertPageNumber($link, $tagArgs['page'] - 1).'" title="'.$previousTitle.'" class="wcf-balloonTooltip"><img src="'.self::getIconPath('previous1').'" alt="" /></a></li>'."\n";
}
else {
$html .= '<li class="skip disabled"><img src="'.self::getIconPath('previous1D').'" alt="" /></li>'."\n";
$html .= $this->makeLink($link, 2, $tagArgs['page']);
}
else {
- $html .= '<li class="children"><a onclick="multiPagesLinks.startPageNumberInput(this)" class="dropdownCaption"><img src="'.self::getIconPath('dropdown1').'" alt="" /></a><input type="text" name="pageNo" placeholder="…" class="tiny" /><div class="dropdown"><span class="pointer"><span></span></span><ul>'."\n";
+ $html .= '<li class="children"><a onclick="multiPagesLinks.startPageNumberInput(this)" class="wcf-dropdownCaption"><img src="'.self::getIconPath('dropdown1').'" alt="" /></a><input type="text" name="pageNo" placeholder="…" class="tiny" /><div class="wcf-dropdown"><span class="pointer"><span></span></span><ul>'."\n";
$k = 0;
$step = intval(ceil(($left - 2) / self::SHOW_SUB_LINKS));
$html .= $this->makeLink($link, $tagArgs['pages'] - 1, $tagArgs['page']);
}
else {
- $html .= '<li class="children"><a onclick="multiPagesLinks.startPageNumberInput(this)" class="dropdownCaption"><img src="'.self::getIconPath('dropdown1').'" alt="" /></a><input type="text" name="page" placeholder="…" class="tiny" /><div class="dropdown"><span class="pointer"><span></span></span><ul>'."\n";
+ $html .= '<li class="children"><a onclick="multiPagesLinks.startPageNumberInput(this)" class="wcf-dropdownCaption"><img src="'.self::getIconPath('dropdown1').'" alt="" /></a><input type="text" name="page" placeholder="…" class="tiny" /><div class="wcf-dropdown"><span class="pointer"><span></span></span><ul>'."\n";
$k = 0;
$step = intval(ceil(($tagArgs['pages'] - $right) / self::SHOW_SUB_LINKS));
// next page
$nextTitle = WCF::getLanguage()->getDynamicVariable('wcf.global.page.next');
if ($tagArgs['page'] && $tagArgs['page'] < $tagArgs['pages']) {
- $html .= '<li class="button skip"><a href="'.$this->insertPageNumber($link, $tagArgs['page'] + 1).'" title="'.$nextTitle.'" class="balloonTooltip"><img src="'.self::getIconPath('next1').'" alt="" /></a></li>'."\n";
+ $html .= '<li class="wcf-button skip"><a href="'.$this->insertPageNumber($link, $tagArgs['page'] + 1).'" title="'.$nextTitle.'" class="wcf-balloonTooltip"><img src="'.self::getIconPath('next1').'" alt="" /></a></li>'."\n";
}
else {
$html .= '<li class="skip disabled"><img src="'.self::getIconPath('next1D').'" alt="" /></li>'."\n";
* @return string
*/
protected function makeLink($link, $pageNo) {
- return '<li class="button"><a href="'.$this->insertPageNumber($link, $pageNo).'" title="' . WCF::getLanguage()->getDynamicVariable('wcf.page.pageNo', array('pageNo' => $pageNo)) . '">'.StringUtil::formatInteger($pageNo).'</a></li>'."\n";
+ return '<li class="wcf-button"><a href="'.$this->insertPageNumber($link, $pageNo).'" title="' . WCF::getLanguage()->getDynamicVariable('wcf.page.pageNo', array('pageNo' => $pageNo)) . '">'.StringUtil::formatInteger($pageNo).'</a></li>'."\n";
}
/**
$link = StringUtil::encodeHTML(LinkHandler::getInstance()->getLink($tagArgs['controller'], $parameters, $tagArgs['link']));
// open div and ul
- $html .= "<nav class=\"pageNavigation\" data-link=\"".$link."\">\n<ul>\n";
+ $html .= "<nav class=\"wcf-pageNavigation\" data-link=\"".$link."\">\n<ul>\n";
// generate simple links
$simpleLinks = $tagArgs['pages'];
if ($tagArgs['pages'] > self::SHOW_LINKS) {
// jumper
- $html .= '<li class="button"><a onclick="var result = prompt(\''.WCF::getLanguage()->get('wcf.global.page.input').'\', \''.$tagArgs['pages'].'\'); if (typeof(result) != \'object\' && typeof(result) != \'undefined\') document.location.href = fixURL((\''.StringUtil::replace("'", "\'", $link).'\').replace(/%d/, result));">…</a></li>'."\n";
+ $html .= '<li class="wcf-button"><a onclick="var result = prompt(\''.WCF::getLanguage()->get('wcf.global.page.input').'\', \''.$tagArgs['pages'].'\'); if (typeof(result) != \'object\' && typeof(result) != \'undefined\') document.location.href = fixURL((\''.StringUtil::replace("'", "\'", $link).'\').replace(/%d/, result));">…</a></li>'."\n";
// last page
$html .= $this->makeLink($link, $tagArgs['pages']);