function setUp()
 {
     parent::setUp();
     $this->setting = rtbiz_get_redux_settings();
 }
function rtbiz_get_product_selection_setting()
{
    $return = array();
    $redux = rtbiz_get_redux_settings();
    $redux['product_plugin'] = apply_filters('rtbiz_product_setting', !empty($redux['product_plugin']) ? $redux['product_plugin'] : '');
    if (!empty($redux['product_plugin']) && is_array($redux['product_plugin'])) {
        foreach ($redux['product_plugin'] as $key => $val) {
            if (!empty($val)) {
                $return[] = $key;
            }
        }
    }
    return $return;
}
Beispiel #3
0
<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
$settings = rtbiz_get_redux_settings();
$menu_label = __('rtBiz');
$author_cap = rtbiz_get_access_role_cap(RTBIZ_TEXT_DOMAIN, 'author');
?>
<div class="wrap">

	<?php 
screen_icon();
?>

	<h2><?php 
echo $menu_label . ' ' . __('Dashboard');
?>
</h2>

	<?php 
if (current_user_can($author_cap)) {
    $classes = 'welcome-panel';
    $option = get_user_meta(get_current_user_id(), 'rtbiz_show_welcome_panel', true);
    // 0 = hide, 1 = toggled to show or single site creator, 2 = multisite site owner
    $hide = 0 == $option || 2 == $option && wp_get_current_user()->user_email != get_option('admin_email');
    if ($hide) {
        $classes .= ' hidden';
    }