From: <var...@us...> - 2010-07-02 08:05:14
|
Revision: 7591 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7591&view=rev Author: vargenau Date: 2010-07-02 08:05:07 +0000 (Fri, 02 Jul 2010) Log Message: ----------- <? --> <?php Modified Paths: -------------- trunk/doc/INSTALL.flatfile trunk/doc/THEMES trunk/themes/MacOSX/images/index.php trunk/themes/MonoBook/templates/actionbar.tmpl trunk/themes/Sidebar/templates/debug.tmpl trunk/themes/Sidebar/templates/search.tmpl trunk/themes/alphatest.php trunk/themes/default/templates/actionbar.tmpl trunk/themes/default/templates/debug.tmpl trunk/themes/default/templates/search.tmpl Modified: trunk/doc/INSTALL.flatfile =================================================================== --- trunk/doc/INSTALL.flatfile 2010-07-02 07:53:09 UTC (rev 7590) +++ trunk/doc/INSTALL.flatfile 2010-07-02 08:05:07 UTC (rev 7591) @@ -106,7 +106,7 @@ <title>Make a directory</title> </head> -<? +<?php /* I created this to set up server-writable files Modified: trunk/doc/THEMES =================================================================== --- trunk/doc/THEMES 2010-07-02 07:53:09 UTC (rev 7590) +++ trunk/doc/THEMES 2010-07-02 08:05:07 UTC (rev 7591) @@ -32,11 +32,11 @@ Only one template is called, ususally the "html.tmpl" template, which includes all other templates then. -WikiTheme templates are regular xhtml, but the php parts within "<?" and "?>" +WikiTheme templates are regular xhtml, but the php parts within "<?php" and "?>" are treated especially by phpwiki. HTML entities within the php parts should be created by our HtmlElement methods, which create well-formed HTML objects. -Pure HTML entities, e.g. <? echo "<br>" ?> will be escaped to <br>. +Pure HTML entities, e.g. <?php echo "<br>" ?> will be escaped to <br>. You can easily embed other templates by your own, e.g. <?php echo Template('body') ?> Modified: trunk/themes/MacOSX/images/index.php =================================================================== --- trunk/themes/MacOSX/images/index.php 2010-07-02 07:53:09 UTC (rev 7590) +++ trunk/themes/MacOSX/images/index.php 2010-07-02 08:05:07 UTC (rev 7591) @@ -12,7 +12,7 @@ function changebg(color) { document.bgColor = backgroundcolor[color]; } //--></script> </head><body bgcolor="#8888aa"> -<? +<?php $dir = opendir("."); while($fileName = readdir($dir)) if (!(strcmp(substr($fileName, -4), ".png"))) Modified: trunk/themes/MonoBook/templates/actionbar.tmpl =================================================================== --- trunk/themes/MonoBook/templates/actionbar.tmpl 2010-07-02 07:53:09 UTC (rev 7590) +++ trunk/themes/MonoBook/templates/actionbar.tmpl 2010-07-02 08:05:07 UTC (rev 7591) @@ -53,7 +53,7 @@ <?php } ?> - <? if ( $user->isSignedIn() ) { ?> + <?php if ( $user->isSignedIn() ) { ?> <?php echo ActionButton("WatchPage", _("Watch"), false, array('title'=>"Add/Remove this to/from the list of pages you're monitoring for changes [alt-l]")) ?> <?php } ?> Modified: trunk/themes/Sidebar/templates/debug.tmpl =================================================================== --- trunk/themes/Sidebar/templates/debug.tmpl 2010-07-02 07:53:09 UTC (rev 7590) +++ trunk/themes/Sidebar/templates/debug.tmpl 2010-07-02 08:05:07 UTC (rev 7591) @@ -16,7 +16,7 @@ </div> </td><td> <span class="debug"><?php echo fmt("Page Execution took %s seconds", $RUNTIMER->getStats())?> -<? if (substr(PHP_OS,0,3) != 'WIN') { $mem = @getMemoryUsage(); PrintXml(fmt(", Memory: %s", $mem)); } ?> +<?php if (substr(PHP_OS,0,3) != 'WIN') { $mem = @getMemoryUsage(); PrintXml(fmt(", Memory: %s", $mem)); } ?> </span> </td></tr></table> <br class="clear-floats" /> Modified: trunk/themes/Sidebar/templates/search.tmpl =================================================================== --- trunk/themes/Sidebar/templates/search.tmpl 2010-07-02 07:53:09 UTC (rev 7590) +++ trunk/themes/Sidebar/templates/search.tmpl 2010-07-02 08:05:07 UTC (rev 7591) @@ -1,7 +1,7 @@ <?php // -*-php-*- // rcs_id('$Id$'); ?> -<!--{{{ LiveSearch --> <? // -*- php -*- ?> +<!--{{{ LiveSearch --> <?php // -*- php -*- ?> <div id="searchholder"> <form id="searchform" action="<?php echo WikiURL(_("FindPage"))?>" method="get" accept-charset="<?php echo $charset?>" style="display:inline" class="searchform"> Modified: trunk/themes/alphatest.php =================================================================== --- trunk/themes/alphatest.php 2010-07-02 07:53:09 UTC (rev 7590) +++ trunk/themes/alphatest.php 2010-07-02 08:05:07 UTC (rev 7591) @@ -20,7 +20,7 @@ ' <a href="#" onmouseover="javascript:changebg(' + n + ')">' + backgroundcolor[n] + '</a>' ); } //--></script> -<? +<?php function find_pngs($dir) { $file_list = ''; Modified: trunk/themes/default/templates/actionbar.tmpl =================================================================== --- trunk/themes/default/templates/actionbar.tmpl 2010-07-02 07:53:09 UTC (rev 7590) +++ trunk/themes/default/templates/actionbar.tmpl 2010-07-02 08:05:07 UTC (rev 7591) @@ -14,7 +14,7 @@ <div id="actionbuttons"> <?php if ((!$page->get('locked') || $user->isAdmin()) and $revision) { ?> <?php echo Button("edit", $revision->isCurrent() ? _("Edit") : _("Edit Old Revision"), false, array('id'=>'btn-edit')) ?> - <? if (ENABLE_WYSIWYG) { ?> + <?php if (ENABLE_WYSIWYG) { ?> <?php echo $SEP?><?php echo Button(array("action" => "edit", "mode"=> "wysiwyg"), "Wysiwyg Editor", false, array('id' => 'btn-wysiwyg-edit')) ?> <?php } ?> <?php } else { ?> Modified: trunk/themes/default/templates/debug.tmpl =================================================================== --- trunk/themes/default/templates/debug.tmpl 2010-07-02 07:53:09 UTC (rev 7590) +++ trunk/themes/default/templates/debug.tmpl 2010-07-02 08:05:07 UTC (rev 7591) @@ -16,9 +16,9 @@ </div> </td><td> <span class="debug"><?php echo fmt("Page Execution took %s seconds", $RUNTIMER->getStats())?> -<? $mem = @getMemoryUsage(); if ($mem) { ?> +<?php $mem = @getMemoryUsage(); if ($mem) { ?> <?php echo fmt(", Memory: %s", $mem) ?> -<? } ?> +<?php } ?> </span> </td></tr></table> <br class="clear-floats" /> Modified: trunk/themes/default/templates/search.tmpl =================================================================== --- trunk/themes/default/templates/search.tmpl 2010-07-02 07:53:09 UTC (rev 7590) +++ trunk/themes/default/templates/search.tmpl 2010-07-02 08:05:07 UTC (rev 7591) @@ -1,4 +1,4 @@ -<!--{{{ LiveSearch --> <? // -*- php -*- ?> +<!--{{{ LiveSearch --> <?php // -*- php -*- ?> <div id="searchholder"> <form id="searchform" action="<?php echo WikiURL(_("TitleSearch"))?>" method="get" accept-charset="<?php echo $charset?>" style="display:inline" class="searchform"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |