bre_tcp_get_setting

The Bootstrap Responsive eCommerce bre tcp get setting function.

Description

bre_tcp_get_setting( $value, (string) $setting_name, $default_value ); 

Parameters (3)

0. $value
The value.
1. $setting_name (string)
The setting name.
2. $default_value
The default value.

Usage

  1. if ( !function_exists( 'bre_tcp_get_setting' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4. // The value. 
  5. $value = null; 
  6.  
  7. // The setting name. 
  8. $setting_name = ''; 
  9.  
  10. // The default value. 
  11. $default_value = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = bre_tcp_get_setting($value, $setting_name, $default_value); 
  15.  

Defined (1)

The function is defined in the following location(s).

/functions.php  
  1. function bre_tcp_get_setting( $value, $setting_name, $default_value ) { 
  2. if ( 'load_bootstrap_css' == $setting_name || 'load_bootstrap_responsive_css' == $setting_name || 'load_bootstrap_js' == $setting_name ) return false; 
  3. if ( 'see_buy_button_in_content' == $setting_name || 'see_price_in_content' == $setting_name || 'see_image_in_content' == $setting_name ) return false; 
  4. if ( 'use_default_loop' == $setting_name ) return 'only_settings'; 
  5.  
  6. if ( 'load_default_buy_button_style' == $setting_name ) return true; 
  7. if ( 'load_default_shopping_cart_checkout_style' == $setting_name ) return true; 
  8. if ( 'load_default_loop_style' == $setting_name ) return false; 
  9. return $value;