';
if ($pageNum > 1) {
$output .= '
«';
}
if ($pageNum < 5) {
if ($countPages < 4) { $showRange = $countPages; } else { $showRange = 6; }
for ($i=1; $i<$showRange; $i++) {
if ($i==$pageNum) {
$output .= '
' . $i . '';
}
else {
$output .= '
' . $i . '';
}
}
if ($pageNum < $countPages-2) {
$highDotsMade = true; // The dots next to the highest number have already been put out.
$output .= '
...';
}
}
elseif ($pageNum >= 5) {
$output .= '
1';
if ($pageNum-3 > 1) { $output .= '
...'; }
if ($pageNum + 2 < $countPages) { $minRange = $pageNum - 2; $showRange = $pageNum+2; } else { $minRange = $pageNum - 3; $showRange = $countPages - 1; }
for ($i=$minRange; $i<=$showRange; $i++) {
if ($i==$pageNum) {
$output .= '
' . $i . '';
}
else {
$output .= '
' . $i . '';
}
}
if ($pageNum == $countPages) {
$output .= '
' . $pageNum . '';
}
}
if ($pageNum < $countPages) {
if ($pageNum+3 < $countPages && !$highDotsMade) { $output .= '
...'; }
$output .= '
' . $countPages . '';
$output .= '
»';
}
$output .= '
';
if ($entries === FALSE) {
$output .= __('(no entries yet)',$textdomain);
}
else {
// Get option how to display the date
$date_format = get_option('date_format');
foreach($entries as $entry) {
$output .= ' 0) { $output .= 'admin-entry'; } $output .= '">';
$output .= '
';
$output .= ''.$entry['entry_author_name_html'].'';
if (strlen(str_replace(' ','',$entry['entry_author_origin'])) > 0) {
$output .= ' ' . __('innen,$textdomain) . ' ' . gwolle_gb_format_value_for_output($entry['entry_author_origin']) . '';
}
$output .= ' ' . __('írta ekkor',$textdomain) . ' ' . date($date_format, $entry['entry_date']) . ':';
$output .= '
';
$output .= '
';
$entry_content = gwolle_gb_format_value_for_output($entry['entry_content']);
if ($gwolle_gb_settings['showSmilies'] === TRUE) {
$entry_content = convert_smilies($entry_content);
}
if ($gwolle_gb_settings['showLineBreaks'] === TRUE) {
$output .= nl2br($entry_content);
}
else {
$output .= $entry_content;
}
$output .= '
';
$output .= '
';
}
}
?>