admin-content.php
4 years ago
folder-deactivate-form.php
4 years ago
folder-popup.php
4 years ago
general-settings.php
4 years ago
help.php
5 years ago
media-cleaning.php
4 years ago
media-replace.php
5 years ago
recommended-plugins.php
5 years ago
update.php
4 years ago
upgrade-table.php
4 years ago
upgrade-to-pro.php
5 years ago
upgrade-table.php
432 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">Clean unused media files from your Media Library<span class="has-tooltip">*</span><span class="tooltip__content">Media Cleaner will first analyze your whole WordPress and show you a list of unused media files for you to go through and delete them</span></a></li> |
| 69 | <li><a href="javascript:;" class="cus-tooltip">Directly 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> |
| 70 | <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> |
| 71 | <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> |
| 72 | <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> |
| 73 | <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> |
| 74 | <li><a href="javascript:;" class="cus-tooltip">Bookmark, lock & duplicate folders<span class="has-tooltip">*</span><span class="tooltip__content">Bookmark, lock/unlock or duplicate folders for faster & easier access to your favorite folders</span></a></li> |
| 75 | <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> |
| 76 | <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> |
| 77 | <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> |
| 78 | </ul> |
| 79 | </div> |
| 80 | <div class="price-table-bottom"> |
| 81 | <div class="custom-dd"> |
| 82 | <select class="multiple-options"> |
| 83 | <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> |
| 84 | <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> |
| 85 | <option data-option="lifetime" data-header="For lifetime" data-price="119" value="<?php echo $pro_url ?>24">Updates & support for lifetime</option> |
| 86 | </select> |
| 87 | </div> |
| 88 | <a class="cart-link" target="_blank" href="<?php echo $pro_url ?>22">Buy now</a> |
| 89 | </div> |
| 90 | <div class="bottom-position"></div> |
| 91 | </div> |
| 92 | </div> |
| 93 | <div class="col-md-4 col-sm-12"> |
| 94 | <div class="price-table plus-feature"> |
| 95 | <div class="price-table-top"> |
| 96 | <div class="price-head"> |
| 97 | <div class="plan-name">Plus</div> |
| 98 | <div class="plan-price">$89<span>/year</span></div> |
| 99 | </div> |
| 100 | <div class="price-websites">For businesses with multiple websites</div> |
| 101 | <div class="price-offer">Renewals for <b>25% off</b></div> |
| 102 | </div> |
| 103 | <div class="price-table-middle"> |
| 104 | <ul> |
| 105 | <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> |
| 106 | <li><a href="javascript:;">Organize pages, posts, and media files</a></li> |
| 107 | <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> |
| 108 | <li><a href="javascript:;" class="cus-tooltip"> |
| 109 | <span class="html-tooltip dynamic last"> |
| 110 | Dynamic Folders<span class="has-tooltip">*</span> |
| 111 | <span class="tooltip-text top" style=""> |
| 112 | <?php esc_html_e("Automatically filter posts/pages/custom posts/media files based on author, date, file types & more", "folders") ?> |
| 113 | <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/dynamic-folders.gif") ?>"> |
| 114 | </span> |
| 115 | </span> |
| 116 | </a> |
| 117 | </li> |
| 118 | <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> |
| 119 | <li><a href="javascript:;" class="cus-tooltip"> |
| 120 | <span class="html-tooltip last"> |
| 121 | Metadata details on Media Library hover <span class="has-tooltip">*</span> |
| 122 | <span class="tooltip-text" style=""> |
| 123 | <?php esc_html_e("Show useful metadata including title, size, type, date, dimension & more on hover.", "folders") ?> |
| 124 | <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/folders-media.gif") ?>"> |
| 125 | </span> |
| 126 | </span> |
| 127 | </a> |
| 128 | </li> |
| 129 | <li><a href="javascript:;" class="cus-tooltip">Clean unused media files from your Media Library<span class="has-tooltip">*</span><span class="tooltip__content">Media Cleaner will first analyze your whole WordPress and show you a list of unused media files for you to go through and delete them</span></a></li> |
| 130 | <li><a href="javascript:;" class="cus-tooltip">Directly 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> |
| 131 | <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> |
| 132 | <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> |
| 133 | <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> |
| 134 | <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> |
| 135 | <li><a href="javascript:;" class="cus-tooltip">Bookmark, lock & duplicate folders<span class="has-tooltip">*</span><span class="tooltip__content">Bookmark, lock/unlock or duplicate folders for faster & easier access to your favorite folders</span></a></li> |
| 136 | <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> |
| 137 | <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> |
| 138 | <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> |
| 139 | </ul> |
| 140 | </div> |
| 141 | <div class="price-table-bottom"> |
| 142 | <div class="custom-dd"> |
| 143 | <select class="multiple-options"> |
| 144 | <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> |
| 145 | <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> |
| 146 | <option data-option="lifetime" data-header="For lifetime" data-price="229" value="<?php echo $pro_url ?>27">Updates & support for lifetime</option> |
| 147 | </select> |
| 148 | </div> |
| 149 | <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> |
| 150 | </div> |
| 151 | <div class="bottom-position"></div> |
| 152 | </div> |
| 153 | </div> |
| 154 | <div class="col-md-4 col-sm-12"> |
| 155 | <div class="price-table agency-feature"> |
| 156 | <div class="price-table-top"> |
| 157 | <div class="price-head"> |
| 158 | <div class="plan-name">Agency</div> |
| 159 | <div class="plan-price">$149<span>/year</span></div> |
| 160 | </div> |
| 161 | <div class="price-websites">For agencies who manage clients</div> |
| 162 | <div class="price-offer">Renewals for <b>25% off</b></div> |
| 163 | </div> |
| 164 | <div class="price-table-middle"> |
| 165 | <ul> |
| 166 | <li> |
| 167 | <div class="website-package"> |
| 168 | <select class="multiple-web-options"> |
| 169 | <option value="50_websites">50 websites</option> |
| 170 | <option value="500_websites">500 websites</option> |
| 171 | <option value="1000_websites">1000 websites</option> |
| 172 | </select> |
| 173 | </div> |
| 174 | </li> |
| 175 | <li><a href="javascript:;">Organize pages, posts, and media files</a></li> |
| 176 | <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> |
| 177 | <li><a href="javascript:;" class="cus-tooltip"> |
| 178 | <span class="html-tooltip dynamic last"> |
| 179 | Dynamic Folders<span class="has-tooltip">*</span> |
| 180 | <span class="tooltip-text top" style=""> |
| 181 | <?php esc_html_e("Automatically filter posts/pages/custom posts/media files based on author, date, file types & more", "folders") ?> |
| 182 | <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/dynamic-folders.gif") ?>"> |
| 183 | </span> |
| 184 | </span> |
| 185 | </a> |
| 186 | </li> |
| 187 | <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> |
| 188 | <li><a href="javascript:;" class="cus-tooltip"> |
| 189 | <span class="html-tooltip last"> |
| 190 | Metadata details on Media Library hover <span class="has-tooltip">*</span> |
| 191 | <span class="tooltip-text top" style=""> |
| 192 | <?php esc_html_e("Show useful metadata including title, size, type, date, dimension & more on hover.", "folders") ?> |
| 193 | <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/folders-media.gif") ?>"> |
| 194 | </span> |
| 195 | </span> |
| 196 | </a></li> |
| 197 | <li><a href="javascript:;" class="cus-tooltip">Clean unused media files from your Media Library<span class="has-tooltip">*</span><span class="tooltip__content">Media Cleaner will first analyze your whole WordPress and show you a list of unused media files for you to go through and delete them</span></a></li> |
| 198 | <li><a href="javascript:;" class="cus-tooltip">Directly 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> |
| 199 | <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> |
| 200 | <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> |
| 201 | <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> |
| 202 | <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> |
| 203 | <li><a href="javascript:;" class="cus-tooltip">Bookmark, lock & duplicate folders<span class="has-tooltip">*</span><span class="tooltip__content">Bookmark, lock/unlock or duplicate folders for faster & easier access to your favorite folders</span></a></li> |
| 204 | <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> |
| 205 | <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> |
| 206 | <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> |
| 207 | </ul> |
| 208 | </div> |
| 209 | <div class="price-table-bottom"> |
| 210 | <div class="custom-dd"> |
| 211 | <select class="multiple-options has-multiple-websites"> |
| 212 | <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> |
| 213 | <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> |
| 214 | <option data-option="lifetime" data-header="For lifetime" data-price="389" value="<?php echo $pro_url ?>30">Updates & support for lifetime</option> |
| 215 | </select> |
| 216 | </div> |
| 217 | <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> |
| 218 | </div> |
| 219 | <div class="bottom-position"></div> |
| 220 | </div> |
| 221 | </div> |
| 222 | </div> |
| 223 | <div class="clearfix"></div> |
| 224 | </div> |
| 225 | </div> |
| 226 | <div class="text-center price-after"> |
| 227 | <p class="money-guaranteed"><span class="dashicons dashicons-yes"></span> |
| 228 | <?php esc_html_e("30 days money back guaranteed", 'folders'); ?> |
| 229 | </p> |
| 230 | <p class="money-guaranteed"><span class="dashicons dashicons-yes"></span> |
| 231 | <?php esc_html_e("The plugin will always keep working even if you don't renew your license", 'folders'); ?> |
| 232 | </p> |
| 233 | <div class="payments"> |
| 234 | <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/payment.png") ?>" alt="Payment" class="payment-img" /> |
| 235 | </div> |
| 236 | </div> |
| 237 | <div class="folder-testimonial-list"> |
| 238 | <div class="folder-testimonial"> |
| 239 | <div class="testimonial-image"> <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/client-image.jpg") ?>"> </div> |
| 240 | <div class="testimonial-data"> |
| 241 | <div class="testimonial-title">A brilliant solution!</div> |
| 242 | <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> |
| 243 | <div class="testimonial-author">- Trevor Jordan</div> |
| 244 | </div> |
| 245 | </div> |
| 246 | </div> |
| 247 | </div> |
| 248 | </div> |
| 249 | </div> |
| 250 | <script src="<?php echo esc_url(WCP_FOLDER_URL."assets/js/select2.min.js?ver=".WCP_FOLDER_VERSION) ?>" type="text/javascript" ></script> |
| 251 | <script> |
| 252 | (function (factory) { |
| 253 | "use strict"; |
| 254 | if (typeof define === 'function' && define.amd) { |
| 255 | define(['jquery'], factory); |
| 256 | } |
| 257 | else if(typeof module !== 'undefined' && module.exports) { |
| 258 | module.exports = factory(require('jquery')); |
| 259 | } |
| 260 | else { |
| 261 | factory(jQuery); |
| 262 | } |
| 263 | }(function ($, undefined) { |
| 264 | var priceOptions = { |
| 265 | "50_websites": { |
| 266 | "1_year": { |
| 267 | "price": 149, |
| 268 | "link": "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=28" |
| 269 | }, |
| 270 | "2_year": { |
| 271 | "price": 229, |
| 272 | "link": "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=29" |
| 273 | }, |
| 274 | "lifetime": { |
| 275 | "price": 389, |
| 276 | "link": "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=30" |
| 277 | } |
| 278 | }, |
| 279 | "500_websites": { |
| 280 | "1_year": { |
| 281 | "price": 279, |
| 282 | "link": "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=31" |
| 283 | }, |
| 284 | "2_year": { |
| 285 | "price": 419, |
| 286 | "link": "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=32" |
| 287 | }, |
| 288 | "lifetime": { |
| 289 | "price": 699, |
| 290 | "link": "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=33" |
| 291 | } |
| 292 | }, |
| 293 | "1000_websites": { |
| 294 | "1_year": { |
| 295 | "price": 389, |
| 296 | "link": "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=34" |
| 297 | }, |
| 298 | "2_year": { |
| 299 | "price": 585, |
| 300 | "link": "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=35" |
| 301 | }, |
| 302 | "lifetime": { |
| 303 | "price": 959, |
| 304 | "link": "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=36" |
| 305 | } |
| 306 | } |
| 307 | }; |
| 308 | $(document).ready(function () { |
| 309 | $(document).on("click", ".pricing-table-content", function(){ |
| 310 | if(!$(this).hasClass("active")) { |
| 311 | $(".pricing-table-content").removeClass("active"); |
| 312 | $(this).addClass("active"); |
| 313 | var datFor = $(this).data("option"); |
| 314 | $(".multiple-options").each(function(){ |
| 315 | $(this).find("option").prop("selected", false); |
| 316 | $(this).find("option[data-option='"+datFor+"']").prop("selected", true); |
| 317 | $(this).trigger("change"); |
| 318 | }) |
| 319 | } |
| 320 | }); |
| 321 | if ($(".multiple-options").length) { |
| 322 | $(".multiple-options").select2({ |
| 323 | minimumResultsForSearch: -1 |
| 324 | }); |
| 325 | } |
| 326 | if ($(".multiple-web-options").length) { |
| 327 | $(".multiple-web-options").select2({ |
| 328 | minimumResultsForSearch: -1 |
| 329 | }); |
| 330 | } |
| 331 | $(document).on("change", ".multiple-options", function () { |
| 332 | priceText = $(this).find("option:selected").attr("data-header"); |
| 333 | thisValue = $(this).val(); |
| 334 | thisPrice = $(this).find("option:selected").attr("data-price"); |
| 335 | if (!$(this).hasClass("has-multiple-websites")) { |
| 336 | $(this).closest(".price-table").find("a.cart-link").attr("href", thisValue); |
| 337 | $(this).closest(".price-table").find(".plan-price").text("$" + thisPrice); |
| 338 | } else { |
| 339 | var webOption = $(".multiple-web-options").val(); |
| 340 | var priceSettings = priceOptions[webOption]; |
| 341 | var yearPlan = $(".multiple-options.has-multiple-websites option:selected").attr("data-option"); |
| 342 | if (priceSettings[yearPlan] != undefined) { |
| 343 | priceSettings = priceSettings[yearPlan]; |
| 344 | thisValue = priceSettings.link; |
| 345 | thisPrice = priceSettings.price; |
| 346 | } |
| 347 | } |
| 348 | thisOption = $(this).find("option:selected").attr("data-option"); |
| 349 | if (thisOption == "1_year") { |
| 350 | thisPrice = thisPrice + "<span>/year</span>"; |
| 351 | priceText = "Renewals for <b>25% off</b>"; |
| 352 | } else if (thisOption == "2_year") { |
| 353 | thisPrice = thisPrice + "<span>/2 years</span>"; |
| 354 | priceText = "Renewals for <b>25% off</b>"; |
| 355 | } else { |
| 356 | thisPrice = thisPrice + "<span>/lifetime</span>"; |
| 357 | priceText = "For lifetime"; |
| 358 | } |
| 359 | $(this).closest(".price-table").find("a.cart-link").attr("href", thisValue); |
| 360 | $(this).closest(".price-table").find(".plan-price").html("$" + thisPrice); |
| 361 | $(this).closest(".price-table").find(".price-offer").html(priceText); |
| 362 | }); |
| 363 | |
| 364 | $(document).on("change", ".multiple-web-options", function () { |
| 365 | $(".multiple-options.has-multiple-websites").trigger("change"); |
| 366 | }); |
| 367 | |
| 368 | if ($(".multiple-options.has-multiple-websites").length) { |
| 369 | $(".multiple-options.has-multiple-websites").trigger("change"); |
| 370 | } |
| 371 | |
| 372 | checkForPricingPos(); |
| 373 | }); |
| 374 | |
| 375 | $(window).on("scroll", function(){ |
| 376 | checkForPricingPos(); |
| 377 | }); |
| 378 | |
| 379 | $(window).on("resize", function(){ |
| 380 | checkForPricingPos(); |
| 381 | }); |
| 382 | |
| 383 | function checkForPricingPos() { |
| 384 | $(".bottom-position").each(function(){ |
| 385 | console.log($(this).offset().top - $(window).scrollTop() - $(window).height()); |
| 386 | if($(this).offset().top - $(window).scrollTop() - $(window).height() < -3) { |
| 387 | $(this).closest(".price-table").removeClass("is-fixed"); |
| 388 | $(this).closest(".price-table").find(".price-table-bottom").prop("style", ""); |
| 389 | } else { |
| 390 | $(this).closest(".price-table").addClass("is-fixed"); |
| 391 | $(this).closest(".price-table").find(".price-table-bottom").css("top", ($(window).height() - 125 )+"px"); |
| 392 | $(this).closest(".price-table").find(".price-table-bottom").css("left", $(this).offset().left+"px"); |
| 393 | $(this).closest(".price-table").find(".price-table-bottom").outerWidth($(this).closest(".price-table").width()); |
| 394 | } |
| 395 | }); |
| 396 | setTooltipPosition(); |
| 397 | } |
| 398 | |
| 399 | function setTooltipPosition() { |
| 400 | if($(".html-tooltip:not(.no-position)").length) { |
| 401 | $(".html-tooltip:not(.no-position)").each(function(){ |
| 402 | if($(this).offset().top - $(window).scrollTop() > 540) { |
| 403 | $(this).addClass("top").removeClass("side").removeClass("bottom"); |
| 404 | $(this).find(".tooltip-text").attr("style",""); |
| 405 | $(this).find(".tooltip-text").removeClass("hide-arrow"); |
| 406 | } else if($(window).height() - ($(this).offset().top - $(window).scrollTop()) > 460) { |
| 407 | $(this).addClass("bottom").removeClass("top").removeClass("side"); |
| 408 | $(this).find(".tooltip-text").attr("style",""); |
| 409 | $(this).find(".tooltip-text").removeClass("hide-arrow"); |
| 410 | } else { |
| 411 | $(this).addClass("side").removeClass("top").removeClass("bottom"); |
| 412 | if($(this).find(".tooltip-text").length) { |
| 413 | $(this).find(".tooltip-text").attr("style",""); |
| 414 | $(this).find(".tooltip-text").removeClass("hide-arrow"); |
| 415 | |
| 416 | if($(this).find(".tooltip-text").offset().top - $(window).scrollTop() - 50 < 0) { |
| 417 | $(this).find(".tooltip-text").css("margin-top", Math.abs($(this).find(".tooltip-text").offset().top - $(window).scrollTop() - 50)+"px"); |
| 418 | $(this).find(".tooltip-text").addClass("hide-arrow"); |
| 419 | } else { |
| 420 | $(this).find(".tooltip-text").attr("style",""); |
| 421 | if(($(this).find(".tooltip-text").offset().top + parseInt($(this).find(".tooltip-text").outerHeight()) - $(window).scrollTop() - $(window).height()) > 0) { |
| 422 | $(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"); |
| 423 | $(this).find(".tooltip-text").addClass("hide-arrow"); |
| 424 | } |
| 425 | } |
| 426 | } |
| 427 | } |
| 428 | }); |
| 429 | } |
| 430 | } |
| 431 | })); |
| 432 | </script> |