__( 'Category Navigation', 'simply-jigoshop' ), 'pages' => __( 'Pages Navigation', 'simply-jigoshop' ), ) ); add_editor_style( 'css/style.css' ); } } add_action( 'after_setup_theme', 'simply_jigoshop_setup' ); $simply_jigoshop_default_options = array( 'jigotheme_logo_path' => get_template_directory_uri() . '/images/jigoshop.png', 'jigowatt_show_subpages' => 'yes', 'jigotheme_color' => 'green', ); if ( is_admin() ) include_once "includes/theme-config.php"; include_once "includes/theme-enqueue.php"; if ( ! function_exists( 'simply_jigoshop_show_posts_nav' ) ) : /** * Display navigation to next/previous set of posts when applicable. * * @return void */ function simply_jigoshop_show_posts_nav() { // Don't print empty markup if there's only one page. if ( $GLOBALS['wp_query']->max_num_pages < 2 ) { return; } ?> '; } function simply_jigoshop_close_wrapper() { echo ''; } add_action( 'jigoshop_before_main_content', 'simply_jigoshop_wrapper', 10 ); add_action( 'jigoshop_after_main_content', 'simply_jigoshop_close_wrapper', 10 ); //############################################################################### // Add theme sidebars //############################################################################### function simply_jigoshop_widgets_init() { register_sidebar( array( 'name' => __( 'Primary Widget Area', 'simply-jigoshop' ), 'id' => 'primary-widget-area', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Homepage Widget Area', 'simply-jigoshop' ), 'id' => 'homepage-widget-area', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'simply_jigoshop_widgets_init' ); //############################################################################### // Comment formatting //############################################################################### function simply_jigoshop_theme_comments( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; ?>
  • id="li-comment-">
    says:', 'simply-jigoshop' ), sprintf( '%s', get_comment_author_link() ) ); ?>
    comment_approved == '0' ) : ?>
    $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    __( 'A simple text widget sans border', 'simply-jigoshop' ), ) // Args ); } function form( $instance ) { $instance = wp_parse_args( $instance, array( 'text' => '', ) ); ?>

    '', ) ); ?>
    ID ) . '" class="more">' . __( 'More »', 'simply-jigoshop' ) . '', $text ); } add_filter( 'the_excerpt', 'simply_jigoshop_custom_excerpt' ); // Allow HTML in descriptions $filters = array( 'pre_term_description', 'pre_link_description', 'pre_link_notes', 'pre_user_description' ); foreach ( $filters as $filter ) { remove_filter( $filter, 'wp_filter_kses' ); } function simply_jigoshop_remove_recent_comments_style() { global $wp_widget_factory; remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) ); } add_action( 'widgets_init', 'simply_jigoshop_remove_recent_comments_style' ); //################################################################################ // Next + Previous Links in Posts //################################################################################ if ( ! function_exists( 'simply_jigoshop_post_nav' ) ) : function simply_jigoshop_post_nav() { // Don't print empty markup if there's nowhere to navigate. $previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true ); $next = get_adjacent_post( false, '', false ); if ( ! $next && ! $previous ) { return; } ?> = 2 || $page >= 2 ) $title = "$title $sep " . sprintf( __( 'Page %s', 'simply-jigoshop' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'simply_jigoshop_wp_title', 10, 2 ); if ( ! isset( $content_width ) ) $content_width = 620;