| 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.5.0 |
| 11 |
*/ |
| 12 |
|
| 13 |
// Exit if accessed directly. |
| 14 |
if ( ! defined( 'ABSPATH' ) ) { exit; } |
| 15 |
|
| 16 |
/* @var Charitable_Campaign */ |
| 17 |
$campaign = $view_args['campaign']; |
| 18 |
|
| 19 |
?> |
| 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> |