banner.php
66 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Main renderer for the Review Banner |
| 5 | * |
| 6 | * @category Child Plugin |
| 7 | * @author iClyde <kontakt@iclyde.pl> |
| 8 | */ |
| 9 | |
| 10 | // Namespace |
| 11 | namespace Inisev\Subs; |
| 12 | |
| 13 | // Disallow direct access |
| 14 | if (!defined('ABSPATH')) exit; |
| 15 | |
| 16 | ?> |
| 17 | |
| 18 | <section class="nri-nice-review-wrapper" id="nri-slug-wrapper" data-slug="<?php echo esc_html($this->slug); ?>"> |
| 19 | <div class="nri-nice-review nri-CDP" id="nri-sub-wrapper"> |
| 20 | <img src="<?php $this->_asset('imgs/background-pattern.svg'); ?>" alt="Background with stars" class="nri-background-pattern"> |
| 21 | <img src="<?php $this->_asset('imgs/BM-background.svg'); ?>" alt="Background Image" class="nri-BM-background"> |
| 22 | <div class="nri-main-image-wrapper"> |
| 23 | <div class="nri-main-image-content"> |
| 24 | <img src="<?php $this->_asset('imgs/main-image.svg'); ?>" alt="Images top" class="nri-main-image"> |
| 25 | <svg class="nri-main-image-part-1" width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 26 | <path fill-rule="evenodd" clip-rule="evenodd" d="M0.16333 20.7604V0.976166L19.9476 10.8713L0.16333 20.7604ZM3.9547 7.10886V14.6277L11.4697 10.8713L3.9547 7.10886Z" fill="#6BB4A7"/> |
| 27 | </svg> |
| 28 | <img src="<?php $this->_asset('imgs/main-image-part-2.svg'); ?>" alt="Images middle" class="nri-main-image-part-2"> |
| 29 | <svg class="nri-main-image-part-3" width="32" height="12" viewBox="0 0 32 12" fill="none" xmlns="http://www.w3.org/2000/svg"> |
| 30 | <path fill-rule="evenodd" clip-rule="evenodd" d="M7.05762 11.0941L0.098938 4.57857L2.51846 2.03343L7.05821 6.28666L12.8091 0.902252L18.5583 6.28666L24.3115 0.902252L31.2741 7.41783L28.8552 9.96297L24.3115 5.70974L18.5578 11.0941L12.8086 5.70974L7.05762 11.0941Z" fill="#6BB4A7"/> |
| 31 | </svg> |
| 32 | <img src="<?php $this->_asset('imgs/main-image-part-4.svg'); ?>" alt="Images end" class="nri-main-image-part-4"> |
| 33 | </div> |
| 34 | </div> |
| 35 | <div class="nri-content"> |
| 36 | <div class="nri-text"> |
| 37 | <p>You’ve been using the <a href="<?php echo $this->plugin_menu_url; ?>"><?php echo $this->name; ?></a> plugin for over <?php echo $this->days; ?> days<?php echo (($this->debug === true)?' ('.$this->minutes.' minutes)':''); ?> now – entirely <b>for FREE :)</b></p> |
| 38 | <p>Don’t worry, we’re not asking you to upgrade to premium.<br class="visible-max-1300"> But maybe you can give us a nice review (if you like it)? We put a lot of effort into the free plugin, and made it feature-rich. It would motivate us a lot! Is that fair?</p> |
| 39 | </div> |
| 40 | <div class="nri-options-section"> |
| 41 | <a href="<?php echo $this->review_url; ?>" target="_blank" class="nri-leave-review-link nri-dismiss"> |
| 42 | <div class="nri-option-1"> |
| 43 | <button class="nri-round-button">Yes, that's fair!</button> |
| 44 | <svg width="185" height="34"> |
| 45 | <path d="M 0 0 L 185 0 L 165 17 L 185 34 L 0 34 Z" /> |
| 46 | <text x="85" y="19" fill="#FFFFFF" text-anchor="middle" alignment-baseline="middle"> |
| 47 | Yes, that's fair! |
| 48 | </text> |
| 49 | </svg> |
| 50 | <span>Let me give a nice review</span> |
| 51 | </div> |
| 52 | </a> |
| 53 | <div class="nri-option-2"> |
| 54 | <button class="nri-remind">Ask me later</button> |
| 55 | </div> |
| 56 | <div class="nri-option-3"> |
| 57 | <button class="nri-dismiss">I already did</button> |
| 58 | </div> |
| 59 | <div class="nri-option-4"> |
| 60 | <button class="nri-dismiss">I'm just taking, not giving</button> |
| 61 | </div> |
| 62 | </div> |
| 63 | </div> |
| 64 | </div> |
| 65 | </section> |
| 66 |