-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathebs_settings.php
More file actions
174 lines (162 loc) · 9.87 KB
/
ebs_settings.php
File metadata and controls
174 lines (162 loc) · 9.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!--EBS setting page-->
<style>
.ebs_page_offer_title{
background: #545454;
color: #cceb51;
margin: 10px 0 0 0;
-webkit-border-radius:3px;
-moz-border-radius: 3px;
border-radius:3px;
line-height: 50px;
text-align: center;
font-size: 18px;
width: 99%;
}
.ebs_page_offer_title a{
background: #fdec32;
color: #545454;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
padding: 0 10px;;
font-weight: bold;
text-transform: uppercase;
}
</style>
<div class="ebs_page_offer_title" style="">
<a href="admin.php?page=ebs-pro-demo"><?php echo __('Click here', 'easy-bootstrap-shoercodes');?></a> <?php echo __('to check latest offers on osCitasThemes plugins.', 'easy-bootstrap-shoercodes');?>
</div>
<div class="ebs_page_settings">
<h1>Easy Bootstrap Shortcode <?php echo __('Settings', 'easy-bootstrap-shoercodes');?></h1><form name="ebs_setting" id="ebs_setting" method="post" action="">
<?php if(!apply_filters('plugin_oscitas_theme_check',false)){ ?><div class="ebs_details">
<label class="ebs_setting_label"><?php echo __('Bootstrap JS File', 'easy-bootstrap-shoercodes');?></label>
<p>
<input type="radio" name="b_js" id="b_js_plugin" class="check_cdn" value="1" <?php echo ($js == 1) ? 'checked=checked' : '' ?>>
<label for="b_js_plugin"><?php echo __('Use from EBS Plugin', 'easy-bootstrap-shoercodes');?></label>
<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"><?php echo __('Use from theme or any other plugin', 'easy-bootstrap-shoercodes');?></label>
<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"><?php echo __('Load from CDN', 'easy-bootstrap-shoercodes');?></label>
</div>
<div class="ebs_details show_cdn" ><label class="ebs_setting_label"><?php echo __('bootstrap.js CDN Path', 'easy-bootstrap-shoercodes');?></label>
<p><input type="text" name="cdn_path" id="cdn_path" value="<?php echo $cdn; ?>">
</p>
</div>
<div class="ebs_details">
<label class="ebs_setting_label"><?php echo __('IE6+ compatibility JS File', 'easy-bootstrap-shoercodes');?> </label>
<p>
<input type="radio" name="respond_js" id="respond_js_plugin" class="respond_cdn" value="1" <?php echo ($respond == 1) ? 'checked=checked' : '' ?>>
<label for="respond_js_plugin"><?php echo __('Use from EBS Plugin', 'easy-bootstrap-shoercodes');?></label>
<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"><?php echo __('Use from theme or any other plugin', 'easy-bootstrap-shoercodes');?></label>
<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"><?php echo __('Load from CDN', 'easy-bootstrap-shoercodes');?></label>
</div>
<div class="ebs_details respond_show_cdn" ><label class="ebs_setting_label"><?php echo __('respond.js CDN Path', 'easy-bootstrap-shoercodes');?></label>
<p><input type="text" name="respond_cdn_path" id="respond_cdn_path" value="<?php echo $respondcdn; ?>">
</p>
</div>
<div class="ebs_details">
<label class="ebs_setting_label"><?php echo __('Bootstrap Styling CSS File', 'easy-bootstrap-shoercodes');?></label>
<p><input type="radio" name="b_css" id="b_css_plugin" value="1" <?php echo ($css == 1) ? 'checked=checked' : '' ?>>
<label for="b_css_plugin" ><?php echo __('Use from EBS Plugin', 'easy-bootstrap-shoercodes');?></label>
<input type="radio" name="b_css" id="b_css_theme" value="2" <?php echo ($css == 2) ? 'checked=checked' : '' ?>><label for="b_css_theme"><?php echo __('Use from theme or any other plugin', 'easy-bootstrap-shoercodes');?></label>
<input type="radio" name="b_css" id="b_css_nobs" value="3" <?php echo ($css == 3) ? 'checked=checked' : '' ?>><label for="b_css_nobs"><?php echo __('No bootstrap theme', 'easy-bootstrap-shoercodes');?><span class="notered">*</span></label>
<br/><small class="notered"><?php echo __('* Choose this option if you don\'t have a bootstrap theme', 'easy-bootstrap-shoercodes');?></small></p>
</div>
<?php } ?>
<div class="ebs_details">
<label class="ebs_setting_label"><?php echo __('Editor Button Style', 'easy-bootstrap-shoercodes');?></label>
<p>
<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>
<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>
</p>
</div>
<div class="ebs_details">
<label class="ebs_setting_label"><?php echo __('Font Awesome Icons', 'easy-bootstrap-shoercodes');?></label>
<p><input type="checkbox" name="fa_icon" id="fa_icon" value="1" <?php echo ($fa_icon == 1) ? 'checked=checked' : '' ?>>
<label for="fa_icon" ><?php echo __('Include Font Awesome Icons', 'easy-bootstrap-shoercodes');?></label>
</p>
</div>
<div class="ebs_details">
<label class="ebs_setting_label"><?php echo __('Use EBS Session functionality', 'easy-bootstrap-shoercodes');?></label>
<p><input type="checkbox" name="use_ebs_session_close" id="use_ebs_session_close" value="1" <?php echo ($use_ebs_session_close == 1) ? 'checked=checked' : '' ?>>
<label for="fa_icon" ><?php echo __('Use EBS Session Close Functionality', 'easy-bootstrap-shoercodes');?></label>
</p>
</div>
<div class="ebs_details" ><label class="ebs_setting_label"><?php echo __('Shortcode Prefix', 'easy-bootstrap-shoercodes');?></label>
<p><input type="text" name="shortcode_prefix" value="<?php echo $shortcode_prefix; ?>">
<br ><small style="color: red"><?php echo __('This settings is provided to remove the shortcode confliction with any other existing shortcode, but be careful while changing the Shortcode Prefix, as existing shortcodes(created with EBS Plugin) will not<br> work if changed the existing prefix. So we advice to change it when you install the plugin.', 'easy-bootstrap-shoercodes');?></small>
</p>
</div>
<div class="ebs_details">
<label class="ebs_setting_label"><?php echo __('Custom CSS Editor', 'easy-bootstrap-shoercodes');?></label>
<p>
<textarea name="ebs_custom_css" id="ebs_custom_css"><?php echo trim($ebs_custom_css) ?></textarea>
</p>
</div>
<div class="ebs_btn"><input type="submit" name="ebs_submit" class="button-primary" value="Update Settings"></div>
<?php if(!apply_filters('plugin_oscitas_theme_check',false)){ ?><div style="clear: both;"></div>
<br /><br /><br />
<b><?php echo __('CDN Links for bootstrap.js, you can use any of these', 'easy-bootstrap-shoercodes');?></b>
<ul>
<li>
<?php echo str_replace('http:','',EBS_JS_CDN)?>
</li>
<li>
//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.3/js/bootstrap.min.js
</li>
</ul>
<br/>
<b><?php echo __('CDN Links for respond.js, you can use any of these', 'easy-bootstrap-shoercodes');?></b>
<ul>
<li>
<?php echo str_replace('http:','',EBS_RESPOND_CDN)?>
</li>
</ul>
<?php } ?>
</form>
<div class="ebspro-add">
<a href="http://oscitasthemes.com/products/easy-bootstrap-shortcodes-pro/" target="_blank">
<img style="border: 0px;" src="<?php echo plugins_url("images/ebs-pro.jpg", __FILE__); ?>">
</a>
</div>
</div>
<script type="text/javascript">
function show_cdn(){
if(jQuery('#b_js_cdn').prop('checked')){
jQuery('.show_cdn').show();
} else{
jQuery('.show_cdn').hide();
}
}
function show_respond_cdn(){
if(jQuery('#respond_js_cdn').prop('checked')){
jQuery('.respond_show_cdn').show();
} else{
jQuery('.respond_show_cdn').hide();
}
}
jQuery(document).ready(function(){
show_cdn();
show_respond_cdn();
jQuery('.check_cdn').click(function(){
show_cdn();
})
jQuery('.respond_cdn').click(function(){
show_respond_cdn();
})
})
</script>
<script type="text/javascript">
function show_editor_style(){
jQuery('.ebs_editor_label').removeClass('val_selected');
if(jQuery('#ebsp_icon').prop('checked')){
jQuery('#ebsp_icon').parent().addClass('val_selected');
} else if(jQuery('#ebsp_dropdown').prop('checked')){
jQuery('#ebsp_dropdown').parent().addClass('val_selected');
}
}
jQuery(document).ready(function(){
show_editor_style();
jQuery('.ebs_editor_style').click(function(){
show_editor_style();
})
});
</script>