Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added theme_url to BalCMS javascript helper.

  • Loading branch information...
commit 765ee3cfc4814ab05bf3b5512b62b8b984fe0369 1 parent b394404
Benjamin Lupton balupton authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/Bal/View/Helper/App.php
8 lib/Bal/View/Helper/App.php
View
@@ -365,6 +365,7 @@ public function headScript ( array $options = array() ) {
$public_url = $App->getPublicUrl();
$back_url = $App->getAreaUrl('back');
$front_url = $App->getAreaUrl('front');
+ $theme_url = $App->getThemeUrl();
$script_url = PUBLIC_SCRIPTS_URL;
# Modernizr
@@ -505,7 +506,12 @@ public function headScript ( array $options = array() ) {
// Configure
$root_url = $this->app()->getRootUrl();
$base_url = $this->app()->getBaseUrl();
- $headScript->offsetSetScript($script+1,'$.BalCMS.options.root_url = "'.$root_url.'"; $.BalCMS.options.base_url = "'.$base_url.'"; $.BalCMS.options.debug = '.(DEBUG_MODE ? 'true' : 'false').';');
+ $headScript->offsetSetScript($script+1,
+ '$.BalCMS.options.root_url = "'.$root_url.'";'.
+ '$.BalCMS.options.base_url = "'.$base_url.'";'.
+ '$.BalCMS.options.theme_url = "'.$theme_url.'";'.
+ '$.BalCMS.options.debug = '.(DEBUG_MODE ? 'true' : 'false').';'
+ );
}
# Theme
Please sign in to comment.
Something went wrong with that request. Please try again.