$this->createOption('ads2', _ADCODE_2, 'textarea', '' . "\n");
$this->createOption('tagMode', _TAG_MODE, 'select', '2', _TAG_SELECT);
$this->createBlogOption('prevLabel', _SB_NEXTL, 'text', '«Prev');
- $this->createBlogOption('nextLabel', _SB_PREVL, 'text', 'Next»');
+ $this->createBlogOption('nextLabe', _SB_PREVL, 'text', 'Next»');
/* todo can't install ? only warning ?
* douyatte 'desc' ni keikoku wo daseba iinoka wakaranai desu
$ver_min = (getNucleusVersion() < $this->getMinNucleusVersion());
}
$prevpage = ($currentpage > 1) ? $currentpage - 1 : 0;
$nextpage = $currentpage + 1;
+ //$nextpage = ($currentpage > 1) ? $currentpage - 1 : 0;
+ //$pregpage = $currentpage + 1;
$firstpagelink = $pagelink . $page_str . '1';
if ($page_str == 'page_') {
$firstpagelink .= '.html';
if ($type >= 1) {
$buf .= '<div class="pageswitch">' . "\n";
// $buf .= "<a rel=\"first\" title=\"first page\" href=\"{$firstpagelink}\"><TOP></a> | \n";
- if ($totalpages >= $nextpage) {
- $nextpagelink = $pagelink . $page_str . $nextpage;
+ if (!empty($prevpage)) {
+ $prevpagelink = $pagelink . $page_str . $prevpage;
if ($page_str == 'page_') {
- $nextpagelink .= '.html';
+ $prevpagelink .= '.html';
}
- $buf .= '<a href="' . $nextpagelink . '" title="Next page" rel="Next">'
- . '<span class="npsb_nextlink">' . $nextLinkLabel . '</span></a> |';
+ $buf .= '<a href="' . $prevpagelink . '" title="Previous page" rel="Prev">'
+ . '<span class="npsb_prevlink">' . $prevLinkLabel . '</span></a> |';
} elseif ($type >= 2) {
- $buf .= "{$nextLinkLabel} |";
+ $buf .= "{$prevLinkLabel} |";
}
if (intval($type) == 1) {
$buf .= "\n";
}
}
}
- if (!empty($prevpage)) {
- $prevpagelink = $pagelink . $page_str . $prevpage;
+ if ($totalpages >= $nextpage) {
+ $nextpagelink = $pagelink . $page_str . $nextpage;
if ($page_str == 'page_') {
- $prevpagelink .= '.html';
+ $nextpagelink .= '.html';
}
- $buf .= '| <a href="' . $prevpagelink . '" title="Previous page" rel="Prev">'
- . '<span class="npsb_prevlink">' . $prevLinkLabel . '</span></a>' . "\n";
+ $buf .= '| <a href="' . $nextpagelink . '" title="Next page" rel="Next">'
+ . '<span class="npsb_nextlink">' . $nextLinkLabel . '</span></a>' . "\n";
} elseif ($type >= 2) {
- $buf .= "| {$prevLinkLabel}\n";
+ $buf .= "| {$nextLinkLabel}\n";
}
// $buf .= " | <a rel=\"last\" title=\"Last page\" href=\"{$lastpagelink}\"><LAST></a>\n";
$buf .= "</div>\n";