'e6e6e6', ) ); $args = array( // Text color and image (empty to use none). 'default-text-color' => '444', 'default-image' => '', // Set height and width, with a maximum value for the width. 'height' => 250, 'width' => 960, 'max-width' => 2000, // Support flexible height and width. 'flex-height' => true, 'flex-width' => true, // Random image rotation off by default. 'random-default' => false, // Callbacks for styling the header and the admin preview. 'wp-head-callback' => 'pin_header_style' ); add_theme_support( 'custom-header', $args ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 624, 9999 ); } add_action( 'after_setup_theme', 'pin_theme_setup' ); //custom header text function pin_header_style() { global $wp_styles; // Loads the Internet Explorer specific stylesheet. wp_enqueue_style( 'pin-ie', get_template_directory_uri() . '/ie.css', array( 'pin-style' ), '20121010' ); $wp_styles->add_data( 'pin-ie', 'conditional', 'lt IE 9' ); $text_color = get_header_textcolor(); // If no custom options for text are set, let's bail if ( $text_color == get_theme_support( 'custom-header', 'default-text-color' ) ) return; // If we get this far, we have custom styles. ?> 'Roboto:100,300,400,500,700', 'subset' => 'latin', ); wp_enqueue_style('google-webfonts', add_query_arg($query_args, "$protocol://fonts.googleapis.com/css" ), array(), null); } add_action( 'wp_enqueue_scripts', 'pin_google_webfonts' ); // sidebar function pin_widgets_init() { register_sidebar( array( 'name' => __( 'Main Sidebar', 'pin' ), 'id' => 'sidebar-1', 'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'pin' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'pin_widgets_init' ); if ( ! function_exists( 'pin_arc_nav' ) ) : function pin_arc_nav( $html_id ) { global $wp_query; $html_id = esc_attr( $html_id ); if ( $wp_query->max_num_pages > 1 ) : ?> comment_type ) : case 'pingback' : case 'trackback' : // Display trackbacks differently than normal comments. ?>
  • id="comment-">

    ', '' ); ?>

  • id="li-comment-">
    %1$s %2$s', get_comment_author_link(), // If current post author is also comment author, make it known visually. ( $comment->user_id === $post->post_author ) ? ' ' . __( 'Post author', 'pin' ) . '' : '' ); printf( '', esc_url( get_comment_link( $comment->comment_ID ) ), get_comment_time( 'c' ), /* translators: 1: date, 2: time */ sprintf( __( '%1$s at %2$s', 'pin' ), get_comment_date(), get_comment_time() ) ); ?>
    comment_approved ) : ?>

    ', '

    ' ); ?>
    __( 'Reply', 'pin' ), 'after' => ' ', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    = 2 || $page >= 2 ) $title = "$title $sep " . sprintf( __( 'Page %s', 'pin' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'pin_title', 10, 2 ); //for infinite scroll function pin_infinite_js(){ wp_register_script( 'infinite_scroll', get_template_directory_uri() . '/js/jquery.infinitescroll.min.js', array('jquery'),null,true ); if( ! is_singular() ) { wp_enqueue_script('infinite_scroll'); } } add_action('wp_enqueue_scripts', 'pin_infinite_js'); //Infinite Scroll and masonry function pin_infinite_masonry_js() { if( ! is_singular() ) { ?> posts ) ) return; $wp_query->set_404(); status_header( 404 ); nocache_headers(); } add_action( 'wp', 'pin_paged_404_fix' );