__( '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' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); } } // codepeople_light_register_sidebars /** * Tell WordPress to run codepeople_light_navbar() when navigation menu is loaded */ add_filter('wp_nav_menu', 'codepeople_light_navbar'); if(!function_exists('codepeople_light_navbar')){ /** * Set the data-role attribute to "Navigate" menu */ function codepeople_light_navbar($menu) { $menu = str_replace('
max_num_pages > 1){ $next = get_next_posts_link( __( 'Older', 'codepeople-light-text' ) ); $prev = get_previous_posts_link( __( 'Newer', 'codepeople-light-text' ) ); // Set the links as buttons $next = str_replace(''; } } } // codepeople_light_content_nav if ( ! function_exists( 'codepeople_light_post_nav' ) ){ /** * Display navigation to next/previous post when applicable */ function codepeople_light_post_nav( $nav_id, $gallery=false) { $nav = '
'; print $nav.''; } } // codepeople_light_post_nav if ( ! function_exists( 'codepeople_light_posted_on' ) ) : /** * Prints HTML with meta information for the current post-date/time and author. */ function codepeople_light_posted_on() { printf( __( 'Posted on by ', 'codepeople-light-text' ), esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'codepeople-light-text' ), get_the_author() ) ), get_the_author() ); } endif; // codepeople_light_posted_on ?>