$lang['javascript.confirm'] = 'Bestätigung erforderlich';
$lang['domain.delete.message'] = 'Bist du sicher das du diese Domain löschen willst?';
$lang['record.delete.message'] = 'Bist du sicher das du diesen Eintrag löschen willst?';
+$lang['pagination.page'] = 'Seite {$page}';
+$lang['pagination.previous'] = 'Vorherige Seite';
+$lang['pagination.next'] = 'Nächste Seite';
$lang['button.delete'] = 'Löschen';
$lang['button.enable'] = 'Aktivieren';
$lang['button.disable'] = 'Deaktivieren';
$lang['javascript.confirm'] = 'Confirmation Required';
$lang['domain.delete.message'] = 'Are you sure you want to delete these Domain?';
$lang['record.delete.message'] = 'Are you sure you want to delete these Record?';
+$lang['pagination.page'] = 'Page {$page}';
+$lang['pagination.previous'] = 'Previous Page';
+$lang['pagination.next'] = 'Next Page';
$lang['button.delete'] = 'Delete';
$lang['button.enable'] = 'Enable';
$lang['button.disable'] = 'Disable';
<?php
+use dns\system\DNS;
function smarty_function_pages($tagArgs, $tplObj) {
// needed params: controller, pageNo, pages
$html .= makeLink($link, 2, $tagArgs['pageNo'], $tagArgs['pages']);
}
else {
- $html .= '<li class="button jumpTo"><a title="Gehe zu Seite" class="ttips">…</a></li>'."\n";
+ $html .= '<li class="button jumpTo"><a>…</a></li>'."\n";
}
}
function makeLink($link, $pageNo, $activePage, $pages) {
// first page
if ($activePage != $pageNo) {
- return '<li><a href="'.insertPageNumber($link, $pageNo).'" class="ttips" title="Seite '.$pageNo.'">'.intval($pageNo).'</a></li>'."\n";
+ return '<li><a href="'.insertPageNumber($link, $pageNo).'" class="ttips" title="'.DNS::getLanguageVariable('pagination.page', array('page' => $pageNo)).'">'.intval($pageNo).'</a></li>'."\n";
}
else {
return '<li class="active"><a>'.intval($pageNo).'</a></li>'."\n";
function makePreviousLink($link, $pageNo) {
if ($pageNo > 1) {
- return '<li class="skip"><a href="'.insertPageNumber($link, $pageNo - 1).'" title="Vorherige Seite" class="ttips"><span class="fa fa-angle-double-left"></span></a></li>'."\n";
+ return '<li class="skip"><a href="'.insertPageNumber($link, $pageNo - 1).'" title="'.DNS::getLanguageVariable('pagination.previous').'" class="ttips"><span class="fa fa-angle-double-left"></span></a></li>'."\n";
}
else {
return '<li class="skip disabled"><span class="fa fa-angle-double-left disabled"></span></li>'."\n";
function makeNextLink($link, $pageNo, $pages) {
if ($pageNo && $pageNo < $pages) {
- return '<li class="skip"><a href="'.insertPageNumber($link, $pageNo + 1).'" title="Nächste Seite" class="ttips"><span class="fa fa-angle-double-right"></span></a></li>'."\n";
+ return '<li class="skip"><a href="'.insertPageNumber($link, $pageNo + 1).'" title="'.DNS::getLanguageVariable('pagination.next').'" class="ttips"><span class="fa fa-angle-double-right"></span></a></li>'."\n";
}
else {
return '<li class="skip disabled"><span class="fa fa-angle-double-right disabled"></span></li>'."\n";