PluginProbe
Booking Manager – Sync WP Booking Calendar – Import Events, Export Bookings to ICS Calendar / 2.0
Booking Manager – Sync WP Booking Calendar – Import Events, Export Bookings to ICS Calendar v2.0
2.1.21 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 All 55 releases
booking-manager / core / wpbm-css.php

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

101 lines 5.9 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 http://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 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
58 if ( $where_to_load == 'admin' ) { // Admin CSS files
59
60 wp_enqueue_style( 'wpbm-chosen', wpbm_plugin_url( '/assets/libs/chosen/chosen.css' ), array(), WPBM_VERSION_NUM);
61 wp_enqueue_style( 'wpbm-admin-support', wpbm_plugin_url( '/core/any/css/admin-support.css' ), array(), WPBM_VERSION_NUM);
62 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 wp_enqueue_style( 'wpbm-settings-page', wpbm_plugin_url( '/core/any/css/settings-page.css' ), array(), WPBM_VERSION_NUM);
65 wp_enqueue_style( 'wpbm-admin-listing-table', wpbm_plugin_url( '/core/any/css/admin-listing-table.css' ), array(), WPBM_VERSION_NUM);
66 wp_enqueue_style( 'wpbm-br-table', wpbm_plugin_url( '/core/any/css/admin-br-table.css' ), array(), WPBM_VERSION_NUM);
67 wp_enqueue_style( 'wpbm-admin-modal-popups', wpbm_plugin_url( '/css/modal.css' ), array(), WPBM_VERSION_NUM);
68 wp_enqueue_style( 'wpbm-admin-pages', wpbm_plugin_url( '/css/admin.css' ), array(), WPBM_VERSION_NUM);
69 wp_enqueue_style( 'wpbm-css-print', wpbm_plugin_url( '/css/print.css' ), array(), WPBM_VERSION_NUM);
70 }
71 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);
73 }
74 if ( ( $where_to_load != 'admin' ) || ( wpbm_is_master_page() ) ){
75 wp_enqueue_style( 'wpbm-admin-popover', wpbm_plugin_url( '/css/popover.css' ), array(), WPBM_VERSION_NUM);
76 }
77 wp_enqueue_style('wpbm-calendar', wpbm_plugin_url( '/css/calendar.css' ), array(), WPBM_VERSION_NUM);
78 // Calendar Skins
79
80 do_action( 'wpbm_enqueue_css_files', $where_to_load );
81 }
82
83
84 public function remove_conflicts( $where_to_load ) {
85
86 if ( wpbm_is_master_page() ) {
87 if (function_exists('wp_dequeue_style')) {
88 /*
89 wp_dequeue_style( 'cs-alert' );
90 wp_dequeue_style( 'cs-framework' );
91 wp_dequeue_style( 'cs-font-awesome' );
92 wp_dequeue_style( 'icomoon' );
93 */
94 wp_dequeue_style( 'chosen');
95 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"
96 wp_dequeue_style( 'toolset-font-awesome' ); //FixIn: 5.4.5.8
97
98 }
99 }
100 }
101 }