solved Skin Directory

nate
@nate
8 years ago
917 posts
I wanna read the images of skins/MySkin/img/backgrounds/

Is there a jamroom function that returns the skin or skin image directory?
updated by @nate: 07/29/16 10:55:05PM
douglas
@douglas
8 years ago
2,790 posts
{$_conf.jrCore_active_skin}

Will get you the active skin directory.

This is used in skin CSS files, but I'm not sure its available in templates.

{$jrElastic_img_url}

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
nate
@nate
8 years ago
917 posts
It's not a template. Thanks.

PS. It would still work.
updated by @nate: 04/18/16 02:22:20PM
nate
@nate
8 years ago
917 posts
This only returns the directory name. I need the full path.
nate
@nate
8 years ago
917 posts
$dir = $_SERVER['DOCUMENT_ROOT'] . '/skins/' . $_conf['jrCore_active_skin'] . '/img/backgrounds/';

updated by @nate: 04/18/16 02:47:42PM
SteveX
SteveX
@ultrajam
8 years ago
2,584 posts
In php, try:
$_conf['jrCore_base_dir']
$_conf['jrCore_base_url']
If that doesn't work try globalling conf at the start of your function:
global $_conf;

In smarty:
$_conf.jrCore_base_url


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
brian
@brian
8 years ago
10,148 posts
In PHP:
$dir = APP_DIR . '/skins/' . $_conf['jrCore_active_skin'];

In Smarty:
{$jamroom_dir}/skins/{$_conf.jrCore_active_skin}

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
nate
@nate
8 years ago
917 posts
brian:
In PHP:
$dir = APP_DIR . '/skins/' . $_conf['jrCore_active_skin'];
In Smarty:
{$jamroom_dir}/skins/{$_conf.jrCore_active_skin}
Let me know if that helps.

Yes. Thanks.

Tags