Açıklama Yok

index.php 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <?php
  2. /**
  3. * Main renderer for the Carousel
  4. *
  5. * @category Child Plugin
  6. * @author iClyde <kontakt@iclyde.pl>
  7. */
  8. // Namespace
  9. namespace Inisev\Subs;
  10. // Disallow direct access
  11. if (!defined('ABSPATH')) exit;
  12. ?>
  13. <section class="ci-carrinis-wrapper">
  14. <section class="ci-carrinis" id="carrinis">
  15. <h1>Like this plugin?</h1>
  16. <h1>Then you'll LOVE our others too :)</h1>
  17. <div class="ci-carousel">
  18. <?php $this->_include('static/tabs'); ?>
  19. <div class="ci-project-content">
  20. <?php
  21. $bmi_free = $this->is_plugin_installed($this->bmi_slug);
  22. $bmi_pro = $this->is_plugin_installed($this->bmi_premium);
  23. $bmi_state = (!$bmi_free || (!$bmi_free && $bmi_pro)) ? 'install' : (($bmi_free && !$bmi_pro) ? 'upgrade' : 'already-installed')
  24. ?>
  25. <div class="ci-project ci-project-BackupMigration <?php echo 'ci-'.$bmi_state.'-state-visible'; ?>">
  26. <?php
  27. if (!$bmi_free || (!$bmi_free && $bmi_pro)) {
  28. $this->_include('projects/bmi/install');
  29. } elseif ($bmi_free && !$bmi_pro) {
  30. $this->_include('projects/bmi/upgrade');
  31. } elseif ($bmi_free && $bmi_pro) {
  32. $this->_include('projects/bmi/installed');
  33. }
  34. ?>
  35. <div class="ci-right-part">
  36. <img src="<?php $this->_asset('/projects/bmi/imgs/background-images.png'); ?>" class="ci-main-image">
  37. </div>
  38. </div>
  39. <?php
  40. $mpu_plugin = $this->is_plugin_installed($this->mpu_slug);
  41. $mpu_state = $mpu_plugin ? 'already-installed' : 'install';
  42. ?>
  43. <div class="ci-project ci-project-MyPopups <?php echo 'ci-'.$mpu_state.'-state-visible'; ?>">
  44. <?php
  45. if ($mpu_plugin) {
  46. $this->_include('projects/mpu/installed');
  47. } else {
  48. $this->_include('projects/mpu/install');
  49. }
  50. ?>
  51. <div class="ci-right-part">
  52. <img src="<?php $this->_asset('/projects/mpu/imgs/background-images.png'); ?>" class="ci-main-image">
  53. <img src="<?php $this->_asset('/projects/mpu/imgs/background-texture-green.png'); ?>" class="ci-secondary-image">
  54. </div>
  55. </div>
  56. <?php
  57. $cdp_free = $this->is_plugin_installed($this->cdp_slug);
  58. $cdp_pro = $this->is_plugin_installed($this->cdp_premium);
  59. $cdp_state = (!$cdp_free || (!$cdp_free && $cdp_pro)) ? 'install' : (($cdp_free && !$cdp_pro) ? 'upgrade' : 'already-installed');
  60. ?>
  61. <div class="ci-project ci-project-CopyDeletePosts <?php echo 'ci-'.$cdp_state.'-state-visible'; ?>">
  62. <?php
  63. if (!$cdp_free || (!$cdp_free && $cdp_pro)) {
  64. $this->_include('projects/cdp/install');
  65. } elseif ($cdp_free && !$cdp_pro) {
  66. $this->_include('projects/cdp/upgrade');
  67. } elseif ($cdp_free && $cdp_pro) {
  68. $this->_include('projects/cdp/installed');
  69. }
  70. ?>
  71. <div class="ci-right-part">
  72. <img src="<?php $this->_asset('/projects/cdp/imgs/secondary-background-image.svg'); ?>" class="ci-secondary-image">
  73. <img src="<?php $this->_asset('/projects/cdp/imgs/main-background-image.png'); ?>" class="ci-main-image">
  74. </div>
  75. </div>
  76. <div class="ci-project ci-project-TasteWP ci-install-state-visible">
  77. <?php $this->_include('projects/twp/install'); ?>
  78. <div class="ci-right-part">
  79. <img src="<?php $this->_asset('/projects/twp/imgs/background-image-1.svg'); ?>">
  80. <img src="<?php $this->_asset('/projects/twp/imgs/background-image-2.svg'); ?>">
  81. <img src="<?php $this->_asset('/projects/twp/imgs/background-image-3.svg'); ?>">
  82. </div>
  83. </div>
  84. <?php
  85. $usm_free = $this->is_plugin_installed($this->usm_slug);
  86. $usm_pro = $this->is_plugin_installed($this->usm_premium);
  87. $usm_state = (!$usm_free || (!$usm_free && $usm_pro)) ? 'install' : (($usm_free && !$usm_pro) ? 'upgrade' : 'already-installed');
  88. ?>
  89. <div class="ci-project ci-project-SocialShare <?php echo 'ci-'.$usm_state.'-state-visible'; ?>">
  90. <?php
  91. if (!$usm_free || (!$usm_free && $usm_pro)) {
  92. $this->_include('projects/usm/install');
  93. $this->_include('projects/usm/part-install');
  94. } elseif ($usm_free && !$usm_pro) {
  95. $this->_include('projects/usm/upgrade');
  96. $this->_include('projects/usm/part-upgrade');
  97. } elseif ($usm_free && $usm_pro) {
  98. $this->_include('projects/usm/part-install');
  99. $this->_include('projects/usm/installed');
  100. }
  101. ?>
  102. </div>
  103. <div class="ci-project ci-project-followIt ci-install-state-visible">
  104. <?php $this->_include('projects/fit/install'); ?>
  105. </div>
  106. </div>
  107. </div>
  108. <div class="ci-all-projects">
  109. <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>
  110. </div>
  111. </section>
  112. </section>