| 1: | <?php |
| 2: | |
| 3: | |
| 4: | |
| 5: | |
| 6: | |
| 7: | |
| 8: | |
| 9: | |
| 10: | |
| 11: | |
| 12: | |
| 13: | if ( ! defined( 'ABSPATH' ) ) { |
| 14: | exit; |
| 15: | } |
| 16: | |
| 17: | |
| 18: | |
| 19: | |
| 20: | |
| 21: | |
| 22: | |
| 23: | |
| 24: | |
| 25: | function epl_button_read_more( $label ) { |
| 26: | if ( empty( $label ) ) { |
| 27: | $label = __( 'Read More ', 'easy-property-listings' ); |
| 28: | } |
| 29: | $label = apply_filters( 'epl_button_label_read_more', $label ); |
| 30: | ?> |
| 31: | <button type="button" class="epl-button epl-read-more" |
| 32: | onclick="location.href='<?php the_permalink(); ?>'"><?php echo esc_html( $label ); ?></button> |
| 33: | <?php |
| 34: | } |
| 35: | |
| 36: | add_action( 'epl_button_read_more', 'epl_button_read_more', 10, 1 ); |
| 37: | |