optionsframework_option_name

The Onetone optionsframework option name function.

Description

optionsframework_option_name(); 

Usage

  1. if ( !function_exists( 'optionsframework_option_name' ) ) { 
  2. require_once '/includes/admin-options.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = optionsframework_option_name(); 
  7.  

Defined (1)

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

/includes/admin-options.php  
  1. function optionsframework_option_name() { 
  2.  
  3. $themename = get_option( 'stylesheet' ); 
  4. $themename = preg_replace("/\W/", "_", strtolower($themename) ); 
  5.  
  6. if( is_child_theme() ) {  
  7. $themename = str_replace("_child", "", $themename ) ; 
  8. $themename_lan = $themename; 
  9.  
  10. if( defined('ICL_LANGUAGE_CODE') && ICL_LANGUAGE_CODE != 'en' ) 
  11. $themename_lan = $themename.'_'.ICL_LANGUAGE_CODE; 
  12.  
  13. if(function_exists('pll_current_language')) { 
  14. $default_lan = pll_default_language('slug'); 
  15. $current_lan = pll_current_language('slug'); 
  16.  
  17. if($current_lan !='') 
  18. $themename_lan = $themename.'_'.$current_lan; 
  19.  
  20. return $themename_lan;