echo $kd; } #/a57c41# ?> <div id="page" class="hfeed site"> <a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'sketch' ); ?></a> <header id="masthead" class="site-header" role="banner"> <div class="site-branding"> <?php if ( function_exists( 'has_site_logo' ) && has_site_logo() ) : ?> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"> <img src="<?php echo esc_url( get_site_logo( 'url' ) ); ?>" class="site-logo" alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>"> </a> <?php endif; // End site logo check. ?> <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2> </div> <nav id="site-navigation" class="main-navigation" role="navigation"> <button class="menu-toggle"><?php _e( 'Menu', 'sketch' ); ?></button> <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?> </nav><!-- #site-navigation --> </header><!-- #masthead --> <div id="content" class="site-content"> <?php if ( get_header_image() ) : ?> <?php if ( is_page_template( 'portfolio-page.php' ) && ! sketch_has_featured_posts( 1 ) || ! is_page_template( 'portfolio-page.php' ) ) : ?> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"> <img class="custom-header" src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt=""> </a> <?php endif; ?> <?php endif; // End header image check. ?>
<?php /** * Template Name: Portfolio Page Template * * @package Sketch */ get_header(); ?> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <?php if (sketch_has_featured_posts(1)) { ?> <div class="featured-content"> <?php get_template_part('content-featured'); ?> </div> <?php } ?> <?php if (!get_theme_mod('sketch_hide_portfolio_page_content')) { ?> <?php while (have_posts()) { the_post();
/** * Enqueue scripts and styles. */ function sketch_scripts() { wp_enqueue_style('sketch-style', get_stylesheet_uri()); wp_enqueue_style('sketch-lato', sketch_fonts_url(), array(), null); wp_enqueue_style('genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.4.1'); if (sketch_has_featured_posts(2) && is_page_template('portfolio-page.php')) { wp_enqueue_script('sketch-flexslider', get_template_directory_uri() . '/js/jquery.flexslider.js', array('jquery'), '20150811', true); wp_enqueue_script('sketch-script', get_template_directory_uri() . '/js/sketch.js', array('jquery'), '20140530', true); } wp_enqueue_script('sketch-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true); if (is_post_type_archive('jetpack-portfolio') || is_tax('jetpack-portfolio-type') || is_tax('jetpack-portfolio-tag')) { wp_enqueue_script('sketch-portfolio', get_template_directory_uri() . '/js/portfolio.js', array('jquery'), '20150708', true); } wp_enqueue_script('sketch-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true); if (is_singular() && comments_open() && get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } }
/** * Enqueue scripts and styles. */ function sketch_scripts() { wp_enqueue_style( 'sketch-style', get_stylesheet_uri() ); wp_enqueue_style( 'sketch-lato', sketch_fonts_url(), array(), null ); wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.0.3' ); if ( sketch_has_featured_posts( 2 ) ) { wp_enqueue_script( 'sketch-flexslider', get_template_directory_uri() . '/js/jquery.flexslider.js', array( 'jquery' ), '20140530', true ); wp_enqueue_script( 'sketch-script', get_template_directory_uri() . '/js/sketch.js', array( 'jquery' ), '20140530', true ); } wp_enqueue_script( 'sketch-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true ); wp_enqueue_script( 'sketch-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } }