/
black-friday.php
35 lines (34 loc) · 1.08 KB
/
black-friday.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
* Old Template for Black Friday Promo.
*
* @since 4.14.7
* @var string $background_image - the url of the background image to use
* @var string $branding_logo - the url of the TEC branding logo
* @var string $button_link - the url the button links to
*/
?>
<div class="black-friday-promo">
<div class="black-friday-promo__branding">
<img
src="<?php echo esc_url( $branding_logo ); ?>"
alt="<?php echo esc_attr__( 'The Events Calendar brand logo', 'tribe-common' ); ?>"
class="black-friday-promo__branding-image"
/>
</div>
<div class="black-friday-promo__promo" style="background-image: url('<?php echo $background_image; ?>')">
<div class="black-friday-promo__content">
<p class="black-friday-promo__text">
<?php _e( 'Our biggest<br/> sale of the<br/> year ends<br/> soon</p>', 'tribe-common' ); ?>
<a
href="<?php echo esc_url( $button_link ); ?>"
class="button black-friday-promo__button"
rel="noreferrer noopener"
target="_blank"
>
<?php echo esc_html__( 'Save now', 'tribe-common' ); ?>
</a>
</p>
</div>
</div>
</div>