PluginProbe ʕ •ᴥ•ʔ
Hustle – Email Marketing, Lead Generation, Optins, Popups / 4.6
Hustle – Email Marketing, Lead Generation, Optins, Popups v4.6
7.8.14.2 7.8.14 7.8.14.1 7.8.13 7.8.13.1 trunk 3.0 3.1 3.1.1 3.1.2 3.1.3 3.1.4 4.3.2 4.4.4 4.4.5 4.4.5.1 4.4.5.4 4.6 4.6.1.1 4.6.1.4 4.7.0.2 4.7.0.3 4.7.0.7 4.7.0.9 4.7.1.0 4.7.1.1 4.8.0.0 5.0.0 5.0.1 5.0.1.1 5.0.1.2 5.1 5.1.1 5.1.2 5.1.3 5.1.3.1 5.1.3.2 5.1.4 5.1.5 6.0 6.0.1 6.0.2 6.0.3 6.0.4.2 6.0.5 6.0.6.1 6.0.7 6.0.8.1 6.0.9 7.0.0.1 7.0.2 7.0.3 7.0.4 7.1.0 7.1.1 7.2.0 7.2.1 7.3.0 7.3.1 7.3.3 7.3.5 7.3.6 7.3.7 7.4.0 7.4.1 7.4.11 7.4.13 7.4.13.1 7.4.2 7.4.3 7.4.4 7.4.5 7.4.5.1 7.4.5.2 7.4.6 7.4.7 7.5.0 7.6.0 7.6.1 7.6.3 7.6.4 7.6.6 7.7.0 7.7.1 7.8.0 7.8.1 7.8.10 7.8.10.1 7.8.10.2 7.8.11 7.8.12 7.8.12.1 7.8.2 7.8.3 7.8.4 7.8.5 7.8.6 7.8.7 7.8.8 7.8.9 7.8.9.1 7.8.9.2 7.8.9.3
wordpress-popup / css / tpl / simple / template.php
wordpress-popup / css / tpl / simple Last commit date
img 12 years ago style.css 12 years ago style.php 12 years ago template.php 12 years ago
template.php
97 lines
1 <?php
2 /**
3 * File is included inside an IncPopupItem object.
4 * All variables of the object are available in this template.
5 */
6
7 $has_title = ! empty( $this->title );
8 $has_subtitle = ! empty( $this->subtitle );
9 $has_cta = ! empty( $this->cta_label ) && ! empty( $this->cta_link );
10 $has_img = ! empty( $this->image );
11 $has_buttons = $has_cta || $this->can_hide;
12
13 if ( ! $this->image_mobile && wp_is_mobile() ) { $has_img = false; }
14
15 $msg_class = '';
16 if ( $has_img ) {
17 $img_left = ($this->image_pos == 'left');
18 $msg_class .= 'img-' . $this->image_pos . ' ';
19 } else {
20 $msg_class .= 'no-img ';
21 }
22 if ( $this->is_preview ) {
23 $msg_class .= 'preview ';
24 if ( ! $this->image_mobile ) {
25 $msg_class .= 'mobile-no-img ';
26 }
27 }
28 if ( $has_buttons ) {
29 $msg_class .= 'buttons ';
30 }
31 if ( $this->round_corners ) { $msg_class .= 'rounded '; }
32 if ( $this->custom_size ) { $msg_class .= 'custom-size '; }
33 $msg_class .= 'wdpu-' . $this->id . ' ';
34
35 $move_class = $this->custom_size ? '' : 'no-move-x';
36
37 ?>
38 <div id="<?php echo esc_attr( $this->code->id ); ?>"
39 class="style-simple wdpu-container wdpu-background <?php echo esc_attr( $msg_class ); ?>"
40 style="display: none;">
41
42 <div class="wdpu-msg resize move <?php echo esc_attr( $move_class ); ?>">
43 <a href="#" class="wdpu-close" title="<?php _e( 'Close this box', PO_LANG ); ?>"></a>
44
45 <div class="wdpu-msg-inner resize">
46 <?php if ( $has_img && $img_left ) : ?>
47 <div class="wdpu-image">
48 <img src="<?php echo esc_url( $this->image ); ?>" />
49 </div>
50 <?php endif; ?>
51
52 <div class="wdpu-text">
53 <div class="wdpu-inner <?php if ( ! $has_buttons ) { echo esc_attr( 'no-bm' ); } ?>">
54 <?php if ( $has_title || $has_subtitle ) : ?>
55 <div class="wdpu-head">
56 <?php if ( $has_title ) : ?>
57 <div class="wdpu-title">
58 <?php echo esc_html( $this->title ); ?>
59 </div>
60 <?php endif; ?>
61 <?php if ( $has_subtitle ) : ?>
62 <div class="wdpu-subtitle">
63 <?php echo esc_html( $this->subtitle ); ?>
64 </div>
65 <?php endif; ?>
66 </div>
67 <?php endif; ?>
68 <div class="wdpu-content">
69 <?php echo '' . apply_filters( 'the_content', $this->content ); ?>
70 </div>
71 </div>
72
73 <?php if ( $has_buttons ) : ?>
74 <div class="wdpu-buttons">
75 <?php if ( $has_cta ) : ?>
76 <a href="<?php echo esc_url( $this->cta_link ); ?>" class="wdpu-cta">
77 <?php echo esc_html( $this->cta_label ); ?>
78 </a>
79 <?php endif; ?>
80
81 <?php if ( $this->can_hide ) : ?>
82 <a href="#" class="wdpu-hide-forever">
83 <?php _e( 'Never see this message again.', PO_LANG ); ?>
84 </a>
85 <?php endif; ?>
86 </div>
87 <?php endif; ?>
88 </div>
89
90 <?php if ( $has_img && ! $img_left ) : ?>
91 <div class="wdpu-image">
92 <img src="<?php echo esc_url( $this->image ); ?>" />
93 </div>
94 <?php endif; ?>
95 </div>
96 </div>
97 </div>