PluginProbe
Easy Bootstrap Shortcode / 2.5
Easy Bootstrap Shortcode v2.5
trunk 2.4.0 2.5 3.4 3.5 3.6 3.7 4.0.0 4.4 4.5 4.5.4 5.0.0 5.0.1 5.0.2
easy-bootstrap-shortcodes / filters.php

filters.php in Easy Bootstrap Shortcode 2.5, at filters.php

94 lines 3.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /****************************************************************
3 * Write these filter into your theme's functions.php to make plugin
4 * compatible to your theme, You can use all of selective filters
5 * according to your need.
6 *****************************************************************/
7
8 /*
9 * Filter for Custom options
10 */
11 function apply_ebs_custom_option( $prevent ) {
12 return true;
13 }
14 add_filter( 'ebs_custom_option', 'apply_ebs_custom_option' );
15
16
17
18 /*
19 *Filter for bootstrap_admin.css
20 */
21 function apply_ebs_custom_bootstrap_admin_css( $prevent ) {
22 return true;
23 }
24 add_filter( 'ebs_custom_bootstrap_admin_css', 'apply_ebs_custom_bootstrap_admin_css' );
25
26
27 /*
28 * Filter for bootstrap.min.js url this filter is only applicable if you selected js inclusion from plugin in EBS Settings
29 */
30
31 function apply_ebs_bootstrap_js_url( $url ) {
32 $ebs_js_url='';// write your desired bootstrap.min.js url here
33 return $ebs_js_url;
34 }
35 add_filter( 'ebs_bootstrap_js_url', 'apply_ebs_bootstrap_js_url' );
36
37
38 /*
39 * Filter for bootstrap.min.js CDN path this filter is only applicable if you selected js inclusion from CDN in EBS Settings
40 */
41
42 function apply_ebs_bootstrap_js_cdn( $url ) {
43 $ebs_cdn_url='';// write your bootstrap.min.js cdn path here
44 return $ebs_cdn_url;
45 }
46 add_filter( 'ebs_bootstrap_js_cdn', 'apply_ebs_bootstrap_js_cdn' );
47
48 function apply_ebs_bootstrap_respond_url( $url ) {
49 $ebs_respond_url='';// write your desired bootstrap.min.js url here
50 return $ebs_respond_url;
51 }
52 add_filter( 'ebs_bootstrap_respond_url', 'apply_ebs_bootstrap_respond_url' );
53
54 /*
55 * Filter for respond.min.js CDN path this filter is only applicable if you selected js inclusion from CDN in EBS Settings
56 */
57
58 function apply_ebs_bootstrap_respond_cdn( $url ) {
59 $ebs_respond_cdn_url='';// write your bootstrap.min.js cdn path here
60 return $ebs_respond_cdn_url;
61 }
62 add_filter( 'ebs_bootstrap_respond_cdn', 'apply_ebs_bootstrap_respond_cdn' );
63
64 /*
65 * Filter for bootstrap.min.css urlthis filter is only applicable if you selected css inclusion from plugin in EBS Settings
66 */
67
68 function apply_ebs_bootstrap_css_url( $url ) {
69 $ebs_css_url='';// write your bootstrap.min.css url here
70 return $ebs_css_url;
71 }
72 add_filter( 'ebs_bootstrap_css_url', 'apply_ebs_bootstrap_css_url' );
73
74 /*
75 * Filter for custom bootstrap css when your theme is not a bootstrap theme. this filter is only applicable if you selected css inclusion option as 'no bootstrap theme'
76 */
77
78 function apply_ebs_no_bootstrap_theme_css_url( $url ) {
79 $ebs_nobs_css_url='';// write your custom bootstrap css url here
80 return $ebs_nobs_css_url;
81 }
82 add_filter( 'ebs_no_bootstrap_theme_css_url', 'apply_ebs_no_bootstrap_theme_css_url' );
83
84 /*
85 * Filter for bootstrap-icon.min.css url this filter is only applicable if you selected css inclusion from plugin or theme in EBS Settings
86 */
87
88 function apply_ebs_bootstrap_icon_css_url( $url ) {
89 $ebs_icon_url='';// write your bootstrap-icon.min.css url here
90 return $ebs_icon_url;
91 }
92 add_filter( 'ebs_bootstrap_icon_css_url', 'apply_ebs_bootstrap_icon_css_url' );
93 ?>
94