* some comments (using # instead of /* */ )
[lhc/web/wiklou.git] / includes / SkinPHPTal.php
index ad717d5..4fe28c4 100644 (file)
@@ -26,6 +26,9 @@
 # 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();
                        $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 ""; }
+       }
+}
 ?>