diff --git a/backups/demo_base.utf8.sql b/backups/demo_base.utf8.sql index 9c04459..ec3c8fd 100644 --- a/backups/demo_base.utf8.sql +++ b/backups/demo_base.utf8.sql @@ -660,11 +660,11 @@ INSERT INTO `rex_module` VALUES (5,NULL,'05 . Zitat (auf Bild)','\r\n\r\n\r\n
>\r\n
\r\n getTemplateId() == 1) {\r\n echo \'\r\n
\';\r\n } else {\r\n echo \'\r\n
\';\r\n }\r\n ?>\r\n
\r\n
\r\n \r\n \r\n REX_VALUE[id=\'2\' prefix=\'


\' suffix=\'

\']\r\n
\r\n
\r\n
\r\n
\r\n','\r\n
\r\n Titel / Intro\r\n\r\n
\r\n \r\n
\r\n REX_MEDIA[id=\"1\" widget=\"1\"]\r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n','2015-12-01 10:22:33','admin','2016-10-18 15:50:15','decaf','',0), (6,NULL,'06 . Galerie','getTemplateId() != 1) { $full = \'\'; }\r\n\r\n // Language suffix\r\n $languageSuffix = \'\';\r\n if (rex_clang::getCurrentId() == 2) {\r\n $languageSuffix = \'_en\';\r\n }\r\n\r\n $fe .= \'\r\n
\';\r\n\r\n if (\"REX_VALUE[2]\" != \'\') {\r\n $fe .= \'\r\n REX_VALUE[2]\';\r\n $be .= \'\r\n REX_VALUE[2]\';\r\n }\r\n\r\n $fe .= \'\r\n
\';\r\n\r\n foreach ($imagelist as $file) {\r\n $media = rex_media::get($file);\r\n if ($media instanceof rex_media) {\r\n\r\n $mediatitle = $media->getValue(\'title\');\r\n $mediadesc = str_replace(array(\"\\r\\n\", \"\\n\", \"\\r\"), \' \', $media->getValue(\'med_description\' . $languageSuffix));\r\n $medialink = $media->getValue(\'med_gallery_link\');\r\n\r\n $fe .= \'\r\n
\r\n
\r\n \"\'.$mediadesc.\'\"\r\n
\r\n
\';\r\n\r\n if ($mediadesc != \'\' && $this->getTemplateId() == 1) {\r\n // Nur im Einspalter Bildtexte anzeoigen, da Bilder ansonsten zu klein\r\n $fe .= \'\r\n

\'.$mediadesc.\'

\';\r\n }\r\n\r\n $fe .= \'\r\n \';\r\n\r\n if ($medialink != \'\') {\r\n $fe .= \'\r\n \';\r\n }\r\n\r\n $fe .= \'\r\n
\r\n
\r\n
\r\n
\';\r\n\r\n $be .= \'\r\n \"\'.$mediadesc.\'\"\';\r\n\r\n }\r\n }\r\n\r\n $fe .= \'\r\n
\r\n
\';\r\n\r\n}\r\n\r\n// Different output for frontend and backend\r\nif (rex::isBackend()) {\r\n echo $be;\r\n} else {\r\n echo $fe;\r\n}\r\n?>','\r\n\r\n
\r\n Galerie\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \'2. Ebene\',\r\n \'h3\'=>\'3. Ebene\'\r\n );\r\n ?>\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n REX_MEDIALIST[id=\"1\" widget=\"1\"]\r\n
\r\n
\r\n\r\n getTemplateId() == 1) {\r\n ?>\r\n
\r\n \r\n
\r\n \'Contentbreite\',\r\n \'full\'=>\'volle Beite\'\r\n );\r\n ?>\r\n \r\n
\r\n
\r\n \r\n\r\n
\r\n \r\n
\r\n \'Rahmen zwischen Bildern\',\r\n \'frameless\'=>\'ohne Rahmen\'\r\n );\r\n ?>\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \'keiner\',\r\n \'mt\'=>\'oberhalb\',\r\n \'mb\'=>\'unterhalb\',\r\n \'mtb\'=>\'ober- und unterhalb\'\r\n );\r\n ?>\r\n \r\n
\r\n
\r\n\r\n
\r\n\r\n

Bilder in der Medienkategorie \"Fotos\" (ID 1) haben ein zusätzliches Linkfeld.

\r\n','2015-12-01 10:23:20','admin','2022-01-04 11:19:15','admin','',0), (7,NULL,'07 . Akkordeon / Tabs (Eingabe)',' \'REX_VALUE[2]\', \'text\' => \'REX_VALUE[1]\'];\r\n rex::getProperty(\'tabs\')->append($items);\r\n// Im Backend wird der Inhalt als Info für den Redakteur angezeigt\r\n} else {\r\n if (\'REX_VALUE[id=2 isset=1]\') {\r\n echo \'

REX_VALUE[2]

\';\r\n }\r\n if (\'REX_VALUE[id=1 isset=1]\') {\r\n echo \'

REX_VALUE[1]

\';\r\n }\r\n}\r\n?>\r\n','\r\n\r\n
\r\n Tabs Eingabe\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n','2015-12-01 10:23:53','admin','2016-06-02 12:30:53','admin','',0), - (8,NULL,'08 . Akkordeon Tabs (Ausgabe)','getArrayCopy();\r\n\r\n $tabs_title = \'\';\r\n $tabs_text = \'\';\r\n $tabs_out = \'\';\r\n $counter = 1;\r\n\r\n $title_style = \'title\';\r\n $content_style = \'content\';\r\n if (\"REX_VALUE[1]\" == \'tt\' || \"REX_VALUE[1]\" == \'vt\' || \"REX_VALUE[1]\" == \'bt\') {\r\n $title_style = \'tab-title\';\r\n $content_style = \'tab-content\';\r\n }\r\n $one_open = (\"REX_VALUE[3]\" == \'one-open\') ? \" one-open\" : \"\";\r\n\r\n foreach ($items as $item) {\r\n\r\n if (! isset($item[\'title\'])) { $item[\'title\'] = \'\'; };\r\n if (! isset($item[\'text\'])) { $item[\'text\'] = \'\'; };\r\n\r\n $active_title = \'\';\r\n $active_text = \'\';\r\n\r\n $tabs_title = $item[\'title\'];\r\n $tabs_text = $item[\'text\'];\r\n\r\n if ($tabs_title != \'\' && $tabs_text != \'\') {\r\n if ($counter == 1) $active_title = \' class=\"active\"\';\r\n\r\n $textile = markitup::parseOutput(\'textile\', $tabs_text);\r\n $textile = str_replace(array(\'\', \'\', \'->\'), array(\'\', \'\', \'->\'), $textile);\r\n\r\n $tabs_out .= \'\r\n \r\n
\r\n \'.$tabs_title.\'\r\n
\r\n
\'.$textile.\'
\r\n \';\r\n }\r\n\r\n $counter++;\r\n\r\n }\r\n ?>\r\n\r\n
getTemplateId() == 1) echo \'container clearfix \'; ?>tabs\">\r\n
\r\n
\r\n\r\n REX_VALUE[2]\';\r\n }\r\n\r\n if (\"REX_VALUE[1]\" == \'tt\') { // Text-Tabs\r\n echo \'\r\n
\';\r\n\r\n } elseif (\"REX_VALUE[1]\" == \'vt\') { // Vertikale Tabs\r\n echo \'\r\n
\';\r\n\r\n } elseif (\"REX_VALUE[1]\" == \'bt\') { // Button-Tabs\r\n echo \'\r\n
\';\r\n }\r\n\r\n if (\"REX_VALUE[1]\" == \'ta\') { // Text-Accordions\r\n\r\n echo \'\r\n
    \'.\r\n $tabs_out.\'\r\n
\';\r\n\r\n } elseif (\"REX_VALUE[1]\" == \'ba\') { // Button-Accordions\r\n\r\n echo \'\r\n
    \'.\r\n $tabs_out.\'\r\n
\';\r\n\r\n } else {\r\n\r\n echo \'\r\n
    \'.\r\n $tabs_out.\'\r\n
\';\r\n\r\n }\r\n\r\n if (\"REX_VALUE[1]\" == \'tt\' || \"REX_VALUE[1]\" == \'vt\' || \"REX_VALUE[1]\" == \'bt\') {\r\n echo \'\r\n
\';\r\n }\r\n ?>\r\n\r\n
\r\n
\r\n
\r\n\r\n\r\n Output only in frontend

\';\r\n}\r\n?>\r\n','\r\n\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \'Button-Akkordeons\',\r\n \'ta\'=>\'Text-Akkordeons\',\r\n \'bt\'=>\'Button-Tabs\',\r\n \'vt\' => \'Vertikale Tabs\',\r\n \'tt\' => \'Text-Tabs\'\r\n );\r\n ?>\r\n \r\n
\r\n
\r\n\r\n \r\n
\r\n','2015-12-01 10:24:18','admin','2016-10-18 15:50:15','decaf','',0), + (8,NULL,'08 . Akkordeon Tabs (Ausgabe)','getArrayCopy();\r\n rex::setProperty(\'tabs\', new ArrayIterator());\r\n\r\n $tabs_title = \'\';\r\n $tabs_text = \'\';\r\n $tabs_out = \'\';\r\n $counter = 1;\r\n\r\n $title_style = \'title\';\r\n $content_style = \'content\';\r\n if (\"REX_VALUE[1]\" == \'tt\' || \"REX_VALUE[1]\" == \'vt\' || \"REX_VALUE[1]\" == \'bt\') {\r\n $title_style = \'tab-title\';\r\n $content_style = \'tab-content\';\r\n }\r\n $one_open = (\"REX_VALUE[3]\" == \'one-open\') ? \" one-open\" : \"\";\r\n\r\n foreach ($items as $item) {\r\n\r\n if (! isset($item[\'title\'])) { $item[\'title\'] = \'\'; };\r\n if (! isset($item[\'text\'])) { $item[\'text\'] = \'\'; };\r\n\r\n $active_title = \'\';\r\n $active_text = \'\';\r\n\r\n $tabs_title = $item[\'title\'];\r\n $tabs_text = $item[\'text\'];\r\n\r\n if ($tabs_title != \'\' && $tabs_text != \'\') {\r\n if ($counter == 1) $active_title = \' class=\"active\"\';\r\n\r\n $textile = markitup::parseOutput(\'textile\', $tabs_text);\r\n $textile = str_replace(array(\'\', \'\', \'->\'), array(\'\', \'\', \'->\'), $textile);\r\n\r\n $tabs_out .= \'\r\n \r\n
\r\n \'.$tabs_title.\'\r\n
\r\n
\'.$textile.\'
\r\n \';\r\n }\r\n\r\n $counter++;\r\n\r\n }\r\n ?>\r\n\r\n
getTemplateId() == 1) echo \'container clearfix \'; ?>tabs\">\r\n
\r\n
\r\n\r\n REX_VALUE[2]\';\r\n }\r\n\r\n if (\"REX_VALUE[1]\" == \'tt\') { // Text-Tabs\r\n echo \'\r\n
\';\r\n\r\n } elseif (\"REX_VALUE[1]\" == \'vt\') { // Vertikale Tabs\r\n echo \'\r\n
\';\r\n\r\n } elseif (\"REX_VALUE[1]\" == \'bt\') { // Button-Tabs\r\n echo \'\r\n
\';\r\n }\r\n\r\n if (\"REX_VALUE[1]\" == \'ta\') { // Text-Accordions\r\n\r\n echo \'\r\n
    \'.\r\n $tabs_out.\'\r\n
\';\r\n\r\n } elseif (\"REX_VALUE[1]\" == \'ba\') { // Button-Accordions\r\n\r\n echo \'\r\n
    \'.\r\n $tabs_out.\'\r\n
\';\r\n\r\n } else {\r\n\r\n echo \'\r\n
    \'.\r\n $tabs_out.\'\r\n
\';\r\n\r\n }\r\n\r\n if (\"REX_VALUE[1]\" == \'tt\' || \"REX_VALUE[1]\" == \'vt\' || \"REX_VALUE[1]\" == \'bt\') {\r\n echo \'\r\n
\';\r\n }\r\n ?>\r\n\r\n
\r\n
\r\n
\r\n\r\n\r\n Output only in frontend

\';\r\n}\r\n?>\r\n','\r\n\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \'Button-Akkordeons\',\r\n \'ta\'=>\'Text-Akkordeons\',\r\n \'bt\'=>\'Button-Tabs\',\r\n \'vt\' => \'Vertikale Tabs\',\r\n \'tt\' => \'Text-Tabs\'\r\n );\r\n ?>\r\n \r\n
\r\n
\r\n\r\n \r\n
\r\n','2015-12-01 10:24:18','admin','2016-10-18 15:50:15','decaf','',0), (9,NULL,'09 . Downloads','\r\n
getTemplateId() == 1) {\r\n echo \' container\';\r\n }\r\n if (\"REX_VALUE[19]\" != \'\') {\r\n echo \' REX_VALUE[19]\';\r\n }\r\n echo \'\">\';\r\n\r\n if (\"REX_VALUE[17]\" == \'vd\') {\r\n echo \'\r\n
\r\n
\';\r\n }\r\n\r\n if (\"REX_VALUE[2]\" != \'\') {\r\n echo \'\r\n

REX_VALUE[2]

\';\r\n }\r\n\r\n if (\"REX_MEDIALIST[1]\" != \'\') {\r\n\r\n // Find out file size\r\n if (!function_exists(\'datei_groesse\')) {\r\n function datei_groesse($URL) {\r\n\r\n $groesse = filesize($URL);\r\n if($groesse<1000) {\r\n return number_format($groesse, 0, \",\", \".\").\" Bytes\";\r\n }\r\n elseif($groesse<1000000) {\r\n return number_format($groesse/1024, 0, \",\", \".\").\" kB\";\r\n } else {\r\n return number_format($groesse/1048576, 0, \",\", \".\").\" MB\";\r\n }\r\n }\r\n }\r\n\r\n // Find out icon\r\n if (!function_exists(\'parse_icon\')) {\r\n function parse_icon($ext) {\r\n switch (strtolower($ext)) {\r\n case \'doc\': return \'\';\r\n case \'pdf\': return \'\';\r\n case \'zip\': return \'\';\r\n // please add your own settings, e.g. with icons of Font-Awesome\r\n default:\r\n return \'\';\r\n }\r\n }\r\n }\r\n\r\n\r\n $languageSuffix = \'\';\r\n if (rex_clang::getCurrentId() == 2) {\r\n $languageSuffix = \'_en\';\r\n }\r\n\r\n $arr = explode(\",\",\"REX_MEDIALIST[1]\");\r\n foreach ($arr as $value) {\r\n\r\n $extension = substr(strrchr($value, \'.\'), 1);\r\n $parsed_icon = parse_icon($extension);\r\n $media = rex_media::get($value);\r\n $file_desc = $media->getValue(\'med_description\' . $languageSuffix);\r\n\r\n echo \'\r\n

clang, array (\'file\' => $value) ).\'\">\'.$parsed_icon;\r\n\r\n // Description as linktext, if there is one. Otherwise filename\r\n if ($file_desc != \"\") {\r\n echo $file_desc;\r\n } else {\r\n echo $value;\r\n }\r\n\r\n echo \' (\'.datei_groesse(rex_path::media($value)).\')

\';\r\n\r\n }\r\n }\r\n\r\n if (\"REX_VALUE[18]\"== \'true\'){\r\n echo \'\r\n
\';\r\n }\r\n\r\n if (\"REX_VALUE[17]\" == \'vd\') {\r\n echo \'\r\n
\r\n
\';\r\n }\r\n echo \'\r\n
\r\n
\';\r\n?>','\r\n\r\n
\r\n Downloads\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n REX_MEDIALIST[id=\"1\" widget=\"1\"]\r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \'keine\',\r\n \'vd\'=>\'ja\'\r\n );\r\n ?>\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \'keiner\',\r\n \'mt\'=>\'oberhalb\',\r\n \'mb\'=>\'unterhalb\',\r\n \'mtb\'=>\'ober- und unterhalb\'\r\n );\r\n ?>\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \'nein\',\r\n \'true\'=>\'ja\'\r\n );\r\n ?>\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \'weiß\',\r\n \'true\'=>\'grau\'\r\n );\r\n ?>\r\n \r\n
\r\n
\r\n\r\n
','2015-12-01 10:24:45','admin','2017-09-20 12:07:46','admin','',0), (10,NULL,'11 . Code','\r\n
getTemplateId() == 1) echo \'container clearfix \'; ?>full\">\r\n
\r\nREX_VALUE[1]\r\n
\r\n
\r\n','\r\n\r\n
\r\n Code\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \'keiner\',\r\n \'mt\'=>\'oberhalb\',\r\n \'mb\'=>\'unterhalb\',\r\n \'mtb\'=>\'ober- und unterhalb\'\r\n );\r\n ?>\r\n \r\n
\r\n
\r\n\r\n
\r\n','2015-12-01 10:25:30','admin','2016-03-19 12:40:37','admin','',0), (11,NULL,'12 . Text Seitenspalte','
\">\r\n\r\n REX_VALUE[1]\';\r\n }\r\n\r\n if (\'REX_VALUE[id=3 isset=1]\') {\r\n $textile = markitup::parseOutput(\'textile\', \'REX_VALUE[id=3 output=\"html\"]\');\r\n echo str_replace(array(\'\', \'\'), array(\'\', \'\'), $textile);\r\n }\r\n\r\n if (\"REX_VALUE[18]\"== \'true\'){\r\n echo \'\r\n
\';\r\n }\r\n\r\n ?>\r\n
\r\n\r\n
\r\n','\r\n\r\n
\r\n Text\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \'2. Ebene\',\r\n \'h3\'=>\'3. Ebene\'\r\n );\r\n ?>\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \'keiner\',\r\n \'mt\'=>\'oberhalb\',\r\n \'mb\'=>\'unterhalb\',\r\n \'mtb\'=>\'ober- und unterhalb\'\r\n );\r\n ?>\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \'nein\',\r\n \'true\'=>\'ja\'\r\n );\r\n ?>\r\n \r\n
\r\n
\r\n\r\n
\r\n','2015-12-01 10:26:10','admin','2016-10-18 15:50:15','decaf','',0), - (12,NULL,'30 . PHP','REX_VALUE[output=php]','\r\n\r\n
\r\n PHP\r\n\r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n
','2015-12-01 10:26:37','admin','2017-09-20 10:59:04','admin','',0), + (12,NULL,'30 . PHP','REX_VALUE[id=1 output=php]','\r\n\r\n
\r\n PHP\r\n\r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n
','2015-12-01 10:26:37','admin','2017-09-20 10:59:04','admin','',0), (13,NULL,'15 . Footer Text','
\r\n REX_VALUE[1]\r\n
\';\r\n }\r\n\r\n if (\'REX_VALUE[id=2 isset=1]\') {\r\n echo markitup::parseOutput(\'textile\', \'REX_VALUE[id=2 output=\"html\"]\');\r\n }\r\n ?>\r\n
\r\n','\r\n\r\n
\r\n Text\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n','2015-12-14 10:15:16','admin','2016-10-18 15:50:15','decaf','',0), (14,NULL,'16 . Footer Social Links','
\r\n REX_VALUE[1]\r\n
\';\r\n }\r\n\r\n echo \'\r\n

\';\r\n\r\n if (\'REX_VALUE[id=2 isset=1]\') {\r\n echo \'\r\n

\r\n Facebook\r\n

\';\r\n }\r\n\r\n if (\'REX_VALUE[id=3 isset=1]\') {\r\n echo \'\r\n

\r\n Twitter\r\n

\';\r\n }\r\n\r\n if (\'REX_VALUE[id=4 isset=1]\') {\r\n echo \'\r\n

\r\n GitHub\r\n

\';\r\n }\r\n\r\n echo \'\r\n

\';\r\n ?>\r\n
\r\n','\r\n\r\n
\r\n Text\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n','2015-12-14 10:15:33','admin','2017-08-17 17:20:02','admin','',0), (15,NULL,'17 . Footer Links','
\r\n REX_VALUE[1]\r\n
\';\r\n }\r\n\r\n if (\'REX_LINKLIST[1]\' != \'\') {\r\n echo \'\';\r\n }\r\n ?>\r\n
\r\n','\r\n\r\n
\r\n Text\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n REX_LINKLIST[id=\"1\" widget=\"1\"]\r\n
\r\n
\r\n\r\n
\r\n','2015-12-14 10:15:46','admin','2017-08-18 11:25:49','admin','',0),