# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# http://www.gnu.org/copyleft/gpl.html
+
+# This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
+if( defined( "MEDIAWIKI" ) ) {
require_once "GlobalFunctions.php";
global $IP;
require_once $IP."/PHPTAL-NP-0.7.0/libs/PHPTAL.php";
$tpl->set( "reporttime", $out->reportTime() );
$tpl->set( "sitenotice", $wgSiteNotice );
+ $printfooter = "<div class=\"printfooter\">\n" . $this->printSource() . "</div>\n";
+ $out->mBodytext .= $printfooter ;
$tpl->setRef( "bodytext", $out->mBodytext );
$language_urls = array();
if( $this->iscontent ) {
$nskey = $this->getNameSpaceKey();
- $content_actions[$nskey] = array('class' => (!Namespace::isTalk( $wgTitle->getNamespace())) ? 'selected' : false,
+ $is_active = !Namespace::isTalk( $wgTitle->getNamespace()) ;
+ if ( $action == 'validate' ) $is_active = false ; # Show article tab deselected when validating
+ $content_actions[$nskey] = array('class' => ($is_active) ? 'selected' : false,
'text' => wfMsg($nskey),
'href' => $this->makeArticleUrl($this->thispage));
'text' => wfMsg('watch'),
'href' => $this->makeUrl($this->thispage, 'action=watch'));
} else {
- $content_actions['watch'] = array('class' => ($action == 'unwatch' or $action == 'watch') ? 'selected' : false,
+ $content_actions['unwatch'] = array('class' => ($action == 'unwatch' or $action == 'watch') ? 'selected' : false,
'text' => wfMsg('unwatch'),
'href' => $this->makeUrl($this->thispage, 'action=unwatch'));
}
}
- if ( $wgUseValidation && $wgUser->getID() != 0 && $wgTitle->getArticleId() && $wgTitle->getNamespace() == 0 ) {
+ # Show validate tab
+ if ( $wgUseValidation && $wgTitle->getArticleId() && $wgTitle->getNamespace() == 0 ) {
global $wgArticle ;
$article_time = "×tamp=" . $wgArticle->mTimestamp ;
$content_actions['validate'] = array('class' => ($action == 'validate') ? 'selected' : false ,
$s .= wfMsg(ucfirst($this->skinname).'.js');
return $s;
}
-
}
class SkinDaVinci extends SkinPHPTal {
}
}
+ class SkinChick extends SkinPHPTal {
+ function initPage( &$out ) {
+ SkinPHPTal::initPage( $out );
+ $this->skinname = "chick";
+ $this->template = "xhtml_minimal";
+ }
+ function suppressUrlExpansion() { return true; }
+ function printSource() { return ""; }
+ }
+}
?>