| @@ -17,12 +17,12 @@ | ||
| 17 | 17 | */ |
| 18 | 18 | |
| 19 | 19 | header( 'Content-type: text/css; charset: UTF-8' ); |
| 20 | 20 | |
| 21 | -$primary = isset( $_GET['p'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['p'] ) : '#F9F6EE'; // phpcs:ignore | |
| 22 | -$secondary = isset( $_GET['s'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['s'] ) : '#24231E'; // phpcs:ignore | |
| 23 | -$tertiary = isset( $_GET['t'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['t'] ) : '#61AA4F'; // phpcs:ignore | |
| 24 | -$button = isset( $_GET['b'] ) ? '#' . preg_replace( '/[^A-Za-z0-9 ]/', '', $_GET['b'] ) : '#61AA4F'; // phpcs:ignore | |
| 21 | +$primary = isset( $_GET['p'] ) ? '#' . substr( preg_replace( '/[^A-Fa-f0-9]/', '', $_GET['p'] ), 0, 6 ) : '#F9F6EE'; // phpcs:ignore | |
| 22 | +$secondary = isset( $_GET['s'] ) ? '#' . substr( preg_replace( '/[^A-Fa-f0-9]/', '', $_GET['s'] ), 0, 6 ) : '#24231E'; // phpcs:ignore | |
| 23 | +$tertiary = isset( $_GET['t'] ) ? '#' . substr( preg_replace( '/[^A-Fa-f0-9]/', '', $_GET['t'] ), 0, 6 ) : '#61AA4F'; // phpcs:ignore | |
| 24 | +$button = isset( $_GET['b'] ) ? '#' . substr( preg_replace( '/[^A-Fa-f0-9]/', '', $_GET['b'] ), 0, 6 ) : '#61AA4F'; // phpcs:ignore | |
| 25 | 25 | $mobile_width = isset( $_GET['mw'] ) ? intval( $_GET['mw'] ) : 800; // phpcs:ignore |
| 26 | 26 | |
| 27 | 27 | $charitable_slug = 'environmental'; |
| 28 | 28 | $charitable_wrapper = '.charitable-campaign-wrap.template-' . $charitable_slug; |
| @@ -27,9 +27,9 @@ | ||
| 27 | 27 | $charitable_slug = 'environmental'; |
| 28 | 28 | $charitable_wrapper = '.charitable-campaign-wrap.template-' . $charitable_slug; |
| 29 | 29 | $charitable_preview_wrapper = '.charitable-campaign-wrap.is-charitable-preview.template-' . $charitable_slug; |
| 30 | 30 | |
| 31 | -require_once '../../admin/campaign-builder/templates/functions-campaign-templates.php'; | |
| 31 | +require_once dirname( __DIR__, 2 ) . '/admin/campaign-builder/templates/functions-campaign-templates.php'; | |
| 32 | 32 | |
| 33 | 33 | ?> |
| 34 | 34 | |
| 35 | 35 | :root { |