Skip to content

Commit

Permalink
fix: move h3 to inside the institution block - correct file
Browse files Browse the repository at this point in the history
  • Loading branch information
michelmany committed Aug 19, 2024
1 parent ea27c47 commit c4cb29d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions template-parts/blocks/featured-institution/template.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Vendor_information_block Block Template.
*
*
* @package Equalize Digital Base Theme
* @author Equalize Digital
* @since 1.0.0
Expand Down Expand Up @@ -38,6 +38,7 @@

// Load values and assing defaults.
$select_institutional_contact = get_field( 'select_institutional_contact' );
$institution_name = get_field( 'institution_name', $select_institutional_contact );
$logo = get_field( 'company_logo', $select_institutional_contact );
$rating = get_field( 'rating', $select_institutional_contact );
$review_url = get_field( 'review_url', $select_institutional_contact ); // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable -- Leaving for future use.
Expand All @@ -59,8 +60,6 @@

?>
<section id="<?php echo ! empty( $block_id ) ? esc_attr( $block_id ) : esc_attr( $classid ); ?>" class="<?php echo esc_attr( $class_name ); ?>">

<h3 class="screen-reader-text"><?php echo esc_html( get_the_title( $select_institutional_contact ) ); ?></h3>
<div class="vendor_information_block_container">

<div class="vendor_information_block_container_column_one">
Expand Down Expand Up @@ -97,7 +96,8 @@
</div>

<div class="vendor_information_block_container_column_two">
<h3><?php echo esc_html( get_the_title( $select_institutional_contact ) ); ?></h3>
<h3><?php echo esc_html( $institution_name ); ?></h3>

<?php if ( $show_about ) : ?>
<h4 class="vendor_information_block_container_column_two_title">About:</h4>
<div class="vendor_information_block_container_column_two_text_repeater">
Expand Down Expand Up @@ -151,7 +151,7 @@
</div>
<?php endif; ?>

<?php
<?php
$vendor_title = get_field( 'title' );
$vendor_content = get_field( 'content' );
if ( $vendor_title ) :
Expand All @@ -170,7 +170,7 @@
<a href="<?php echo esc_url( get_the_permalink( $select_institutional_contact ) ); ?>"><?php echo esc_html( get_the_title( $select_institutional_contact ) ); ?></a>
</div>
<?php endif; ?>

<?php if ( $show_feature_list ) : ?>
<h4 class="vendor_information_block_container_column_two_title"><?php echo wp_kses_post( $heading ); ?></h4>
<div class="vendor_information_block_container_column_two_text_repeater">
Expand All @@ -190,12 +190,12 @@
</div>
<?php endif; ?>



<?php if ( have_rows( 'eligible_states', $select_institutional_contact ) ) : ?>
<?php
while ( have_rows( 'eligible_states', $select_institutional_contact ) ) :
the_row();
the_row();
?>
<h4 class="vendor_information_block_container_column_two_title">
<?php echo wp_kses_post( get_sub_field( 'heading' ) ); ?>
Expand All @@ -221,7 +221,7 @@

<?php if ( ! empty( $more_info_content ) ) : ?>

<button
<button
class="vendor_information_block_container_column_two_link_more_info"
type="button"
aria-label="More Information about <?php echo esc_attr( get_the_title( $select_institutional_contact ) ); ?>"
Expand All @@ -231,9 +231,9 @@ class="vendor_information_block_container_column_two_link_more_info"
<svg width="13" height="8" viewBox="0 0 13 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6.50008 6.50008L12.0002 1" stroke="#82BC46"/></svg>
</span>
</button>

<?php endif; ?>

</div>
</div>

Expand Down

0 comments on commit c4cb29d

Please sign in to comment.