2008年4月アーカイブ
The MTPaginate tag only works within PHP documents!
Make sure that the document extension is .php and that your server supports PHP documents.
1,
'2484' => 1,
'2485' => 1,
);
$paginate_page_selector = 'page';
$paginate_page_section_selector = 'page_section';
$paginate_current_page_section = @$_GET[$paginate_page_section_selector];
if($paginate_current_page_section)
$paginate_current_page = @$paginate_section_ids[$paginate_current_page_section];
else
$paginate_current_page = @$_GET[$paginate_page_selector];
// Pin page selector to a valid number (or 'all')
if($paginate_current_page=='')
$paginate_current_page = '1';
if($paginate_current_page != 'all') {
if($paginate_current_page == 'first')
$paginate_current_page = 1;
elseif($paginate_current_page == 'last')
$paginate_current_page = 1;
elseif($paginate_current_page < 1)
$paginate_current_page = 1;
elseif($paginate_current_page > 1)
$paginate_current_page = 1;
$paginate_sections = array( 0
, 4);
$paginate_top_section = $paginate_sections[$paginate_current_page-1]+1;
$paginate_bottom_section = $paginate_sections[$paginate_current_page];
} else {
$paginate_top_section = 1;
$paginate_bottom_section = 4;
}
if(isset($_SERVER['QUERY_STRING'])) {
$paginate_self = '&' . $_SERVER['QUERY_STRING'] . '&';
$paginate_self = preg_replace("/&page=[^&]*&/", "&", $paginate_self);
$paginate_self = preg_replace("/&page_section=[^&]*&/", "&", $paginate_self);
$paginate_self = substr($paginate_self, 1, strlen($paginate_self) - 1);
if($paginate_self == '&')
$paginate_self = '';
else
$paginate_self = htmlentities($paginate_self);
} else {
$paginate_self = '';
}
$paginate_self = basename($_SERVER['PHP_SELF']) . "?${paginate_self}page";
?>
Make sure that the document extension is .php and that your server supports PHP documents.
<h3>小見出しデフォルトマーク(猫)</h3>
<h3 class="dog">小見出しデフォルトマーク(骨)</h3>
<h3 class="foot">小見出しデフォルトマーク(足跡)</h3>
<h2>デフォルト(猫)</h2>
<h2 class="dog">中見出し(犬)</h2>
<h2 class="rabit">中見出し(ウサギ)</h2>
<h2 class="duck">中見出し(あひる)</h2>
<h2 class="cock">中見出し(ニワトリ)</h2>
<h2 class="tort">中見出し(亀)</h2>
<h2 class="cat_b">中見出し(猫)青</h2>
<h2 class="dog_b">中見出し(犬)青</h2>
<h2 class="rabit_b">中見出し(ウサギ)青</h2>
<h2 class="duck_b">中見出し(あひる)青</h2>
<h2 class="cock_b">中見出し(ニワトリ)青</h2>
<h2 class="tort_b">中見出し(亀)青</h2>
デフォルト(犬)
<h1>デフォルト(犬)</h1>大見出し(猫)
<h1 class="cat">大見出し(猫)</h1>大見出し(ウサギ)
<h1 class="rabit">大見出し(ウサギ)</h1>大見出し(あひる)
<h1 class="duck">大見出し(あひる)</h1>大見出し(ニワトリ)
<h1 class="cock">大見出し(ニワトリ)</h1>
大見出し(亀)
<h1 class="tort">大見出し(亀)</h1>
