Skip to content

Commit

Permalink
use $self instead of $self in the theme
Browse files Browse the repository at this point in the history
  • Loading branch information
wkpark committed Dec 21, 2015
1 parent ad7bdc6 commit 8882aab
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 71 deletions.
6 changes: 3 additions & 3 deletions theme/azblue/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@

$banner= <<<FOOT
<a href="http://validator.w3.org/check/referer"><img
src="$this->themeurl/imgs/xhtml.png"
src="$self->themeurl/imgs/xhtml.png"
style='border:0;vertical-align:middle' width="80" height="15"
alt="Valid XHTML 1.0!" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer"><img
src="$this->themeurl/imgs/css.png"
src="$self->themeurl/imgs/css.png"
style='border:0;vertical-align:middle' width="80" height="15"
alt="Valid CSS!" /></a>
<a href="http://moniwiki.sourceforge.net/"><img
src="$this->themeurl/imgs/moniwiki-powered-thin.png"
src="$self->themeurl/imgs/moniwiki-powered-thin.png"
style='border:0;vertical-align:middle' width="80" height="15"
alt="powered by MoniWiki" /></a>
FOOT;
Expand Down
46 changes: 23 additions & 23 deletions theme/azblue/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
# MoniWiki Theme by wkpark at kldp.org
# $Id$
#
if ($this->_sidebar) {
if ($self->_sidebar) {
include_once("plugin/login.php");
include_once("plugin/RandomBanner.php");
include_once("plugin/Calendar.php");
$login=macro_login($this);
$login=macro_login($self);
}
if ($DBInfo->use_tagging) {
include_once("plugin/Keywords.php");
}
# theme options
#$_theme['sidebar']=1;

if ($this->_width) {
if ($self->_width) {
print <<<EOF
<style type='text/css'>
#mainBody { width:$this->_width;}
#mainBody { width:$self->_width;}
</style>
EOF;
}
Expand All @@ -34,15 +34,15 @@
<div id='mainBody'>
<!--
<div id='topBanner'>
<img src="<?php echo $this->themeurl?>/imgs/kldpwikilogo.png"/>
<img src="<?php echo $self->themeurl?>/imgs/kldpwikilogo.png"/>
</div>
-->
<?php if ($this->_topicon): ?>
<?php if ($self->_topicon): ?>
<div id='topIcon'>
<a href='?action=edit'><img src='<?php echo $this->themeurl?>/imgs/record.png' alt='*' style='border:0' /></a>
<a href='?action=new'><img src='<?php echo $this->themeurl?>/imgs/add.png' alt='+' style='border:0' /></a>
<a href='?action=subscribe'><img src='<?php echo $this->themeurl?>/imgs/favorite.png' alt='#' style='border:0' /></a>
<a href='?action=rss_rc'><img src='<?php echo $this->themeurl?>/imgs/rss.png' alt='.)' style='border:0' /></a>
<a href='?action=edit'><img src='<?php echo $self->themeurl?>/imgs/record.png' alt='*' style='border:0' /></a>
<a href='?action=new'><img src='<?php echo $self->themeurl?>/imgs/add.png' alt='+' style='border:0' /></a>
<a href='?action=subscribe'><img src='<?php echo $self->themeurl?>/imgs/favorite.png' alt='#' style='border:0' /></a>
<a href='?action=rss_rc'><img src='<?php echo $self->themeurl?>/imgs/rss.png' alt='.)' style='border:0' /></a>
-->
</div>
<?php endif;?>
Expand All @@ -51,9 +51,9 @@
<div id='pBanSpace'></div>
<div id='wikiHeadPage'>
<?php
if ($this->popup!=1) :
if ($self->popup!=1) :
?>
<?php if ($this->_topbanner): ?>
<?php if ($self->_topbanner): ?>
<div id='pBanRight'><div id='pBanLeft'>
<div id='pBanner'>
<img src='<?php echo $DBInfo->logo_img?>' /><?php
Expand All @@ -72,19 +72,19 @@
</form>
</div>
<div id='pTitle'>
<?php if (!$this->_topbanner and $this->_logo): ?>
<?php if (!$self->_topbanner and $self->_logo): ?>
<img src='<?php echo $DBInfo->logo_img?>' style='text-align:left;' alt='moniwiki' />
<?php endif; /* topbanner */?>
<?php echo $title?></div>
<?php if ($this->_topbanner): ?>
<?php if ($self->_topbanner): ?>
</div>
</div>
<?php endif; /* topbanner */?>
<?php endif; /* popup */?>
</div>
</div></div>
</div></div>
<?php if ($this->_splash):?>
<?php if ($self->_splash):?>
<div class='pBodyRight'><div class='pBodyLeft'>
<div id='wikiSplash'>
</div>
Expand All @@ -95,7 +95,7 @@
<div id='pBottomRight'><div id='pBottomLeft'>
<div id='wikiPage'>
<span class='clear'></span>
<?php if ($this->popup) :?>
<?php if ($self->popup) :?>
&nbsp;<!-- oops!! firefox bug workaround :( -->
<?php else:?>
<div id='wikiHeader'>
Expand All @@ -112,26 +112,26 @@
<div id='container'>
<?php
# enable/disable sidebar
if ($this->_sidebar==1) :
if ($self->_sidebar==1) :
?>
<div id='wikiSideMenu'>
<?php
if ($this->_login) print macro_login($this);
if ($self->_login) print macro_login($self);
print '<div class="calendar">';
if ($options['id']=='Anonymous')
print macro_calendar($this,"'Blog',blog,noweek,archive,center",'Blog');
print macro_calendar($self,"'Blog',blog,noweek,archive,center",'Blog');
else
print macro_calendar($this,"'$options[id]',blog,noweek,archive,center",$options['id']);
print macro_calendar($self,"'$options[id]',blog,noweek,archive,center",$options['id']);
print '</div>';
print '<div class="randomQuote">';
print macro_RandomQuote($this);
print macro_RandomQuote($self);
print '</div>';
print '<div class="randomPage">';
print macro_RandomPage($this,"4,simple");
print macro_RandomPage($self,"4,simple");
print '</div>';
if ($DBInfo->use_tagging) {
print "<div>";
print macro_Keywords($this,"all,tour,limit=15");
print macro_Keywords($self,"all,tour,limit=15");
print "</div>";
}
?>
Expand Down
8 changes: 4 additions & 4 deletions theme/blog/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
<?php
print '<div style="font-size:10px">';
if ($options['id']=='Anonymous')
print macro_calendar($this,"'Blog',blog,noweek,archive",'Blog');
print macro_calendar($self,"'Blog',blog,noweek,archive",'Blog');
else
print macro_calendar($this,"'$options[id]',blog,noweek",$options['id']);
print macro_calendar($self,"'$options[id]',blog,noweek",$options['id']);
print '</div>';
print "<br />\n";
print '<font style="font-size:12px;"><b>';
print macro_RandomQuote($this);
print macro_RandomQuote($self);
print '</b></font>';
print "<br /><br />\n";
print '<font style="font-size:11px">';
print macro_RandomPage($this,"4,simple");
print macro_RandomPage($self,"4,simple");
print '</font>';

?>
Expand Down
4 changes: 2 additions & 2 deletions theme/blog/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
include_once("plugin/RandomBanner.php");
include_once("plugin/Calendar.php");
include_once("plugin/trackback.php");
$login=macro_login($this);
$login=macro_login($self);
?>
<div id='wikiHeader'>
<table border='0' width='100%' cellpadding='0' cellspacing='0'><tr>
<td rowspan='2' width='10%'><img src='<?php echo $this->url_prefix?>/imgs/moniwiki-logo.gif' alt='MoniWiki' /></td><td><?php echo $title?>
<td rowspan='2' width='10%'><img src='<?php echo $self->url_prefix?>/imgs/moniwiki-logo.gif' alt='MoniWiki' /></td><td><?php echo $title?>
</td><td width='10%' rowspan='2'><?php echo $login?></td></tr>
<tr><td><?php echo $goto_form?></td></tr>
</table>
Expand Down
20 changes: 10 additions & 10 deletions theme/kz/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@
text-align: right;
">
<div align="left">
<?php echo $DBInfo->counter->pageCounter($this->page->name)?>
<?php echo $DBInfo->counter->pageCounter($self->page->name)?>
</div>
<?php
# Processing Instruction의 #action 정의가 있으면,
# $this->actions에 포함되어있는지 확인해보고,
# 있으면 그것을 프린트한다.
if ($this->pi['#action'] && !in_array($this->pi['#action'],$this->actions)){
list($act,$txt)=explode(" ",$this->pi['#action'],2);
print $this->link_to("?action=$act",$txt);
# Processing Instruction의 #action 정의가 있으면,
# $self->actions에 포함되어있는지 확인해보고,
# 있으면 그것을 프린트한다.
if ($self->pi['#action'] && !in_array($self->pi['#action'],$self->actions)){
list($act,$txt)=explode(" ",$self->pi['#action'],2);
print $self->link_to("?action=$act",$txt);
}
# txt 대신에 적절한 아이콘을 넣던지 합니다.
# txt 대신에 적절한 아이콘을 넣던지 합니다.
?>
Best viewed with
<?php echo $this->link_tag("Mozilla","","Mozilla","")?>
<?php echo $self->link_tag("Mozilla","","Mozilla","")?>
latest.
Powered by
<?php echo $this->link_tag("MoniWiki","","MoniWiki","title='MoniWiki'")?>.
<?php echo $self->link_tag("MoniWiki","","MoniWiki","title='MoniWiki'")?>.
</div>
28 changes: 14 additions & 14 deletions theme/kz/header.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<div id="wikiMenu">
<div id="gotoForm"><?php echo $goto_form?></div>
<?php echo
$this->link_tag($this->frontpage,"",$this->sitename,"\n").
$this->link_tag("TitleIndex","",$this->icon['list']._("TitleIndex"),"\n").
$this->link_tag("FindPage","",$this->icon['find']._("FindPage"),"\n").
$this->link_tag("RecentChanges","",$this->icon['diff']._("RecentChanges"),"\n");
$self->link_tag($self->frontpage,"",$self->sitename,"\n").
$self->link_tag("TitleIndex","",$self->icon['list']._("TitleIndex"),"\n").
$self->link_tag("FindPage","",$self->icon['find']._("FindPage"),"\n").
$self->link_tag("RecentChanges","",$self->icon['diff']._("RecentChanges"),"\n");
?>
<div align="right" style="border-top: 1px solid cornflowerblue">
<?php echo $this->link_tag("PageHits","","Total ".macro_PageCount()." pages");?>
<?php echo $self->link_tag("PageHits","","Total ".macro_PageCount()." pages");?>
</div>
<div id="currentPage">
<h4>Current Page</h4>
Expand All @@ -17,22 +17,22 @@
<div id="wikiMap">
<h4>Central Pages</h4>
<?php echo
$this->link_tag("%B9%E6%B8%ED%B7%CF","",_("GuestBook"),"").
$this->link_tag("UploadedFiles","",_("UploadedFiles"),"");
$self->link_tag("%B9%E6%B8%ED%B7%CF","",_("GuestBook"),"").
$self->link_tag("UploadedFiles","",_("UploadedFiles"),"");
/*
$this->link_tag("CategoryGybe","","gybe","title='GNOME Yare Browser Engine project'").
$this->link_tag("CategorySpeech","","TTS","title='Text To Speech'").
$this->link_tag("CategoryMusic","","³ë·¡","title='Music'").
$this->link_tag("CategoryMovie","","¿µÈ­","title='Movie'").
$this->link_tag("CategoryBook","","Ã¥","title='Book óü'").
$this->link_tag("CategoryPoetry","","½Ã","title='Poetry'").
$self->link_tag("CategoryGybe","","gybe","title='GNOME Yare Browser Engine project'").
$self->link_tag("CategorySpeech","","TTS","title='Text To Speech'").
$self->link_tag("CategoryMusic","","노래","title='Music'").
$self->link_tag("CategoryMovie","","영화","title='Movie'").
$self->link_tag("CategoryBook","","","title='Book '").
$self->link_tag("CategoryPoetry","","","title='Poetry'").
"";
*/
?>
</div>
<div id="loginForm"><?php
include ("plugin/login.php");
echo macro_login($this);
echo macro_login($self);
?></div>
</div>
<?php if ($msg) echo "<div id='wikiMsg'>".$msg."</div>"; ?>
30 changes: 15 additions & 15 deletions theme/kz/theme.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<?php
$imgdir=$themeurl."/imgs";
$icon[upper]="<img src='$imgdir/upper.gif' alt='U' />";
$icon[edit]="<img src='$imgdir/stock-tool-button-pencil.png' alt='E' align='absmiddle' />";
$icon[diff]="<img src='$imgdir/stock_convert.png' alt='D' align='absmiddle' />";
$icon[del]="<img src='$imgdir/stock_trash.png' align='absmiddle' alt='(del)' title='Delete' />";
$icon[info]="<img src='$imgdir/status-dock-24.png' alt='I' align='absmiddle' />";
$icon[rss]="<img src='$imgdir/rss.gif' alt='RSS' />";
$icon[show]="<img src='$imgdir/stock_dnd.png' alt='R' align='absmiddle' />";
$icon[find]="<img src='$imgdir/stock_search.png' alt='S' align='absmiddle' />";
$icon[help]="<img src='$imgdir/help.gif' alt='H' />";
$icon[www]="<img src='$imgdir/www.gif' alt='www' />";
$icon[mailto]="<img src='$imgdir/email.gif' alt='M' />";
$icon[create]="<img src='$imgdir/compose-message.png' alt='N' align='absmiddle' />";
$icon['upper']="<img src='$imgdir/upper.gif' alt='U' />";
$icon['edit']="<img src='$imgdir/stock-tool-button-pencil.png' alt='E' align='absmiddle' />";
$icon['diff']="<img src='$imgdir/stock_convert.png' alt='D' align='absmiddle' />";
$icon['del']="<img src='$imgdir/stock_trash.png' align='absmiddle' alt='(del)' title='Delete' />";
$icon['info']="<img src='$imgdir/status-dock-24.png' alt='I' align='absmiddle' />";
$icon['rss']="<img src='$imgdir/rss.gif' alt='RSS' />";
$icon['show']="<img src='$imgdir/stock_dnd.png' alt='R' align='absmiddle' />";
$icon['find']="<img src='$imgdir/stock_search.png' alt='S' align='absmiddle' />";
$icon['help']="<img src='$imgdir/help.gif' alt='H' />";
$icon['www']="<img src='$imgdir/www.gif' alt='www' />";
$icon['mailto']="<img src='$imgdir/email.gif' alt='M' />";
$icon['create']="<img src='$imgdir/compose-message.png' alt='N' align='absmiddle' />";
$icon['new']="<img src='$imgdir/stock_new.png' alt='U' align='absmiddle' />";
$icon[updated]="<img src='$imgdir/stock_insert_object.png' alt='U' align='absmiddle' />";
$icon[home]="<img src='$imgdir/home.gif' alt='M' />";
$icon['updated']="<img src='$imgdir/stock_insert_object.png' alt='U' align='absmiddle' />";
$icon['home']="<img src='$imgdir/home.gif' alt='M' />";
$icon['list']="<img src='$imgdir/stock_index_24.png' alt='M' align='absmiddle' />";
$icon[user]="UserPreferences";
$icon['user']="UserPreferences";

if (!$_GET['action'] or "show" == $_GET['action']
or "highlight" == $_GET['action'])
Expand Down

0 comments on commit 8882aab

Please sign in to comment.