Guest User

Untitled

a guest
Jan 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. if ($this->getParam('addextracss',1) {
  2. $this->addCss ($name.'-responsive', false);
  3. }
  4.  
  5. if ($this->getParam('addextracss',1) {
  6. $this->addStyleSheet($name.'-responsive');
  7. }
  8.  
  9. function addStyleSheet($mask = '-responsive.css') {
  10. $path = $_SERVER['DOCUMENT_ROOT']."/путь к папке/"; // лучше вынести за метод
  11. foreach (glob($path.'/*'.$mask, GLOB_BRACE) as $file) {
  12. $this->addHead($file); // в $file к тебе приходит полный путь, уже смотри как тебе удобнее
  13. }
  14. }
  15.  
  16. if ($this->getParam('addextracss',1) {
  17. $this->addStyleSheet();
  18. }
Add Comment
Please, Sign In to add comment