From: <var...@us...> - 2009-09-10 14:41:23
|
Revision: 7105 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7105&view=rev Author: vargenau Date: 2009-09-10 14:41:11 +0000 (Thu, 10 Sep 2009) Log Message: ----------- Avoid warning Modified Paths: -------------- trunk/themes/gforge/themeinfo.php Modified: trunk/themes/gforge/themeinfo.php =================================================================== --- trunk/themes/gforge/themeinfo.php 2009-09-09 14:00:22 UTC (rev 7104) +++ trunk/themes/gforge/themeinfo.php 2009-09-10 14:41:11 UTC (rev 7105) @@ -51,7 +51,7 @@ function footer() { global $HTML; - $HTML->footer(); + $HTML->footer(array()); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-12 14:29:08
|
Revision: 7206 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7206&view=rev Author: vargenau Date: 2009-10-12 14:28:59 +0000 (Mon, 12 Oct 2009) Log Message: ----------- Protect <title> with .htmlspecialchars Modified Paths: -------------- trunk/themes/gforge/themeinfo.php Modified: trunk/themes/gforge/themeinfo.php =================================================================== --- trunk/themes/gforge/themeinfo.php 2009-10-12 13:04:08 UTC (rev 7205) +++ trunk/themes/gforge/themeinfo.php 2009-10-12 14:28:59 UTC (rev 7206) @@ -24,7 +24,7 @@ session_require(array('group'=>'1')); } - $HTML->header(array('title'=> $group_public_name.': '.$pagename , + $HTML->header(array('title'=> $group_public_name.': '.htmlspecialchars($pagename) , 'pagename'=> $pagename, 'group' => $group_id, 'toptab' => 'wiki', 'css' => 'gforge.css" />'."\n".' <base href="'.PHPWIKI_BASE_URL, 'submenu' => $submenu->asXML())); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-19 12:57:51
|
Revision: 7220 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7220&view=rev Author: vargenau Date: 2009-10-19 12:57:39 +0000 (Mon, 19 Oct 2009) Log Message: ----------- removed global code setters, switched to $WikiTheme->load() in main Modified Paths: -------------- trunk/themes/gforge/themeinfo.php Modified: trunk/themes/gforge/themeinfo.php =================================================================== --- trunk/themes/gforge/themeinfo.php 2009-10-19 08:01:01 UTC (rev 7219) +++ trunk/themes/gforge/themeinfo.php 2009-10-19 12:57:39 UTC (rev 7220) @@ -6,12 +6,12 @@ class WikiTheme_gforge extends WikiTheme { function header() { - global $HTML, $group_id, $group_public_name, $request, $project, $Language; + global $HTML, $group_id, $group_public_name, $request, $project; $pagename = $request->getArg('pagename'); $submenu = Template('navbar'); - + //group is private if (!$project->isPublic()) { //if it's a private group, you must be a member of that group @@ -40,87 +40,75 @@ if (!$external_user) { $page = $request->getPage(); if ($page->get('external')) { - $external_msg = 'This page is external.'; + $external_msg = _("This page is external."); } - echo $HTML->warning_msg($Language->getText('project_admin','external_project') . + echo $HTML->warning_msg(_("This project is shared with third-party users (non Alcatel-Lucent users).") . (isset($external_msg) ? ' ' . $external_msg : '')); } } } - + function footer() { global $HTML; - + $HTML->footer(array()); - + } -} -$WikiTheme = new WikiTheme_gforge('gforge'); -// CSS file defines fonts, colors and background images for this style. + function load() { -/** - * The logo image appears on every page and links to the HomePage. - */ -$WikiTheme->addImageAlias('logo', WIKI_NAME . 'Logo.png'); + $this->initGlobals(); -/** - * The Signature image is shown after saving an edited page. If this - * is set to false then the "Thank you for editing..." screen will - * be omitted. - */ + /** + * The Signature image is shown after saving an edited page. If this + * is set to false then the "Thank you for editing..." screen will + * be omitted. + */ -$WikiTheme->addImageAlias('signature', WIKI_NAME . "Signature.png"); -// Uncomment this next line to disable the signature. -$WikiTheme->addImageAlias('signature', false); + $this->addImageAlias('signature', WIKI_NAME . "Signature.png"); + // Uncomment this next line to disable the signature. + $this->addImageAlias('signature', false); -/* - * Link icons. - */ -// $WikiTheme->setLinkIconAttr('after'); -$WikiTheme->setLinkIcon('http'); -$WikiTheme->setLinkIcon('https'); -$WikiTheme->setLinkIcon('ftp'); -$WikiTheme->setLinkIcon('mailto'); -//$WikiTheme->setLinkIcon('interwiki'); -//$WikiTheme->setLinkIcon('wikiuser'); -//$WikiTheme->setLinkIcon('*', 'url'); + /* + * Link icons. + */ + $this->setLinkIcon('http'); + $this->setLinkIcon('https'); + $this->setLinkIcon('ftp'); + $this->setLinkIcon('mailto'); -$WikiTheme->setButtonSeparator("\n | "); + $this->setButtonSeparator(""); -/** - * WikiWords can automatically be split by inserting spaces between - * the words. The default is to leave WordsSmashedTogetherLikeSo. - */ -$WikiTheme->setAutosplitWikiWords(false); + /** + * WikiWords can automatically be split by inserting spaces between + * the words. The default is to leave WordsSmashedTogetherLikeSo. + */ + $this->setAutosplitWikiWords(false); -/** - * Layout improvement with dangling links for mostly closed wiki's: - * If false, only users with edit permissions will be presented the - * special wikiunknown class with "?" and Tooltip. - * If true (default), any user will see the ?, but will be presented - * the PrintLoginForm on a click. - */ -$WikiTheme->setAnonEditUnknownLinks(false); + /** + * Layout improvement with dangling links for mostly closed wiki's: + * If false, only users with edit permissions will be presented the + * special wikiunknown class with "?" and Tooltip. + * If true (default), any user will see the ?, but will be presented + * the PrintLoginForm on a click. + */ + $this->setAnonEditUnknownLinks(false); -/* - * You may adjust the formats used for formatting dates and times - * below. (These examples give the default formats.) - * Formats are given as format strings to PHP strftime() function See - * http://www.php.net/manual/en/function.strftime.php for details. - * Do not include the server's zone (%Z), times are converted to the - * user's time zone. - */ -$WikiTheme->setDateFormat("%d %B %Y"); -$WikiTheme->setTimeFormat("%H:%M"); + /* + * You may adjust the formats used for formatting dates and times + * below. (These examples give the default formats.) + * Formats are given as format strings to PHP strftime() function See + * http://www.php.net/manual/en/function.strftime.php for details. + * Do not include the server's zone (%Z), times are converted to the + * user's time zone. + */ + $this->setDateFormat("%d %B %Y"); + $this->setTimeFormat("%H:%M"); + } +} -/* - * To suppress times in the "Last edited on" messages, give a - * give a second argument of false: - */ -//$WikiTheme->setDateFormat("%B %d, %Y", false); +$WikiTheme = new WikiTheme_gforge('gforge'); - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // (c-file-style: "gnu") // Local Variables: @@ -129,5 +117,5 @@ // c-basic-offset: 4 // c-hanging-comment-ender-p: nil // indent-tabs-mode: nil -// End: +// End: ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-23 11:15:56
|
Revision: 7232 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7232&view=rev Author: vargenau Date: 2009-10-23 11:15:47 +0000 (Fri, 23 Oct 2009) Log Message: ----------- css and pagename params are not needed Modified Paths: -------------- trunk/themes/gforge/themeinfo.php Modified: trunk/themes/gforge/themeinfo.php =================================================================== --- trunk/themes/gforge/themeinfo.php 2009-10-21 09:55:59 UTC (rev 7231) +++ trunk/themes/gforge/themeinfo.php 2009-10-23 11:15:47 UTC (rev 7232) @@ -24,10 +24,12 @@ session_require(array('group'=>'1')); } - $HTML->header(array('title'=> $group_public_name.': '.htmlspecialchars($pagename) , - 'pagename'=> $pagename, 'group' => $group_id, 'toptab' => 'wiki', - 'css' => 'gforge.css" />'."\n".' <base href="'.PHPWIKI_BASE_URL, - 'submenu' => $submenu->asXML())); + $HTML->header(array('title'=> $group_public_name.': '.htmlspecialchars($pagename), + 'group' => $group_id, + 'toptab' => 'wiki', + 'submenu' => $submenu->asXML() + ) + ); // Display a warning banner for internal users when the wiki is opened // to external users. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |