?>
	</header>

	<?php 
if (get_post_gallery()) {
    get_template_part('content/content', 'portfolio-gallery');
}
?>

	<div class="entry-content">
		<?php 
$content = get_the_content();
/**
 * Get the gallery data from the post.
 */
$gallery_shortcode = argent_get_gallery();
/**
 * Grab the first shortcode in post content, strip it out, and
 * display the post content without the first gallery.
 */
if ($gallery_shortcode && is_array($gallery_shortcode)) {
    $content = str_replace($gallery_shortcode[0][0], '', $content);
}
echo apply_filters('the_content', $content);
?>
	</div><!-- .entry-content -->

	<footer class="entry-footer entry-meta">
		<?php 
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_term_list($post->ID, 'jetpack-portfolio-type', '', __(', ', 'argent'));
Example #2
0
/**
 * Enqueue scripts and styles.
 */
function argent_scripts()
{
    wp_enqueue_style('argent-style', get_stylesheet_uri());
    wp_enqueue_style('argent-fonts', argent_fonts_url(), array(), null);
    wp_enqueue_style('genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.4.1');
    wp_enqueue_script('argent-js', get_template_directory_uri() . '/js/argent.js', array('jquery'), '20150326', true);
    wp_enqueue_script('argent-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true);
    wp_enqueue_script('argent-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true);
    if ('jetpack-portfolio' == get_post_type() && argent_get_gallery()) {
        wp_enqueue_style('argent-slick-css', get_template_directory_uri() . '/js/slick/slick.css');
        wp_enqueue_script('argent-slick-js', get_template_directory_uri() . '/js/slick/slick.js', array('jquery'), '1.4.1', true);
    }
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
}