File: /home/hanode/public_html/wp-content/plugins/sw_core/inc/inc.php
<?php
/*
** Require files
*/
require_once( SWPATH . 'inc/options/options.php' );
require_once( SWPATH . 'inc/shortcodes.php' );
if( sw_options( 'developer_mode' ) ) :
require_once( SWPATH . 'inc/lessphp/less.php' );
endif;
function sw_options( $opt_name, $default = null ){
$options = get_option( SW_THEME );
if ( !is_admin() && isset( $options['show_cpanel'] ) && $options['show_cpanel'] ){
$cookie_opt_name = SW_THEME.'_' . $opt_name;
if ( array_key_exists( $cookie_opt_name, $_COOKIE ) ){
return $_COOKIE[$cookie_opt_name];
}
}
if( is_array( $options ) ){
if ( array_key_exists( $opt_name, $options ) ){
return $options[$opt_name];
}
}
return $default;
}