| @@ -6,8 +6,9 @@ | ||
| 6 | 6 | * |
| 7 | 7 | * @package Charitable/Templates/Print-Page |
| 8 | 8 | * @author WP Charitable LLC |
| 9 | 9 | * @since 1.6.57 |
| 10 | + * @version 1.8.8.6 | |
| 10 | 11 | */ |
| 11 | 12 | |
| 12 | 13 | // Exit if accessed directly. |
| 13 | 14 | if ( ! defined( 'ABSPATH' ) ) { |
| @@ -13,17 +14,17 @@ | ||
| 13 | 14 | if ( ! defined( 'ABSPATH' ) ) { |
| 14 | 15 | exit; |
| 15 | 16 | } |
| 16 | 17 | |
| 17 | -$assets_folder = plugins_url( 'assets', dirname( __FILE__ ) ); | |
| 18 | -$version = charitable()->get_version(); | |
| 18 | +$charitable_assets_folder = plugins_url( 'assets', __DIR__ ); | |
| 19 | +$charitable_version = charitable()->get_version(); // phpcs:ignore | |
| 19 | 20 | |
| 20 | 21 | ?> |
| 21 | 22 | |
| 22 | 23 | <html> |
| 23 | 24 | <head> |
| 24 | - <link rel='stylesheet' href='<?php echo $assets_folder; ?>/css/charitable.css?ver=<?php echo $version; ?>' media='all' /> | |
| 25 | - <link rel='stylesheet' href='<?php echo $assets_folder; ?>/css/charitable-print.css?ver=<?php echo $version; ?>' media='all' /> | |
| 25 | + <link rel='stylesheet' href='<?php echo esc_url( $charitable_assets_folder ); ?>/css/charitable.css?ver=<?php echo esc_attr( $charitable_version ); // phpcs:ignore ?>' media='all' /> | |
| 26 | + <link rel='stylesheet' href='<?php echo esc_url( $charitable_assets_folder ); ?>/css/charitable-print.css?ver=<?php echo esc_attr( $charitable_version ); // phpcs:ignore ?>' media='all' /> | |
| 26 | 27 | <?php |
| 27 | 28 | /** |
| 28 | 29 | * Add in extra stylesheets if needed |
| 29 | 30 | * |
| @@ -40,9 +41,9 @@ | ||
| 40 | 41 | <path d="M8 7V3.6C8 3.26863 8.26863 3 8.6 3H15.4C15.7314 3 16 3.26863 16 3.6V7" stroke="currentColor" stroke-width="1.5"></path> |
| 41 | 42 | <path d="M6.09782 20.3151L6.42855 18L6.92639 14.5151C6.96862 14.2196 7.22177 14 7.52036 14H16.4796C16.7782 14 17.0313 14.2196 17.0736 14.5151L17.5714 18L17.9021 20.3151C17.9538 20.6766 17.6733 21 17.3082 21H6.69179C6.32666 21 6.04618 20.6766 6.09782 20.3151Z" stroke="currentColor" stroke-width="1.5"></path> |
| 42 | 43 | <path d="M17 10.01L17.01 9.99889" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path> |
| 43 | 44 | </svg> |
| 44 | - <?php _e( 'Print', 'charitable' ); ?> | |
| 45 | + <?php esc_html_e( 'Print', 'charitable' ); ?> | |
| 45 | 46 | </a> |
| 46 | 47 | </nav> |
| 47 | 48 | <article> |
| 48 | 49 | <?php |