| @@ -3,18 +3,28 @@ | ||
| 3 | 3 | * Displays the donate button to be displayed within campaign loops. |
| 4 | 4 | * |
| 5 | 5 | * Override this template by copying it to yourtheme/charitable/campaign-loop/more-link.php |
| 6 | 6 | * |
| 7 | - * @author Studio 164a | |
| 7 | + * @author WP Charitable LLC | |
| 8 | 8 | * @package Charitable/Templates/Campaign |
| 9 | 9 | * @since 1.2.3 |
| 10 | - * @version 1.5.0 | |
| 10 | + * @version 1.6.29 | |
| 11 | + * @version 1.8.8.6 | |
| 11 | 12 | */ |
| 12 | 13 | |
| 13 | 14 | // Exit if accessed directly. |
| 14 | -if ( ! defined( 'ABSPATH' ) ) { exit; } | |
| 15 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 16 | + exit; | |
| 17 | +} | |
| 15 | 18 | |
| 16 | -/* @var Charitable_Campaign */ | |
| 17 | -$campaign = $view_args['campaign']; | |
| 19 | +$charitable_campaign = $view_args['campaign']; | |
| 18 | 20 | |
| 19 | 21 | ?> |
| 20 | -<p><a class="button" href="<?php echo get_permalink( $campaign->ID ) ?>" aria-label="<?php echo esc_attr( sprintf( _x( 'Continue reading about %s', 'Continue reading about campaign', 'charitable' ), get_the_title( $campaign->ID ) ) ) ?>"><?php _e( 'Read More', 'charitable' ) ?></a></p> | |
| 22 | +<p> | |
| 23 | + <a class="<?php echo esc_attr( charitable_get_button_class( 'read-more' ) ); ?>" | |
| 24 | + href="<?php echo esc_url( get_permalink( $charitable_campaign->ID ) ); ?>" | |
| 25 | + <?php /* translators: %s: campaign title */ ?> | |
| 26 | + aria-label="<?php echo esc_attr( sprintf( _x( 'Continue reading about %s', 'Continue reading about campaign', 'charitable' ), get_the_title( $charitable_campaign->ID ) ) ); ?>" | |
| 27 | + > | |
| 28 | + <?php esc_html_e( 'Read More', 'charitable' ); ?> | |
| 29 | + </a> | |
| 30 | +</p> | |