admin-content.php
5 years ago
folder-deactivate-form.php
5 years ago
folder-popup.php
5 years ago
general-settings.php
5 years ago
help.php
5 years ago
media-replace.php
5 years ago
recommended-plugins.php
5 years ago
update.php
5 years ago
upgrade-table.php
5 years ago
upgrade-to-pro.php
5 years ago
upgrade-table.php
438 lines
| 1 | <?php if ( ! defined( 'ABSPATH' ) ) exit; |
| 2 | $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]="; |
| 3 | ?> |
| 4 | <link href="<?php echo esc_url(WCP_FOLDER_URL."assets/css/select2.min.css?ver=".WCP_FOLDER_VERSION) ?>" type="text/css" rel="stylesheet" /> |
| 5 | <link href="<?php echo esc_url(WCP_FOLDER_URL."assets/css/admin-setting.css?ver=".WCP_FOLDER_VERSION) ?>" type="text/css" rel="stylesheet" /> |
| 6 | <div class="modal-upgrade upgrade-block" id="folder-modal"> |
| 7 | <div class="easy-modal-inner"> |
| 8 | <div class="container"> |
| 9 | <div class="pricing-table"> |
| 10 | <div class="price-title">Unlock All Features</div> |
| 11 | <div class="pricing-table-header"> |
| 12 | <div class="pricing-table-body"> |
| 13 | <div class="pricing-table-content first active" data-option="1_year"> |
| 14 | <div class="year-col">1 Year</div> |
| 15 | <div class="update-col">Updates & Support</div> |
| 16 | <div class="pricing-discount-col"></div> |
| 17 | </div> |
| 18 | <div class="pricing-table-content second" data-option="2_year"> |
| 19 | <div class="year-col">2 Years</div> |
| 20 | <div class="update-col">Updates & Support</div> |
| 21 | <div class="pricing-discount-col"><span>32% off 😎</span></div> |
| 22 | </div> |
| 23 | <div class="pricing-table-content third" data-option="lifetime"> |
| 24 | <div class="year-col">Lifetime</div> |
| 25 | <div class="update-col">Updates & Support</div> |
| 26 | <div class="pricing-discount-col"><span>63% off 🥳</span></div> |
| 27 | </div> |
| 28 | </div> |
| 29 | </div> |
| 30 | <div class="price-tables"> |
| 31 | <div class="row"> |
| 32 | <div class="col-md-4 col-sm-12"> |
| 33 | <div class="price-table basic-feature"> |
| 34 | <div class="price-table-top"> |
| 35 | <div class="price-head"> |
| 36 | <div class="plan-name">Basic</div> |
| 37 | <div class="plan-price">$39<span>/year</span></div> |
| 38 | </div> |
| 39 | <div class="price-websites">For small website owners</div> |
| 40 | <div class="price-offer">Renewals for <b>25% off</b></div> |
| 41 | </div> |
| 42 | <div class="price-table-middle"> |
| 43 | <ul> |
| 44 | <li><a href="javascript:;" class="cus-tooltip">1 website <span class="has-tooltip">*</span><span class="tooltip__content">Use Folders on 1 domain</span></a></li> |
| 45 | <li><a href="javascript:;">Organize pages, posts, and media files</a></li> |
| 46 | <li><a href="javascript:;" class="cus-tooltip">Unlimited subfolders (with multilevel support)<span class="has-tooltip">*</span><span class="tooltip__content">Create unlimited folders, sub-folders with multi-level support</span></a></li> |
| 47 | <li><a href="javascript:;" class="cus-tooltip"> |
| 48 | <span class="html-tooltip dynamic last"> |
| 49 | Dynamic Folders<span class="has-tooltip">*</span> |
| 50 | <span class="tooltip-text" style=""> |
| 51 | <?php esc_html_e("Automatically filter posts/pages/custom posts/media files based on author, date, file types & more", "folders") ?> |
| 52 | <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/dynamic-folders.gif") ?>"> |
| 53 | </span> |
| 54 | </span> |
| 55 | </a> |
| 56 | </li> |
| 57 | <li><a href="javascript:;" class="cus-tooltip">Create folders for each post type. I.e. WooCommerce, Elementor<span class="has-tooltip">*</span><span class="tooltip__content">Use folders with other plugins that have custom post type (e.g. Elementor templates, WooCommerce & more)</span></a></li> |
| 58 | <li><a href="javascript:;" class="cus-tooltip"> |
| 59 | <span class="html-tooltip last"> |
| 60 | Metadata details on Media Library hover <span class="has-tooltip">*</span> |
| 61 | <span class="tooltip-text " style=""> |
| 62 | <?php esc_html_e("Show useful metadata including title, size, type, date, dimension & more on hover.", "folders") ?> |
| 63 | <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/folders-media.gif") ?>"> |
| 64 | </span> |
| 65 | </span> |
| 66 | </a> |
| 67 | </li> |
| 68 | <li><a href="javascript:;" class="cus-tooltip">Upload folders with all its content<span class="has-tooltip">*</span><span class="tooltip__content">Upload a folder (all its content within the folder) directly</span></a></li> |
| 69 | <li><a href="javascript:;" class="cus-tooltip">Sort folders based on the date<span class="has-tooltip">*</span><span class="tooltip__content">Sort folders based on the creation date of the folders</span></a></li> |
| 70 | <li><a href="javascript:;" class="cus-tooltip">Replace media for all file types and update file names from WordPress titles<span class="has-tooltip">*</span><span class="tooltip__content">Replace all types of media files including PDF/SVG/ZIP/DOCX/XSLX & more. While replacing compare the two files side by side</span></a></li> |
| 71 | <li><a href="javascript:;" class="cus-tooltip">Advanced Media Replacements<span class="has-tooltip">*</span><span class="tooltip__content">Replace media files when uploading and update all references in the database, change dates, organize by newer date & more without hurting your SEO</span></a></li> |
| 72 | <li><a href="javascript:;" class="cus-tooltip">User access restriction<span class="has-tooltip">*</span><span class="tooltip__content">Restrict users within their own folders only (restrict Dynamic Folder access as well)</span></a></li> |
| 73 | <li><a href="javascript:;" class="cus-tooltip">Default folder while uploading media<span class="has-tooltip">*</span><span class="tooltip__content">Upload files to a default folder if no other folder is selected while uploading</span></a></li> |
| 74 | <li><a href="javascript:;" class="cus-tooltip">Sticky folders & folder bookmarking<span class="has-tooltip">*</span><span class="tooltip__content">Pin selected folders on top of the navigation for easier access</span></a></li> |
| 75 | <li><a href="javascript:;" class="cus-tooltip">Duplicate folders<span class="has-tooltip">*</span><span class="tooltip__content">Duplicate an existing folder with all its content</span></a></li> |
| 76 | <li><a href="javascript:;" class="cus-tooltip">Lock/Unlock folders<span class="has-tooltip">*</span><span class="tooltip__content">Locked folders stay pinned, and cannot be dragged or deleted</span></a></li> |
| 77 | <li><a href="javascript:;" class="cus-tooltip">Move files to trash before permanently removing<span class="has-tooltip">*</span><span class="tooltip__content">Before deleting files permanently, move them to trash to reduce accidental deletion</span></a></li> |
| 78 | <li><a href="javascript:;" class="cus-tooltip">Customize folder styles with fonts, custom colors & more<span class="has-tooltip">*</span><span class="tooltip__content">Customize folders with your preferred colors, font size, font family & more</span></a></li> |
| 79 | <li><a href="javascript:;" class="cus-tooltip">Download folders as ZIP<span class="has-tooltip">*</span><span class="tooltip__content">Download all contents of a folder as a ZIP</span></a></li> |
| 80 | </ul> |
| 81 | </div> |
| 82 | <div class="price-table-bottom"> |
| 83 | <div class="custom-dd"> |
| 84 | <select class="multiple-options"> |
| 85 | <option data-option="1_year" data-header="Renewals for 25% off" data-price="39" value="<?php echo $pro_url ?>22">Updates & support for 1 year</option> |
| 86 | <option data-option="2_year" data-header="For 2 years" data-price="59" value="<?php echo $pro_url ?>23">Updates & support for 2 years</option> |
| 87 | <option data-option="lifetime" data-header="For lifetime" data-price="119" value="<?php echo $pro_url ?>24">Updates & support for lifetime</option> |
| 88 | </select> |
| 89 | </div> |
| 90 | <a class="cart-link" target="_blank" href="<?php echo $pro_url ?>22">Buy now</a> |
| 91 | </div> |
| 92 | <div class="bottom-position"></div> |
| 93 | </div> |
| 94 | </div> |
| 95 | <div class="col-md-4 col-sm-12"> |
| 96 | <div class="price-table plus-feature"> |
| 97 | <div class="price-table-top"> |
| 98 | <div class="price-head"> |
| 99 | <div class="plan-name">Plus</div> |
| 100 | <div class="plan-price">$89<span>/year</span></div> |
| 101 | </div> |
| 102 | <div class="price-websites">For businesses with multiple websites</div> |
| 103 | <div class="price-offer">Renewals for <b>25% off</b></div> |
| 104 | </div> |
| 105 | <div class="price-table-middle"> |
| 106 | <ul> |
| 107 | <li><a href="javascript:;" class="cus-tooltip">5 website <span class="has-tooltip">*</span><span class="tooltip__content">Use Folders on 5 domains</span></a></li> |
| 108 | <li><a href="javascript:;">Organize pages, posts, and media files</a></li> |
| 109 | <li><a href="javascript:;" class="cus-tooltip">Unlimited subfolders (with multilevel support)<span class="has-tooltip">*</span><span class="tooltip__content">Create unlimited folders, sub-folders with multi-level support</span></a></li> |
| 110 | <li><a href="javascript:;" class="cus-tooltip"> |
| 111 | <span class="html-tooltip dynamic last"> |
| 112 | Dynamic Folders<span class="has-tooltip">*</span> |
| 113 | <span class="tooltip-text top" style=""> |
| 114 | <?php esc_html_e("Automatically filter posts/pages/custom posts/media files based on author, date, file types & more", "folders") ?> |
| 115 | <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/dynamic-folders.gif") ?>"> |
| 116 | </span> |
| 117 | </span> |
| 118 | </a> |
| 119 | </li> |
| 120 | <li><a href="javascript:;" class="cus-tooltip">Create folders for each post type. I.e. WooCommerce, Elementor<span class="has-tooltip">*</span><span class="tooltip__content">Use folders with other plugins that have custom post type (e.g. Elementor templates, WooCommerce & more)</span></a></li> |
| 121 | <li><a href="javascript:;" class="cus-tooltip"> |
| 122 | <span class="html-tooltip last"> |
| 123 | Metadata details on Media Library hover <span class="has-tooltip">*</span> |
| 124 | <span class="tooltip-text" style=""> |
| 125 | <?php esc_html_e("Show useful metadata including title, size, type, date, dimension & more on hover.", "folders") ?> |
| 126 | <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/folders-media.gif") ?>"> |
| 127 | </span> |
| 128 | </span> |
| 129 | </a> |
| 130 | </li> |
| 131 | <li><a href="javascript:;" class="cus-tooltip">Upload folders with all its content<span class="has-tooltip">*</span><span class="tooltip__content">Upload a folder (all its content within the folder) directly</span></a></li> |
| 132 | <li><a href="javascript:;" class="cus-tooltip">Sort folders based on the date<span class="has-tooltip">*</span><span class="tooltip__content">Sort folders based on the creation date of the folders</span></a></li> |
| 133 | <li><a href="javascript:;" class="cus-tooltip">Replace media for all file types and update file names from WordPress titles<span class="has-tooltip">*</span><span class="tooltip__content">Replace all types of media files including PDF/SVG/ZIP/DOCX/XSLX & more. While replacing compare the two files side by side</span></a></li> |
| 134 | <li><a href="javascript:;" class="cus-tooltip">Advanced Media Replacements<span class="has-tooltip">*</span><span class="tooltip__content">Replace media files when uploading and update all references in the database, change dates, organize by newer date & more without hurting your SEO</span></a></li> |
| 135 | <li><a href="javascript:;" class="cus-tooltip">User access restriction<span class="has-tooltip">*</span><span class="tooltip__content">Restrict users within their own folders only (restrict Dynamic Folder access as well)</span></a></li> |
| 136 | <li><a href="javascript:;" class="cus-tooltip">Default folder while uploading media<span class="has-tooltip">*</span><span class="tooltip__content">Upload files to a default folder if no other folder is selected while uploading</span></a></li> |
| 137 | <li><a href="javascript:;" class="cus-tooltip">Sticky folders & folder bookmarking<span class="has-tooltip">*</span><span class="tooltip__content">Pin selected folders on top of the navigation for easier access</span></a></li> |
| 138 | <li><a href="javascript:;" class="cus-tooltip">Duplicate folders<span class="has-tooltip">*</span><span class="tooltip__content">Duplicate an existing folder with all its content</span></a></li> |
| 139 | <li><a href="javascript:;" class="cus-tooltip">Lock/Unlock folders<span class="has-tooltip">*</span><span class="tooltip__content">Locked folders stay pinned, and cannot be dragged or deleted</span></a></li> |
| 140 | <li><a href="javascript:;" class="cus-tooltip">Move files to trash before permanently removing<span class="has-tooltip">*</span><span class="tooltip__content">Before deleting files permanently, move them to trash to reduce accidental deletion</span></a></li> |
| 141 | <li><a href="javascript:;" class="cus-tooltip">Customize folder styles with fonts, custom colors & more<span class="has-tooltip">*</span><span class="tooltip__content">Customize folders with your preferred colors, font size, font family & more</span></a></li> |
| 142 | <li><a href="javascript:;" class="cus-tooltip">Download folders as ZIP<span class="has-tooltip">*</span><span class="tooltip__content">Download all contents of a folder as a ZIP</span></a></li> |
| 143 | </ul> |
| 144 | </div> |
| 145 | <div class="price-table-bottom"> |
| 146 | <div class="custom-dd"> |
| 147 | <select class="multiple-options"> |
| 148 | <option data-option="1_year" data-header="Renewals for 25% off" data-price="89" value="<?php echo $pro_url ?>25">Updates & support for 1 year</option> |
| 149 | <option data-option="2_year" data-header="For 2 years" data-price="139" value="<?php echo $pro_url ?>26">Updates & support for 2 years</option> |
| 150 | <option data-option="lifetime" data-header="For lifetime" data-price="229" value="<?php echo $pro_url ?>27">Updates & support for lifetime</option> |
| 151 | </select> |
| 152 | </div> |
| 153 | <a class="cart-link" target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options%5Bprice_id%5D=25">Buy now</a> |
| 154 | </div> |
| 155 | <div class="bottom-position"></div> |
| 156 | </div> |
| 157 | </div> |
| 158 | <div class="col-md-4 col-sm-12"> |
| 159 | <div class="price-table agency-feature"> |
| 160 | <div class="price-table-top"> |
| 161 | <div class="price-head"> |
| 162 | <div class="plan-name">Agency</div> |
| 163 | <div class="plan-price">$149<span>/year</span></div> |
| 164 | </div> |
| 165 | <div class="price-websites">For agencies who manage clients</div> |
| 166 | <div class="price-offer">Renewals for <b>25% off</b></div> |
| 167 | </div> |
| 168 | <div class="price-table-middle"> |
| 169 | <ul> |
| 170 | <li> |
| 171 | <div class="website-package"> |
| 172 | <select class="multiple-web-options"> |
| 173 | <option value="50_websites">50 websites</option> |
| 174 | <option value="500_websites">500 websites</option> |
| 175 | <option value="1000_websites">1000 websites</option> |
| 176 | </select> |
| 177 | </div> |
| 178 | </li> |
| 179 | <li><a href="javascript:;">Organize pages, posts, and media files</a></li> |
| 180 | <li><a href="javascript:;" class="cus-tooltip">Unlimited subfolders (with multilevel support)<span class="has-tooltip">*</span><span class="tooltip__content">Create unlimited folders, sub-folders with multi-level support</span></a></li> |
| 181 | <li><a href="javascript:;" class="cus-tooltip"> |
| 182 | <span class="html-tooltip dynamic last"> |
| 183 | Dynamic Folders<span class="has-tooltip">*</span> |
| 184 | <span class="tooltip-text top" style=""> |
| 185 | <?php esc_html_e("Automatically filter posts/pages/custom posts/media files based on author, date, file types & more", "folders") ?> |
| 186 | <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/dynamic-folders.gif") ?>"> |
| 187 | </span> |
| 188 | </span> |
| 189 | </a> |
| 190 | </li> |
| 191 | <li><a href="javascript:;" class="cus-tooltip">Create folders for each post type. I.e. WooCommerce, Elementor<span class="has-tooltip">*</span><span class="tooltip__content">Use folders with other plugins that have custom post type (e.g. Elementor templates, WooCommerce & more)</span></a></li> |
| 192 | <li><a href="javascript:;" class="cus-tooltip"> |
| 193 | <span class="html-tooltip last"> |
| 194 | Metadata details on Media Library hover <span class="has-tooltip">*</span> |
| 195 | <span class="tooltip-text top" style=""> |
| 196 | <?php esc_html_e("Show useful metadata including title, size, type, date, dimension & more on hover.", "folders") ?> |
| 197 | <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/folders-media.gif") ?>"> |
| 198 | </span> |
| 199 | </span> |
| 200 | </a></li> |
| 201 | <li><a href="javascript:;" class="cus-tooltip">Upload folders with all its content<span class="has-tooltip">*</span><span class="tooltip__content">Upload a folder (all its content within the folder) directly</span></a></li> |
| 202 | <li><a href="javascript:;" class="cus-tooltip">Sort folders based on the date<span class="has-tooltip">*</span><span class="tooltip__content">Sort folders based on the creation date of the folders</span></a></li> |
| 203 | <li><a href="javascript:;" class="cus-tooltip">Replace media for all file types and update file names from WordPress titles<span class="has-tooltip">*</span><span class="tooltip__content">Replace all types of media files including PDF/SVG/ZIP/DOCX/XSLX & more. While replacing compare the two files side by side</span></a></li> |
| 204 | <li><a href="javascript:;" class="cus-tooltip">Advanced Media Replacements<span class="has-tooltip">*</span><span class="tooltip__content">Replace media files when uploading and update all references in the database, change dates, organize by newer date & more without hurting your SEO</span></a></li> |
| 205 | <li><a href="javascript:;" class="cus-tooltip">User access restriction<span class="has-tooltip">*</span><span class="tooltip__content">Restrict users within their own folders only (restrict Dynamic Folder access as well)</span></a></li> |
| 206 | <li><a href="javascript:;" class="cus-tooltip">Default folder while uploading media<span class="has-tooltip">*</span><span class="tooltip__content">Upload files to a default folder if no other folder is selected while uploading</span></a></li> |
| 207 | <li><a href="javascript:;" class="cus-tooltip">Sticky folders & folder bookmarking<span class="has-tooltip">*</span><span class="tooltip__content">Pin selected folders on top of the navigation for easier access</span></a></li> |
| 208 | <li><a href="javascript:;" class="cus-tooltip">Duplicate folders<span class="has-tooltip">*</span><span class="tooltip__content">Duplicate an existing folder with all its content</span></a></li> |
| 209 | <li><a href="javascript:;" class="cus-tooltip">Lock/Unlock folders<span class="has-tooltip">*</span><span class="tooltip__content">Locked folders stay pinned, and cannot be dragged or deleted</span></a></li> |
| 210 | <li><a href="javascript:;" class="cus-tooltip">Move files to trash before permanently removing<span class="has-tooltip">*</span><span class="tooltip__content">Before deleting files permanently, move them to trash to reduce accidental deletion</span></a></li> |
| 211 | <li><a href="javascript:;" class="cus-tooltip">Customize folder styles with fonts, custom colors & more<span class="has-tooltip">*</span><span class="tooltip__content">Customize folders with your preferred colors, font size, font family & more</span></a></li> |
| 212 | <li><a href="javascript:;" class="cus-tooltip">Download folders as ZIP<span class="has-tooltip">*</span><span class="tooltip__content">Download all contents of a folder as a ZIP</span></a></li> |
| 213 | </ul> |
| 214 | </div> |
| 215 | <div class="price-table-bottom"> |
| 216 | <div class="custom-dd"> |
| 217 | <select class="multiple-options has-multiple-websites"> |
| 218 | <option data-option="1_year" data-header="Renewals for 25% off" data-price="149" value="<?php echo $pro_url ?>28">Updates & support for 1 year</option> |
| 219 | <option data-option="2_year" data-header="For 2 years" data-price="229" value="<?php echo $pro_url ?>29">Updates & support for 2 years</option> |
| 220 | <option data-option="lifetime" data-header="For lifetime" data-price="389" value="<?php echo $pro_url ?>30">Updates & support for lifetime</option> |
| 221 | </select> |
| 222 | </div> |
| 223 | <a class="cart-link" target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options%5Bprice_id%5D=28">Buy now</a> |
| 224 | </div> |
| 225 | <div class="bottom-position"></div> |
| 226 | </div> |
| 227 | </div> |
| 228 | </div> |
| 229 | <div class="clearfix"></div> |
| 230 | </div> |
| 231 | </div> |
| 232 | <div class="text-center price-after"> |
| 233 | <p class="money-guaranteed"><span class="dashicons dashicons-yes"></span> |
| 234 | <?php esc_html_e("30 days money back guaranteed", 'folders'); ?> |
| 235 | </p> |
| 236 | <p class="money-guaranteed"><span class="dashicons dashicons-yes"></span> |
| 237 | <?php esc_html_e("The plugin will always keep working even if you don't renew your license", 'folders'); ?> |
| 238 | </p> |
| 239 | <div class="payments"> |
| 240 | <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/payment.png") ?>" alt="Payment" class="payment-img" /> |
| 241 | </div> |
| 242 | </div> |
| 243 | <div class="folder-testimonial-list"> |
| 244 | <div class="folder-testimonial"> |
| 245 | <div class="testimonial-image"> <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/client-image.jpg") ?>"> </div> |
| 246 | <div class="testimonial-data"> |
| 247 | <div class="testimonial-title">A brilliant solution!</div> |
| 248 | <div class="testimonial-desc">I’ve used other folder plug-ins for my WordPress media files, but Folders is better than any of them. An uncluttered interface, intuitive to use, allows drag-and-drop and allows subfolders: exactly what I needed in a media library folder plug-in. I can’t believe it’s free!</div> |
| 249 | <div class="testimonial-author">- Trevor Jordan</div> |
| 250 | </div> |
| 251 | </div> |
| 252 | </div> |
| 253 | </div> |
| 254 | </div> |
| 255 | </div> |
| 256 | <script src="<?php echo esc_url(WCP_FOLDER_URL."assets/js/select2.min.js?ver=".WCP_FOLDER_VERSION) ?>" type="text/javascript" ></script> |
| 257 | <script> |
| 258 | (function (factory) { |
| 259 | "use strict"; |
| 260 | if (typeof define === 'function' && define.amd) { |
| 261 | define(['jquery'], factory); |
| 262 | } |
| 263 | else if(typeof module !== 'undefined' && module.exports) { |
| 264 | module.exports = factory(require('jquery')); |
| 265 | } |
| 266 | else { |
| 267 | factory(jQuery); |
| 268 | } |
| 269 | }(function ($, undefined) { |
| 270 | var priceOptions = { |
| 271 | "50_websites": { |
| 272 | "1_year": { |
| 273 | "price": 149, |
| 274 | "link": "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=28" |
| 275 | }, |
| 276 | "2_year": { |
| 277 | "price": 229, |
| 278 | "link": "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=29" |
| 279 | }, |
| 280 | "lifetime": { |
| 281 | "price": 389, |
| 282 | "link": "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=30" |
| 283 | } |
| 284 | }, |
| 285 | "500_websites": { |
| 286 | "1_year": { |
| 287 | "price": 279, |
| 288 | "link": "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=31" |
| 289 | }, |
| 290 | "2_year": { |
| 291 | "price": 419, |
| 292 | "link": "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=32" |
| 293 | }, |
| 294 | "lifetime": { |
| 295 | "price": 699, |
| 296 | "link": "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=33" |
| 297 | } |
| 298 | }, |
| 299 | "1000_websites": { |
| 300 | "1_year": { |
| 301 | "price": 389, |
| 302 | "link": "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=34" |
| 303 | }, |
| 304 | "2_year": { |
| 305 | "price": 585, |
| 306 | "link": "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=35" |
| 307 | }, |
| 308 | "lifetime": { |
| 309 | "price": 959, |
| 310 | "link": "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=36" |
| 311 | } |
| 312 | } |
| 313 | }; |
| 314 | $(document).ready(function () { |
| 315 | $(document).on("click", ".pricing-table-content", function(){ |
| 316 | if(!$(this).hasClass("active")) { |
| 317 | $(".pricing-table-content").removeClass("active"); |
| 318 | $(this).addClass("active"); |
| 319 | var datFor = $(this).data("option"); |
| 320 | $(".multiple-options").each(function(){ |
| 321 | $(this).find("option").prop("selected", false); |
| 322 | $(this).find("option[data-option='"+datFor+"']").prop("selected", true); |
| 323 | $(this).trigger("change"); |
| 324 | }) |
| 325 | } |
| 326 | }); |
| 327 | if ($(".multiple-options").length) { |
| 328 | $(".multiple-options").select2({ |
| 329 | minimumResultsForSearch: -1 |
| 330 | }); |
| 331 | } |
| 332 | if ($(".multiple-web-options").length) { |
| 333 | $(".multiple-web-options").select2({ |
| 334 | minimumResultsForSearch: -1 |
| 335 | }); |
| 336 | } |
| 337 | $(document).on("change", ".multiple-options", function () { |
| 338 | priceText = $(this).find("option:selected").attr("data-header"); |
| 339 | thisValue = $(this).val(); |
| 340 | thisPrice = $(this).find("option:selected").attr("data-price"); |
| 341 | if (!$(this).hasClass("has-multiple-websites")) { |
| 342 | $(this).closest(".price-table").find("a.cart-link").attr("href", thisValue); |
| 343 | $(this).closest(".price-table").find(".plan-price").text("$" + thisPrice); |
| 344 | } else { |
| 345 | var webOption = $(".multiple-web-options").val(); |
| 346 | var priceSettings = priceOptions[webOption]; |
| 347 | var yearPlan = $(".multiple-options.has-multiple-websites option:selected").attr("data-option"); |
| 348 | if (priceSettings[yearPlan] != undefined) { |
| 349 | priceSettings = priceSettings[yearPlan]; |
| 350 | thisValue = priceSettings.link; |
| 351 | thisPrice = priceSettings.price; |
| 352 | } |
| 353 | } |
| 354 | thisOption = $(this).find("option:selected").attr("data-option"); |
| 355 | if (thisOption == "1_year") { |
| 356 | thisPrice = thisPrice + "<span>/year</span>"; |
| 357 | priceText = "Renewals for <b>25% off</b>"; |
| 358 | } else if (thisOption == "2_year") { |
| 359 | thisPrice = thisPrice + "<span>/2 years</span>"; |
| 360 | priceText = "Renewals for <b>25% off</b>"; |
| 361 | } else { |
| 362 | thisPrice = thisPrice + "<span>/lifetime</span>"; |
| 363 | priceText = "For lifetime"; |
| 364 | } |
| 365 | $(this).closest(".price-table").find("a.cart-link").attr("href", thisValue); |
| 366 | $(this).closest(".price-table").find(".plan-price").html("$" + thisPrice); |
| 367 | $(this).closest(".price-table").find(".price-offer").html(priceText); |
| 368 | }); |
| 369 | |
| 370 | $(document).on("change", ".multiple-web-options", function () { |
| 371 | $(".multiple-options.has-multiple-websites").trigger("change"); |
| 372 | }); |
| 373 | |
| 374 | if ($(".multiple-options.has-multiple-websites").length) { |
| 375 | $(".multiple-options.has-multiple-websites").trigger("change"); |
| 376 | } |
| 377 | |
| 378 | checkForPricingPos(); |
| 379 | }); |
| 380 | |
| 381 | $(window).on("scroll", function(){ |
| 382 | checkForPricingPos(); |
| 383 | }); |
| 384 | |
| 385 | $(window).on("resize", function(){ |
| 386 | checkForPricingPos(); |
| 387 | }); |
| 388 | |
| 389 | function checkForPricingPos() { |
| 390 | $(".bottom-position").each(function(){ |
| 391 | console.log($(this).offset().top - $(window).scrollTop() - $(window).height()); |
| 392 | if($(this).offset().top - $(window).scrollTop() - $(window).height() < -3) { |
| 393 | $(this).closest(".price-table").removeClass("is-fixed"); |
| 394 | $(this).closest(".price-table").find(".price-table-bottom").prop("style", ""); |
| 395 | } else { |
| 396 | $(this).closest(".price-table").addClass("is-fixed"); |
| 397 | $(this).closest(".price-table").find(".price-table-bottom").css("top", ($(window).height() - 125 )+"px"); |
| 398 | $(this).closest(".price-table").find(".price-table-bottom").css("left", $(this).offset().left+"px"); |
| 399 | $(this).closest(".price-table").find(".price-table-bottom").outerWidth($(this).closest(".price-table").width()); |
| 400 | } |
| 401 | }); |
| 402 | setTooltipPosition(); |
| 403 | } |
| 404 | |
| 405 | function setTooltipPosition() { |
| 406 | if($(".html-tooltip:not(.no-position)").length) { |
| 407 | $(".html-tooltip:not(.no-position)").each(function(){ |
| 408 | if($(this).offset().top - $(window).scrollTop() > 540) { |
| 409 | $(this).addClass("top").removeClass("side").removeClass("bottom"); |
| 410 | $(this).find(".tooltip-text").attr("style",""); |
| 411 | $(this).find(".tooltip-text").removeClass("hide-arrow"); |
| 412 | } else if($(window).height() - ($(this).offset().top - $(window).scrollTop()) > 460) { |
| 413 | $(this).addClass("bottom").removeClass("top").removeClass("side"); |
| 414 | $(this).find(".tooltip-text").attr("style",""); |
| 415 | $(this).find(".tooltip-text").removeClass("hide-arrow"); |
| 416 | } else { |
| 417 | $(this).addClass("side").removeClass("top").removeClass("bottom"); |
| 418 | if($(this).find(".tooltip-text").length) { |
| 419 | $(this).find(".tooltip-text").attr("style",""); |
| 420 | $(this).find(".tooltip-text").removeClass("hide-arrow"); |
| 421 | |
| 422 | if($(this).find(".tooltip-text").offset().top - $(window).scrollTop() - 50 < 0) { |
| 423 | $(this).find(".tooltip-text").css("margin-top", Math.abs($(this).find(".tooltip-text").offset().top - $(window).scrollTop() - 50)+"px"); |
| 424 | $(this).find(".tooltip-text").addClass("hide-arrow"); |
| 425 | } else { |
| 426 | $(this).find(".tooltip-text").attr("style",""); |
| 427 | if(($(this).find(".tooltip-text").offset().top + parseInt($(this).find(".tooltip-text").outerHeight()) - $(window).scrollTop() - $(window).height()) > 0) { |
| 428 | $(this).find(".tooltip-text").css("margin-top", ((-1)*Math.abs($(this).find(".tooltip-text").offset().top + parseInt($(this).find(".tooltip-text").outerHeight()) - $(window).scrollTop() - $(window).height()) - 10)+"px"); |
| 429 | $(this).find(".tooltip-text").addClass("hide-arrow"); |
| 430 | } |
| 431 | } |
| 432 | } |
| 433 | } |
| 434 | }); |
| 435 | } |
| 436 | } |
| 437 | })); |
| 438 | </script> |