<?php
// PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: keitai.skin.php,v 1.7 2005/02/13 03:06:02 henoheno Exp $
+// $Id: keitai.skin.php,v 1.8 2005/02/13 03:12:47 henoheno Exp $
//
// Skin for Embedded devices
// Output HTTP headers
pkwk_headers_sent();
-if(LANG == 'ja') {
+if(TRUE) {
// Force Shift JIS encode for Japanese embedded browsers and devices
header('Content-Type: text/html; charset=Shift_JIS');
$title = mb_convert_encoding($title, 'SJIS', SOURCE_ENCODING);
// Make 1KByte spare (for header, etc)
$max_size = --$max_size * 1024;
-// IMG ¥¿¥°(²èÁü)¤òʸ»úÎó¤ËÃÖ´¹
+// Replace IMG tags (= images) with character strings
// With ALT option
$body = preg_replace('#(<div[^>]+>)?(<a[^>]+>)?<img[^>]*alt="([^"]+)"[^>]*>(?(2)</a>)(?(1)</div>)#i', '[$3]', $body);
// Without ALT option
$navi[] = '<a href="' . $script . '?' . $menubar . '" ' . $accesskey . '="4">4.Menu</a>';
$navi[] = '<a href="' . $link['recent'] . '" ' . $accesskey . '="5">5.Recent</a>';
-// Á°/¼¡¤Î¥Ö¥í¥Ã¥¯
+// Previous / Next block
if ($pagecount > 1) {
$prev = $pageno - 1;
$next = $pageno + 1;
if ($pageno > 0) {
- $navi[] = "<a href=\"$script?cmd=read&page=$r_page&p=$prev\" $accesskey=\"7\">7.Prev</a>";
+ $navi[] = '<a href="' . $script . '?cmd=read&page=' . $r_page . '&p=' . $prev . '" ' . $accesskey . '="7">7.Prev</a>';
}
- $navi[] = "$next/$pagecount ";
+ $navi[] = $next . '/' . $pagecount . ' ';
if ($pageno < $lastpage) {
- $navi[] = "<a href=\"$script?cmd=read&page=$r_page&p=$next\" $accesskey=\"8\">8.Next</a>";
+ $navi[] = '<a href="' . $script . '?cmd=read&page=' . $r_page . '&p=' . $next . '" ' . $accesskey . '="8">8.Next</a>';
}
}