Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($this->getParam('addextracss',1) {
- $this->addCss ($name.'-responsive', false);
- }
- if ($this->getParam('addextracss',1) {
- $this->addStyleSheet($name.'-responsive');
- }
- function addStyleSheet($mask = '-responsive.css') {
- $path = $_SERVER['DOCUMENT_ROOT']."/путь к папке/"; // лучше вынести за метод
- foreach (glob($path.'/*'.$mask, GLOB_BRACE) as $file) {
- $this->addHead($file); // в $file к тебе приходит полный путь, уже смотри как тебе удобнее
- }
- }
- if ($this->getParam('addextracss',1) {
- $this->addStyleSheet();
- }
Add Comment
Please, Sign In to add comment