Description
Display the options fieldsRather than attempt to calculate the Window width breakpoint ourselves we let the user define it. In the short term this is a lot easier. But we may still have to take into account the context in which the RWD classes are being used. which may lead to implementing the code in jQuery rather than server side generated CSS Media Queries
Usage
oik_rwd_options();Parameters
Returns
voidSource
File name: oik-rwd/admin/oik-rwd.phpLines:
1 to 13 of 13
function oik_rwd_options() { $option = "bw_rwd"; $options = bw_form_start( $option, $option ); bw_checkbox_arr( $option, "Intercept classes", $options, 'class_intercept'); //bw_textfield_arr( $option,"Sidebar width (px)/percentage (%)", $options, 'sidebar', 6 ); //bw_textfield_arr( $option,"Main body margins width (px)/percentage (%)", $options, 'margins', 6 ); //bw_textfield_arr( $option, "Breakpoint px", $options, 'breakpoint', 6 ); bw_textfield_arr( $option, "Window width breakpoint (px)", $options, 'max_width', 6 ); etag( "table" ); p( isubmit( "ok", "Save changes", null, "button-primary" ) ); etag( "form" ); bw_flush(); }View on GitHub
Called by
Invoked by
Calls
1 to 7 of 7
- bw_checkbox_arr() – Create a checkbox for an array options field
- bw_flush() – Use bw_flush() to echo the contents of $bwecho then empty it
- bw_form_start() – Start of a WordPress form for options fields
- bw_textfield_arr() – Create a textfield for an array options field
- etag() – Output an end tag
- isubmit() – Create a submit button
- p() – Output a paragraph of translatable text
Call hooks
API Letters:
