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 / ebs_settings.php

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

120 lines 6.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <div class="ebs_page_settings">
2 <h1>Easy Bootstrap Shortcode Settings</h1><form name="ebs_setting" id="ebs_setting" method="post" action="">
3 <?php if(!apply_filters('plugin_oscitas_theme_check',false)){ ?><div class="ebs_details">
4 <label class="ebs_setting_label">Bootstrap JS File</label>
5 <p>
6 <input type="radio" name="b_js" id="b_js_plugin" class="check_cdn" value="1" <?php echo ($js == 1) ? 'checked=checked' : '' ?>>
7 <label for="b_js_plugin">Use from EBS Plugin</label>
8 <input type="radio" name="b_js" id="b_js_theme" class="check_cdn" value="2" <?php echo ($js == 2) ? 'checked=checked' : '' ?>><label for="b_js_theme">Use from theme or any other plugin</label>
9 <input type="radio" name="b_js" class="check_cdn" id="b_js_cdn" <?php echo ($js == 3) ? 'checked=checked' : '' ?> value="3"><label for="b_js_cdn">Load from CDN</label>
10 </div>
11 <div class="ebs_details show_cdn" ><label class="ebs_setting_label">bootstrap.js CDN Path</label>
12 <p><input type="text" name="cdn_path" id="cdn_path" value="<?php echo $cdn; ?>">
13 </p>
14 </div>
15 <div class="ebs_details">
16 <label class="ebs_setting_label">IE6+ compatibility JS File </label>
17 <p>
18 <input type="radio" name="respond_js" id="respond_js_plugin" class="respond_cdn" value="1" <?php echo ($respond == 1) ? 'checked=checked' : '' ?>>
19 <label for="respond_js_plugin">Use from EBS Plugin</label>
20 <input type="radio" name="respond_js" id="respond_js_theme" class="respond_cdn" value="2" <?php echo ($respond == 2) ? 'checked=checked' : '' ?>><label for="respond_js_theme">Use from theme or any other plugin</label>
21 <input type="radio" name="respond_js" class="respond_cdn" id="respond_js_cdn" <?php echo ($respond == 3) ? 'checked=checked' : '' ?> value="3"><label for="respond_js_cdn">Load from CDN</label>
22 </div>
23 <div class="ebs_details respond_show_cdn" ><label class="ebs_setting_label">respond.js CDN Path</label>
24 <p><input type="text" name="respond_cdn_path" id="respond_cdn_path" value="<?php echo $respondcdn; ?>">
25 </p>
26 </div>
27 <div class="ebs_details">
28
29 <label class="ebs_setting_label">Bootstrap Styling CSS File</label>
30 <p><input type="radio" name="b_css" id="b_css_plugin" value="1" <?php echo ($css == 1) ? 'checked=checked' : '' ?>>
31 <label for="b_css_plugin" >Use from EBS Plugin</label>
32 <input type="radio" name="b_css" id="b_css_theme" value="2" <?php echo ($css == 2) ? 'checked=checked' : '' ?>><label for="b_css_theme">Use from theme or any other plugin</label>
33 <input type="radio" name="b_css" id="b_css_nobs" value="3" <?php echo ($css == 3) ? 'checked=checked' : '' ?>><label for="b_css_nobs">No bootstrap theme<span class="notered">*</span></label>
34 <br/><small class="notered">* Choose this option if you don't have a bootstrap theme</small></p>
35 </div>
36 <?php } ?>
37 <div class="ebs_details">
38 <label class="ebs_setting_label">Editor Button Style</label>
39 <p>
40 <label for="ebsp_icon" class="ebs_editor_label" title="Icons"><input type="radio" name="ebsp_editor_opt" id="ebsp_icon" value="icon" <?php echo ($ebsp_editor_opt == 'icon') ? 'checked=checked' : '' ?> style="display: none" class="ebs_editor_style"><img src="<?php echo EBS_PLUGIN_URL.'images/icons.png'?>"></label>
41
42 <label for="ebsp_dropdown" class="ebs_editor_label" title="Dropdown"><input type="radio" name="ebsp_editor_opt" id="ebsp_dropdown" value="dropdown" <?php echo ($ebsp_editor_opt == 'dropdown') ? 'checked=checked' : '' ?> style="display: none" class="ebs_editor_style"><img src="<?php echo EBS_PLUGIN_URL.'images/dropdown.png'?>"></label>
43
44 </p>
45 </div>
46 <div class="ebs_details">
47 <label class="ebs_setting_label">Custom CSS Editor</label>
48 <p>
49 <textarea name="ebs_custom_css" id="ebs_custom_css"><?php echo trim($ebs_custom_css) ?></textarea>
50 </p>
51 </div>
52 <div class="ebs_btn"><input type="submit" name="ebs_submit" class="button-primary" value="Update Settings"></div>
53 <?php if(!apply_filters('plugin_oscitas_theme_check',false)){ ?><div style="clear: both;"></div>
54 <br /><br /><br />
55 <b>CDN Links for bootstrap.js, you can use any of these</b>
56 <ul>
57 <li>
58 <?php echo str_replace('http:','',EBS_JS_CDN)?>
59 </li>
60 <li>
61 //cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.3/js/bootstrap.min.js
62 </li>
63 </ul>
64 <br/>
65 <b>CDN Links for respond.js, you can use any of these</b>
66 <ul>
67 <li>
68 <?php echo str_replace('http:','',EBS_RESPOND_CDN)?>
69 </li>
70 </ul>
71 <?php } ?>
72 </form>
73 <br />
74 <a href="http://oscitasthemes.com/products/easy-bootstrap-shortcodes-pro/" target="_blank">
75 <img style="border: 0px;" src="<?php echo plugins_url("images/ebs-pro.jpg", __FILE__); ?>">
76 </a>
77 </div>
78 <script type="text/javascript">
79 function show_cdn(){
80 if(jQuery('#b_js_cdn').prop('checked')){
81 jQuery('.show_cdn').show();
82 } else{
83 jQuery('.show_cdn').hide();
84 }
85 }
86 function show_respond_cdn(){
87 if(jQuery('#respond_js_cdn').prop('checked')){
88 jQuery('.respond_show_cdn').show();
89 } else{
90 jQuery('.respond_show_cdn').hide();
91 }
92 }
93 jQuery(document).ready(function(){
94 show_cdn();
95 show_respond_cdn();
96 jQuery('.check_cdn').click(function(){
97 show_cdn();
98 })
99 jQuery('.respond_cdn').click(function(){
100 show_respond_cdn();
101 })
102 })
103 </script>
104 <script type="text/javascript">
105 function show_editor_style(){
106 jQuery('.ebs_editor_label').removeClass('val_selected');
107 if(jQuery('#ebsp_icon').prop('checked')){
108 jQuery('#ebsp_icon').parent().addClass('val_selected');
109 } else if(jQuery('#ebsp_dropdown').prop('checked')){
110 jQuery('#ebsp_dropdown').parent().addClass('val_selected');
111 }
112 }
113 jQuery(document).ready(function(){
114 show_editor_style();
115 jQuery('.ebs_editor_style').click(function(){
116 show_editor_style();
117 })
118 });
119
120 </script>