| @@ -3,9 +3,9 @@ | ||
| 3 | 3 | * @package |
| 4 | 4 | * @category Core |
| 5 | 5 | * @author wpdevelop |
| 6 | 6 | * |
| 7 | - * @web-site http://oplugins.com/ | |
| 7 | + * @web-site https://oplugins.com/ | |
| 8 | 8 | * @email info@oplugins.com |
| 9 | 9 | * |
| 10 | 10 | * @modified 2013.10.16 |
| 11 | 11 | */ |
| @@ -50,18 +50,19 @@ | ||
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | |
| 53 | 53 | public function enqueue( $where_to_load ) { |
| 54 | - | |
| 55 | - wp_enqueue_style('wpdevelop-bts', wpbm_plugin_url( '/assets/libs/bootstrap/css/bootstrap.css' ), array(), '3.3.5.1'); | |
| 56 | - wp_enqueue_style('wpdevelop-bts-theme', wpbm_plugin_url( '/assets/libs/bootstrap/css/bootstrap-theme.css' ), array(), '3.3.5.1'); | |
| 57 | - | |
| 54 | + | |
| 55 | + if ( $where_to_load == 'admin' ) { | |
| 56 | + wp_enqueue_style( 'wpdevelop-bts', wpbm_plugin_url( '/assets/libs/bootstrap/css/bootstrap.css' ), array(), '3.3.5.1' ); | |
| 57 | + wp_enqueue_style( 'wpdevelop-bts-theme', wpbm_plugin_url( '/assets/libs/bootstrap/css/bootstrap-theme.css' ), array(), '3.3.5.1' ); | |
| 58 | + } | |
| 59 | + | |
| 58 | 60 | if ( $where_to_load == 'admin' ) { // Admin CSS files |
| 59 | 61 | |
| 60 | - wp_enqueue_style( 'wpbm-chosen', wpbm_plugin_url( '/assets/libs/chosen/chosen.css' ), array(), WPBM_VERSION_NUM); | |
| 62 | + //wp_enqueue_style( 'wpbm-chosen', wpbm_plugin_url( '/assets/libs/chosen/chosen.css' ), array(), WPBM_VERSION_NUM); | |
| 61 | 63 | wp_enqueue_style( 'wpbm-admin-support', wpbm_plugin_url( '/core/any/css/admin-support.css' ), array(), WPBM_VERSION_NUM); |
| 62 | 64 | wp_enqueue_style( 'wpbm-admin-menu', wpbm_plugin_url( '/core/any/css/admin-menu.css' ), array(), WPBM_VERSION_NUM); |
| 63 | - wp_enqueue_style( 'wpbm-admin-toolbar', wpbm_plugin_url( '/core/any/css/admin-toolbar.css' ), array(), WPBM_VERSION_NUM); | |
| 64 | 65 | wp_enqueue_style( 'wpbm-settings-page', wpbm_plugin_url( '/core/any/css/settings-page.css' ), array(), WPBM_VERSION_NUM); |
| 65 | 66 | wp_enqueue_style( 'wpbm-admin-listing-table', wpbm_plugin_url( '/core/any/css/admin-listing-table.css' ), array(), WPBM_VERSION_NUM); |
| 66 | 67 | wp_enqueue_style( 'wpbm-br-table', wpbm_plugin_url( '/core/any/css/admin-br-table.css' ), array(), WPBM_VERSION_NUM); |
| 67 | 68 | wp_enqueue_style( 'wpbm-admin-modal-popups', wpbm_plugin_url( '/css/modal.css' ), array(), WPBM_VERSION_NUM); |
| @@ -66,16 +67,34 @@ | ||
| 66 | 67 | wp_enqueue_style( 'wpbm-br-table', wpbm_plugin_url( '/core/any/css/admin-br-table.css' ), array(), WPBM_VERSION_NUM); |
| 67 | 68 | wp_enqueue_style( 'wpbm-admin-modal-popups', wpbm_plugin_url( '/css/modal.css' ), array(), WPBM_VERSION_NUM); |
| 68 | 69 | wp_enqueue_style( 'wpbm-admin-pages', wpbm_plugin_url( '/css/admin.css' ), array(), WPBM_VERSION_NUM); |
| 69 | 70 | wp_enqueue_style( 'wpbm-css-print', wpbm_plugin_url( '/css/print.css' ), array(), WPBM_VERSION_NUM); |
| 70 | - } | |
| 71 | + wp_enqueue_style( 'wpbm-admin-skin-modern_1', wpbm_plugin_url( '/css/admin-skin-modern_1.css' ), array( 'wpbm-admin-pages' ), WPBM_VERSION_NUM ); //FixIn: 2.0.3.1 9.5.5.1 | |
| 72 | + } | |
| 73 | + | |
| 74 | + global $wp_version; | |
| 75 | + /* FixIn: 2.0.13.1 */ | |
| 76 | + if ( ( version_compare( $wp_version, '5.3', '>=' ) ) | |
| 77 | + || ( version_compare( $wp_version, '5.3-RC2-46574', '>=' ) ) | |
| 78 | + ){ | |
| 79 | + /* The SVG is arrow-down-alt2 from Dashicons. */ | |
| 80 | + $css = " | |
| 81 | + .wp-core-ui .wpdevelop .control-group .btn-toolbar .input-group > select, | |
| 82 | + .wp-core-ui .wpdevelop select.form-control { | |
| 83 | + background: #fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat right 5px top 55%; | |
| 84 | + padding: 2px 30px 2px 10px; | |
| 85 | + } | |
| 86 | + "; | |
| 87 | + wp_add_inline_style( 'wpbm-admin-support', $css ); | |
| 88 | + } | |
| 89 | + | |
| 71 | 90 | if ( ( $where_to_load != 'admin' ) || ( wpbm_is_new_wpbm_page() ) ){ // Client or Add New item page |
| 72 | - wp_enqueue_style( 'wpbm-client-pages', wpbm_plugin_url( '/css/client.css' ), array(), WPBM_VERSION_NUM); | |
| 91 | + wp_enqueue_style( 'wpbm-client-pages', wpbm_plugin_url( '/css/client.css' ), array(), WPBM_VERSION_NUM); | |
| 73 | 92 | } |
| 74 | - if ( ( $where_to_load != 'admin' ) || ( wpbm_is_master_page() ) ){ | |
| 93 | + if ( /*( $where_to_load != 'admin' ) ||*/ ( wpbm_is_master_page() ) ){ | |
| 75 | 94 | wp_enqueue_style( 'wpbm-admin-popover', wpbm_plugin_url( '/css/popover.css' ), array(), WPBM_VERSION_NUM); |
| 76 | 95 | } |
| 77 | - wp_enqueue_style('wpbm-calendar', wpbm_plugin_url( '/css/calendar.css' ), array(), WPBM_VERSION_NUM); | |
| 96 | + //wp_enqueue_style('wpbm-calendar', wpbm_plugin_url( '/css/calendar.css' ), array(), WPBM_VERSION_NUM); //FixIn: 8.9.4.13 | |
| 78 | 97 | // Calendar Skins |
| 79 | 98 | |
| 80 | 99 | do_action( 'wpbm_enqueue_css_files', $where_to_load ); |
| 81 | 100 | } |