Skip to content

Commit

Permalink
updated -single post sections order based on changes made on the live…
Browse files Browse the repository at this point in the history
… server
  • Loading branch information
SteveJonesDev committed Jun 3, 2024
1 parent 735512c commit 2e5aa9a
Showing 1 changed file with 27 additions and 17 deletions.
44 changes: 27 additions & 17 deletions inc/layouts.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,21 +344,7 @@ function eqd_single_fullwidth_content() {
}
}

if ( ! $hide_editorial_section_on_posts ) :
?>
<section class="site-main-article__author-data-editorial_statement">
<div class="site-main-article__author-data-editorial_statement-container">
<div class="site-main-article__author-data-editorial_statement-container__title">
<h2 class="screen-reader-text">Editorial Ethics at Student Loan Planner</h2>
</div>
<div class="site-main-article__author-data-editorial_statement-container__copy">
<p>
<button class="modal-btn btn-style-link" aria-haspopup="true" aria-expanded="false" aria-controls="modal_disclosure" data-modal="modal_disclosure" aria-label="Open Disclosure Modal">advertising disclosure</button>
</p>
</div>
</div>
</section>
<?php endif; ?>
?>

<div class="site-main-article__author-data
<?php
Expand All @@ -379,6 +365,8 @@ function eqd_single_fullwidth_content() {
<span class="entry-info">
<span>
Written By <?php echo wp_kses_post( get_author_posts_link_by_id( $id_meta ) ); ?>
</span>
<span>
Updated on <?php echo wp_kses_post( get_the_modified_date( 'F j, Y' ) ); ?>
</span>
</span>
Expand Down Expand Up @@ -439,10 +427,32 @@ function eqd_single_fullwidth_content() {
<?php endif; ?>

</div>


<div class="hero_featured_image_data">
<?php
$output = '';
$output .= 'Updated on <time datetime="' . get_the_modified_date( 'Y-m-d' ) . '">' . get_the_modified_date( 'F j, Y' ) . '</time>';
$post_data = get_the_content( get_the_ID() ); // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- Leaving for future use.
?>
<?php echo wp_kses_post( $output ); ?>
</div>

<?php
<?php if ( ! $hide_editorial_section_on_posts ) :
?>
<section class="site-main-article__author-data-editorial_statement">
<div class="site-main-article__author-data-editorial_statement-container">
<div class="site-main-article__author-data-editorial_statement-container__title">
<h2 class="screen-reader-text">Editorial Ethics at Student Loan Planner</h2>
</div>
<div class="site-main-article__author-data-editorial_statement-container__copy">
<p>
<button class="modal-btn btn-style-link" aria-haspopup="true" aria-expanded="false" aria-controls="modal_disclosure" data-modal="modal_disclosure" aria-label="Open Disclosure Modal">advertising disclosure</button>
</p>
</div>
</div>
</section>
<?php
endif;
endif;
}
}

0 comments on commit 2e5aa9a

Please sign in to comment.