This is the sidebar content, HTML is allowed.
', 'redux-framework-demo' ); Redux::setHelpSidebar( $opt_name, $content ); $store_settings = file_get_contents(dirname(__FILE__) . '/adec_store_settings.php'); // Redux::setExtensions( $opt_name, dirname(__FILE__) . 'redux-vendor-support-master/adec_store_settings.php' ); /* * <--- END HELP TABS */ /* * * ---> START SECTIONS * */ /* As of Redux 3.5+, there is an extensive API. This API can be used in a mix/match mode allowing for */ $check = $obs_mobile_store['store_status']; $woo_plugin = 'woocommerce/woocommerce.php'; $section_one_permission = $obs_mobile_store['opt-select-layout']; $section_two_permission = $obs_mobile_store['opt-custom-two-section']; $section_three_permission = $obs_mobile_store['opt-custom-three-section']; $section_one_title = $obs_mobile_store['section_one_title']; $section_two_title = $obs_mobile_store['section_two_title']; $section_three_title = $obs_mobile_store['section_three_title']; $sect = array( "section_one"=> array('permission'=>$section_one_permission,'title'=> $section_one_title ,'value' => 4 ) , "section_two"=> array('permission'=>$section_two_permission,'title'=> $section_two_title ,'value' => 5 ), "section_three"=> array('permission'=>$section_three_permission,'title'=> $section_three_title ,'value' => 6 ), ); $permission_one = $sect->section_one->permission; $permission_two = $sect->section_two->permission; $permission_three = $sect->section_three->permission; $custom_layout = array(); $custom_layout_title = array(); $combine_array = array_combine($custom_layout,$custom_layout_title); $layout_option = array( '1' => 'Most Popular', '2' => 'Latest Product', '3' => 'Top Rated', '7' => 'App Banner', '8' => 'Welcome Text', '4' => 'Section One', '5' => 'Section Two', '6' => 'Section Three', ); // -> START Basic Fields Redux::setSection( $opt_name, array( 'title' => __( 'Store Configuration', 'redux-framework-demo' ), 'id' => 'basic', 'desc' => __( 'These are really basic fields!', 'redux-framework-demo' ), 'customizer_width' => '400px', 'icon' => 'el el-cog' )); if(is_plugin_active($woo_plugin)){ Redux::setSection( $opt_name, array( 'title' => __( 'Store Configuration', 'redux-framework-demo' ), 'desc' => __( ' Please Visit Our Video Tutorial Section For Details Information About This Plugin . After generating the app code please download ADEC app from Google Play and See your store. Its FREE ', 'redux-framework-demo' ) . '', 'id' => 'basic-Text', 'subsection' => true, 'customizer_width' => '700px', 'fields' => array( array( 'id' => 'ck_key', 'type' => 'text', 'title' => __( 'Consumer Key', 'redux-framework-demo' ), 'subtitle' => __( '', 'redux-framework-demo' ), 'desc' => __( '', 'redux-framework-demo' ), 'default' => '', ), array( 'id' => 'ck_secret', 'type' => 'text', 'title' => __( 'Consumer Secret', 'redux-framework-demo' ), 'subtitle' => __( '', 'redux-framework-demo' ), 'desc' => __( '', 'redux-framework-demo' ), 'default' => '', ), array( 'id' => 'adec_store_nonce', 'type' => 'text', 'title' => '', 'subtitle' => __( '', 'redux-framework-demo' ), 'desc' => __( ''.wp_create_nonce('adec-store-nonce').'', 'redux-framework-demo' ), 'default' =>'', 'hidden' => true ), array( 'id' => 'token', 'type' => 'text', 'readonly' => true , 'title' => __( 'APP Token', 'redux-framework-demo' ), 'subtitle' => __( '', 'redux-framework-demo' ), 'desc' => __( '', 'redux-framework-demo' ), 'default' => '', ), array( 'id' => 'surl', 'type' => 'text', 'subtitle' => __( '', 'redux-framework-demo' ), 'desc' => __( '', 'redux-framework-demo' ), 'default' => $c_url, 'hidden' => true ), array( 'id' => 'shop_urls', 'type' => 'text', 'subtitle' => __( '', 'redux-framework-demo' ), 'desc' => __( '', 'redux-framework-demo' ), 'default' => site_url().'/', 'hidden' => true ), array( 'id' => 'obs_logo', 'type' => 'media', 'url' => false, 'title' => __('App Logo', 'redux-framework-demo'), 'desc' => __('Please Upload 300 pixels height & 300 pixels width logo for Best Performance. Otherwise overall appearance quality of the Mobile app may reduce', 'redux-framework-demo'), 'subtitle' => __('', 'redux-framework-demo'), 'default' => array( 'url'=>ReduxFramework::$_url.'assets/img/adec-logo-for-android-app_white.png' ), ), array( 'id' => 'submit_url', 'type' => 'text', 'subtitle' => __( '', 'redux-framework-demo' ), 'desc' => __( '', 'redux-framework-demo' ), 'default' => $submit_url, 'hidden' => true ), array( 'id' => 'opt-rawss', 'type' => 'raw', 'title' => __('', 'redux-framework-demo'), 'subtitle' => __('', 'redux-framework-demo'), 'desc' => __('', 'redux-framework-demo'), 'content' => $store_settings, ) ) )); Redux::setSection( $opt_name, array( 'title' => __( 'Video Tutorial', 'redux-framework-demo' ), 'id' => 'adec_video_tutorial', 'desc' => __( '', 'redux-framework-demo' ), 'customizer_width' => '400px', 'icon' => 'el el-video' )); Redux::setSection( $opt_name, array( 'title' => __( 'ADEC Video Tutorial', 'redux-framework-demo' ), 'id' => 'adec-video-tutorial', 'desc' => __( '', 'redux-framework-demo' ) . '', 'subsection' => true, 'fields' => array( array( 'id' => 'opt-raw-adec-video-tutorial', 'type' => 'raw', 'title' => __('', 'redux-framework-demo'), 'subtitle' => __('', 'redux-framework-demo'), 'desc' => __('', 'redux-framework-demo'), 'content' => file_get_contents(dirname(__FILE__) . '/adec_video_tutorial.php') ) ) ) ); if($check == 1 ){ Redux::setSection( $opt_name, array( 'title' => __( 'Paypal Configure', 'redux-framework-demo' ), 'id' => 'paypal_icon', 'desc' => __( '', 'redux-framework-demo' ), 'customizer_width' => '400px', 'icon' => 'el el-usd' )); Redux::setSection( $opt_name, array( 'title' => __( 'Paypal Configure', 'redux-framework-demo' ), 'id' => 'basic-Multi Text', 'desc' => __( '', 'redux-framework-demo' ) . '', 'subsection' => true, 'fields' => array( array( 'id' => 'obs_paypal_client_id', 'type' => 'text', 'title' => __( 'Paypal Client ID', 'redux-framework-demo' ), 'subtitle' => __( '', 'redux-framework-demo' ), 'desc' => __( '', 'redux-framework-demo' ) ), array( 'id' => 'paypal_ajax_referer', 'type' => 'text', 'title' => __( '', 'redux-framework-demo' ), 'subtitle' => __( ''.wp_create_nonce('referer-paypal-ajax').'', 'redux-framework-demo' ), 'desc' => __( '', 'redux-framework-demo' ), 'default' => '', 'hidden' => true ), array( 'id' => 'opt-raw-paypal', 'type' => 'raw', 'title' => __('', 'redux-framework-demo'), 'subtitle' => __('', 'redux-framework-demo'), 'desc' => __('', 'redux-framework-demo'), 'content' => file_get_contents(dirname(__FILE__) . '/adec_paypal_configure.php') ) ) ) ); Redux::setSection( $opt_name, array( 'title' => __( 'Layout Reorder', 'redux-framework-demo' ), 'id' => 'layout-reorder', 'desc' => __( '', 'redux-framework-demo' ) . '', 'icon'=>'el el-move' ) ); Redux::setSection( $opt_name, array( 'title' => __( 'Re-order Android Apps Layout', 'redux-framework-demo' ), 'id' => 'reorder-android-layout', 'desc' => __( 'Please Configure and Enable Section One, Section Two, Section Three from "Section Settings Menu".
',
'layout_2' => '
',
'layout_3' => '
',
'layout_4' => '
'
),
'default' => 'layout_1'
),
array(
'id' => 'adec_layout_nonce',
'type' => 'text',
'title' => '',
'subtitle' => __( ''.wp_create_nonce('adec-layout-nonce').'', 'redux-framework-demo' ),
'desc' => __( '', 'redux-framework-demo' ),
'default' => '',
'hidden' => true
),
array(
'id' => 'opt-raw-layout-select',
'type' => 'raw',
'title' => __('', 'redux-framework-demo'),
'subtitle' => __('', 'redux-framework-demo'),
'desc' => __('', 'redux-framework-demo'),
'content' => file_get_contents(dirname(__FILE__) . '/adec_layout_select.php')
)
)
));
Redux::setSection( $opt_name, array(
'title' => __( 'Theme Color', 'redux-framework-demo' ),
'id' => 'choose-layout-color',
'desc' => __( '', 'redux-framework-demo' ) . '',
'icon'=>'el el-brush'
) );
Redux::setSection( $opt_name, array(
'title' => __( 'Choose Theme Color', 'redux-framework-demo' ),
'desc' => __( '', 'redux-framework-demo' ) . '',
'id' => 'choose_layout_color',
'subsection' => true,
'customizer_width' => '700px',
'fields' => array(
array(
'id' => 'opt-radio-layout-color',
'type' => 'radio',
'title' => __('', 'redux-framework-demo'),
'subtitle' => __('', 'redux-framework-demo'),
'desc' => __('', 'redux-framework-demo'),
'class' => 'radioimageace',
//Must provide key => value pairs for radio options
'options' => array(
'blue' => '
',
'darkblue' => '
',
'diserria' => '
',
'palatinatepurple ' => '
',
'persianred' => '
',
'pink' => '
',
'tealgreen' => '
',
'paynegrey' => '
',
'orange' => '
',
'green' => '
',
'yellow' => '
',
'mint' => '
',
'light' => '
'
),
'default' => 'darkblue'
),
array(
'id' => 'adec_color_nonce',
'type' => 'text',
'title' => '',
'subtitle' => __( ''.wp_create_nonce('adec-color-nonce').'', 'redux-framework-demo' ),
'desc' => __( '', 'redux-framework-demo' ),
'default' => '',
'hidden' => true
),
array(
'id' => 'opt-raw-layout-color',
'type' => 'raw',
'title' => __('', 'redux-framework-demo'),
'subtitle' => __('', 'redux-framework-demo'),
'desc' => __('', 'redux-framework-demo'),
'content' => file_get_contents(dirname(__FILE__) . '/adec_layout_color.php')
)
)
));
Redux::setSection( $opt_name, array(
'title' => __( 'Shop Page Settings', 'redux-framework-demo' ),
'id' => 'choose-product-number',
'desc' => __( '', 'redux-framework-demo' ) . '',
'icon'=>'el el-shopping-cart'
) );
Redux::setSection( $opt_name, array(
'title' => __( 'Product Numbers', 'redux-framework-demo' ),
'desc' => __( '', 'redux-framework-demo' ) . '',
'id' => 'choose_product_number',
'subsection' => true,
'customizer_width' => '700px',
'fields' => array(
array(
'id' => 'opt-select-dd',
'type' => 'select',
'title' => __('', 'redux-framework-demo'),
'subtitle' => __('', 'redux-framework-demo'),
'desc' => __('Large number of products selection can slowdown your mobile app performance', 'redux-framework-demo'),
// Must provide key => value pairs for select options
'options' => array(
'20' => '20',
'40' => '40',
'60' => '60',
'1'=> 'All Products'
),
'default' => '20',
),
array(
'id' => 'adec_pnum_nonce',
'type' => 'text',
'title' => '',
'subtitle' => __( ''.wp_create_nonce('adec-pnum-nonce').'', 'redux-framework-demo' ),
'desc' => __( '', 'redux-framework-demo' ),
'default' => '',
'hidden' => true
),
array(
'id' => 'opt-raw-all-Product',
'type' => 'raw',
'title' => __('', 'redux-framework-demo'),
'subtitle' => __('', 'redux-framework-demo'),
'desc' => __('', 'redux-framework-demo'),
'content' => file_get_contents(dirname(__FILE__) . '/adec_product_number.php')
)
)
));
Redux::setSection( $opt_name, array(
'title' => __( 'Select App Fonts', 'redux-framework-demo' ),
'id' => 'choose-app-font',
'desc' => __( '', 'redux-framework-demo' ) . '',
'icon'=>'el el-font'
) );
Redux::setSection( $opt_name, array(
'title' => __( 'Select App Font', 'redux-framework-demo' ),
'desc' => __( '', 'redux-framework-demo' ) . '',
'id' => 'choose_app_font',
'subsection' => true,
'customizer_width' => '700px',
'fields' => array(
array(
'id' => 'opt-select-font',
'type' => 'select_image',
'title' => __('', 'redux-framework-demo'),
'subtitle' => __('', 'redux-framework-demo'),
'desc' => __('Select fonts for your app
', 'redux-framework-demo'),
'options' => Array(
Array (
'alt' => 'HelveticaNeue',
'img' => ReduxFramework::$_url.'assets/img/helve.png',
),
Array (
'alt' => 'NotoSans-Regular',
'img' => ReduxFramework::$_url.'assets/img/noto.png',
),
Array (
'alt' => 'OpenSans-Regular',
'img' => ReduxFramework::$_url.'assets/img/opens.png',
),
Array (
'alt' => 'Oxygen-Regular',
'img' => ReduxFramework::$_url.'assets/img/oxy.png',
),
Array (
'alt' => 'Quicksand-Light',
'img' => ReduxFramework::$_url.'assets/img/quicks.png',
),
Array (
'alt' => 'Raleway-Regular',
'img' => ReduxFramework::$_url.'assets/img/regular.png',
),
),
'default' => ReduxFramework::$_url.'assets/img/opens.png',
),
array(
'id' => 'adec_font_nonce',
'type' => 'text',
'title' => '',
'subtitle' => __( ''.wp_create_nonce('adec-font-nonce').'', 'redux-framework-demo' ),
'desc' => __( '', 'redux-framework-demo' ),
'default' => '',
'hidden' => true
),
array(
'id' => 'opt-raw-all-font',
'type' => 'raw',
'title' => __('', 'redux-framework-demo'),
'subtitle' => __('', 'redux-framework-demo'),
'desc' => __('', 'redux-framework-demo'),
'content' => file_get_contents(dirname(__FILE__) . '/adec_select_font.php')
)
)
));
Redux::setSection( $opt_name, array(
'title' => __( 'Google Analytics', 'redux-framework-demo' ),
'id' => 'obs-google-analytics',
'desc' => __( '', 'redux-framework-demo' ) . '',
'icon'=>'el el-cogs'
) );
Redux::setSection( $opt_name, array(
'title' => __( 'Google Analytics', 'redux-framework-demo' ),
'id' => 'obs-google-analytics-content',
//'icon' => 'el el-home'
'desc' => __( '', 'redux-framework-demo' ) . '',
'subsection' => true,
'fields' => array(
array(
'id' => 'opt-editor-analytics',
'type' => 'text',
'title' => __( '', 'redux-framework-demo' ),
'default' => 'UA-85049756-1',
'allowed_html' => array(
'a' => array(
'href' => array(),
'title' => array()
),
'br' => array(),
'em' => array(),
'strong' => array()
)
),
array(
'id' => 'adec_analytics_nonce',
'type' => 'text',
'title' => '',
'subtitle' => __( ''.wp_create_nonce('adec-analytics-nonce').'', 'redux-framework-demo' ),
'desc' => __( '', 'redux-framework-demo' ),
'default' => '',
'hidden' => true
),
array(
'id' => 'opt-raw-google-analytics',
'type' => 'raw',
'title' => __('', 'redux-framework-demo'),
'subtitle' => __('', 'redux-framework-demo'),
'desc' => __('', 'redux-framework-demo'),
'content' => file_get_contents(dirname(__FILE__) . '/adec_google_analytics.php')
)
),
'desc' => __( '', 'redux-framework-demo' ) . '',
) );
Redux::setSection( $opt_name, array(
'title' => __( 'Google AdMob', 'redux-framework-demo' ),
'id' => 'obs-google-adsense',
'desc' => __( '', 'redux-framework-demo' ) . '',
'icon'=>'el el-bullhorn'
) );
Redux::setSection( $opt_name, array(
'title' => __( 'Google AdMob', 'redux-framework-demo' ),
'id' => 'obs-google-adsense-content',
//'icon' => 'el el-home'
'desc' => __( '', 'redux-framework-demo' ) . '',
'subsection' => true,
'fields' => array(
array(
'id' => 'opt-editor-adsense',
'type' => 'text',
'title' => __( '', 'redux-framework-demo' ),
'default' => 'ca-app-pub-7540575626331379/6729392648',
'allowed_html' => array(
'a' => array(
'href' => array(),
'title' => array()
),
'br' => array(),
'em' => array(),
'strong' => array()
)
),
array(
'id' => 'adec_admob_nonce',
'type' => 'text',
'title' => '',
'subtitle' => __( ''.wp_create_nonce('adec-admob-nonce').'', 'redux-framework-demo' ),
'desc' => __( '', 'redux-framework-demo' ),
'default' => '',
'hidden' => true
),
array(
'id' => 'opt-raw-google-adsense',
'type' => 'raw',
'title' => __('', 'redux-framework-demo'),
'subtitle' => __('', 'redux-framework-demo'),
'desc' => __('', 'redux-framework-demo'),
'content' => file_get_contents(dirname(__FILE__) . '/adec_google_adsense.php')
)
),
'desc' => __( '', 'redux-framework-demo' ) . '',
) );
Redux::setSection( $opt_name, array(
'title' => __( 'Contact Us', 'redux-framework-demo' ),
'id' => 'obs-contact-us',
'desc' => __( '', 'redux-framework-demo' ) . '',
'icon'=>'el el-home'
) );
Redux::setSection( $opt_name, array(
'title' => __( 'Contact Us', 'redux-framework-demo' ),
'id' => 'obs-contact-us-content',
//'icon' => 'el el-home'
'desc' => __( '', 'redux-framework-demo' ) . '',
'subsection' => true,
'fields' => array(
array(
'id' => 'opt-editor-contact',
'type' => 'editor',
'title' => __( '', 'redux-framework-demo' ),
'full_width' => true,
'default' => 'Corporate Office:
69/1 Panthapath,Chandrashila Suvastu Tower (15th Floor) Dhaka,1205 Bangladesh
', 'args' => array( 'teeny' => true, 'textarea_rows' => 10, 'media_buttons' => false, 'quicktags' => false ) ), array( 'id' => 'adec_contact_nonce', 'type' => 'text', 'title' => '', 'subtitle' => __( ''.wp_create_nonce('adec-contact-nonce').'', 'redux-framework-demo' ), 'desc' => __( '', 'redux-framework-demo' ), 'default' => '', 'hidden' => true ), array( 'id' => 'opt-raw-contact-us', 'type' => 'raw', 'title' => __('', 'redux-framework-demo'), 'subtitle' => __('', 'redux-framework-demo'), 'desc' => __('', 'redux-framework-demo'), 'content' => file_get_contents(dirname(__FILE__) . '/adec_contact_us.php') ) ), 'desc' => __( '', 'redux-framework-demo' ) . '', ) ); $plugin = 'rest-api/plugin.php'; if(is_plugin_active($plugin)){ Redux::setSection( $opt_name, array( 'title' => __( 'Blog Configuration', 'redux-framework-demo' ), 'id' => 'select', 'icon' => 'el el-list-alt' ) ); Redux::setSection( $opt_name, array( 'title' => __( 'Select Posts', 'redux-framework-demo' ), 'id' => 'mit-select-select', 'desc' => __( ' ', 'redux-framework-demo' ) . '', 'subsection' => true, 'fields' => array( array( 'id' => 'opt-multi-select-pages', 'type' => 'select', 'data' => 'posts', 'args' => array('post_type'=>'post','posts_per_page'=>-1), 'sortable' => true, 'multi' => true, 'title' => __( 'Select Multi Posts', 'redux-framework-demo' ), 'subtitle' => __( '', 'redux-framework-demo' ), 'desc' => __( '', 'redux-framework-demo' ), ), array( 'id' => 'adec_posts_nonce', 'type' => 'text', 'title' => '', 'subtitle' => __( ''.wp_create_nonce('adec-posts-nonce').'', 'redux-framework-demo' ), 'desc' => __( '', 'redux-framework-demo' ), 'default' => '', 'hidden' => true ), array( 'id' => 'opt-raw-multi-page', 'type' => 'raw', 'title' => __('', 'redux-framework-demo'), 'subtitle' => __('', 'redux-framework-demo'), 'desc' => __('', 'redux-framework-demo'), 'content' => file_get_contents(dirname(__FILE__) . '/adec_multi_page.php') ) ) ) ); }else{ Redux::setSection( $opt_name, array( 'title' => __( 'Select Pages', 'redux-framework-demo' ), 'id' => 'select', 'icon' => 'el el-list-alt' ) ); Redux::setSection( $opt_name, array( 'title' => __( 'Notice', 'redux-framework-demo' ), 'desc' => __( '', 'redux-framework-demo' ) . '', 'id' => 'basic-Text-notice', 'subsection' => true, 'customizer_width' => '700px', 'fields' => array( array( 'id' => 'opt-raw', 'type' => 'raw', 'title' => __('', 'redux-framework-demo'), 'subtitle' => __('', 'redux-framework-demo'), 'desc' => __('', 'redux-framework-demo'), 'content' => file_get_contents(dirname(__FILE__) . '/adec_notice.php'), ) ) )); } } }else{ Redux::setSection( $opt_name, array( 'title' => __( 'Store Configuration', 'redux-framework-demo' ), 'desc' => __( '', 'redux-framework-demo' ) . '', 'id' => 'basic-Text', 'subsection' => true, 'customizer_width' => '700px', 'fields' => array( array( 'id' => 'opt-raw', 'type' => 'raw', 'title' => __('', 'redux-framework-demo'), 'subtitle' => __('', 'redux-framework-demo'), 'desc' => __('', 'redux-framework-demo'), 'content' => file_get_contents(dirname(__FILE__) . '/adec_notice_woo.php'), ) ) )); } /* * <--- END SECTIONS */ /* * * YOU MUST PREFIX THE FUNCTIONS BELOW AND ACTION FUNCTION CALLS OR ANY OTHER CONFIG MAY OVERRIDE YOUR CODE. * */ /* * * --> Action hook examples * */ // If Redux is running as a plugin, this will remove the demo notice and links add_action( 'redux/loaded', 'remove_demo' ); // Function to test the compiler hook and demo CSS output. // Above 10 is a priority, but 2 in necessary to include the dynamically generated CSS to be sent to the function. //add_filter('redux/options/' . $opt_name . '/compiler', 'compiler_action', 10, 3); // Change the arguments after they've been declared, but before the panel is created //add_filter('redux/options/' . $opt_name . '/args', 'change_arguments' ); // Change the default value of a field after it's been set, but before it's been useds //add_filter('redux/options/' . $opt_name . '/defaults', 'change_defaults' ); // Dynamically add a section. Can be also used to modify sections/fields //add_filter('redux/options/' . $opt_name . '/sections', 'dynamic_section'); /** * This is a test function that will let you see when the compiler hook occurs. * It only runs if a field set with compiler=>true is changed. * */ if ( ! function_exists( 'compiler_action' ) ) { function compiler_action( $options, $css, $changed_values ) { echo '";
print_r( $changed_values ); // Values that have changed since the last save
echo "";
//print_r($options); //Option values
//print_r($css); // Compiler selector CSS values compiler => array( CSS SELECTORS )
}
}
/**
* Custom function for the callback validation referenced above
* */
if ( ! function_exists( 'redux_validate_callback_function' ) ) {
function redux_validate_callback_function( $field, $value, $existing_value ) {
$error = false;
$warning = false;
//do your validation
if ( $value == 1 ) {
$error = true;
$value = $existing_value;
} elseif ( $value == 2 ) {
$warning = true;
$value = $existing_value;
}
$return['value'] = $value;
if ( $error == true ) {
$return['error'] = $field;
$field['msg'] = 'your custom error message';
}
if ( $warning == true ) {
$return['warning'] = $field;
$field['msg'] = 'your custom warning message';
}
return $return;
}
}
/**
* Custom function for the callback referenced above
*/
if ( ! function_exists( 'redux_my_custom_field' ) ) {
function redux_my_custom_field( $field, $value ) {
print_r( $field );
echo 'This is a section created by adding a filter to the sections array. Can be used by child themes to add/remove sections from the options.
', 'redux-framework-demo' ), 'icon' => 'el el-paper-clip', // Leave this as a blank section, no options just some intro text set above. 'fields' => array() ); return $sections; } } /** * Filter hook for filtering the args. Good for child themes to override or add to the args array. Can also be used in other functions. * */ if ( ! function_exists( 'change_arguments' ) ) { function change_arguments( $args ) { //$args['dev_mode'] = true; return $args; } } /** * Filter hook for filtering the default value of any given field. Very useful in development mode. * */ if ( ! function_exists( 'change_defaults' ) ) { function change_defaults( $defaults ) { $defaults['str_replace'] = 'Testing filter hook!'; return $defaults; } } /** * Removes the demo link and the notice of integrated demo from the redux-framework plugin */ if ( ! function_exists( 'remove_demo' ) ) { function remove_demo() { // Used to hide the demo mode link from the plugin page. Only used when Redux is a plugin. if ( class_exists( 'ReduxFrameworkPlugin' ) ) { remove_filter( 'plugin_row_meta', array( ReduxFrameworkPlugin::instance(), 'plugin_metalinks' ), null, 2 ); // Used to hide the activation notice informing users of the demo panel. Only used when Redux is a plugin. remove_action( 'admin_notices', array( ReduxFrameworkPlugin::instance(), 'admin_notices' ) ); } } }