Description
Display Edit shortcode formThe user cannot change the shortcode name
Usage
diy_oik_edit_shortcode();Parameters
Returns
voidSource
File name: diy-oik/admin/diy-oik.phpLines:
1 to 15 of 15
function diy_oik_edit_shortcode( ) { global $diy_code; bw_form(); stag( "table", "wide-fat" ); bw_tablerow( array( "code", $diy_code['code'] . ihidden( 'code', $diy_code['code']) ) ); $help = bw_array_get( $diy_code, "help", null ); bw_textfield( "help", 80, "help", stripslashes( $help ) ); bw_textarea( "content", 100, "content", stripslashes( $diy_code['content'] ), 10 ); bw_checkbox( "inactive", "Inactive shortcode?", $diy_code["inactive"] ); bw_checkbox( "title", "Expand in title?", $diy_code["title"] ); etag( "table" ); p( isubmit( "_diy_oik_edit_shortcode", "Change code", null, "button-primary" ) ); etag( "form" ); }
Called by
Invoked by
Calls
1 to 9 of 9
- bw_form() – Start a form
- bw_tablerow() – Display a table row or table head row when $tdtag = "th"
- bw_textarea() – Form a "textarea" field
- bw_textfield() – Form a text field
- etag() – Output an end tag
- ihidden() – Return a hidden input field for a form
- isubmit() – Create a submit button
- p() – Output a paragraph of translatable text
- stag() – Output an HTML opening tag
