openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit b4ce3a2e4616515de3355a3e508b82dc6d913c42
parent d21e3ad19c99059d45694e956d8dab94aef9fa07
Author: Jan Dankert <devnull@localhost>
Date:   Fri,  1 Dec 2017 23:46:23 +0100

Komponente "logo" umgestellt auf eine Klasse.

Diffstat:
themes/default/include/html/logo/Logo.class.php | 39+++++++++++++++++++++++++++++++++++++++
themes/default/include/html/logo/logo-begin.inc.php | 15---------------
2 files changed, 39 insertions(+), 15 deletions(-)

diff --git a/themes/default/include/html/logo/Logo.class.php b/themes/default/include/html/logo/Logo.class.php @@ -0,0 +1,38 @@ +<?php + +class LogoComponent extends Component +{ + public $name; + + public function begin() + { + echo <<<HTML +<div class="line logo"> + <div class="label"> + <img src="themes/default/images/logo_{$this->name}.png ?>" + border="0" /> + </div> + <div class="input"> + <h2> + <?php echo langHtml('logo_{$this->name}') ?> + </h2> + <p> + <?php echo langHtml('logo_{$this->name}_text') ?> + </p> + + </div> +</div> +HTML; + } + + public function end() + { + echo '</div>'; + } + + + +} + + +?>+ \ No newline at end of file diff --git a/themes/default/include/html/logo/logo-begin.inc.php b/themes/default/include/html/logo/logo-begin.inc.php @@ -1,15 +0,0 @@ -<div class="line logo"> - <div class="label"> - <img src="<?php echo $image_dir.'logo_'.$attr_name.IMG_ICON_EXT ?>" - border="0" /> - </div> - <div class="input"> - <h2> - <?php echo langHtml('logo_'.$attr_name) ?> - </h2> - <p> - <?php echo langHtml('logo_'.$attr_name.'_text') ?> - </p> - - </div> -</div>