class-admin-notice-custom-css.php
7 months ago
class-admin-notices.php
7 months ago
class-admin.php
7 months ago
class-attachment-fields.php
7 months ago
class-columns.php
7 months ago
class-demo-content.php
7 months ago
class-extensions.php
7 months ago
class-gallery-attachment-modal.php
7 months ago
class-gallery-datasources.php
7 months ago
class-gallery-editor.php
7 months ago
class-gallery-metabox-fields.php
7 months ago
class-gallery-metabox-items.php
7 months ago
class-gallery-metabox-settings-helper.php
7 months ago
class-gallery-metabox-settings.php
7 months ago
class-gallery-metabox-template.php
7 months ago
class-gallery-metaboxes.php
7 months ago
class-menu.php
7 months ago
class-pro-promotion.php
7 months ago
class-settings.php
7 months ago
class-silent-installer-skin.php
7 months ago
class-trial-mode.php
7 months ago
demo-content-galleries.php
7 months ago
demo-content-images.php
7 months ago
index.php
11 years ago
pro-features.php
7 months ago
view-features.php
7 months ago
view-help-demos.php
7 months ago
view-help-getting-started.php
7 months ago
view-help-pro.php
7 months ago
view-help.php
7 months ago
view-system-info.php
7 months ago
view-help-pro.php
89 lines
| 1 | <?php |
| 2 | |
| 3 | $foogallery_plans = array( |
| 4 | FOOGALLERY_PRO_PLAN_STARTER => __( 'PRO Starter', 'foogallery' ), |
| 5 | FOOGALLERY_PRO_PLAN_EXPERT => __( 'PRO Expert', 'foogallery' ), |
| 6 | FOOGALLERY_PRO_PLAN_COMMERCE => __( 'PRO Commerce', 'foogallery' ), |
| 7 | ); |
| 8 | |
| 9 | $foogallery_pro_features = foogallery_pro_features(); |
| 10 | |
| 11 | ?> |
| 12 | |
| 13 | <div id="pro_section" class="foogallery-admin-help-section" style="display: none"> |
| 14 | <section class="fgah-feature"> |
| 15 | <header> |
| 16 | <h3><?php esc_html_e( 'FooGallery PRO Plans', 'foogallery' );?></h3> |
| 17 | <p><?php esc_html_e( 'Choose from a PRO Plan that suits your requirements and budget : ', 'foogallery' );?> |
| 18 | <span class="fgah-plan-prostarter"><?php esc_html_e( 'PRO Starter', 'foogallery' );?></span>, |
| 19 | <span class="fgah-plan-pro"><?php esc_html_e( 'PRO Expert', 'foogallery' );?></span> <?php esc_html_e( 'or', 'foogallery' );?> |
| 20 | <span class="fgah-plan-commerce"><?php esc_html_e( 'PRO Commerce', 'foogallery' );?></span> |
| 21 | </p> |
| 22 | </header> |
| 23 | <footer> |
| 24 | <a class="foogallery-admin-help-button-cta" href="<?php echo esc_url ( $plans_url ); ?>"><?php esc_html_e( 'Compare FooGallery PRO Plans', 'foogallery' ); ?></a> |
| 25 | </footer> |
| 26 | </section> |
| 27 | <section class="fgah-feature"> |
| 28 | <?php if ( $show_trial_message ) { ?> |
| 29 | <header> |
| 30 | <h3><?php esc_html_e( 'FooGallery PRO Free Trial 🤩', 'foogallery' );?></h3> |
| 31 | <p><?php esc_html_e( 'Want to test out all the PRO features below? No problem! You can start a 7-day free trial immediately!', 'foogallery' );?></p> |
| 32 | </header> |
| 33 | <footer> |
| 34 | <a class="foogallery-admin-help-button-cta" href="<?php echo esc_url ( foogallery_admin_freetrial_url() ); ?>"><?php esc_html_e( 'Start Your 7-day Free Trial', 'foogallery' ); ?></a> |
| 35 | </footer> |
| 36 | <?php } else if ( $show_thanks_for_pro ) { ?> |
| 37 | <header> |
| 38 | <h3><?php echo sprintf( esc_html__( 'Thanks for your support by purchasing a %s license 😍', 'foogallery' ), '<span class="fgah-plan-' . esc_attr( $foogallery_current_plan ) . '">' . esc_html( $foogallery_plans[ $foogallery_current_plan ] ) . '</span>' );?></h3> |
| 39 | <p><?php esc_html_e( 'Check out the PRO features you can start using immediately...', 'foogallery' );?></p> |
| 40 | </header> |
| 41 | <?php } else if ( $is_trial ) { ?> |
| 42 | <header> |
| 43 | <h3><?php esc_html_e( 'Thanks for trying out PRO 😍', 'foogallery' );?></h3> |
| 44 | <p><?php esc_html_e( 'Check out the PRO features you can try out immediately...', 'foogallery' );?></p> |
| 45 | </header> |
| 46 | <?php } ?> |
| 47 | </section> |
| 48 | |
| 49 | <?php |
| 50 | $i = -1; |
| 51 | foreach ( $foogallery_pro_features as $feature ) { |
| 52 | if ( isset( $feature['hide_from_help'] ) && $feature['hide_from_help'] === true ) { |
| 53 | continue; |
| 54 | } |
| 55 | $i++; |
| 56 | ?> |
| 57 | <section class="fgah-feature fgah-feature-pro<?php echo ( $i % 2 === 0 ) ? " fgah-feature-right" : ""; ?> fgah-feature-plan-<?php echo esc_attr( $feature['plan'] ); ?>"> |
| 58 | <div> |
| 59 | <figure> |
| 60 | <a href="<?php echo esc_url( foogallery_admin_url( $feature['link'], 'help', $feature['utm_content'] ) ); ?>" target="_blank"> |
| 61 | <img src="<?php echo esc_url( $feature['image'] ); ?>" alt="<?php echo esc_html( $feature['title'] ); ?>" /> |
| 62 | </a> |
| 63 | </figure> |
| 64 | <dl> |
| 65 | <dt><?php echo esc_html( $feature['title']); ?></dt> |
| 66 | <dd> |
| 67 | <div class="fgah-feature-sub-title"> |
| 68 | <h4><?php esc_html_e( 'Available in:', 'foogallery' ); ?></h4> |
| 69 | <?php |
| 70 | $available_plans = array(); |
| 71 | foreach ( $feature['plans'] as $plan ) { |
| 72 | $available_plans[] = '<span class="fgah-plan-' . esc_attr( $plan ) . '">' . esc_html( $foogallery_plans[ $plan ] ) . '</span>'; |
| 73 | } |
| 74 | echo wp_kses_post( implode( ' ', $available_plans ) ); |
| 75 | ?> |
| 76 | </div> |
| 77 | <p> |
| 78 | <?php echo esc_html( $feature['desc'] ); ?> |
| 79 | </p> |
| 80 | <p> |
| 81 | <a href="<?php echo esc_url( foogallery_admin_url( $feature['link'], 'help', $feature['utm_content'] ) ); ?>" |
| 82 | target="_blank"><?php echo esc_html( $feature['link_text']); ?></a> |
| 83 | </p> |
| 84 | </dd> |
| 85 | </dl> |
| 86 | </div> |
| 87 | </section> |
| 88 | <?php } ?> |
| 89 | </div> |