public function register_scripts()
 {
     $orchestrator = $this->plugin->component('Element_Orchestrator');
     // Register
     wp_register_script('cs-core', $this->plugin->js('admin/core'), array('backbone'), $this->plugin->version(), true);
     $definitions = cs_memoize('_cornerstone_element_definitions', array($orchestrator, 'getModels'), 15);
     wp_localize_script('cs-core', 'csCoreData', array('ajaxUrl' => $this->plugin->component('Router')->get_ajax_url(), 'fallbackAjaxUrl' => $this->plugin->component('Router')->get_fallback_ajax_url(), 'useLegacyAjax' => $this->plugin->component('Router')->use_legacy_ajax(), 'debug' => $this->plugin->common()->isDebug() ? 'true' : 'false', 'elementDefinitions' => $definitions, 'isRTL' => is_rtl() ? 'true' : 'false', 'strings' => array('test' => 'test'), 'unfilteredHTML' => current_user_can('unfiltered_html') ? 'true' : 'false'));
 }
 public function register_scripts()
 {
     Cornerstone_Huebert::init();
     $orchestrator = $this->plugin->component('Element_Orchestrator');
     // Register
     wp_register_script('cs-core', $this->plugin->js('admin/core'), array('backbone'), $this->plugin->version(), true);
     $definitions = cs_memoize('_cornerstone_element_definitions', array($orchestrator, 'getModels'), 15);
     $icon_maps = wp_parse_args(array('elements' => add_query_arg(array('v' => $this->plugin->version()), $this->plugin->url('assets/svg/dist/elements.svg')), 'interface' => add_query_arg(array('v' => $this->plugin->version()), $this->plugin->url('assets/svg/dist/interface.svg'))), apply_filters('cornerstone_icon_map', array()));
     wp_localize_script('cs-core', 'csCoreData', cs_booleanize(array('ajaxUrl' => $this->plugin->component('Router')->get_ajax_url(), 'fallbackAjaxUrl' => $this->plugin->component('Router')->get_fallback_ajax_url(), 'useLegacyAjax' => $this->plugin->component('Router')->use_legacy_ajax(), 'debug' => $this->plugin->common()->isDebug(), 'elementDefinitions' => $definitions, 'isRTL' => is_rtl(), 'strings' => array('test' => 'test'), 'unfilteredHTML' => current_user_can('unfiltered_html'), 'iconMaps' => $icon_maps)));
 }