| 1 |
<div class="ebs_page_settings"> |
| 2 |
<h1>Easy Bootstrap Shortcodes Settings for js/css files</h1><form name="ebs_setting" id="ebs_setting" method="post" action=""> |
| 3 |
<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><input type="text" name="cdn_path" id="cdn_path" value="<?php echo $cdn; ?>"> |
| 12 |
</p> |
| 13 |
</div> |
| 14 |
<div class="ebs_details"> |
| 15 |
<label class="ebs_setting_label">respond.js file for IE6+ compatible </label> |
| 16 |
<p> |
| 17 |
<input type="radio" name="respond_js" id="respond_js_plugin" class="respond_cdn" value="1" <?php echo ($respond == 1) ? 'checked=checked' : '' ?>> |
| 18 |
<label for="respond_js_plugin">Use from EBS Plugin</label> |
| 19 |
<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> |
| 20 |
<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> |
| 21 |
</div> |
| 22 |
<div class="ebs_details respond_show_cdn" ><label class="ebs_setting_label">respond.js CDN Path</label><input type="text" name="respond_cdn_path" id="respond_cdn_path" value="<?php echo $respondcdn; ?>"> |
| 23 |
</p> |
| 24 |
</div> |
| 25 |
<div class="ebs_details"> |
| 26 |
|
| 27 |
<label class="ebs_setting_label">bootstrap.css file</label> |
| 28 |
<p><input type="radio" name="b_css" id="b_css_plugin" value="1" <?php echo ($css == 1) ? 'checked=checked' : '' ?>> |
| 29 |
<label for="b_css_plugin" >Use from EBS Plugin</label> |
| 30 |
<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> |
| 31 |
</p> |
| 32 |
</div> |
| 33 |
<div class="ebs_btn"><input type="submit" name="ebs_submit" value="Update Settings"></div> |
| 34 |
<div style="clear: both;"></div> |
| 35 |
<br /><br /><br /> |
| 36 |
<b>CDN Links for bootstrap.js, you can use any of these</b> |
| 37 |
<ul> |
| 38 |
<li> |
| 39 |
//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js |
| 40 |
</li> |
| 41 |
<li> |
| 42 |
//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.0/js/bootstrap.min.js |
| 43 |
</li> |
| 44 |
</ul> |
| 45 |
<br/> |
| 46 |
<b>CDN Links for respond.js, you can use any of these</b> |
| 47 |
<ul> |
| 48 |
<li> |
| 49 |
//cdnjs.cloudflare.com/ajax/libs/respond.js/1.3.0/respond.min.js |
| 50 |
</li> |
| 51 |
</ul> |
| 52 |
</form> |
| 53 |
<br /> |
| 54 |
<a href="http://oscitasthemes.com/products/easy-bootstrap-shortcodes-pro/" target="_blank"> |
| 55 |
<img style="border: 0px;" src="<?php echo plugins_url("images/ebs-pro.jpg", __FILE__); ?>"> |
| 56 |
</a> |
| 57 |
</div> |
| 58 |
<script type="text/javascript"> |
| 59 |
function show_cdn(){ |
| 60 |
if(jQuery('#b_js_cdn').prop('checked')){ |
| 61 |
jQuery('.show_cdn').show(); |
| 62 |
} else{ |
| 63 |
jQuery('.show_cdn').hide(); |
| 64 |
} |
| 65 |
} |
| 66 |
function show_respond_cdn(){ |
| 67 |
if(jQuery('#respond_js_cdn').prop('checked')){ |
| 68 |
jQuery('.respond_show_cdn').show(); |
| 69 |
} else{ |
| 70 |
jQuery('.respond_show_cdn').hide(); |
| 71 |
} |
| 72 |
} |
| 73 |
jQuery(document).ready(function(){ |
| 74 |
show_cdn(); |
| 75 |
show_respond_cdn(); |
| 76 |
jQuery('.check_cdn').click(function(){ |
| 77 |
show_cdn(); |
| 78 |
}) |
| 79 |
jQuery('.respond_cdn').click(function(){ |
| 80 |
show_respond_cdn(); |
| 81 |
}) |
| 82 |
}) |
| 83 |
</script> |