PluginProbe ʕ •ᴥ•ʔ
Backup Migration / 1.4.9
Backup Migration v1.4.9
2.1.6 2.1.5.2 trunk 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.6.1 1.4.7 1.4.8 1.4.9 1.4.9.1 2.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.5.1
backup-backup / includes / banner / views / index.php
backup-backup / includes / banner / views Last commit date
projects 11 months ago static 11 months ago index.php 11 months ago
index.php
153 lines
1 <?php
2
3 /**
4 * Main renderer for the Carousel
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 <script type="text/javascript" charset="utf-8">
18 var inisev_carousel = { nonce: `<?php echo wp_create_nonce('inisev_carousel'); ?>` };
19 </script>
20 <script src="<?php echo $this->url . 'assets/index.min.js?v=' . filemtime($this->_root_dir . '/assets/index.min.js'); ?>" type="text/javascript" charset="utf-8" defer></script>
21 <link rel="stylesheet" type="text/css" href="<?php echo $this->url . 'assets/style.min.css?v=' . filemtime($this->_root_dir . '/assets/style.min.css'); ?>">
22 <section class="ci-carrinis-wrapper">
23 <section class="ci-carrinis" id="carrinis">
24 <h1>Like this plugin?</h1>
25 <h1>Then you'll LOVE our others too :)</h1>
26 <div class="ci-carousel">
27 <?php $this->_include('static/tabs'); ?>
28 <div class="ci-project-content">
29 <?php
30
31 $bmi_free = $this->is_plugin_installed($this->bmi_slug);
32 $bmi_pro = $this->is_plugin_installed($this->bmi_premium);
33 $bmi_state = (!$bmi_free || (!$bmi_free && $bmi_pro)) ? 'install' : (($bmi_free && !$bmi_pro) ? 'upgrade' : 'already-installed')
34
35 ?>
36 <div class="ci-project ci-project-BackupMigration <?php echo 'ci-'.$bmi_state.'-state-visible'; ?>">
37 <?php
38
39 if (!$bmi_free || (!$bmi_free && $bmi_pro)) {
40 $this->_include('projects/bmi/install');
41 } elseif ($bmi_free && !$bmi_pro) {
42 $this->_include('projects/bmi/upgrade');
43 } elseif ($bmi_free && $bmi_pro) {
44 $this->_include('projects/bmi/installed');
45 }
46
47 ?>
48 <div class="ci-right-part">
49 <img src="<?php $this->_asset('/projects/bmi/imgs/background-images.png'); ?>" class="ci-main-image">
50 </div>
51 </div>
52 <?php
53
54 $mpu_plugin = $this->is_plugin_installed($this->mpu_slug);
55 $mpu_state = $mpu_plugin ? 'already-installed' : 'install';
56
57 ?>
58 <div class="ci-project ci-project-MyPopups <?php echo 'ci-'.$mpu_state.'-state-visible'; ?>">
59 <?php
60
61 if ($mpu_plugin) {
62 $this->_include('projects/mpu/installed');
63 } else {
64 $this->_include('projects/mpu/install');
65 }
66
67 ?>
68 <div class="ci-right-part">
69 <img src="<?php $this->_asset('/projects/mpu/imgs/background-images.png'); ?>" class="ci-main-image">
70 <img src="<?php $this->_asset('/projects/mpu/imgs/background-texture-green.png'); ?>" class="ci-secondary-image">
71 </div>
72 </div>
73 <?php
74
75 $cdp_free = $this->is_plugin_installed($this->cdp_slug);
76 $cdp_pro = $this->is_plugin_installed($this->cdp_premium);
77 $cdp_state = (!$cdp_free || (!$cdp_free && $cdp_pro)) ? 'install' : (($cdp_free && !$cdp_pro) ? 'upgrade' : 'already-installed');
78
79 ?>
80 <div class="ci-project ci-project-CopyDeletePosts <?php echo 'ci-'.$cdp_state.'-state-visible'; ?>">
81 <?php
82
83 if (!$cdp_free || (!$cdp_free && $cdp_pro)) {
84 $this->_include('projects/cdp/install');
85 } elseif ($cdp_free && !$cdp_pro) {
86 $this->_include('projects/cdp/upgrade');
87 } elseif ($cdp_free && $cdp_pro) {
88 $this->_include('projects/cdp/installed');
89 }
90
91 ?>
92 <div class="ci-right-part">
93 <img src="<?php $this->_asset('/projects/cdp/imgs/secondary-background-image.svg'); ?>" class="ci-secondary-image">
94 <img src="<?php $this->_asset('/projects/cdp/imgs/main-background-image.png'); ?>" class="ci-main-image">
95 </div>
96 </div>
97 <?php
98
99 $redi_plugin = $this->is_plugin_installed($this->redi_slug);
100 $redi_state = $redi_plugin ? 'already-installed' : 'install';
101
102 ?>
103 <div class="ci-project ci-project-redRed ci-<?php echo $redi_state; ?>-state-visible">
104 <?php
105 if ($redi_state == 'install') {
106 $this->_include('projects/red/install');
107 } else {
108 $this->_include('projects/red/installed');
109 }
110 ?>
111 </div>
112 <div class="ci-project ci-project-TasteWP ci-install-state-visible">
113 <?php $this->_include('projects/twp/install'); ?>
114 <div class="ci-right-part">
115 <img src="<?php $this->_asset('/projects/twp/imgs/background-image-1.svg'); ?>">
116 <img src="<?php $this->_asset('/projects/twp/imgs/background-image-2.svg'); ?>">
117 <img src="<?php $this->_asset('/projects/twp/imgs/background-image-3.svg'); ?>">
118 </div>
119 </div>
120 <?php
121
122 $usm_free = $this->is_plugin_installed($this->usm_slug);
123 $usm_pro = $this->is_plugin_installed($this->usm_premium);
124 $usm_state = (!$usm_free || (!$usm_free && $usm_pro)) ? 'install' : (($usm_free && !$usm_pro) ? 'upgrade' : 'already-installed');
125
126 ?>
127 <div class="ci-project ci-project-SocialShare <?php echo 'ci-'.$usm_state.'-state-visible'; ?>">
128 <?php
129
130 if (!$usm_free || (!$usm_free && $usm_pro)) {
131 $this->_include('projects/usm/install');
132 $this->_include('projects/usm/part-install');
133 } elseif ($usm_free && !$usm_pro) {
134 $this->_include('projects/usm/upgrade');
135 $this->_include('projects/usm/part-upgrade');
136 } elseif ($usm_free && $usm_pro) {
137 $this->_include('projects/usm/part-install');
138 $this->_include('projects/usm/installed');
139 }
140
141 ?>
142 </div>
143 <div class="ci-project ci-project-followIt ci-install-state-visible">
144 <?php $this->_include('projects/fit/install'); ?>
145 </div>
146 </div>
147 </div>
148 <div class="ci-all-projects">
149 <a class="ci-see-all-projects" href="https://inisev.com/?utm_source=plugin_footer&utm_campaign=CDP&utm_medium=carrousel" target="_blank">See all projects</a>
150 </div>
151 </section>
152 </section>
153