Example #1
0
 private static function _vendor_plugin($register = true, $handle, $src_cdn, $deps, $ver, $footer_or_media, $is_script = true)
 {
     if (class_exists('Redux_VendorURL')) {
         $src = Redux_VendorURL::get_url($handle);
         if ($register) {
             self::_register($handle, $src, $deps, $ver, $footer_or_media, $is_script);
         } else {
             self::_enqueue($handle, $src, $deps, $ver, $footer_or_media, $is_script);
         }
     } else {
         if (!self::$_set) {
             self::$_parent->admin_notices[] = array('type' => 'error', 'msg' => sprintf(__('The <a href="%s">Vendor Support plugin</a> (or extension) is either not installed or not activated and thus, some controls may not render properly.  Please ensure that it is installed and <a href="%s">activated</a>', 'waxom'), 'https://github.com/reduxframework/redux-vendor-support', admin_url('plugins.php')), 'id' => $handle . '23', 'dismiss' => false);
             self::$_set = true;
         }
     }
 }
Example #2
0
 private static function _vendor_plugin($register = true, $handle, $src_cdn, $deps, $ver, $footer_or_media, $is_script = true)
 {
     if (class_exists('Redux_VendorSupport')) {
         $src = Redux_VendorURL::get_url($handle);
         if ($register) {
             self::_register($handle, $src, $deps, $ver, $footer_or_media, $is_script);
         } else {
             self::_enqueue($handle, $src, $deps, $ver, $footer_or_media, $is_script);
         }
     } else {
         if (!self::$_set) {
             self::$_parent->admin_notices[] = array('type' => 'error', 'msg' => '<strong>' . __('Redux Framework Warning', 'redux-framework') . '</strong><br/>' . sprintf(__('The Redux Vendor Support plugin is either not installed or not activated and thus, some controls may not render properly.  Please ensure the Redux Vendor Plugin is installed and <a href="%d">activated</a>.', 'redux-framework'), admin_url('plugins.php')), 'id' => $handle . '23', 'dismiss' => false);
             self::$_set = true;
         }
     }
 }