| 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="plugin" <?php echo ($js == 'plugin') ? '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="theme" <?php echo ($js == 'theme') ? '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 == 'cdn') ? 'checked=checked' : '' ?> value="cdn"><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 |
|
| 16 |
<label class="ebs_setting_label">bootstrap.css file</label> |
| 17 |
<p><input type="radio" name="b_css" id="b_css_plugin" value="plugin" <?php echo ($css == 'plugin') ? 'checked=checked' : '' ?>> |
| 18 |
<label for="b_css_plugin" >Use from EBS Plugin</label> |
| 19 |
<input type="radio" name="b_css" id="b_css_theme" value="theme" <?php echo ($css == 'theme') ? 'checked=checked' : '' ?>><label for="b_css_theme">Use from theme or any other plugin</label> |
| 20 |
</p> |
| 21 |
</div> |
| 22 |
<div class="ebs_btn"><input type="submit" name="ebs_submit" value="Update Settings"></div> |
| 23 |
<div style="clear: both;"></div> |
| 24 |
<br /><br /><br /> |
| 25 |
<b>CDN Links for bootstrap.js, you can use any of these</b> |
| 26 |
<ul> |
| 27 |
<li> |
| 28 |
//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js |
| 29 |
</li> |
| 30 |
<li> |
| 31 |
//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.0/js/bootstrap.min.js |
| 32 |
</li> |
| 33 |
</ul> |
| 34 |
|
| 35 |
</form> |
| 36 |
</div> |
| 37 |
<script type="text/javascript"> |
| 38 |
function show_cdn(){ |
| 39 |
if(jQuery('#b_js_cdn').prop('checked')){ |
| 40 |
jQuery('.show_cdn').show(); |
| 41 |
} else{ |
| 42 |
jQuery('.show_cdn').hide(); |
| 43 |
} |
| 44 |
} |
| 45 |
jQuery(document).ready(function(){ |
| 46 |
show_cdn(); |
| 47 |
jQuery('.check_cdn').click(function(){ |
| 48 |
show_cdn(); |
| 49 |
}) |
| 50 |
}) |
| 51 |
|
| 52 |
</script> |