| 1 |
<!-- This file should primarily consist of HTML with a little bit of PHP. --> |
| 2 |
<?php |
| 3 |
// Get plugin data for dynamic buttons |
| 4 |
$am_plugins = $this->get_am_plugins(); |
| 5 |
|
| 6 |
// Define plugin mappings |
| 7 |
$plugin_mappings = array( |
| 8 |
'fox-lms' => 'fox-lms', |
| 9 |
'quiz-maker' => 'quiz-maker', |
| 10 |
'poll-maker' => 'poll-maker', |
| 11 |
'ays-popup-box' => 'ays-popup-box', |
| 12 |
'gallery-photo-gallery' => 'gallery-photo-gallery', |
| 13 |
'secure-copy-content-protection' => 'secure-copy-content-protection', |
| 14 |
'ays-facebook-popup-likebox' => 'ays-facebook-popup-likebox', |
| 15 |
'chart-builder' => 'chart-builder' |
| 16 |
); |
| 17 |
|
| 18 |
// Function to get plugin button HTML |
| 19 |
function get_plugin_button_html($plugin_slug, $admin_obj) { |
| 20 |
if (!function_exists('get_plugins')) { |
| 21 |
require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
| 22 |
} |
| 23 |
|
| 24 |
$plugins = get_plugins(); |
| 25 |
$plugin_file = ''; |
| 26 |
$is_installed = false; |
| 27 |
$is_active = false; |
| 28 |
|
| 29 |
// Find plugin file |
| 30 |
foreach ($plugins as $file => $plugin_data) { |
| 31 |
if (strpos($file, $plugin_slug) !== false) { |
| 32 |
$plugin_file = $file; |
| 33 |
$is_installed = true; |
| 34 |
$is_active = is_plugin_active($file); |
| 35 |
break; |
| 36 |
} |
| 37 |
} |
| 38 |
|
| 39 |
if ($is_active) { |
| 40 |
return '<button class="ays-survey-card__btn-info ays-survey-plugin-btn disabled" disabled>' . __('Activated', 'survey-maker') . '</button>'; |
| 41 |
} elseif ($is_installed) { |
| 42 |
return '<button class="ays-survey-card__btn-info ays-survey-plugin-btn" data-action="activate" data-plugin="' . esc_attr($plugin_slug) . '">' . __('Activate', 'survey-maker') . '</button>'; |
| 43 |
} else { |
| 44 |
return '<button class="ays-survey-card__btn-info ays-survey-plugin-btn" data-action="install" data-plugin="' . esc_attr($plugin_slug) . '">' . __('Install Plugin', 'survey-maker') . '</button>'; |
| 45 |
} |
| 46 |
} |
| 47 |
?> |
| 48 |
|
| 49 |
<div class="wrap"> |
| 50 |
<h1 id="ays-survey-intro-title"><?php echo esc_html__('Please feel free to use our other awesome plugins!', "survey-maker"); ?></h1> |
| 51 |
<?php do_action('ays_survey_sale_banner'); ?> |
| 52 |
<div class="ays-survey-cards-block"> |
| 53 |
<div class="ays-survey-card"> |
| 54 |
<div class="ays-survey-card__content flexible"> |
| 55 |
<div class="ays-survey-card__content-img-box"> |
| 56 |
<img class="ays-survey-card__img" src="<?php echo esc_attr(SURVEY_MAKER_ADMIN_URL); ?>/images/icons/icon-fox-lms-128x128.png" alt="Survey Maker"> |
| 57 |
</div> |
| 58 |
<div class="ays-survey-card__text-block"> |
| 59 |
<h5 class="ays-survey-card__title"><?php echo esc_html__('Fox LMS', "survey-maker"); ?></h5> |
| 60 |
<p class="ays-survey-card__text"><?php echo esc_html__('Build and manage online courses directly on your WordPress site.', "survey-maker"); ?> |
| 61 |
<span class="ays-survey-card__text-hidden"> |
| 62 |
<?php echo esc_html__('With the FoxLMS plugin, you can create, sell, and organize courses, lessons, and quizzes, transforming your website into a dynamic e-learning platform.', "survey-maker"); ?> |
| 63 |
</span> |
| 64 |
</p> |
| 65 |
</div> |
| 66 |
</div> |
| 67 |
<div class="ays-survey-card__footer"> |
| 68 |
<?php echo get_plugin_button_html('fox-lms', $this); ?> |
| 69 |
<a target="_blank" href="https://foxlms.com/pricing/?utm_source=dashboard&utm_medium=survey-free&utm_campaign=fox-lms-our-products-page" class="ays-survey-card__btn-primary"><?php echo esc_html__('Buy Now', "survey-maker"); ?></a> |
| 70 |
</div> |
| 71 |
</div> |
| 72 |
<div class="ays-survey-card"> |
| 73 |
<div class="ays-survey-card__content flexible"> |
| 74 |
<div class="ays-survey-card__content-img-box"> |
| 75 |
<img class="ays-survey-card__img" src="<?php echo esc_attr(SURVEY_MAKER_ADMIN_URL); ?>/images/icons/quiz.png" alt="Survey Maker"> |
| 76 |
</div> |
| 77 |
<div class="ays-survey-card__text-block"> |
| 78 |
<h5 class="ays-survey-card__title"><?php echo esc_html__('Quiz Maker', "survey-maker"); ?></h5> |
| 79 |
<p class="ays-survey-card__text"><?php echo esc_html__('Create powerful and engaging quizzes. Build as many quizzes as you wish. No limit on the count of participants taking the test at the same time. Use the easy-to-use features in the plugin and attract your visitors.', "survey-maker"); ?> |
| 80 |
<span class="ays-survey-card__text-hidden"> |
| 81 |
<?php echo esc_html__('Learn what your website visitors want, need, and expect with the help of Survey Maker. Build surveys without limiting your needs.', "survey-maker"); ?> |
| 82 |
</span> |
| 83 |
</p> |
| 84 |
</div> |
| 85 |
</div> |
| 86 |
<div class="ays-survey-card__footer"> |
| 87 |
<?php echo get_plugin_button_html('quiz-maker', $this); ?> |
| 88 |
<a target="_blank" href="https://ays-pro.com/wordpress/quiz-maker/" class="ays-survey-card__btn-primary"><?php echo esc_html__('Buy Now', "survey-maker"); ?></a> |
| 89 |
</div> |
| 90 |
</div> |
| 91 |
<div class="ays-survey-card"> |
| 92 |
<div class="ays-survey-card__content flexible"> |
| 93 |
<div class="ays-survey-card__content-img-box"> |
| 94 |
<img class="ays-survey-card__img" src="<?php echo esc_attr(SURVEY_MAKER_ADMIN_URL); ?>/images/icons/icon-poll-128x128.png" alt="Poll Maker"> |
| 95 |
</div> |
| 96 |
<div class="ays-survey-card__text-block"> |
| 97 |
<h5 class="ays-survey-card__title"><?php echo esc_html__('Poll Maker', "survey-maker"); ?></h5> |
| 98 |
<p class="ays-survey-card__text"><?php echo esc_html__('Create amazing online polls for your WordPress website super easily.', "survey-maker"); ?> |
| 99 |
<span class="ays-survey-card__text-hidden"> |
| 100 |
<?php echo esc_html__('Build up various types of polls in a minute and get instant feedback on any topic or product.', "survey-maker"); ?> |
| 101 |
</span> |
| 102 |
</p> |
| 103 |
</div> |
| 104 |
</div> |
| 105 |
<div class="ays-survey-card__footer"> |
| 106 |
<?php echo get_plugin_button_html('poll-maker', $this); ?> |
| 107 |
<a target="_blank" href="https://ays-pro.com/wordpress/poll-maker/" class="ays-survey-card__btn-primary"><?php echo esc_html__('Buy Now', "survey-maker"); ?></a> |
| 108 |
</div> |
| 109 |
</div> |
| 110 |
<div class="ays-survey-card"> |
| 111 |
<div class="ays-survey-card__content flexible"> |
| 112 |
<div class="ays-survey-card__content-img-box"> |
| 113 |
<img class="ays-survey-card__img" src="<?php echo esc_attr(SURVEY_MAKER_ADMIN_URL); ?>/images/icons/icon-popup-128x128.png" alt="Popup Box"> |
| 114 |
</div> |
| 115 |
<div class="ays-survey-card__text-block"> |
| 116 |
<h5 class="ays-survey-card__title"><?php echo esc_html__('Popup Box', "survey-maker"); ?></h5> |
| 117 |
<p class="ays-survey-card__text"><?php echo esc_html__('Popup everything you want! Create informative and promotional popups all in one plugin.', "survey-maker"); ?> |
| 118 |
<span class="ays-survey-card__text-hidden"> |
| 119 |
<?php echo esc_html__('Attract your visitors and convert them into email subscribers and paying customers.', "survey-maker"); ?> |
| 120 |
</span> |
| 121 |
</p> |
| 122 |
</div> |
| 123 |
</div> |
| 124 |
<div class="ays-survey-card__footer"> |
| 125 |
<?php echo get_plugin_button_html('ays-popup-box', $this); ?> |
| 126 |
<a target="_blank" href="https://ays-pro.com/wordpress/popup-box/" class="ays-survey-card__btn-primary"><?php echo esc_html__('Buy Now', "survey-maker"); ?></a> |
| 127 |
</div> |
| 128 |
</div> |
| 129 |
<div class="ays-survey-card"> |
| 130 |
<div class="ays-survey-card__content flexible"> |
| 131 |
<div class="ays-survey-card__content-img-box"> |
| 132 |
<img class="ays-survey-card__img" src="<?php echo esc_attr(SURVEY_MAKER_ADMIN_URL); ?>/images/icons/icon-gallery-128x128.png" alt="Gallery - Photo Gallery"> |
| 133 |
</div> |
| 134 |
<div class="ays-survey-card__text-block"> |
| 135 |
<h5 class="ays-survey-card__title"><?php echo esc_html__('Gallery Photo Gallery', "survey-maker"); ?></h5> |
| 136 |
<p class="ays-survey-card__text"><?php echo esc_html__('Create unlimited galleries and include unlimited images in those galleries.', "survey-maker"); ?> |
| 137 |
<span class="ays-survey-card__text-hidden"> |
| 138 |
<?php echo esc_html__('Represent images in an attractive way. Attract people with your own single and multiple free galleries from your photo library.', "survey-maker"); ?> |
| 139 |
</span> |
| 140 |
</p> |
| 141 |
</div> |
| 142 |
</div> |
| 143 |
<div class="ays-survey-card__footer"> |
| 144 |
<?php echo get_plugin_button_html('gallery-photo-gallery', $this); ?> |
| 145 |
<a target="_blank" href="https://ays-pro.com/wordpress/photo-gallery/" class="ays-survey-card__btn-primary"><?php echo esc_html__('Buy Now', "survey-maker"); ?></a> |
| 146 |
</div> |
| 147 |
</div> |
| 148 |
<div class="ays-survey-card"> |
| 149 |
<div class="ays-survey-card__content flexible"> |
| 150 |
<div class="ays-survey-card__content-img-box"> |
| 151 |
<img class="ays-survey-card__img" src="<?php echo esc_attr(SURVEY_MAKER_ADMIN_URL); ?>/images/icons/icon-sccp-128x128.png" alt="Secure Copy Content Protection"> |
| 152 |
</div> |
| 153 |
<div class="ays-survey-card__text-block"> |
| 154 |
<h5 class="ays-survey-card__title"><?php echo esc_html__('Secure Copy Content Protection', "survey-maker"); ?></h5> |
| 155 |
<p class="ays-survey-card__text"><?php echo esc_html__('Disable the right click, copy paste, content selection and copy shortcut keys on your website.', "survey-maker"); ?> |
| 156 |
<span class="ays-survey-card__text-hidden"> |
| 157 |
<?php echo esc_html__('Protect web content from being plagiarized. Prevent plagiarism from your website with this easy to use plugin.', "survey-maker"); ?> |
| 158 |
</span> |
| 159 |
</p> |
| 160 |
</div> |
| 161 |
</div> |
| 162 |
<div class="ays-survey-card__footer"> |
| 163 |
<?php echo get_plugin_button_html('secure-copy-content-protection', $this); ?> |
| 164 |
<a target="_blank" href="https://ays-pro.com/wordpress/secure-copy-content-protection/" class="ays-survey-card__btn-primary"><?php echo esc_html__('Buy Now', "survey-maker"); ?></a> |
| 165 |
</div> |
| 166 |
</div> |
| 167 |
<div class="ays-survey-card"> |
| 168 |
<div class="ays-survey-card__content flexible"> |
| 169 |
<div class="ays-survey-card__content-img-box"> |
| 170 |
<img class="ays-survey-card__img" src="<?php echo esc_attr(SURVEY_MAKER_ADMIN_URL); ?>/images/icons/fbl_icon.jpg" alt="Personal Dictionary"> |
| 171 |
</div> |
| 172 |
<div class="ays-survey-card__text-block"> |
| 173 |
<h5 class="ays-survey-card__title"><?php echo esc_html__('Facebook Popup Likebox', "survey-maker"); ?></h5> |
| 174 |
<p class="ays-survey-card__text"><?php echo esc_html__('Promote your Facebook page and get more likes. Powerful functions will make your Facebook profile visible for those who visit your website. Give them a chance to scroll through your Facebook feed and know more about you.', "survey-maker"); ?> |
| 175 |
<span class="ays-survey-card__text-hidden"> |
| 176 |
<?php echo esc_html__('Allow your users to create their own digital dictionaries and learn new words and terms as fastest as possible.', "survey-maker"); ?> |
| 177 |
</span> |
| 178 |
</p> |
| 179 |
</div> |
| 180 |
</div> |
| 181 |
<div class="ays-survey-card__footer"> |
| 182 |
<?php echo get_plugin_button_html('ays-facebook-popup-likebox', $this); ?> |
| 183 |
<a target="_blank" href="https://ays-pro.com/wordpress/facebook-popup-likebox/" class="ays-survey-card__btn-primary"><?php echo esc_html__('Buy Now', "survey-maker"); ?></a> |
| 184 |
</div> |
| 185 |
</div> |
| 186 |
<div class="ays-survey-card"> |
| 187 |
<div class="ays-survey-card__content flexible"> |
| 188 |
<div class="ays-survey-card__content-img-box"> |
| 189 |
<img class="ays-survey-card__img" src="<?php echo esc_attr(SURVEY_MAKER_ADMIN_URL); ?>/images/icons/icon-chart-128x128.png" alt="Chartify - Best Chart Builder Plugin"> |
| 190 |
</div> |
| 191 |
<div class="ays-survey-card__text-block"> |
| 192 |
<h5 class="ays-survey-card__title"><?php echo esc_html__('Chartify – Best Chart Builder Plugin', "survey-maker"); ?></h5> |
| 193 |
<p class="ays-survey-card__text"><?php echo esc_html__('Chart Builder plugin allows you to create beautiful charts and graphs easily and quickly.', "survey-maker"); ?> |
| 194 |
</p> |
| 195 |
</div> |
| 196 |
</div> |
| 197 |
<div class="ays-survey-card__footer"> |
| 198 |
<?php echo get_plugin_button_html('chart-builder', $this); ?> |
| 199 |
<a target="_blank" href="https://ays-pro.com/wordpress/chart-builder" class="ays-survey-card__btn-primary"><?php echo esc_html__('Buy Now', "survey-maker"); ?></a> |
| 200 |
</div> |
| 201 |
</div> |
| 202 |
</div> |
| 203 |
<div class="ays-survey-see-all"> |
| 204 |
<a href="https://ays-pro.com/wordpress" target="_blank" class="ays-survey-all-btn"><?php echo esc_html__('See All Plugins', "survey-maker"); ?></a> |
| 205 |
</div> |
| 206 |
|
| 207 |
<!-- <p class="text-center coming-soon">And more and more is <span>Coming Soon</span></p> --> |
| 208 |
</div> |
| 209 |
|