19.01.2017 19:55
Ich glaube in der class.htmlelements.php fehlt die Funktion: class cHTMLPLAIN extends cHTML welche sich normalerweise vor
befindet!
Anbei der angepasste Code für drugcms!
Oder ist diese Anweisung mit Absicht nicht mehr drin?
MfG Steffen
/**
* Image Element
*
* @author Timo A. Hummel <timo.hummel@4fb.de>
*/
befindet!
Anbei der angepasste Code für drugcms!
- Code: Alles auswählen
- /**
- * PLAIN Element
- *
- * @author Timo A. Hummel <timo.hummel@4fb.de>
- */
- class cHTMLPLAIN extends cHTML
- {
- /**
- * Constructor. Creates an HTML DIV element.
- *
- * @param $content mixed String or object with the contents
- *
- */
- function cHTMLPLAIN($content = "")
- {
- // RAUS fuer drugcms: cHTML :: cHTML();
- // folgende Zeile rein fuer drugcms:
- parent::__construct();
- $this->setContent($content);
- }
- /**
- * setContent: Sets the div's content
- *
- * @param $content string/object String with the content or an object to render.
- *
- */
- function setContent($content)
- {
- $this->_setContent($content);
- }
- /**
- * Renders the PLAIN element
- *
- * @param none
- * @return string Rendered HTML
- */
- function toHTML()
- {
- $attributes = $this->getAttributes(true);
- return $this->_content;
- }
- }
Oder ist diese Anweisung mit Absicht nicht mehr drin?
MfG Steffen