@@ 497-499 (lines=3) @@ | ||
494 | } |
|
495 | //$this->addLanguage($type); |
|
496 | // Load theme localization stylesheet and scripts if available |
|
497 | if (\XoopsLoad::fileExists($this->path . '/locale/' . $language . '/script.js')) { |
|
498 | $jsAssets[] = $this->url . '/locale/' . $language . '/script.js'; |
|
499 | } |
|
500 | if (\XoopsLoad::fileExists($this->path . '/locale/' . $language . '/style.css')) { |
|
501 | $cssAssets[] = $this->path . '/locale/' . $language . '/style.css'; |
|
502 | } |
|
@@ 500-502 (lines=3) @@ | ||
497 | if (\XoopsLoad::fileExists($this->path . '/locale/' . $language . '/script.js')) { |
|
498 | $jsAssets[] = $this->url . '/locale/' . $language . '/script.js'; |
|
499 | } |
|
500 | if (\XoopsLoad::fileExists($this->path . '/locale/' . $language . '/style.css')) { |
|
501 | $cssAssets[] = $this->path . '/locale/' . $language . '/style.css'; |
|
502 | } |
|
503 | return array($cssAssets, $jsAssets); |
|
504 | } |
|
505 |