NAVIGATION
This shows you the differences between two versions of the page.
|
deutsch:module:shop:erweiterungen [2011/06/18 09:28] Knut Heermann (flip-flop) created |
deutsch:module:shop:erweiterungen [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 8: | Line 8: | ||
| - | Die Datei **/include/inc_module/mod_shop/frontend.render.php** wird um eine Zeile erweitert und das unten aufgeführte PHP-Script zu laden. | + | Die Datei **/include/inc_module/mod_shop/frontend.render.php** wird um eine Zeile erweitert um das unten aufgeführte PHP-Script zu laden. |
| - | am Ende der Datei frontend.render.php vor ##?>## bitte folgendes einfügen: | + | Am Ende der Datei **frontend.render.php** vor ##?>## bitte folgendes einfügen: |
| <code php> | <code php> | ||
| Line 18: | Line 18: | ||
| // ***************************************************************************** | // ***************************************************************************** | ||
| </code> | </code> | ||
| + | |||
| + | Nun werden die Anweisungen in der Datei **custom_fe_render.php** beim Rendern des Templates berücksichtigt. | ||
| \\ | \\ | ||
| ===== PHP-Script ===== | ===== PHP-Script ===== | ||
| + | |||
| + | **Datei:** /include/inc_module/mod_shop/custom_fe_render.php | ||
| <code php |h custom_fe_render.php |h> | <code php |h custom_fe_render.php |h> | ||
| Line 40: | Line 44: | ||
| if(strpos($content["all"],'<!--SHOP-BEGIN-->') !== false) { | if(strpos($content["all"],'<!--SHOP-BEGIN-->') !== false) { | ||
| preg_match('/\<!--SHOP-BEGIN--\>(.*?)\<!--SHOP-END--\>/is', $content['all'], $my_arr); | preg_match('/\<!--SHOP-BEGIN--\>(.*?)\<!--SHOP-END--\>/is', $content['all'], $my_arr); | ||
| - | // dumpVar($string); | ||
| if (!empty($my_arr[1])) { | if (!empty($my_arr[1])) { | ||
| Line 85: | Line 88: | ||
| ?> | ?> | ||
| </code> | </code> | ||
| + | |||
| + | \\ | ||
| + | Im o.g. Beispiel werden die TAGs | ||
| + | * {SHOW_CONTENT:...} | ||
| + | * [PHP]....[/PHP] | ||
| + | * Alle einfachen Ersetzer | ||
| + | * mailto: mit makeEmailSpamSave //(Voraussetzung: Das Script existiert in template/inc_script/frontend_render/*)// | ||
| + | * %%[img=...../]%% und %%[download=...../]%% | ||
| + | berücksichtigt. | ||
| \\ | \\ | ||