Skip to content
Snippets Groups Projects
Commit 0a871cca authored by Ghislain Loas's avatar Ghislain Loas
Browse files

dev #25821 add skin_head.phtml for mobile module + allow widget to use all templates

parent 80dca633
Branches
Tags
2 merge requests!948Dev #25821 skin mobile,!927Dev #25821 skin mobile
......@@ -32,7 +32,9 @@ if ($this->profil->hasHeaderCss())
if ($this->profil->hasHeaderJs())
$head_scripts->addJQueryReady('$.getScript("'.$this->profil->getHeaderJs().'")');
$script_loader = Class_ScriptLoader::getInstance()->beMobile();
echo $this->partial('skin_head.phtml', ['profil' => $this->profil]);
$script_loader = Class_ScriptLoader::getInstance()->beMobile();
$head_scripts->renderStyleSheets();
$script_loader->renderStyleSheets();
......
<?php
// A surcharger par skin si besoin est
?>
......@@ -16,7 +16,7 @@
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with BOKEH; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
......@@ -52,7 +52,7 @@ class Class_Profil_Skin {
$path = self::DEFAULT_PATH . $this->_name . '/';
if ($this->fileExists('.' . $path))
return $path;
return self::DEFAULT_PATH . self::DEFAULT_SKIN . '/';
}
......@@ -80,7 +80,7 @@ class Class_Profil_Skin {
public function getImageUrl($img) {
return ($this->imageExists($img)
return ($this->imageExists($img)
? $this->getUrl() . self::IMAGE_DIR : URL_SHARED_IMG) . '/' . $img;
}
......@@ -101,9 +101,7 @@ class Class_Profil_Skin {
public function getTemplatesPath() {
return '.'
. (($this->_is_telephone) ? self::PHONE_PATH : $this->getPath())
. 'templates/';
return '.' . $this->getPath() . 'templates/';
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment