Пример #1
0
/**
 * Implement "schunter_nav_tab_codes" action for schunter
 * 
 * 
 * 
 */
function schunter_nav_tab_codes()
{
    p("schunter");
    bw_flush();
    $schunter_list_table = Schunter_List_Table::instance();
    $schunter_list_table->prepare_items();
    $schunter_list_table->display();
    //	gob();
}
Пример #2
0
/**
 * Display the oik-lib options page
 *
 * 
 */
function oik_lib_options_do_page()
{
    bw_context("textdomain", "oik-lib");
    oik_menu_header("library management");
    oik_box(null, null, "Options", "oik_lib_options");
    oik_box(null, null, "Registered libraries", "oik_lib_display_libraries");
    oik_menu_footer();
    bw_flush();
}
Пример #3
0
 /**
  * oik plugins settings page 
  *
  * Processing depends on the button that was pressed. There should only be one!
  * 
  * Selection                     |  Validate? | Perform action         | Display check | Display add  | Display edit | Display select list
  * ----------------------------- | --------   |-------------------     |-------------  | ------------ | ------------ | -------------------
  * check_plugin                  |  No        | n/a                    | Yes           | -            | -            | -
  * delete_plugin                 |  No        | delete selected plugin | -             | -            | -            | Yes
  * edit_plugin                   |  No        | n/a                    | -             | -            | Yes          | Yes
  * _oik_plugins_edit_settings    |  Yes       | update selected plugin | -             | -            | Yes          | Yes
  * _oik_plugins_add_plugin			 |	No				| n/a										 | -						 | Yes          | - 					 | ?
  * _oik_plugins_add_settings		 |	Yes				| add selected plugin		 | -						 | -						| - 					 | ?
  * 
  */
 function oik_lazy_plugins_server_settings()
 {
     bw_trace2();
     bw_backtrace();
     oik_menu_header("plugin server settings", "w100pc");
     $validated = false;
     $check_plugin = bw_array_get($_REQUEST, "check_plugin", null);
     $delete_plugin = bw_array_get($_REQUEST, "delete_plugin", null);
     $edit_plugin = bw_array_get($_REQUEST, "edit_plugin", null);
     /** These plugins override the ones from the list... but why do we need to do it? 
      * Do we have to receive the others in the $_REQUEST **?**
      *
      */
     $oik_plugins_edit_settings = bw_array_get($_REQUEST, "_oik_plugins_edit_settings", null);
     $oik_plugins_add_settings = bw_array_get($_REQUEST, "_oik_plugins_add_settings", null);
     $oik_plugins_add_plugin = bw_array_get($_REQUEST, "_oik_plugins_add_plugin", null);
     if ($oik_plugins_add_plugin || $oik_plugins_add_settings) {
         $check_plugin = null;
         $delete_plugin = null;
         $edit_plugin = null;
     }
     if ($check_plugin) {
         oik_box(NULL, NULL, "Check", "oik_plugins_check");
     }
     if ($delete_plugin) {
         _oik_plugins_delete_settings($delete_plugin);
     }
     if ($edit_plugin) {
         global $bw_plugin;
         $bw_plugins = get_option("bw_plugins");
         $bw_plugin = bw_array_get($bw_plugins, $edit_plugin, null);
         if ($bw_plugin == null) {
             $bw_plugin['server'] = null;
             $bw_plugin['apikey'] = null;
         }
         $bw_plugin['plugin'] = $edit_plugin;
         bw_trace2($bw_plugin);
     }
     if ($oik_plugins_edit_settings) {
         $validated = _oik_plugins_settings_validate(false);
     }
     if ($oik_plugins_add_settings) {
         $validated = _oik_plugins_settings_validate(true);
     }
     if ($oik_plugins_add_plugin || $oik_plugins_add_settings && !$validated) {
         oik_box(NULL, NULL, "Add new", "oik_plugins_add_settings");
     }
     if ($edit_plugin || $oik_plugins_edit_settings || $validated) {
         oik_box(null, null, "Edit plugin", "oik_plugins_edit_settings");
     }
     oik_box(NULL, NULL, "Settings", "oik_plugins_settings");
     oik_menu_footer();
     bw_flush();
 }
function genesis_oik_shortcode_not_defined()
{
    e("Sorry, we're unable to display information for the selected shortcode.");
    br("The shortcode is not yet registered to this site.");
    $oik_shortcode = get_query_var("oik-shortcode");
    if ($oik_shortcode) {
        $p = "Shortcode: ";
        $p .= esc_html($oik_shortcode);
        p($p);
    }
    $oik_function = get_query_var("oik-function");
    if ($oik_function) {
        $p = "Function: ";
        $p .= esc_html($oik_function);
        p($p);
    }
    bw_flush();
}
Пример #5
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;
 }
 function oik_plugins_servers()
 {
     p("Some oik plugins and themes are supported from servers other than WordPress.org");
     p("Premium plugin and theme versions require API keys.");
     if ($this->query_menu_subitem("oik_plugins", "oik_menu")) {
         p("Use the Plugins page to manage oik plugins servers and API keys");
         _alink("button-secondary", admin_url("admin.php?page=oik_plugins"), "Plugins", "Manage plugin servers and API keys");
     }
     if ($this->query_menu_subitem("oik_themes", "oik_menu")) {
         p("Use the Themes page to manage oik themes servers and API keys");
         _alink("button-secondary", admin_url("admin.php?page=oik_themes"), "Themes", "Manage theme servers and API keys");
     }
     bw_flush();
 }
/**
 * Display some usage notes for the oik-nivo-slider with an example
 */
function oik_nivo_slider_usage()
{
    p("These options for the jQuery Nivo slider control the default behaviour for each instance of the slider.");
    oik_require("nivo.inc", "oik-nivo-slider");
    oik_require("includes/oik-sc-help.inc");
    bw_flush();
    nivo__example();
    sediv("cleared");
}