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