'; $html .= '
'; $html .= ' '; $html .= getLiveTemplate(); $html .= ''; $html .= ''; return $html; } add_shortcode('wp-icm-open-live', 'wp_icm_open_live_shortcode'); }; if (!function_exists('wp_icm_open_demo_shortcode')) { function wp_icm_open_demo_register_scripts_and_styles() { wp_register_style('bundle-style', WP_PLUGIN_URL . '/wp-icm-open-account/webpack/server/www/css/bundle.css', array(), $GLOBALS['version'], 'all'); wp_register_style('awesome-style', WP_PLUGIN_URL . '/wp-icm-open-account/webpack/server/www/css/font-awesome.min.css', array(), $GLOBALS['version'], 'all'); wp_register_style('jquery-style', WP_PLUGIN_URL . '/wp-icm-open-account/webpack/server/www/css/jquery.mCustomScrollbar.min.css', array(), $GLOBALS['version'], 'all'); wp_register_script('jquery-script', WP_PLUGIN_URL . '/wp-icm-open-account/webpack/server/www/js/jquery.js', array(), $GLOBALS['version'], 'all'); wp_register_script('mCustomScrollbar-script', WP_PLUGIN_URL . '/wp-icm-open-account/webpack/server/www/js/jquery.mCustomScrollbar.min.js', array(), $GLOBALS['version'], 'all'); wp_register_script('cookie-script', WP_PLUGIN_URL . '/wp-icm-open-account/webpack/server/www/js/js.cookie.min.js', array(), $GLOBALS['version'], 'all'); wp_register_script('parsley-script', WP_PLUGIN_URL . '/wp-icm-open-account/webpack/server/www/js/parsley.min.js', array(), $GLOBALS['version'], 'all'); wp_register_script('demo-script', WP_PLUGIN_URL . '/wp-icm-open-account/webpack/server/www/js/demo.js', array(), $GLOBALS['version'], 'all'); } add_action('wp_enqueue_scripts', 'wp_icm_open_demo_register_scripts_and_styles'); if (!defined('WP_PLUGIN_URL')) { define('WP_PLUGIN_URL', plugins_url()); } function wp_icm_open_demo_enqueue_scripts_and_styles() { wp_enqueue_style('bundle-style'); wp_enqueue_style('awesome-style'); wp_enqueue_style('jquery-style'); wp_enqueue_script('jquery-script'); wp_enqueue_script('mCustomScrollbar-script'); wp_enqueue_script('cookie-script'); wp_enqueue_script('parsley-script'); wp_enqueue_script('demo-script'); } function wp_icm_open_demo_shortcode() { $www = ABSPATH . '/wp-content/plugins/wp-icm-open-account/webpack/server/www'; wp_icm_open_demo_enqueue_scripts_and_styles(); include $www . '/demo.php'; do_shortcode("[ml] [/ml]"); // init multilingual $lang = $GLOBALS['WP_ICM_MULTILINGUAL_CURRENT_LANGUAGE']; $html = ''; $html .= '