PluginProbe ʕ •ᴥ•ʔ
Gallery : FooGallery / 3.1.36
Gallery : FooGallery v3.1.36
3.3.0 3.1.31 3.1.32 3.1.34 3.1.36 3.2.0 3.2.6 trunk 1.10.3 2.0.24 2.1.34 2.2.44 2.3.3 2.4.32 3.0.6 3.1.11 3.1.12 3.1.13 3.1.20 3.1.25 3.1.26 3.1.26.1 3.1.26.2
foogallery / includes / admin / view-help-pro.php
foogallery / includes / admin Last commit date
class-admin-notice-custom-css.php 2 months ago class-admin-notices.php 2 months ago class-admin.php 2 months ago class-attachment-fields.php 2 months ago class-columns.php 2 months ago class-demo-content.php 2 months ago class-extensions.php 2 months ago class-gallery-attachment-modal.php 2 months ago class-gallery-datasources.php 2 months ago class-gallery-editor.php 2 months ago class-gallery-metabox-fields.php 2 months ago class-gallery-metabox-items.php 2 months ago class-gallery-metabox-settings-helper.php 2 months ago class-gallery-metabox-settings.php 2 months ago class-gallery-metabox-template.php 2 months ago class-gallery-metaboxes.php 2 months ago class-menu.php 2 months ago class-pro-promotion.php 2 months ago class-settings.php 2 months ago class-silent-installer-skin.php 2 months ago class-trial-mode.php 2 months ago demo-content-galleries.php 2 months ago demo-content-images.php 2 months ago index.php 2 months ago pro-features.php 2 months ago view-features.php 2 months ago view-help-demos.php 2 months ago view-help-getting-started.php 2 months ago view-help-pro.php 2 months ago view-help.php 2 months ago view-system-info.php 2 months ago
view-help-pro.php
97 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 $current_plan_name = isset( $foogallery_plans[ $foogallery_current_plan ] ) ? $foogallery_plans[ $foogallery_current_plan ] : '';
38 ?>
39 <header>
40 <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( $current_plan_name ) . '</span>' );?></h3>
41 <p><?php esc_html_e( 'Check out the PRO features you can start using immediately...', 'foogallery' );?></p>
42 </header>
43 <?php } else if ( $is_trial ) { ?>
44 <header>
45 <h3><?php esc_html_e( 'Thanks for trying out PRO 😍', 'foogallery' );?></h3>
46 <p><?php esc_html_e( 'Check out the PRO features you can try out immediately...', 'foogallery' );?></p>
47 </header>
48 <?php } ?>
49 </section>
50
51 <?php
52 $i = -1;
53 foreach ( $foogallery_pro_features as $feature ) {
54 if ( isset( $feature['hide_from_help'] ) && $feature['hide_from_help'] === true ) {
55 continue;
56 }
57 $i++;
58 ?>
59 <section class="fgah-feature fgah-feature-pro<?php echo ( $i % 2 === 0 ) ? " fgah-feature-right" : ""; ?> fgah-feature-plan-<?php echo esc_attr( $feature['plan'] ); ?>">
60 <div>
61 <figure>
62 <a href="<?php echo esc_url( foogallery_admin_url( $feature['link'], 'help', $feature['utm_content'] ) ); ?>" target="_blank">
63 <img src="<?php echo esc_url( $feature['image'] ); ?>" alt="<?php echo esc_html( $feature['title'] ); ?>" />
64 </a>
65 </figure>
66 <dl>
67 <dt><?php echo esc_html( $feature['title']); ?></dt>
68 <dd>
69 <div class="fgah-feature-sub-title">
70 <h4><?php esc_html_e( 'Available in:', 'foogallery' ); ?></h4>
71 <?php
72 $available_plans = array();
73 $feature_plans = isset( $feature['plans'] ) && is_array( $feature['plans'] ) ? $feature['plans'] : array();
74 foreach ( $feature_plans as $plan ) {
75 if ( ! isset( $foogallery_plans[ $plan ] ) ) {
76 continue;
77 }
78
79 $available_plans[] = '<span class="fgah-plan-' . esc_attr( $plan ) . '">' . esc_html( $foogallery_plans[ $plan ] ) . '</span>';
80 }
81 echo wp_kses_post( implode( ' ', $available_plans ) );
82 ?>
83 </div>
84 <p>
85 <?php echo esc_html( $feature['desc'] ); ?>
86 </p>
87 <p>
88 <a href="<?php echo esc_url( foogallery_admin_url( $feature['link'], 'help', $feature['utm_content'] ) ); ?>"
89 target="_blank"><?php echo esc_html( $feature['link_text']); ?></a>
90 </p>
91 </dd>
92 </dl>
93 </div>
94 </section>
95 <?php } ?>
96 </div>
97