Skip to content

Commit

Permalink
Merge pull request #1247 from equalizedigital/hotfix/link-refi-bank-l…
Browse files Browse the repository at this point in the history
…ogos

Hotfix/link refi bank logos
  • Loading branch information
SteveJonesDev authored Jun 25, 2024
2 parents 1b64a09 + 8bfb72f commit cf449ef
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
8 changes: 7 additions & 1 deletion single.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,13 @@ function eqd_single_after_entry_content() {
<th class="sr-only" scope="row"><?php echo esc_html( get_sub_field( 'company_name' ) ); ?></th>
<td>
<div class="td_content">
<img src="<?php echo wp_kses_post( $logo['url'] ); ?>" alt="<?php echo wp_kses_post( $logo['alt'] ); ?>">
<?php if ( $url ) { ?>
<a href="<?php echo wp_kses_post( $url['url'] ); ?>" <?php echo ! empty( $url['target'] ) ? wp_kses_post( "target='" . $url['target'] . "'" ) : ''; ?>>
<?php } ?>
<img src="<?php echo wp_kses_post( $logo['url'] ); ?>" alt="<?php echo wp_kses_post( $logo['alt'] ); ?>">
<?php if ( $url ) { ?>
</a>
<?php } ?>
<button class="btn-text modal-btn" data-modal="modal_disclosure_<?php echo wp_kses_post( get_row_index() ); ?>" aria-label="Disclosures for <?php echo wp_kses_post( $company_name ); ?>">Disclosures</button>
</div>
</td>
Expand Down
16 changes: 12 additions & 4 deletions template-parts/blocks/vendor-repeater/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,13 @@
<td>
<?php if ( $company_logo ) { ?>
<h3>
<a href="<?php echo wp_kses_post( $vendor_link['url'] ); ?>" <?php echo ! empty( $vendor_link['target'] ) ? wp_kses_post( "target='" . $vendor_link['target'] . "'" ) : ''; ?>>
<?php if ( $vendor_link ) { ?>
<a href="<?php echo wp_kses_post( $vendor_link['url'] ); ?>" <?php echo ! empty( $vendor_link['target'] ) ? wp_kses_post( "target='" . $vendor_link['target'] . "'" ) : ''; ?>>
<?php } ?>
<img src="<?php echo wp_kses_post( $company_logo['url'] ); ?>" alt="<?php echo wp_kses_post( $company_logo['alt'] ); ?>">
</a>
<?php if ( $vendor_link ) { ?>
</a>
<?php } ?>
</h3>
<?php } ?>
</td>
Expand Down Expand Up @@ -213,9 +217,13 @@
<tr>
<td>
<h3>
<a href="<?php echo wp_kses_post( $vendor_link['url'] ); ?>" <?php echo ! empty( $vendor_link['target'] ) ? wp_kses_post( "target='" . $vendor_link['target'] . "'" ) : ''; ?>>
<?php if ( $vendor_link ) { ?>
<a href="<?php echo wp_kses_post( $vendor_link['url'] ); ?>" <?php echo ! empty( $vendor_link['target'] ) ? wp_kses_post( "target='" . $vendor_link['target'] . "'" ) : ''; ?>>
<?php } ?>
<img src="<?php echo wp_kses_post( $company_logo['url'] ); ?>" alt="<?php echo wp_kses_post( $company_logo['alt'] ); ?>">
</a>
<?php if ( $vendor_link ) { ?>
</a>
<?php } ?>
</h3>
</td>
</tr>
Expand Down

0 comments on commit cf449ef

Please sign in to comment.