PluginProbe
Booking Manager – Sync WP Booking Calendar – Import Events, Export Bookings to ICS Calendar / trunk
Booking Manager – Sync WP Booking Calendar – Import Events, Export Bookings to ICS Calendar vtrunk
2.1.20 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 trunk 1.1 2.0 2.0.1 2.0.10.2 2.0.11 2.0.12 2.0.13 2.0.14 2.0.15 2.0.16 2.0.17 2.0.18 2.0.2 2.0.20 2.0.21 2.0.22 2.0.23 All 54 releases
booking-manager / core / wpbm-css.php

wpbm-css.php in Booking Manager – Sync WP Booking Calendar – Import Events, Export Bookings to ICS Calendar trunk, at core/wpbm-css.php

120 lines 6.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php /**
2 * @version 1.0
3 * @package
4 * @category Core
5 * @author wpdevelop
6 *
7 * @web-site https://oplugins.com/
8 * @email info@oplugins.com
9 *
10 * @modified 2013.10.16
11 */
12
13 class WPBM_CSS extends WPBM_JS_CSS{
14
15 public function define() {
16
17 $this->setType('css');
18
19 /*
20 // Exmaples of usage Font Avesome: http://fontawesome.io/icons/
21
22 $this->add( array(
23 'handle' => 'font-awesome',
24 'src' => WPBM_PLUGIN_URL . 'assets/libs/font-awesome-4.3.0/css/font-awesome.css' ,
25 'deps' => false,
26 'version' => '4.3.0',
27 'where_to_load' => array( 'admin' ),
28 'condition' => false
29 ) );
30
31 // Exmaples of usage Font Avesome 3.2.1 (benefits of this version - support IE7): http://fontawesome.io/3.2.1/examples/
32 $this->add( array(
33 'handle' => 'font-awesome',
34 'src' => WPBM_PLUGIN_URL . '/assets/libs/font-awesome/css/font-awesome.css' ,
35 'deps' => false,
36 'version' => '3.2.1',
37 'where_to_load' => array( 'admin' ),
38 'condition' => false
39 ) );
40 $this->add( array(
41 'handle' => 'font-awesome-ie7',
42 'src' => WPBM_PLUGIN_URL . '/assets/libs/font-awesome/css/font-awesome-ie7.css' ,
43 'deps' => array('font-awesome'),
44 'version' => '3.2.1',
45 'where_to_load' => array( 'admin' ),
46 'condition' => 'IE 7' // CSS condition. Exmaple: <!--[if IE 7]>
47 ) );
48 */
49
50 }
51
52
53 public function enqueue( $where_to_load ) {
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
60 if ( $where_to_load == 'admin' ) { // Admin CSS files
61
62 //wp_enqueue_style( 'wpbm-chosen', wpbm_plugin_url( '/assets/libs/chosen/chosen.css' ), array(), WPBM_VERSION_NUM);
63 wp_enqueue_style( 'wpbm-admin-support', wpbm_plugin_url( '/core/any/css/admin-support.css' ), array(), WPBM_VERSION_NUM);
64 wp_enqueue_style( 'wpbm-admin-menu', wpbm_plugin_url( '/core/any/css/admin-menu.css' ), array(), WPBM_VERSION_NUM);
65 wp_enqueue_style( 'wpbm-settings-page', wpbm_plugin_url( '/core/any/css/settings-page.css' ), array(), WPBM_VERSION_NUM);
66 wp_enqueue_style( 'wpbm-admin-listing-table', wpbm_plugin_url( '/core/any/css/admin-listing-table.css' ), array(), WPBM_VERSION_NUM);
67 wp_enqueue_style( 'wpbm-br-table', wpbm_plugin_url( '/core/any/css/admin-br-table.css' ), array(), WPBM_VERSION_NUM);
68 wp_enqueue_style( 'wpbm-admin-modal-popups', wpbm_plugin_url( '/css/modal.css' ), array(), WPBM_VERSION_NUM);
69 wp_enqueue_style( 'wpbm-admin-pages', wpbm_plugin_url( '/css/admin.css' ), array(), WPBM_VERSION_NUM);
70 wp_enqueue_style( 'wpbm-css-print', wpbm_plugin_url( '/css/print.css' ), array(), WPBM_VERSION_NUM);
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
90 if ( ( $where_to_load != 'admin' ) || ( wpbm_is_new_wpbm_page() ) ){ // Client or Add New item page
91 wp_enqueue_style( 'wpbm-client-pages', wpbm_plugin_url( '/css/client.css' ), array(), WPBM_VERSION_NUM);
92 }
93 if ( /*( $where_to_load != 'admin' ) ||*/ ( wpbm_is_master_page() ) ){
94 wp_enqueue_style( 'wpbm-admin-popover', wpbm_plugin_url( '/css/popover.css' ), array(), WPBM_VERSION_NUM);
95 }
96 //wp_enqueue_style('wpbm-calendar', wpbm_plugin_url( '/css/calendar.css' ), array(), WPBM_VERSION_NUM); //FixIn: 8.9.4.13
97 // Calendar Skins
98
99 do_action( 'wpbm_enqueue_css_files', $where_to_load );
100 }
101
102
103 public function remove_conflicts( $where_to_load ) {
104
105 if ( wpbm_is_master_page() ) {
106 if (function_exists('wp_dequeue_style')) {
107 /*
108 wp_dequeue_style( 'cs-alert' );
109 wp_dequeue_style( 'cs-framework' );
110 wp_dequeue_style( 'cs-font-awesome' );
111 wp_dequeue_style( 'icomoon' );
112 */
113 wp_dequeue_style( 'chosen');
114 wp_dequeue_style( 'toolset-font-awesome-css' ); // Remove this script sitepress-multilingual-cms/res/css/font-awesome.min.css?ver=3.1.6, which is load by the "sitepress-multilingual-cms"
115 wp_dequeue_style( 'toolset-font-awesome' ); //FixIn: 5.4.5.8
116
117 }
118 }
119 }
120 }