Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Path in external JS
#6
Maybe not the best solution but you could try to declare a javascript variable just before loading the config.js and then pass that variable to prefix.
PHP Code:
#Set variable before loading the config.js (inside your template file)

var ThemeStyleAbsPath '<?php get_theme_url(); ?>';

#Pass variable to config.js

window._skel_config = {
    
preset'standard',
    
prefixThemeStyleAbsPath '/css/style',
    
resetCSStrue
}; 
Reply


Messages In This Thread
Path in external JS - by rpetges - 2013-08-18, 07:43:47
RE: Path variable in external JS - by Carlos - 2013-08-18, 17:42:56
RE: Path in external JS - by rpetges - 2013-08-18, 17:51:03
RE: Path in external JS - by Carlos - 2013-08-18, 18:17:24
RE: Path in external JS - by rpetges - 2013-08-19, 14:03:41
RE: Path in external JS - by Carlos - 2013-08-19, 16:39:43
RE: Path in external JS - by Kolyok - 2013-08-19, 15:45:55
RE: Path in external JS - by shawn_a - 2013-08-19, 23:08:07
RE: Path in external JS - by rpetges - 2013-08-23, 00:58:17



Users browsing this thread: 1 Guest(s)