From: <var...@us...> - 2015-02-18 15:35:00
|
Revision: 9546 http://sourceforge.net/p/phpwiki/code/9546 Author: vargenau Date: 2015-02-18 15:34:57 +0000 (Wed, 18 Feb 2015) Log Message: ----------- Revert r9536 and r9540 Revision Links: -------------- http://sourceforge.net/p/phpwiki/code/9536 http://sourceforge.net/p/phpwiki/code/9540 Modified Paths: -------------- trunk/lib/WikiTheme.php trunk/themes/Sidebar/themeinfo.php trunk/themes/blog/themeinfo.php Modified: trunk/lib/WikiTheme.php =================================================================== --- trunk/lib/WikiTheme.php 2015-02-18 14:02:54 UTC (rev 9545) +++ trunk/lib/WikiTheme.php 2015-02-18 15:34:57 UTC (rev 9546) @@ -195,7 +195,7 @@ * @param string $theme_name * @param bool $noinit */ - function __construct($theme_name = 'default', $noinit = false) + function WikiTheme($theme_name = 'default', $noinit = false) { /** * @var WikiRequest $request @@ -1783,7 +1783,7 @@ * @param string $class The CSS class for the button. * @param array $options Additional attributes for the <input> tag. */ - function __construct($text, $url, $class = '', $options = array()) + function Button($text, $url, $class = '', $options = array()) { /** * @var WikiRequest $request @@ -1820,14 +1820,14 @@ * @param $img_url string URL for button's image. * @param $img_attr array Additional attributes for the <img> tag. */ - function __construct($text, $url, $class, $img_url, $img_attr = array()) + function ImageButton($text, $url, $class, $img_url, $img_attr = array()) { /** * @var WikiRequest $request */ global $request; - parent::__construct('a', array('href' => $url)); + $this->__construct('a', array('href' => $url)); if ($class) $this->setAttr('class', $class); // Google honors this @@ -1856,9 +1856,9 @@ * @param $class string The CSS class for the button. * @param $options array Additional attributes for the <input> tag. */ - function __construct($text, $name = '', $class = '', $options = array()) + function SubmitButton($text, $name = '', $class = '', $options = array()) { - parent::__construct('input', array('type' => 'submit', 'value' => $text)); + $this->__construct('input', array('type' => 'submit', 'value' => $text)); if ($name) $this->setAttr('name', $name); if ($class) @@ -1883,9 +1883,9 @@ * @param $img_url string URL for button's image. * @param $img_attr array Additional attributes for the <img> tag. */ - function __construct($text, $name = '', $class = '', $img_url, $img_attr = array()) + function SubmitImageButton($text, $name = '', $class = '', $img_url, $img_attr = array()) { - parent::__construct('input', array('type' => 'image', + $this->__construct('input', array('type' => 'image', 'src' => $img_url, 'alt' => $text)); if ($name) @@ -1915,7 +1915,7 @@ */ class SidebarBox { - function __construct($title, $body) + function SidebarBox($title, $body) { require_once 'lib/WikiPlugin.php'; $this->title = $title; @@ -1938,7 +1938,7 @@ public $_plugin, $_args = false, $_basepage = false; - function __construct($name, $args = false, $basepage = false) + function PluginSidebarBox($name, $args = false, $basepage = false) { require_once 'lib/WikiPlugin.php'; @@ -1969,7 +1969,7 @@ // Various boxes which are no plugins class RelatedLinksBox extends SidebarBox { - function __construct($title = false, $body = '', $limit = 20) + function RelatedLinksBox($title = false, $body = '', $limit = 20) { /** * @var WikiRequest $request @@ -1996,7 +1996,7 @@ class RelatedExternalLinksBox extends SidebarBox { - function __construct($title = false, $body = '', $limit = 20) + function RelatedExternalLinksBox($title = false, $body = '', $limit = 20) { /** * @var WikiRequest $request Modified: trunk/themes/Sidebar/themeinfo.php =================================================================== --- trunk/themes/Sidebar/themeinfo.php 2015-02-18 14:02:54 UTC (rev 9545) +++ trunk/themes/Sidebar/themeinfo.php 2015-02-18 15:34:57 UTC (rev 9546) @@ -36,7 +36,7 @@ function __construct($theme_name = 'Sidebar') { - parent::__construct($theme_name); + $this->WikiTheme($theme_name); } /* Display up/down button with persistent state */ Modified: trunk/themes/blog/themeinfo.php =================================================================== --- trunk/themes/blog/themeinfo.php 2015-02-18 14:02:54 UTC (rev 9545) +++ trunk/themes/blog/themeinfo.php 2015-02-18 15:34:57 UTC (rev 9546) @@ -45,10 +45,9 @@ class WikiTheme_blog extends WikiTheme { - function __construct($theme_name = 'blog') { - parent::__construct($theme_name); + $this->WikiTheme($theme_name); $this->calendarInit(true); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |