Edit File by line
/home/barbar84/public_h.../wp-conte.../themes/twentyni...
File: image.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* The template for displaying image attachments
[2] Fix | Delete
*
[3] Fix | Delete
* @package WordPress
[4] Fix | Delete
* @subpackage Twenty_Nineteen
[5] Fix | Delete
* @since Twenty Nineteen 1.0
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
get_header();
[9] Fix | Delete
?>
[10] Fix | Delete
[11] Fix | Delete
<div id="primary" class="content-area">
[12] Fix | Delete
<main id="main" class="site-main">
[13] Fix | Delete
[14] Fix | Delete
<?php
[15] Fix | Delete
// Start the Loop.
[16] Fix | Delete
while ( have_posts() ) :
[17] Fix | Delete
the_post();
[18] Fix | Delete
?>
[19] Fix | Delete
[20] Fix | Delete
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
[21] Fix | Delete
[22] Fix | Delete
<header class="entry-header">
[23] Fix | Delete
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
[24] Fix | Delete
</header><!-- .entry-header -->
[25] Fix | Delete
[26] Fix | Delete
<div class="entry-content">
[27] Fix | Delete
[28] Fix | Delete
<figure class="entry-attachment wp-block-image">
[29] Fix | Delete
<?php
[30] Fix | Delete
/**
[31] Fix | Delete
* Filters the default twentynineteen image attachment size.
[32] Fix | Delete
*
[33] Fix | Delete
* @since Twenty Sixteen 1.0
[34] Fix | Delete
*
[35] Fix | Delete
* @param string $image_size Image size. Default 'large'.
[36] Fix | Delete
*/
[37] Fix | Delete
$image_size = apply_filters( 'twentynineteen_attachment_size', 'full' );
[38] Fix | Delete
[39] Fix | Delete
echo wp_get_attachment_image( get_the_ID(), $image_size );
[40] Fix | Delete
?>
[41] Fix | Delete
[42] Fix | Delete
<figcaption class="wp-caption-text"><?php the_excerpt(); ?></figcaption>
[43] Fix | Delete
[44] Fix | Delete
</figure><!-- .entry-attachment -->
[45] Fix | Delete
[46] Fix | Delete
<?php
[47] Fix | Delete
the_content();
[48] Fix | Delete
wp_link_pages(
[49] Fix | Delete
array(
[50] Fix | Delete
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentynineteen' ) . '</span>',
[51] Fix | Delete
'after' => '</div>',
[52] Fix | Delete
'link_before' => '<span>',
[53] Fix | Delete
'link_after' => '</span>',
[54] Fix | Delete
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentynineteen' ) . ' </span>%',
[55] Fix | Delete
'separator' => '<span class="screen-reader-text">, </span>',
[56] Fix | Delete
)
[57] Fix | Delete
);
[58] Fix | Delete
?>
[59] Fix | Delete
</div><!-- .entry-content -->
[60] Fix | Delete
[61] Fix | Delete
<footer class="entry-footer">
[62] Fix | Delete
<?php
[63] Fix | Delete
// Retrieve attachment metadata.
[64] Fix | Delete
$metadata = wp_get_attachment_metadata();
[65] Fix | Delete
if ( $metadata ) {
[66] Fix | Delete
printf(
[67] Fix | Delete
'<span class="full-size-link"><span class="screen-reader-text">%1$s</span><a href="%2$s">%3$s &times; %4$s</a></span>',
[68] Fix | Delete
_x( 'Full size', 'Used before full size attachment link.', 'twentynineteen' ),
[69] Fix | Delete
esc_url( wp_get_attachment_url() ),
[70] Fix | Delete
absint( $metadata['width'] ),
[71] Fix | Delete
absint( $metadata['height'] )
[72] Fix | Delete
);
[73] Fix | Delete
}
[74] Fix | Delete
?>
[75] Fix | Delete
[76] Fix | Delete
<?php twentynineteen_entry_footer(); ?>
[77] Fix | Delete
[78] Fix | Delete
</footer><!-- .entry-footer -->
[79] Fix | Delete
</article><!-- #post-<?php the_ID(); ?> -->
[80] Fix | Delete
[81] Fix | Delete
<?php
[82] Fix | Delete
// Parent post navigation.
[83] Fix | Delete
the_post_navigation(
[84] Fix | Delete
array(
[85] Fix | Delete
'prev_text' => _x( '<span class="meta-nav">Published in</span><br><span class="post-title">%title</span>', 'Parent post link', 'twentynineteen' ),
[86] Fix | Delete
)
[87] Fix | Delete
);
[88] Fix | Delete
[89] Fix | Delete
// If comments are open or we have at least one comment, load up the comment template.
[90] Fix | Delete
if ( comments_open() || get_comments_number() ) {
[91] Fix | Delete
comments_template();
[92] Fix | Delete
}
[93] Fix | Delete
[94] Fix | Delete
// End the loop.
[95] Fix | Delete
endwhile;
[96] Fix | Delete
?>
[97] Fix | Delete
[98] Fix | Delete
</main><!-- .site-main -->
[99] Fix | Delete
</div><!-- .content-area -->
[100] Fix | Delete
[101] Fix | Delete
<?php
[102] Fix | Delete
get_footer();
[103] Fix | Delete
[104] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function