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.php
188 lines
| 1 | <?php |
| 2 | $instance = FooGallery_Plugin::get_instance(); |
| 3 | $info = $instance->get_plugin_info(); |
| 4 | |
| 5 | $logo = FOOGALLERY_URL . 'assets/logo.png?v=2'; |
| 6 | |
| 7 | $plugin_name = foogallery_plugin_name(); |
| 8 | $fooplugins_url = foogallery_admin_url( 'https://fooplugins.com/', 'help' ); |
| 9 | $plugin_url = foogallery_admin_url( 'https://fooplugins.com/foogallery-wordpress-gallery-plugin/', 'help' ); |
| 10 | $support_url = foogallery_admin_url( 'https://fooplugins.link/support/', 'help' ); |
| 11 | $plans_url = foogallery_admin_url( 'https://fooplugins.com/foogallery-wordpress-gallery-plugin/compare-plans/', 'help' ); |
| 12 | $support_link = sprintf( '<a href="%s" target="_blank">%s</a>', $support_url, __( 'open a support ticket', 'foogallery' ) ); |
| 13 | $support_text = sprintf( __('Still stuck? Please %s and we will help!', 'foogallery'), $support_link ); |
| 14 | |
| 15 | $fooplugins_link = sprintf( '<a href="%s" target="_blank">%s</a>', $fooplugins_url, __( 'FooPlugins', 'foogallery' ) ); |
| 16 | $link = sprintf('<a href="%s" target="_blank">%s</a>', $plugin_url, sprintf( __( 'Visit the %s Homepage', 'foogallery' ), $plugin_name ) ); |
| 17 | $tagline = sprintf( __( 'Thank you for choosing %s!<br />Better galleries for WordPress, that are faster, more flexible and beautiful!', 'foogallery' ), $plugin_name ); |
| 18 | |
| 19 | $made_by = __( 'Made with ❤️ by %s', 'foogallery' ); |
| 20 | $footer_text = sprintf( $made_by, $fooplugins_link ); |
| 21 | |
| 22 | //allow the variables to be overwritten by other things! |
| 23 | $logo = apply_filters( 'foogallery_admin_help_logo_url', $logo ); |
| 24 | |
| 25 | $fs_instance = foogallery_fs(); |
| 26 | $foogallery_current_plan = $fs_instance->get_plan_name(); |
| 27 | $is_free = $fs_instance->is_free_plan(); |
| 28 | $is_trial = $fs_instance->is_trial(); |
| 29 | $show_trial_message = !$is_trial && $is_free && !$fs_instance->is_trial_utilized(); |
| 30 | $show_thanks_for_pro = foogallery_is_pro(); |
| 31 | |
| 32 | $upgrade_tab_text = __( 'Upgrade to PRO', 'foogallery' ); |
| 33 | $upgrade_button_text = __( 'Upgrade to PRO!', 'foogallery' ); |
| 34 | |
| 35 | if ( $show_thanks_for_pro ) { |
| 36 | $upgrade_tab_text = __( 'PRO Features', 'foogallery' ); |
| 37 | } else if ( $show_trial_message ) { |
| 38 | $upgrade_tab_text = __( 'Free Trial', 'foogallery' ); |
| 39 | $upgrade_button_text = __( 'Already convinced? Upgrade to PRO!', 'foogallery' ); |
| 40 | } |
| 41 | |
| 42 | $show_demos = apply_filters( 'foogallery_admin_help_show_demos', true ); |
| 43 | ?> |
| 44 | <script type="text/javascript"> |
| 45 | jQuery(document).ready(function($) { |
| 46 | $.foogallery_help_tabs = { |
| 47 | |
| 48 | init : function() { |
| 49 | $(".foogallery-admin-help nav a").click( function(e) { |
| 50 | e.preventDefault(); |
| 51 | |
| 52 | $this = $(this); |
| 53 | |
| 54 | $this.addClass("foogallery-admin-help-tab-active"); |
| 55 | |
| 56 | $(".foogallery-admin-help-tab-active").not($this).removeClass("foogallery-admin-help-tab-active"); |
| 57 | |
| 58 | $(".foogallery-admin-help-section:visible").hide(); |
| 59 | |
| 60 | var hash = $this.attr("href"); |
| 61 | |
| 62 | $(hash+'_section').show(); |
| 63 | |
| 64 | window.location.hash = hash; |
| 65 | } ); |
| 66 | |
| 67 | if (window.location.hash) { |
| 68 | $('.foogallery-admin-help nav a[href="' + window.location.hash + '"]').click(); |
| 69 | } |
| 70 | |
| 71 | return false; |
| 72 | } |
| 73 | |
| 74 | }; //End of foogallery_help_tabs |
| 75 | |
| 76 | $.foogallery_help_tabs.init(); |
| 77 | |
| 78 | $.foogallery_import_data = { |
| 79 | init : function() { |
| 80 | $(".foogallery-admin-help-import-demos").click( function(e) { |
| 81 | e.preventDefault(); |
| 82 | |
| 83 | var $this = $(this), |
| 84 | data = { |
| 85 | 'action': $this.data( 'action' ), |
| 86 | '_wpnonce': $this.data( 'nonce' ), |
| 87 | '_wp_http_referer': encodeURIComponent( $( 'input[name="_wp_http_referer"]' ).val() ) |
| 88 | }; |
| 89 | |
| 90 | $this.prop('disable', true).addClass("foogallery-admin-help-loading"); |
| 91 | $this.find('.fgah-create-demos-text:first').html( $this.data('working') ); |
| 92 | |
| 93 | $.ajax({ |
| 94 | type: 'POST', |
| 95 | url: ajaxurl, |
| 96 | data: data, |
| 97 | cache: false, |
| 98 | success: function( html ) { |
| 99 | $this.find('.fgah-create-demos-text:first').html( $this.data('complete') ); |
| 100 | $('.fgah-demo-result').html( html ); |
| 101 | }, |
| 102 | error: function() { |
| 103 | $this.find('.fgah-create-demos-text:first').html( $this.data('error') ); |
| 104 | } |
| 105 | }).always(function(){ |
| 106 | $this.removeClass("foogallery-admin-help-loading").prop('disable', false); |
| 107 | }); |
| 108 | } ); |
| 109 | } |
| 110 | }; |
| 111 | |
| 112 | $.foogallery_import_data.init(); |
| 113 | |
| 114 | $.foogallery_demos = { |
| 115 | init : function() { |
| 116 | $(".foogallery-admin-help-demo").click( function(e) { |
| 117 | e.preventDefault(); |
| 118 | var $this = $(this), |
| 119 | $content = $( $this.attr('href') ); |
| 120 | |
| 121 | $('.foogallery-admin-help-demo').removeClass( 'foogallery-admin-help-button-active' ); |
| 122 | $this.addClass( 'foogallery-admin-help-button-active' ); |
| 123 | |
| 124 | $('.foogallery-admin-help-demo-content').hide(); |
| 125 | $content.show(); |
| 126 | } ); |
| 127 | } |
| 128 | }; |
| 129 | |
| 130 | $.foogallery_demos.init(); |
| 131 | }); |
| 132 | </script> |
| 133 | <div class="foogallery-admin-help"> |
| 134 | <div class="foogallery-admin-help-header"> |
| 135 | <div class="foogallery-admin-help-ribbon"><span><?php echo esc_html( FOOGALLERY_VERSION ); ?></span></div> |
| 136 | <img src="<?php echo esc_url( $logo ); ?>" width="200"> |
| 137 | </div> |
| 138 | <nav> |
| 139 | <a class="foogallery-admin-help-tab-active" href="#help"> |
| 140 | <?php esc_html_e( 'Welcome', 'foogallery' ); ?> |
| 141 | </a> |
| 142 | <a href="#pro"> |
| 143 | <?php esc_html_e( $upgrade_tab_text, 'foogallery' ); ?> |
| 144 | </a> |
| 145 | <a href="#demos"> |
| 146 | <?php esc_html_e( 'Demo', 'foogallery' ); ?> |
| 147 | </a> |
| 148 | <a href="#support"> |
| 149 | <?php esc_html_e( 'Support', 'foogallery' ); ?> |
| 150 | </a> |
| 151 | </nav> |
| 152 | <div class="foogallery-admin-help-content"> |
| 153 | |
| 154 | <?php include FOOGALLERY_PATH . 'includes/admin/view-help-getting-started.php'; ?> |
| 155 | |
| 156 | <?php include FOOGALLERY_PATH . 'includes/admin/view-help-pro.php'; ?> |
| 157 | |
| 158 | <?php include FOOGALLERY_PATH . 'includes/admin/view-help-demos.php'; ?> |
| 159 | |
| 160 | <div id="support_section" class="foogallery-admin-help-section" style="display: none"> |
| 161 | <section class="fgah-feature"> |
| 162 | <header> |
| 163 | <h3><?php esc_html_e( '🚑 Need help? We\'re here for you...' , 'foogallery' );?></h3> |
| 164 | </header> |
| 165 | <ul class="fgah-help-list"> |
| 166 | <li> |
| 167 | <a href="<?php echo esc_url( foogallery_admin_url( 'https://fooplugins.com/documentation/foogallery/', 'help') ); ?>" target="_blank"><?php esc_html_e('FooGallery Documentation','foogallery'); ?></a> |
| 168 | - <?php esc_html_e('Our documentation covers everything you need to know, from install instructions and account management, to troubleshooting common issues and extending the functionality.', 'foogallery'); ?> |
| 169 | </li> |
| 170 | <?php if ( $is_free ) { ?> |
| 171 | <li> |
| 172 | <a href="https://wordpress.org/support/plugin/foogallery/" target="_blank"><?php esc_html_e('FooGallery WordPress.org Support','foogallery'); ?></a> |
| 173 | - <?php esc_html_e('We actively monitor and answer all questions posted on WordPress.org for FooGallery.', 'foogallery'); ?> |
| 174 | </li> |
| 175 | <?php } else { ?> |
| 176 | <li> |
| 177 | <a href="<?php echo esc_url( $support_url ); ?>" target="_blank"><?php esc_html_e('Premium Support','foogallery'); ?></a> |
| 178 | - <?php esc_html_e('Open a support ticket and our dedicated support team will assist. This is the fasted way to get help!', 'foogallery'); ?> |
| 179 | </li> |
| 180 | <?php } ?> |
| 181 | </ul> |
| 182 | </section> |
| 183 | </div> |
| 184 | </div> |
| 185 | <div class="foogallery-admin-help-footer"> |
| 186 | <?php echo wp_kses_post( $footer_text ); ?> |
| 187 | </div> |
| 188 | </div> |