From: <var...@us...> - 2014-10-15 17:08:58
|
Revision: 9269 http://sourceforge.net/p/phpwiki/code/9269 Author: vargenau Date: 2014-10-15 17:08:55 +0000 (Wed, 15 Oct 2014) Log Message: ----------- Revert __construct 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 2014-10-15 16:14:43 UTC (rev 9268) +++ trunk/lib/WikiTheme.php 2014-10-15 17:08:55 UTC (rev 9269) @@ -189,7 +189,7 @@ /** * noinit: Do not initialize unnecessary items in default_theme fallback twice. */ - function __construct($theme_name = 'default', $noinit = false) + function WikiTheme($theme_name = 'default', $noinit = false) { $this->_name = $theme_name; $this->_themes_dir = NormalizeLocalFileName("themes"); @@ -1690,7 +1690,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()) { global $request; $this->_init('a', array('href' => $url)); @@ -1723,9 +1723,9 @@ * @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()) { - parent::__construct('a', array('href' => $url)); + $this->__construct('a', array('href' => $url)); if ($class) $this->setAttr('class', $class); // Google honors this @@ -1755,9 +1755,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) @@ -1783,9 +1783,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) @@ -1816,7 +1816,7 @@ class SidebarBox { - function __construct($title, $body) + function SidebarBox($title, $body) { require_once 'lib/WikiPlugin.php'; $this->title = $title; @@ -1839,7 +1839,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'; @@ -1865,7 +1865,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) { global $request; $this->title = $title ? $title : _("Related Links"); @@ -1888,7 +1888,7 @@ class RelatedExternalLinksBox extends SidebarBox { - function __construct($title = false, $body = '', $limit = 20) + function RelatedExternalLinksBox($title = false, $body = '', $limit = 20) { global $request; $this->title = $title ? $title : _("External Links"); Modified: trunk/themes/Sidebar/themeinfo.php =================================================================== --- trunk/themes/Sidebar/themeinfo.php 2014-10-15 16:14:43 UTC (rev 9268) +++ trunk/themes/Sidebar/themeinfo.php 2014-10-15 17:08:55 UTC (rev 9269) @@ -36,7 +36,7 @@ function __construct($theme_name = 'Sidebar') { - parent::__construct($theme_name); + $this->WikiTheme($theme_name); //$this->calendarInit(true); } Modified: trunk/themes/blog/themeinfo.php =================================================================== --- trunk/themes/blog/themeinfo.php 2014-10-15 16:14:43 UTC (rev 9268) +++ trunk/themes/blog/themeinfo.php 2014-10-15 17:08:55 UTC (rev 9269) @@ -48,7 +48,7 @@ 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. |