-
Notifications
You must be signed in to change notification settings - Fork 0
/
image.php
63 lines (52 loc) · 1.74 KB
/
image.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
/**
* The template for displaying image attachments.
*
* @package artunlimited
*/
get_header( 'sem-aba' );
?>
<div class="content-image">
<div id="content-interno" class="site-content" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<nav role="navigation" id="image-navigation" class="navigation-image">
<div class="get-back">
<?php
$metadata = wp_get_attachment_metadata();
printf( __( '<span class="entry-date">Voltar para: <a href="%1$s" title="Voltar para %2$s" rel="gallery">%3$s</a></span>', 'artunlimited' ),
esc_url( get_permalink( $post->post_parent ) ),
esc_attr( strip_tags( get_the_title( $post->post_parent ) ) ),
get_the_title( $post->post_parent )
);
?>
</div>
</nav><!-- #image-navigation -->
</header><!-- .entry-header -->
<div class="entry-content">
<div class="entry-attachment">
<div class="attachment">
<?php artunlimited_the_attached_image(); ?>
</div><!-- .attachment -->
<?php if ( has_excerpt() ) : ?>
<div class="entry-caption">
<?php the_excerpt(); ?>
</div><!-- .entry-caption -->
<?php endif; ?>
</div><!-- .entry-attachment -->
<?php
the_content();
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'artunlimited' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
</article><!-- #post-## -->
<?php endwhile; // end of the loop. ?>
</div><!-- #content -->
<div class="clearfix">
</div>
<?php get_footer( 'portfolio' ); ?>
</div><!-- #content-single-portfolio -->