function sr_beta_show_console() { //Constants for the arrow indicators define('SR_IMG_UP_GREEN', 'fa fa-angle-double-up icon_cumm_indicator_green'); define('SR_IMG_UP_RED', 'fa fa-angle-double-up icon_cumm_indicator_red'); define('SR_IMG_DOWN_RED', 'fa fa-angle-double-down icon_cumm_indicator_red'); //Constant for DatePicker Icon define('SR_IMG_DATE_PICKER', SR_IMG_URL . 'calendar-blue.gif'); define("SR_BETA", "true"); $base_path = WP_PLUGIN_DIR . '/' . str_replace(basename(__FILE__), "", plugin_basename(__FILE__)) . 'sr/'; if (file_exists($base_path . 'json-woo.php')) { include_once $base_path . 'json-woo.php'; $sr_daily_widget_data = sr_get_daily_kpi_data(SR_NONCE); define("sr_daily_widget_data", $sr_daily_widget_data); } sr_console_common(); }
function sr_show_console() { wp_register_style('sr_ext_all', plugins_url('resources/css/ext-all.css', __FILE__), array(), $ext_version); wp_register_style('sr_main', plugins_url('/sr/smart-reporter.css', __FILE__), array('sr_ext_all'), $sr_plugin_info['Version']); //Enqueing the Scripts and StyleSheets wp_enqueue_script('sr_main'); wp_enqueue_style('sr_main'); sr_console_common(); }
function sr_show_console() { //Enqueing the Scripts and StyleSheets wp_enqueue_script('sr_main'); wp_enqueue_style('sr_main'); sr_console_common(); }