芝麻web文件管理V1.00
编辑当前文件:/home/fambnfli/public_html/tr/wp-content/themes/fambridge/framework/js/bb_custom_fields.js
'use strict'; (function( $ ) { // my_custom_field START // custom field content HTML (window.bt_bb_cf_
_content) window.bt_bb_cf_my_custom_field_content = function( obj ) { // obj.param_heading // obj.param_value // obj.param_name // obj.val // obj.base var html = ''; if ( obj.val == '' ) { if ( obj.param_value !== undefined ) { html = obj.param_value; html = html.replace( /``/gmi, '"' ); } } else { html = obj.val.replace( /``/gmi, '"' ); } return '
' + obj.param_heading + '
'; } // custom field param value preview HTML (window.bt_bb_cf_
_param_value_preview) window.bt_bb_cf_my_custom_field_param_value_preview = function( param_value ) { var param_value_preview = '
' + param_value + '
'; return param_value_preview; } // custom field edit dialog submit callback (window.bt_bb_cf_
_on_submit) window.bt_bb_cf_my_custom_field_on_submit = function( $this ) { var return_value = $this.find( 'input' ).val().replace( /"/gmi, '``' ); return_value = return_value.replace( /\[/gmi, '(' ); return_value = return_value.replace( /\]/gmi, ')' ); return return_value; } // my_custom_field END })( jQuery );