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
36
37
38
39
40
41
42
43
44
45
46
47
|
<div class="sow-headline-container <?php if( $instance['fittext'] ) ?>"> <?php foreach( $order as $item ) { switch( $item ) { case 'headline' : if( !empty( $headline ) ) { echo "<$headline_tag class='sow-headline'>";
if( !empty( $headline_destination_url ) ): ?> <a href="<?php echo sow_esc_url( $headline_destination_url ) ?>" <?php echo $headline_new_window ? 'target="_blank" rel="noopener noreferrer"' : '' ?>> <?php endif;
echo wp_kses_post( $headline ); if( !empty( $headline_destination_url ) ) echo '</a>'; echo "</$headline_tag>"; } break;
case 'divider' : if( $has_divider ) { ?> <div class="decoration"> <div class="decoration-inside"></div> </div> <?php } break;
case 'sub_headline' : if( !empty( $sub_headline ) ) { echo "<$sub_headline_tag class='sow-sub-headline'>";
if( !empty( $sub_headline_destination_url ) ): ?> <a href="<?php echo sow_esc_url( $sub_headline_destination_url ) ?>" <?php echo $sub_headline_new_window ? 'target="_blank" rel="noopener noreferrer"' : '' ?>> <?php endif;
echo wp_kses_post( $sub_headline ); if( !empty( $sub_headline_destination_url ) ) echo '</a>'; echo "</$sub_headline_tag>"; } break; } } ?> </div>
|