PluginProbe
Icegram Engage – Popups, Optins, CTAs & Lead Generation / 1.7
Icegram Engage – Popups, Optins, CTAs & Lead Generation v1.7
3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.1.34 3.1.35 3.1.36 3.1.37 3.1.38 3.1.39 3.1.4 3.1.40 3.1.41 3.1.42 3.1.43 trunk 1.1 1.1.1 1.1.2 1.10 1.10.1 1.10.10 1.10.11 1.10.12 All 180 releases
icegram / addons.php

addons.php in Icegram Engage – Popups, Optins, CTAs & Lead Generation 1.7, at addons.php

51 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( empty($ig_addons) ) {
4 $ig_addons = get_transient( 'icegram_addons_data' );
5 }
6 if ( empty($ig_addons) ) {
7 $ig_addons = array();
8 }
9
10 ?>
11 <div class="wrap ig_addons_wrap">
12 <h2>
13 <?php _e( 'Icegram Add-ons', 'icegram' ); ?>
14 </h2>
15 <ul class="addons">
16 <?php
17 if (count($ig_addons) > 0) {
18 foreach ($ig_addons as $addon) {
19 ?>
20 <li class="addon">
21 <a href="<?php echo $addon->link;?>?utm_source=inapp&utm_campaign=addons&utm_medium=store" target="_blank">
22 <h3><?php echo $addon->name; ?></h3>
23 <?php
24 if( !empty( $addon->category ) ) {
25 $categories = explode(",", $addon->category);
26 if (!empty($categories)) {
27 echo "<div class='ig_addon_category'>";
28 foreach ($categories as $cat) {
29 echo "<span class='{$cat}'>{$cat}</span> ";
30 }
31 echo "</div>";
32 }
33 }
34 ?>
35 <p>
36 <?php
37 if( !empty( $addon->image ) ) {
38 echo "<img src=".$addon->image.">";
39 }
40 echo $addon->descripttion; ?>
41 </p>
42 </a>
43 </li>
44 <?php
45 }
46 } else {
47 echo "<p>". __( 'Sorry! No Add-ons available currently.', 'icegram') . "</p>";
48 }
49 ?>
50 </ul>
51 </div>