Created
June 8, 2015 04:47
-
-
Save softsolution/76a4ddf9a34f37ba9104 to your computer and use it in GitHub Desktop.
This file contains 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 | |
//пример модуля, который не будет скрываться на страницах с роутами: | |
// /maps/events/edit([0-9]+).html - эти маршруты можно взять из файла router.php нужного компонента | |
// /maps/events/([0-9]+)/add.html | |
function mod_maps_events_slider($module_id) { | |
//выходим если это страница добавления и редактирования события объекта | |
if(preg_match('/^\/maps\/events\/edit([0-9]+).html$/i', $_SERVER['REQUEST_URI'])){ return false; } | |
if(preg_match('/^\/maps\/events\/([0-9]+)\/add.html$/i', $_SERVER['REQUEST_URI'])){ return false; } | |
//.... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment