popular.inc.phpとrecent.inc.phpのタイトル部分の書式を変更
ja.lng.phpで
$_popular_plugin_frame ////////////////////////////////////// // popular.inc.php //$_popular_plugin_frame = '<h5>人気の%d件</h5><div>%s</div>'; //$_popular_plugin_today_frame = '<h5>今日の%d件</h5><div>%s</div>'; $_popular_plugin_frame = '<span style="font-size:small ; background- color:#FFE0FF ;\ font-weight : bold">☆人気の%d件☆</span><div>%s</div>'; <==変更 $_popular_plugin_today_frame = '<span style="font-size:small ; background- color:#FFE0FF ;\ font-weight : bold">☆今日の%d件☆</span><div>%s</div>'; <==変更 ////////////////////////////////////// // recent.inc.php //$_recent_plugin_frame = '<h5>最新の%d件</h5>'; $_recent_plugin_frame = '<span style="font-size:12px ; background- color:#FFE0FF ; font-we ight:bold">☆最新の%d件☆</span> <==変更 <div>%s</div>';
plugin/menu.inc.phpをコピーしてmenu2.inc.phpを作成
menu2.inc.phpの以下の内容を変更(menubarとつくところをmenubar2に変更)
define('MENU_SUBMENUBAR', 'MenuBar');
==> define('MENU_SUBMENUBAR', 'MenuBar2');
plugin_menu_convert() ==> plugin_menu2_convert()
global $vars, $menubar; ==> global $vars, $menubar2;
$page = ($menu === NULL) ? $menubar : $menu;
==> $page = ($menu === NULL) ? $menubar2 : $menu;
pukiwiki.ini.phpにMenuBar2を追加この名前が右メニューのページ名
$menubar = 'MenuBar'; // Menu $menubar2 = 'MenuBar2'; // Menu2
pukiwiki.skin.phpに以下の内容追加
<?php if (arg_check('read') && exist_plugin_convert('menu')) { ?>
<table border="0" style="width:100%">
<tr>
<?php if (exist_plugin_convert('menu')) { ?> <==追加
<td class="menubar" style="background:#fff0e0">
<div id="menubar"><?php echo do_plugin_convert('menu') ?></div>
</td>
<?php } ?> <==追加
<td valign="top">
<div id="body"><?php echo $body ?></div>
</td>
<?php if (exist_plugin_convert('menu2')) { ?> <----
<td class="menubar2" style="background:#fff0e0"> |
<div id="menubar2"><?php echo do_plugin_convert('menu2') ?></div> |追加
</td> |
<?php } ?> <----
</tr>
</table>
pukiwiki.css.phpのmenubarのclassとidをmenubar2としてコピーして追加
td.menubar {
<?php if ($media == 'print') { ?>
display:none;
(略)
<?php } ?>
}
[追加]
td.menubar2 {
<?php if ($media == 'print') { ?>
(略)
<?php } ?>
}
div#menubar {
<?php if ($media == 'print') { ?>
display:none;
(略)
<?php } ?>
}
[追加]
div#menubar2 {
<?php if ($media == 'print') { ?>
(略)
<?php } ?>
}
div#menubar ul {
margin:0px 0px 0px .5em;
padding:0px 0px 0px .5em;
}
[追加]
div#menubar2 ul {
margin:0px 0px 0px .5em;
padding:0px 0px 0px .5em;
}
div#menubar ul li { line-height:110%; }
[追加]
div#menubar2 ul li { line-height:110%; }
div#menubar h4 { font-size:110%; }
[追加]
div#menubar2 h4 { font-size:110%; }