summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2017-03-25 13:26:44 -0400
committerAnthony G. Basile <blueness@gentoo.org>2017-03-25 13:26:51 -0400
commite3ad53d7999e6002933959f97e3d5bee89009a83 (patch)
treea7c77d19deb88622cd863a78e14e21618b093a0d /plugins/wordpress-mobile-pack/admin/class-admin-init.php
parentJetpack version 4.7.1 (diff)
downloadblogs-gentoo-e3ad53d7999e6002933959f97e3d5bee89009a83.tar.gz
blogs-gentoo-e3ad53d7999e6002933959f97e3d5bee89009a83.tar.bz2
blogs-gentoo-e3ad53d7999e6002933959f97e3d5bee89009a83.zip
Update plugin wordpress-mobile-pack 2.2.9
Diffstat (limited to 'plugins/wordpress-mobile-pack/admin/class-admin-init.php')
-rwxr-xr-xplugins/wordpress-mobile-pack/admin/class-admin-init.php33
1 files changed, 7 insertions, 26 deletions
diff --git a/plugins/wordpress-mobile-pack/admin/class-admin-init.php b/plugins/wordpress-mobile-pack/admin/class-admin-init.php
index e85f61b2..2e374f05 100755
--- a/plugins/wordpress-mobile-pack/admin/class-admin-init.php
+++ b/plugins/wordpress-mobile-pack/admin/class-admin-init.php
@@ -104,15 +104,6 @@ if ( ! class_exists( 'WMobilePack_Admin_Init' ) ) {
/**
- *
- * The oldest Wordpress version that will enable the custom select
- * @var float
- */
- public static $customselect_enable = 3.6;
-
-
-
- /**
* Class constructor
*
* Init admin menu and enqueue general Javascript & CSS files
@@ -210,13 +201,8 @@ if ( ! class_exists( 'WMobilePack_Admin_Init' ) ) {
wp_enqueue_style(WMobilePack_Options::$prefix.'css_general', plugins_url(WMP_DOMAIN.'/admin/css/general.css'), array(), WMP_VERSION);
// enqueue scripts
- $blog_version = floatval(get_bloginfo('version'));
- if ($blog_version < 3.6)
- $dependencies = array('jquery');
- else
- $dependencies = array('jquery-core', 'jquery-migrate');
+ $dependencies = array('jquery-core', 'jquery-migrate');
- // enqueue scripts
wp_enqueue_script(WMobilePack_Options::$prefix.'js_validate', plugins_url(WMP_DOMAIN.'/admin/js/UI.Interface/Lib/jquery.validate.min.js'), $dependencies, '1.11.1');
wp_enqueue_script(WMobilePack_Options::$prefix.'js_validate_additional', plugins_url(WMP_DOMAIN.'/admin/js/UI.Interface/Lib/validate-additional-methods.min.js'), $dependencies, '1.11.1');
wp_enqueue_script(WMobilePack_Options::$prefix.'js_loader', plugins_url(WMP_DOMAIN.'/admin/js/UI.Interface/Loader.min.js'), $dependencies, WMP_VERSION);
@@ -255,18 +241,13 @@ if ( ! class_exists( 'WMobilePack_Admin_Init' ) ) {
public function wmp_admin_load_theme_settings_js()
{
- $blog_version = floatval(get_bloginfo('version'));
-
- // activate custom select for newer wp versions
- if ($blog_version >= self::$customselect_enable) {
+ wp_enqueue_style(WMobilePack_Options::$prefix.'css_select_box_it', plugins_url(WMP_DOMAIN.'/admin/css/jquery.selectBoxIt.css'), array(), '3.8.1');
+ wp_enqueue_script(WMobilePack_Options::$prefix.'js_select_box_it', plugins_url(WMP_DOMAIN.'/admin/js/UI.Interface/Lib/jquery.selectBoxIt.min.js'), array('jquery','jquery-ui-core', 'jquery-ui-widget'), '3.8.1');
- wp_enqueue_style(WMobilePack_Options::$prefix.'css_select_box_it', plugins_url(WMP_DOMAIN.'/admin/css/jquery.selectBoxIt.css'), array(), '3.8.1');
- wp_enqueue_script(WMobilePack_Options::$prefix.'js_select_box_it', plugins_url(WMP_DOMAIN.'/admin/js/UI.Interface/Lib/jquery.selectBoxIt.min.js'), array('jquery','jquery-ui-core', 'jquery-ui-widget'), '3.8.1');
-
- $allowed_fonts = WMobilePack_Themes_Config::$allowed_fonts;
- foreach ($allowed_fonts as $key => $font_family)
- wp_enqueue_style(WMobilePack_Options::$prefix.'css_font'.($key+1), plugins_url(WMP_DOMAIN.'/frontend/fonts/font-'.($key+1).'.css'), array(), WMP_VERSION);
- }
+ $allowed_fonts = WMobilePack_Themes_Config::$allowed_fonts;
+ foreach ($allowed_fonts as $key => $font_family) {
+ wp_enqueue_style(WMobilePack_Options::$prefix.'css_font'.($key+1), plugins_url(WMP_DOMAIN.'/frontend/fonts/font-'.($key+1).'.css'), array(), WMP_VERSION);
+ }
wp_enqueue_style('wp-color-picker');