template.php
64 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 | * Placeholders: |
| 7 | * %color1% .. PopUp Color-1 |
| 8 | * %color2% .. PopUp Color-2 |
| 9 | * %id% .. Random PopUp-ID (changes on every request) |
| 10 | * %title% .. PopUp Title |
| 11 | * %subtitle% .. PopUp Subtitle |
| 12 | * %img_url% .. Feature-Image URL |
| 13 | * %content% .. PopUp Contents (with parsed shortcodes) |
| 14 | * %cta_button% .. Full CTA button tag |
| 15 | * %hide_forever% .. Full Hide-Forver button tag |
| 16 | * %outer_class% .. CSS classes (contains style-name and popup-ID) |
| 17 | * %inner_class% .. CSS classes |
| 18 | * %outer_style% .. CSS style tag contents |
| 19 | * %inner_style% .. CSS style tag contents |
| 20 | * |
| 21 | * Additional Variables |
| 22 | * $has_title .. Bool |
| 23 | * $has_subtitle .. Bool |
| 24 | * $has_cta .. Bool |
| 25 | * $img_is_left .. Bool |
| 26 | * $img_is_right .. Bool |
| 27 | * $has_buttons .. Bool |
| 28 | */ |
| 29 | |
| 30 | ?> |
| 31 | <div id="%id%" class="%outer_class%" style="%outer_style%"> |
| 32 | <div class="resize %inner_class%" style="%inner_style%"> |
| 33 | |
| 34 | <a href="#" class="wdpu-close" title="<?php _e( 'Close this box', PO_LANG ); ?>"></a> |
| 35 | |
| 36 | <div class="wdpu-msg-inner resize"> |
| 37 | <?php if ( $img_is_left ) : ?> |
| 38 | <div class="wdpu-image"><img src="%img_url%" /></div> |
| 39 | <?php endif; ?> |
| 40 | |
| 41 | <div class="wdpu-text"> |
| 42 | <div class="wdpu-inner <?php if ( ! $has_buttons ) { echo esc_attr( 'no-bm' ); } ?>"> |
| 43 | <div class="wdpu-head"> |
| 44 | <div class="wdpu-title">%title%</div> |
| 45 | <div class="wdpu-subtitle">%subtitle%</div> |
| 46 | </div> |
| 47 | <div class="wdpu-content">%content%</div> |
| 48 | </div> |
| 49 | |
| 50 | <?php if ( $has_buttons ) : ?> |
| 51 | <div class="wdpu-buttons"> |
| 52 | %cta_button% |
| 53 | %hide_forever% |
| 54 | </div> |
| 55 | <?php endif; ?> |
| 56 | </div> |
| 57 | |
| 58 | <?php if ( $img_is_right ) : ?> |
| 59 | <div class="wdpu-image"><img src="%img_url%" /></div> |
| 60 | <?php endif; ?> |
| 61 | </div> |
| 62 | |
| 63 | </div> |
| 64 | </div> |