__( 'The Main Menu', 'codepeople-light-text'), // main nav in header 'footer-links' => __( 'Footer Links', 'codepeople-light-text') // secondary nav in footer ) ); } } // codepeople_light_setup /** * Tell WordPress to run codepeople_light_scripts() when the 'wp_enqueue_scripts' hook is run. */ add_action( 'wp_enqueue_scripts', 'codepeople_light_styles' ); if(!function_exists('codepeople_light_styles')){ function codepeople_light_styles(){ wp_enqueue_style ('codepeople-light-jquerymobile-style', codepeople_light_get('codepeople_light_theme_path').'/base/jquery.mobile-1.2.0.min.css'); wp_enqueue_style ('codepeople-light-own-style', codepeople_light_get('codepeople_light_theme_path').'/style.css'); } }// codepeople_light_styles add_action( 'wp_enqueue_scripts', 'codepeople_light_scripts' ); if(!function_exists('codepeople_light_scripts')){ function codepeople_light_scripts(){ /* We add some JavaScript to pages with the comment form * to support sites with threaded comments (when in use). */ if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); wp_enqueue_script('codepeople-light-jquerymobile-script', codepeople_light_get('codepeople_light_theme_path').'/base/jquery.mobile-1.2.0.min.js', array('jquery')); wp_enqueue_script('codepeople-light-own-script', codepeople_light_get('codepeople_light_theme_path').'/js/codepeople-light.js', array('jquery')); } }// codepeople_light_scripts $template_directory = get_template_directory(); /** * Load the theme configuration and related routines */ require_once $template_directory.'/core/config.theme.php'; /** * Load the media related routines, actions and filters */ require_once $template_directory.'/core/media.routines.php'; /** * Load comments related routines, actions and filters */ require_once $template_directory.'/core/comment.routines.php'; /** * Tell WordPress to run codepeople_light_register_sidebar() when widgets are initialized */ add_action( 'widgets_init', 'codepeople_light_register_sidebars' ); if(!function_exists("codepeople_light_register_sidebars")){ /** * Set the widgets inside a box */ function codepeople_light_register_sidebars(){ global $wp_registered_sidebars; $codepeople_light_options = get_option('codepeople-light-options'); $codepeople_light_header_theme = (isset($codepeople_light_options) && isset($codepeople_light_options['codepeople-light-header-theme'])) ? $codepeople_light_options['codepeople-light-header-theme'] : 'default'; register_sidebar(array( 'id' => 'sidebar-1', 'name' => 'Sidebar 1', 'description' => 'The first (primary) sidebar.', 'before_widget' => '
', 'before_title' => '