/**
 * Settings for the jQuery Nivo slider  
 *
 * Extract from jQuery Nivo slider below
 * The setting selection field has been set for each line marked with an 'x' 

      x	effect: 'random',
      x	slices: 15,
      x	boxCols: 8,
      x	boxRows: 4,
      x animSpeed: 500,
      x	pauseTime: 3000,
      	startSlide: 0,
      x	directionNav: true,
      x	directionNavHide: true,
      x	controlNav: true,
      x	controlNavThumbs: false,
        controlNavThumbsFromRel: false,
      	controlNavThumbsSearch: '.jpg',
      	controlNavThumbsReplace: '_thumb.jpg',
      	keyboardNav: true,
      x	pauseOnHover: true,
      x	manualAdvance: false,
      x	captionOpacity: 0.8,
      	prevText: 'Prev',
      	nextText: 'Next',
      	randomStart: false,
      	beforeChange: function(){},
      	afterChange: function(){},
      	slideshowEnd: function(){},
        lastSlide: function(){},
        afterLoad: function(){}
*/
function oik_nivo_slider_options()
{
    bw_form("options.php");
    $option = "bw_nivo_slider";
    $options = get_option($option);
    stag('table class="form-table"');
    bw_flush();
    settings_fields('oik_nivo_options');
    $effect_options = array('random', 'sliceDownRight', 'sliceDownLeft', 'sliceUpRight', 'sliceUpLeft', 'sliceUpDown', 'sliceUpDownLeft', 'fold', 'fade', 'boxRandom', 'boxRain', 'boxRainReverse', 'boxRainGrow', 'boxRainGrowReverse', 'slideInLeft', 'slideInRight');
    $effect_options_assoc = bw_assoc($effect_options);
    bw_select_arr($option, "Effect (effect=<i>effect</i>)", $options, 'effect', array("#options" => $effect_options_assoc));
    bw_textfield_arr($option, "Slices", $options, 'slices', 2);
    bw_textfield_arr($option, "Box cols", $options, 'boxCols', 2);
    bw_textfield_arr($option, "Box rows", $options, 'boxRows', 2);
    bw_textfield_arr($option, "Anim speed", $options, 'animSpeed', 4);
    bw_textfield_arr($option, "Pause time (pause=<i>nnnn</i>)", $options, 'pauseTime', 4);
    bw_checkbox_arr($option, "Control nav (nav=n|y)", $options, 'controlNav');
    bw_checkbox_arr($option, "Control nav thumbs (thumbs=n|y)", $options, 'controlNavThumbs');
    //bw_textfield_arr( $option, "Control nav thumbs search", $options, 'controlNavThumbsSearch', 20 );
    //bw_textfield_arr( $option, "Control nav thumbs replace", $options, 'controlNavThumbsReplace', 20 );
    bw_checkbox_arr($option, "Direction nav", $options, 'directionNav');
    bw_checkbox_arr($option, "Direction nav hide", $options, 'directionNavHide');
    bw_checkbox_arr($option, "Pause on hover", $options, 'pauseOnHover');
    bw_checkbox_arr($option, "Manual advance (manual=n|y)", $options, 'manualAdvance');
    bw_textfield_arr($option, "Caption opacity", $options, 'captionOpacity', 4);
    //bw_tablerow( array( "", "<input type=\"submit\" name=\"ok\" value=\"Save changes\" class=\"button-primary\"/>") );
    etag("table");
    e(isubmit("ok", __("Save changes", "oik"), null, "button-primary"));
    etag("form");
    bw_flush();
}
Beispiel #2
0
/** 
 * Display/process the Copy options form
 */
function oik_ms_settings()
{
    p("Use this form to copy oik options values from a site of your choice.");
    p("You should only need to do this once per new site.");
    oik_ms_copy_site_settings();
    bw_form();
    stag("table", "widefat");
    $sites = oik_ms_site_list();
    bw_select("oik_ms_site", "Source site", null, array("#options" => $sites));
    $alts = array(0 => "options", 1 => "more options (alt=1)", 2 => "more options 2 ( alt=2)");
    bw_select("oik_ms_alt_source", "Source options set", null, array("#options" => $alts));
    bw_select("oik_ms_alt_target", "Target options set", null, array("#options" => $alts));
    etag("table");
    p(isubmit("_oik_ms_copy_options", "Copy options from site", null, "button-secondary"));
    etag("form");
}
Beispiel #3
0
 function bw_form_start($option, $settings, $action = "options.php")
 {
     bw_form($action);
     $options = get_option($option);
     stag('table', "form-table");
     bw_flush();
     settings_fields($settings);
     return $options;
 }
 /**
  * Display the edit settings form
  */
 function oik_plugins_edit_settings()
 {
     global $bw_plugin;
     bw_form();
     stag("table", "wide-fat");
     bw_tablerow(array("plugin", $bw_plugin['plugin'] . ihidden('plugin', $bw_plugin['plugin'])));
     bw_textfield("server", 100, "server", stripslashes($bw_plugin['server']));
     bw_textfield("apikey", 26, "apikey?", $bw_plugin["apikey"]);
     etag("table");
     p(isubmit("_oik_plugins_edit_settings", "Change plugin", null, "button-primary"));
     etag("form");
 }
Beispiel #5
0
/**
 * Display the form to accept the input
 * 
 * to compare filter logic output
 */
function trac_29608_form($value)
{
    oik_require("bobbforms.inc");
    e("<!--notext:-->");
    bw_form();
    stag("table");
    bw_textarea("input_29608", 100, "Input", $value);
    bw_checkbox("autop", "Perform wpautop processing", trac_29608_get_field("autop"));
    bw_textfield("limit", 6, "Performance test iterations", trac_29608_get_field("limit"));
    etag("table");
    e(wp_nonce_field("_29608_form", "_29608_nonce", false));
    p(isubmit("_filter_29608", __("Filter")));
    etag("form");
    e("<!--dotext:-->");
}