This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* Put this in modules/functions.php */ | |
| require_once __DIR__.'/../core/oxfunctions.php'; | |
| function gn2_autoload_shim($class) { (substr($class, -7) == "_parent") ? eval('class '.$class.' {}') : ""; } | |
| spl_autoload_register('gn2_autoload_shim'); | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class GroupIterator implements Iterator | |
| { | |
| protected $keyfunc; | |
| protected $iter; | |
| protected $key = null; | |
| protected $value = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if( "REX_VALUE[2]" != "" ) | |
| { | |
| // Im Backend den Link zur Quelle anzeigen | |
| if(rex::isBackend()) | |
| { | |
| $master = rex_article::get(REX_LINK[id=1 output=id]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <header> | |
| <h1>SITE TITLE</h1> | |
| <nav> | |
| <ul> | |
| <li><a href="#">HOME</a></li> | |
| <li><a href="#">ABOUT</a></li> | |
| <li><a href="#">SERVICES</a></li> | |
| <li><a href="#">CONTACT</a></li> | |
| </ul> | |
| </nav> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Function zur Generierung eines Navigationsarrays | |
| // Benötigt für den Aufruf werden nur $start,$depth und $ignoreoffline | |
| // Alle weiteren Angaben dienen der internen Verarbeitung | |
| // Alle weiteren Informationen aus rex_structure fintet man in catObject | |
| // DEMO siehe unten | |
| if (!function_exists('structureArray')) { | |
| function structureArray($start = 0, $depth = 0, $ignoreoffline = true, $depth_saved = 0, $level = 0, $id = 0) | |
| { | |
| $result = array(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if (rex::isFrontend() || rex_be_controller::getCurrentPage() == 'content/edit' && rex_request('function','string')!=='edit'){ | |
| rex_extension::register('OUTPUT_FILTER', static function ($ep) { | |
| $html = $ep->getSubject(); | |
| $pattern = '/(<figure[^>]*class="[^"]*image[^"]*"[^>]*style="[^"]*width:)(\d+)(%;[^"]*">)(.*?)(<\/figure>)/s'; | |
| $new_html = preg_replace_callback($pattern, function ($matches) { | |
| $width_map = [ | |
| '100' => 'uk-width-1-1', |
OlderNewer