初期pukiwiki.skin.php
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*初期pukiwiki.skin.php [#cc4074ad]
RIGHT:&counter;
<?php
// PukiWiki - Yet another WikiWikiWeb clone.
// pukiwiki.skin.php
// Copyright
// 2002-2017 PukiWiki Development Team
// 2001-2002 Originally written by yu-ji
// License: GPL v2 or (at your option) any later version
//
// PukiWiki default skin
// -----------------------------------------------------...
// Settings (define before here, if you want)
// Set site identities
$_IMAGE['skin']['logo'] = 'pukiwiki.png';
$_IMAGE['skin']['favicon'] = ''; // Sample: 'image/favi...
// SKIN_DEFAULT_DISABLE_TOPICPATH
// 1 = Show reload URL
// 0 = Show topicpath
if (! defined('SKIN_DEFAULT_DISABLE_TOPICPATH'))
define('SKIN_DEFAULT_DISABLE_TOPICPATH', 1); // 1, 0
// Show / Hide navigation bar UI at your choice
// NOTE: This is not stop their functionalities!
if (! defined('PKWK_SKIN_SHOW_NAVBAR'))
define('PKWK_SKIN_SHOW_NAVBAR', 1); // 1, 0
// Show / Hide toolbar UI at your choice
// NOTE: This is not stop their functionalities!
if (! defined('PKWK_SKIN_SHOW_TOOLBAR'))
define('PKWK_SKIN_SHOW_TOOLBAR', 1); // 1, 0
// -----------------------------------------------------...
// Code start
// Prohibit direct access
if (! defined('UI_LANG')) die('UI_LANG is not set');
if (! isset($_LANG)) die('$_LANG is not set');
if (! defined('PKWK_READONLY')) die('PKWK_READONLY is no...
$lang = & $_LANG['skin'];
$link = & $_LINK;
$image = & $_IMAGE['skin'];
$rw = ! PKWK_READONLY;
// MenuBar
$menu = arg_check('read') && exist_plugin_convert('menu'...
// -----------------------------------------------------...
// Output
// HTTP headers
pkwk_common_headers();
header('Cache-control: no-cache');
header('Pragma: no-cache');
header('Content-Type: text/html; charset=' . CONTENT_CHA...
?>
<!DOCTYPE html>
<html lang="<?php echo LANG ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; cha...
<?php if ($nofollow || ! $is_read) { ?> <meta name="rob...
<?php if ($html_meta_referrer_policy) { ?> <meta name="r...
<title><?php echo $title ?> - <?php echo $page_title ?>...
<link rel="SHORTCUT ICON" href="<?php echo $image['favi...
<link rel="stylesheet" type="text/css" href="<?php echo...
<link rel="alternate" type="application/rss+xml" title=...
<script type="text/javascript" src="skin/main.js" defer...
<script type="text/javascript" src="skin/search2.js" de...
<?php echo $head_tag ?>
</head>
<body>
<?php echo $html_scripting_data ?>
<div id="header">
<a href="<?php echo $link['top'] ?>"><img id="logo" src...
<h1 class="title"><?php echo $page ?></h1>
<?php if ($is_page) { ?>
<?php if(SKIN_DEFAULT_DISABLE_TOPICPATH) { ?>
<a href="<?php echo $link['canonical_url'] ?>"><span ...
<?php } else { ?>
<span class="small">
<?php require_once(PLUGIN_DIR . 'topicpath.inc.php');...
</span>
<?php } ?>
<?php } ?>
</div>
<div id="navigator">
<?php if(PKWK_SKIN_SHOW_NAVBAR) { ?>
<?php
function _navigator($key, $value = '', $javascript = ''){
$lang = & $GLOBALS['_LANG']['skin'];
$link = & $GLOBALS['_LINK'];
if (! isset($lang[$key])) { echo 'LANG NOT FOUND'; retu...
if (! isset($link[$key])) { echo 'LINK NOT FOUND'; retu...
echo '<a href="' . $link[$key] . '" ' . $javascript . '...
(($value === '') ? $lang[$key] : $value) .
'</a>';
return TRUE;
}
?>
[ <?php _navigator('top') ?> ]
<?php if ($is_page) { ?>
[
<?php if ($rw) { ?>
<?php _navigator('edit') ?> |
<?php if ($is_read && $function_freeze) { ?>
<?php (! $is_freeze) ? _navigator('freeze') : _navigat...
<?php } ?>
<?php } ?>
<?php _navigator('diff') ?>
<?php if ($do_backup) { ?>
| <?php _navigator('backup') ?>
<?php } ?>
<?php if ($rw && (bool)ini_get('file_uploads')) { ?>
| <?php _navigator('upload') ?>
<?php } ?>
| <?php _navigator('reload') ?>
]
<?php } ?>
[
<?php if ($rw) { ?>
<?php _navigator('new') ?> |
<?php } ?>
<?php _navigator('list') ?>
<?php if (arg_check('list')) { ?>
| <?php _navigator('filelist') ?>
<?php } ?>
| <?php _navigator('search') ?>
| <?php _navigator('recent') ?>
| <?php _navigator('help') ?>
<?php if ($enable_login) { ?>
| <?php _navigator('login') ?>
<?php } ?>
<?php if ($enable_logout) { ?>
| <?php _navigator('logout') ?>
<?php } ?>
]
<?php } // PKWK_SKIN_SHOW_NAVBAR ?>
</div>
<?php echo $hr ?>
<?php if ($menu !== FALSE) { ?>
<table border="0" style="width:100%">
<tr>
<td class="menubar">
<div id="menubar"><?php echo $menu ?></div>
</td>
<td valign="top">
<div id="body"><?php echo $body ?></div>
</td>
</tr>
</table>
<?php } else { ?>
<div id="body"><?php echo $body ?></div>
<?php } ?>
<?php if ($notes != '') { ?>
<div id="note"><?php echo $notes ?></div>
<?php } ?>
<?php if ($attaches != '') { ?>
<div id="attach">
<?php echo $hr ?>
<?php echo $attaches ?>
</div>
<?php } ?>
<?php echo $hr ?>
<?php if (PKWK_SKIN_SHOW_TOOLBAR) { ?>
<!-- Toolbar -->
<div id="toolbar">
<?php
// Set toolbar-specific images
$_IMAGE['skin']['reload'] = 'reload.png';
$_IMAGE['skin']['new'] = 'new.png';
$_IMAGE['skin']['edit'] = 'edit.png';
$_IMAGE['skin']['freeze'] = 'freeze.png';
$_IMAGE['skin']['unfreeze'] = 'unfreeze.png';
$_IMAGE['skin']['diff'] = 'diff.png';
$_IMAGE['skin']['upload'] = 'file.png';
$_IMAGE['skin']['copy'] = 'copy.png';
$_IMAGE['skin']['rename'] = 'rename.png';
$_IMAGE['skin']['top'] = 'top.png';
$_IMAGE['skin']['list'] = 'list.png';
$_IMAGE['skin']['search'] = 'search.png';
$_IMAGE['skin']['recent'] = 'recentchanges.png';
$_IMAGE['skin']['backup'] = 'backup.png';
$_IMAGE['skin']['help'] = 'help.png';
$_IMAGE['skin']['rss'] = 'rss.png';
$_IMAGE['skin']['rss10'] = & $_IMAGE['skin']['rss'];
$_IMAGE['skin']['rss20'] = 'rss20.png';
$_IMAGE['skin']['rdf'] = 'rdf.png';
function _toolbar($key, $x = 20, $y = 20){
$lang = & $GLOBALS['_LANG']['skin'];
$link = & $GLOBALS['_LINK'];
$image = & $GLOBALS['_IMAGE']['skin'];
if (! isset($lang[$key]) ) { echo 'LANG NOT FOUND'; re...
if (! isset($link[$key]) ) { echo 'LINK NOT FOUND'; re...
if (! isset($image[$key])) { echo 'IMAGE NOT FOUND'; re...
echo '<a href="' . $link[$key] . '">' .
'<img src="' . IMAGE_DIR . $image[$key] . '" width="' ...
'alt="' . $lang[$key] . '" title="' . $lang[$key] . '...
'</a>';
return TRUE;
}
?>
<?php _toolbar('top') ?>
<?php if ($is_page) { ?>
<?php if ($rw) { ?>
<?php _toolbar('edit') ?>
<?php if ($is_read && $function_freeze) { ?>
<?php if (! $is_freeze) { _toolbar('freeze'); } else {...
<?php } ?>
<?php } ?>
<?php _toolbar('diff') ?>
<?php if ($do_backup) { ?>
<?php _toolbar('backup') ?>
<?php } ?>
<?php if ($rw) { ?>
<?php if ((bool)ini_get('file_uploads')) { ?>
<?php _toolbar('upload') ?>
<?php } ?>
<?php _toolbar('copy') ?>
<?php _toolbar('rename') ?>
<?php } ?>
<?php _toolbar('reload') ?>
<?php } ?>
<?php if ($rw) { ?>
<?php _toolbar('new') ?>
<?php } ?>
<?php _toolbar('list') ?>
<?php _toolbar('search') ?>
<?php _toolbar('recent') ?>
<?php _toolbar('help') ?>
<?php _toolbar('rss10', 36, 14) ?>
</div>
<?php } // PKWK_SKIN_SHOW_TOOLBAR ?>
<?php if ($lastmodified != '') { ?>
<div id="lastmodified">Last-modified: <?php echo $lastmo...
<?php } ?>
<?php if ($related != '') { ?>
<div id="related">Link: <?php echo $related ?></div>
<?php } ?>
<div id="footer">
Site admin: <a href="<?php echo $modifierlink ?>"><?php...
<p>
<?php echo S_COPYRIGHT ?>.
Powered by PHP <?php echo PHP_VERSION ?>. HTML convert ...
</p>
</div>
</body>
</html>
終了行:
*初期pukiwiki.skin.php [#cc4074ad]
RIGHT:&counter;
<?php
// PukiWiki - Yet another WikiWikiWeb clone.
// pukiwiki.skin.php
// Copyright
// 2002-2017 PukiWiki Development Team
// 2001-2002 Originally written by yu-ji
// License: GPL v2 or (at your option) any later version
//
// PukiWiki default skin
// -----------------------------------------------------...
// Settings (define before here, if you want)
// Set site identities
$_IMAGE['skin']['logo'] = 'pukiwiki.png';
$_IMAGE['skin']['favicon'] = ''; // Sample: 'image/favi...
// SKIN_DEFAULT_DISABLE_TOPICPATH
// 1 = Show reload URL
// 0 = Show topicpath
if (! defined('SKIN_DEFAULT_DISABLE_TOPICPATH'))
define('SKIN_DEFAULT_DISABLE_TOPICPATH', 1); // 1, 0
// Show / Hide navigation bar UI at your choice
// NOTE: This is not stop their functionalities!
if (! defined('PKWK_SKIN_SHOW_NAVBAR'))
define('PKWK_SKIN_SHOW_NAVBAR', 1); // 1, 0
// Show / Hide toolbar UI at your choice
// NOTE: This is not stop their functionalities!
if (! defined('PKWK_SKIN_SHOW_TOOLBAR'))
define('PKWK_SKIN_SHOW_TOOLBAR', 1); // 1, 0
// -----------------------------------------------------...
// Code start
// Prohibit direct access
if (! defined('UI_LANG')) die('UI_LANG is not set');
if (! isset($_LANG)) die('$_LANG is not set');
if (! defined('PKWK_READONLY')) die('PKWK_READONLY is no...
$lang = & $_LANG['skin'];
$link = & $_LINK;
$image = & $_IMAGE['skin'];
$rw = ! PKWK_READONLY;
// MenuBar
$menu = arg_check('read') && exist_plugin_convert('menu'...
// -----------------------------------------------------...
// Output
// HTTP headers
pkwk_common_headers();
header('Cache-control: no-cache');
header('Pragma: no-cache');
header('Content-Type: text/html; charset=' . CONTENT_CHA...
?>
<!DOCTYPE html>
<html lang="<?php echo LANG ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; cha...
<?php if ($nofollow || ! $is_read) { ?> <meta name="rob...
<?php if ($html_meta_referrer_policy) { ?> <meta name="r...
<title><?php echo $title ?> - <?php echo $page_title ?>...
<link rel="SHORTCUT ICON" href="<?php echo $image['favi...
<link rel="stylesheet" type="text/css" href="<?php echo...
<link rel="alternate" type="application/rss+xml" title=...
<script type="text/javascript" src="skin/main.js" defer...
<script type="text/javascript" src="skin/search2.js" de...
<?php echo $head_tag ?>
</head>
<body>
<?php echo $html_scripting_data ?>
<div id="header">
<a href="<?php echo $link['top'] ?>"><img id="logo" src...
<h1 class="title"><?php echo $page ?></h1>
<?php if ($is_page) { ?>
<?php if(SKIN_DEFAULT_DISABLE_TOPICPATH) { ?>
<a href="<?php echo $link['canonical_url'] ?>"><span ...
<?php } else { ?>
<span class="small">
<?php require_once(PLUGIN_DIR . 'topicpath.inc.php');...
</span>
<?php } ?>
<?php } ?>
</div>
<div id="navigator">
<?php if(PKWK_SKIN_SHOW_NAVBAR) { ?>
<?php
function _navigator($key, $value = '', $javascript = ''){
$lang = & $GLOBALS['_LANG']['skin'];
$link = & $GLOBALS['_LINK'];
if (! isset($lang[$key])) { echo 'LANG NOT FOUND'; retu...
if (! isset($link[$key])) { echo 'LINK NOT FOUND'; retu...
echo '<a href="' . $link[$key] . '" ' . $javascript . '...
(($value === '') ? $lang[$key] : $value) .
'</a>';
return TRUE;
}
?>
[ <?php _navigator('top') ?> ]
<?php if ($is_page) { ?>
[
<?php if ($rw) { ?>
<?php _navigator('edit') ?> |
<?php if ($is_read && $function_freeze) { ?>
<?php (! $is_freeze) ? _navigator('freeze') : _navigat...
<?php } ?>
<?php } ?>
<?php _navigator('diff') ?>
<?php if ($do_backup) { ?>
| <?php _navigator('backup') ?>
<?php } ?>
<?php if ($rw && (bool)ini_get('file_uploads')) { ?>
| <?php _navigator('upload') ?>
<?php } ?>
| <?php _navigator('reload') ?>
]
<?php } ?>
[
<?php if ($rw) { ?>
<?php _navigator('new') ?> |
<?php } ?>
<?php _navigator('list') ?>
<?php if (arg_check('list')) { ?>
| <?php _navigator('filelist') ?>
<?php } ?>
| <?php _navigator('search') ?>
| <?php _navigator('recent') ?>
| <?php _navigator('help') ?>
<?php if ($enable_login) { ?>
| <?php _navigator('login') ?>
<?php } ?>
<?php if ($enable_logout) { ?>
| <?php _navigator('logout') ?>
<?php } ?>
]
<?php } // PKWK_SKIN_SHOW_NAVBAR ?>
</div>
<?php echo $hr ?>
<?php if ($menu !== FALSE) { ?>
<table border="0" style="width:100%">
<tr>
<td class="menubar">
<div id="menubar"><?php echo $menu ?></div>
</td>
<td valign="top">
<div id="body"><?php echo $body ?></div>
</td>
</tr>
</table>
<?php } else { ?>
<div id="body"><?php echo $body ?></div>
<?php } ?>
<?php if ($notes != '') { ?>
<div id="note"><?php echo $notes ?></div>
<?php } ?>
<?php if ($attaches != '') { ?>
<div id="attach">
<?php echo $hr ?>
<?php echo $attaches ?>
</div>
<?php } ?>
<?php echo $hr ?>
<?php if (PKWK_SKIN_SHOW_TOOLBAR) { ?>
<!-- Toolbar -->
<div id="toolbar">
<?php
// Set toolbar-specific images
$_IMAGE['skin']['reload'] = 'reload.png';
$_IMAGE['skin']['new'] = 'new.png';
$_IMAGE['skin']['edit'] = 'edit.png';
$_IMAGE['skin']['freeze'] = 'freeze.png';
$_IMAGE['skin']['unfreeze'] = 'unfreeze.png';
$_IMAGE['skin']['diff'] = 'diff.png';
$_IMAGE['skin']['upload'] = 'file.png';
$_IMAGE['skin']['copy'] = 'copy.png';
$_IMAGE['skin']['rename'] = 'rename.png';
$_IMAGE['skin']['top'] = 'top.png';
$_IMAGE['skin']['list'] = 'list.png';
$_IMAGE['skin']['search'] = 'search.png';
$_IMAGE['skin']['recent'] = 'recentchanges.png';
$_IMAGE['skin']['backup'] = 'backup.png';
$_IMAGE['skin']['help'] = 'help.png';
$_IMAGE['skin']['rss'] = 'rss.png';
$_IMAGE['skin']['rss10'] = & $_IMAGE['skin']['rss'];
$_IMAGE['skin']['rss20'] = 'rss20.png';
$_IMAGE['skin']['rdf'] = 'rdf.png';
function _toolbar($key, $x = 20, $y = 20){
$lang = & $GLOBALS['_LANG']['skin'];
$link = & $GLOBALS['_LINK'];
$image = & $GLOBALS['_IMAGE']['skin'];
if (! isset($lang[$key]) ) { echo 'LANG NOT FOUND'; re...
if (! isset($link[$key]) ) { echo 'LINK NOT FOUND'; re...
if (! isset($image[$key])) { echo 'IMAGE NOT FOUND'; re...
echo '<a href="' . $link[$key] . '">' .
'<img src="' . IMAGE_DIR . $image[$key] . '" width="' ...
'alt="' . $lang[$key] . '" title="' . $lang[$key] . '...
'</a>';
return TRUE;
}
?>
<?php _toolbar('top') ?>
<?php if ($is_page) { ?>
<?php if ($rw) { ?>
<?php _toolbar('edit') ?>
<?php if ($is_read && $function_freeze) { ?>
<?php if (! $is_freeze) { _toolbar('freeze'); } else {...
<?php } ?>
<?php } ?>
<?php _toolbar('diff') ?>
<?php if ($do_backup) { ?>
<?php _toolbar('backup') ?>
<?php } ?>
<?php if ($rw) { ?>
<?php if ((bool)ini_get('file_uploads')) { ?>
<?php _toolbar('upload') ?>
<?php } ?>
<?php _toolbar('copy') ?>
<?php _toolbar('rename') ?>
<?php } ?>
<?php _toolbar('reload') ?>
<?php } ?>
<?php if ($rw) { ?>
<?php _toolbar('new') ?>
<?php } ?>
<?php _toolbar('list') ?>
<?php _toolbar('search') ?>
<?php _toolbar('recent') ?>
<?php _toolbar('help') ?>
<?php _toolbar('rss10', 36, 14) ?>
</div>
<?php } // PKWK_SKIN_SHOW_TOOLBAR ?>
<?php if ($lastmodified != '') { ?>
<div id="lastmodified">Last-modified: <?php echo $lastmo...
<?php } ?>
<?php if ($related != '') { ?>
<div id="related">Link: <?php echo $related ?></div>
<?php } ?>
<div id="footer">
Site admin: <a href="<?php echo $modifierlink ?>"><?php...
<p>
<?php echo S_COPYRIGHT ?>.
Powered by PHP <?php echo PHP_VERSION ?>. HTML convert ...
</p>
</div>
</body>
</html>
ページ名: