Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions classes/helpers/FrmAddonsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,15 @@ public static function show_five_star_rating( $color = 'black' ) {
*
* @since 6.17
*
* @param string $alt Accessible name for the icon. Leave blank when adjacent text already
* describes the guarantee, so the icon stays decorative.
*
* @return void
*/
public static function guarantee_icon() {
public static function guarantee_icon( $alt = '' ) {
// phpcs:disable Generic.WhiteSpace.ScopeIndent
?>
<img src="<?php echo esc_url( FrmAppHelper::plugin_url() . '/images/guarantee.svg' ); ?>" alt="" />
<img src="<?php echo esc_url( FrmAppHelper::plugin_url() . '/images/guarantee.svg' ); ?>" alt="<?php echo esc_attr( $alt ); ?>" />
<?php
// phpcs:enable Generic.WhiteSpace.ScopeIndent
}
Expand Down
2 changes: 1 addition & 1 deletion classes/views/dashboard/templates/pro-features-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<?php FrmAddonsHelper::show_five_star_rating( '#FFD966' ); ?>
</div>
<div class="frm-testimonial__guarantee-icon">
<?php FrmAddonsHelper::guarantee_icon(); ?>
<?php FrmAddonsHelper::guarantee_icon( __( '100% No-Risk, Money Back Guarantee', 'formidable' ) ); ?>
</div>
</div>
</div>
Expand Down
Loading