<div class="col-sm-9"> <input type="text" name="list[get_bootstrap_plugin_url]" placeholder="Bootstrap插件地址" id="get_bootstrap_plugin_url" value="<?php echo cdn_info('filed', 'get_bootstrap_plugin_url'); ?> " class="form-control"> </div> </div> <div class="form-group"> <label class="control-label col-sm-3" for="get_js_url">get_js_url</label> <div class="col-sm-9"> <input type="text" name="list[get_js_url]" placeholder="JS地址" id="get_js_url" value="<?php echo cdn_info('filed', 'get_js_url'); ?> " class="form-control"> </div> </div> <div class="form-group"> <div class="col-sm-9 col-sm-offset-3"> <button class="btn btn-primary" type="submit">修改</button> </div> </div> </fieldset> </form> <script> $(function () { $("form").ajaxForm(function (data) {
private function publish_cdn() { if (cdn_info('status')) { $hook = hook(); if (cdn_info('filed', 'get_static_style_url')) { $hook->add('get_static_style_url', function () { return cdn_info('filed', 'get_static_style_url') . path_of_style() . "/" . get_style(); }); } if (cdn_info('filed', 'get_bootstrap_url')) { $hook->add('get_bootstrap_url', function () { return cdn_info('filed', 'get_bootstrap_url'); }); } if (cdn_info('filed', 'get_bootstrap_plugin_url')) { $hook->add('get_bootstrap_plugin_url', function () { return cdn_info('filed', 'get_bootstrap_plugin_url') . path_of_bootstrap_plugin(); }); } if (cdn_info('filed', 'get_js_url')) { $hook->add('get_js_url', function () { return cdn_info('filed', 'get_js_url') . path_of_js(); }); } } }