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