Edit File by line
/home/barbar84/www/wp-conte.../themes/Divi
File: single-project.php
<?php
[0] Fix | Delete
[1] Fix | Delete
get_header();
[2] Fix | Delete
[3] Fix | Delete
$is_page_builder_used = et_pb_is_pagebuilder_used( get_the_ID() );
[4] Fix | Delete
[5] Fix | Delete
$show_navigation = get_post_meta( get_the_ID(), '_et_pb_project_nav', true );
[6] Fix | Delete
[7] Fix | Delete
?>
[8] Fix | Delete
[9] Fix | Delete
<div id="main-content">
[10] Fix | Delete
[11] Fix | Delete
<?php if ( ! $is_page_builder_used ) : ?>
[12] Fix | Delete
[13] Fix | Delete
<div class="container">
[14] Fix | Delete
<div id="content-area" class="clearfix">
[15] Fix | Delete
<div id="left-area">
[16] Fix | Delete
[17] Fix | Delete
<?php endif; ?>
[18] Fix | Delete
[19] Fix | Delete
<?php while ( have_posts() ) : the_post(); ?>
[20] Fix | Delete
[21] Fix | Delete
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
[22] Fix | Delete
[23] Fix | Delete
<?php if ( ! $is_page_builder_used ) : ?>
[24] Fix | Delete
[25] Fix | Delete
<div class="et_main_title">
[26] Fix | Delete
<h1 class="entry-title"><?php the_title(); ?></h1>
[27] Fix | Delete
<span class="et_project_categories"><?php echo get_the_term_list( get_the_ID(), 'project_category', '', ', ' ); ?></span>
[28] Fix | Delete
</div>
[29] Fix | Delete
[30] Fix | Delete
<?php
[31] Fix | Delete
$thumb = '';
[32] Fix | Delete
[33] Fix | Delete
$width = (int) apply_filters( 'et_pb_portfolio_single_image_width', 1080 );
[34] Fix | Delete
$height = (int) apply_filters( 'et_pb_portfolio_single_image_height', 9999 );
[35] Fix | Delete
$classtext = 'et_featured_image';
[36] Fix | Delete
$titletext = get_the_title();
[37] Fix | Delete
$alttext = get_post_meta( get_post_thumbnail_id(), '_wp_attachment_image_alt', true );
[38] Fix | Delete
$thumbnail = get_thumbnail( $width, $height, $classtext, $alttext, $titletext, false, 'Projectimage' );
[39] Fix | Delete
$thumb = $thumbnail["thumb"];
[40] Fix | Delete
[41] Fix | Delete
$page_layout = get_post_meta( get_the_ID(), '_et_pb_page_layout', true );
[42] Fix | Delete
[43] Fix | Delete
if ( '' !== $thumb )
[44] Fix | Delete
print_thumbnail( $thumb, $thumbnail["use_timthumb"], $alttext, $width, $height );
[45] Fix | Delete
?>
[46] Fix | Delete
[47] Fix | Delete
<?php endif; ?>
[48] Fix | Delete
[49] Fix | Delete
<div class="entry-content">
[50] Fix | Delete
<?php
[51] Fix | Delete
the_content();
[52] Fix | Delete
[53] Fix | Delete
if ( ! $is_page_builder_used )
[54] Fix | Delete
wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'Divi' ), 'after' => '</div>' ) );
[55] Fix | Delete
?>
[56] Fix | Delete
</div> <!-- .entry-content -->
[57] Fix | Delete
[58] Fix | Delete
<?php if ( ! $is_page_builder_used ) : ?>
[59] Fix | Delete
[60] Fix | Delete
<?php
[61] Fix | Delete
if ( ! in_array( $page_layout, array( 'et_full_width_page', 'et_no_sidebar' ) ) ) {
[62] Fix | Delete
et_pb_portfolio_meta_box();
[63] Fix | Delete
}
[64] Fix | Delete
?>
[65] Fix | Delete
[66] Fix | Delete
<?php endif; ?>
[67] Fix | Delete
[68] Fix | Delete
<?php if ( ! $is_page_builder_used || ( $is_page_builder_used && 'on' === $show_navigation ) ) : ?>
[69] Fix | Delete
[70] Fix | Delete
<div class="nav-single clearfix">
[71] Fix | Delete
<span class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . et_get_safe_localization( _x( '&larr;', 'Previous post link', 'Divi' ) ) . '</span> %title' ); ?></span>
[72] Fix | Delete
<span class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . et_get_safe_localization( _x( '&rarr;', 'Next post link', 'Divi' ) ) . '</span>' ); ?></span>
[73] Fix | Delete
</div><!-- .nav-single -->
[74] Fix | Delete
[75] Fix | Delete
<?php endif; ?>
[76] Fix | Delete
[77] Fix | Delete
</article> <!-- .et_pb_post -->
[78] Fix | Delete
[79] Fix | Delete
<?php
[80] Fix | Delete
if ( ! $is_page_builder_used && comments_open() && 'on' === et_get_option( 'divi_show_postcomments', 'on' ) )
[81] Fix | Delete
comments_template( '', true );
[82] Fix | Delete
?>
[83] Fix | Delete
<?php endwhile; ?>
[84] Fix | Delete
[85] Fix | Delete
<?php if ( ! $is_page_builder_used ) : ?>
[86] Fix | Delete
[87] Fix | Delete
</div> <!-- #left-area -->
[88] Fix | Delete
[89] Fix | Delete
<?php
[90] Fix | Delete
if ( in_array( $page_layout, array( 'et_full_width_page', 'et_no_sidebar' ) ) ) {
[91] Fix | Delete
et_pb_portfolio_meta_box();
[92] Fix | Delete
}
[93] Fix | Delete
?>
[94] Fix | Delete
[95] Fix | Delete
<?php get_sidebar(); ?>
[96] Fix | Delete
</div> <!-- #content-area -->
[97] Fix | Delete
</div> <!-- .container -->
[98] Fix | Delete
[99] Fix | Delete
<?php endif; ?>
[100] Fix | Delete
[101] Fix | Delete
</div> <!-- #main-content -->
[102] Fix | Delete
[103] Fix | Delete
<?php
[104] Fix | Delete
[105] Fix | Delete
get_footer();
[106] Fix | Delete
[107] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function