Пример #1
0
 private static function _vendor_plugin($register = true, $handle, $src_cdn, $deps, $ver, $footer_or_media, $is_script = true)
 {
     if (class_exists('AvadaRedux_VendorURL')) {
         $src = AvadaRedux_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>', 'avadaredux-framework'), 'https://github.com/avadareduxframework/avadaredux-vendor-support', admin_url('plugins.php')), 'id' => $handle . '23', 'dismiss' => false);
             self::$_set = true;
         }
     }
 }