Example #1
0
/**
 * Displays the content for default tabs.
 *
 * While this function displays only the default tabs (options, fields, emails
 * and dialogs), custom tabs can be added via the action hook wpmem_admin_do_tab
 * in the wpmem_admin() function.
 * 
 * @since 2.8.0
 *
 * @param string $tab The tab that we are on and displaying.
 */
function wpmem_admin_do_tab($tab)
{
    switch ($tab) {
        case 'options':
            include_once WPMEM_PATH . 'admin/tab-options.php';
            wpmem_a_build_options();
            break;
        case 'fields':
            include_once WPMEM_PATH . 'admin/tab-fields.php';
            wpmem_a_build_fields();
            break;
        case 'dialogs':
            include_once WPMEM_PATH . 'admin/tab-dialogs.php';
            wpmem_a_build_dialogs();
            break;
        case 'emails':
            include_once WPMEM_PATH . 'admin/tab-emails.php';
            wpmem_a_build_emails();
            break;
    }
}
Example #2
0
/**
 * Displays the content for default tabs
 * 
 * @since 2.8
 *
 * @param string $tab The tab that we are on and displaying
 * @param array  $wpmem_settings The array of plugin settings
 */
function wpmem_admin_do_tab($tab, $wpmem_settings)
{
    switch ($tab) {
        case 'options':
            include_once 'tab-options.php';
            wpmem_a_build_options($wpmem_settings);
            break;
        case 'fields':
            include_once 'tab-fields.php';
            wpmem_a_build_fields();
            break;
        case 'dialogs':
            include_once 'tab-dialogs.php';
            wpmem_a_build_dialogs();
            break;
        case 'emails':
            include_once 'tab-emails.php';
            wpmem_a_build_emails($wpmem_settings);
            break;
    }
}
Example #3
0
/**
 * Displays the content for default tabs.
 *
 * While this function displays only the default tabs (options, fields, emails
 * and dialogs), custom tabs can be added via the action hook wpmem_admin_do_tab
 * in the wpmem_admin() function.
 * 
 * @since 2.8.0
 *
 * @param string $tab The tab that we are on and displaying.
 */
function wpmem_admin_do_tab($tab)
{
    switch ($tab) {
        case 'options':
            wpmem_a_build_options();
            break;
        case 'fields':
            wpmem_a_build_fields();
            break;
        case 'dialogs':
            wpmem_a_build_dialogs();
            break;
        case 'emails':
            wpmem_a_build_emails();
            break;
    }
}