fields-default.php
7 years ago
link-checking.php
3 years ago
link-rules.php
3 years ago
support.php
1 year ago
support.php
84 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Tab Support |
| 4 | * |
| 5 | * @package WPEL |
| 6 | * @category WordPress Plugin |
| 7 | * @version 2.3 |
| 8 | * @link https://www.webfactoryltd.com/ |
| 9 | * @license Dual licensed under the MIT and GPLv2+ licenses |
| 10 | * |
| 11 | * @var array $vars |
| 12 | * @option array "tabs" |
| 13 | */ |
| 14 | ?> |
| 15 | <h3><?php esc_html_e( 'Exclude or include by data-attribute', 'wp-external-links' ) ?></h3> |
| 16 | <p> |
| 17 | <?php WPEL_Plugin::wp_kses_wf(__('The <code>data-wpel-link</code> attribute can be set on links and forces the plugin to treat those links that way.', 'wp-external-links' )); ?> |
| 18 | </p> |
| 19 | <ul> |
| 20 | <li><?php WPEL_Plugin::wp_kses_wf(__('Links with <code>data-wpel-link="internal"</code> will be treated as internal links.', 'wp-external-links' )); ?></li> |
| 21 | <li><?php WPEL_Plugin::wp_kses_wf(__('Links with <code>data-wpel-link="external"</code> will be treated as external links.', 'wp-external-links' )); ?></li> |
| 22 | <li><?php WPEL_Plugin::wp_kses_wf(__('Links with <code>data-wpel-link="exclude"</code> will be treated as excluded links (which have their own settings or will be treated as internal links).', 'wp-external-links' )); ?></li> |
| 23 | <li><?php WPEL_Plugin::wp_kses_wf(__('Links with <code>data-wpel-link="ignore"</code> will be completely ignored by this plugin.', 'wp-external-links' )); ?></li> |
| 24 | </ul> |
| 25 | |
| 26 | <h3><?php esc_html_e( 'FAQ', 'wp-external-links' ); ?></h3> |
| 27 | <p><?php WPEL_Plugin::wp_kses_wf(__('On the <a href="https://wordpress.org/plugins/wp-external-links/faq/" target="_blank">FAQ page</a> you can find some additional tips & tricks.', 'wp-external-links' )); ?></p> |
| 28 | |
| 29 | <h3><?php esc_html_e( 'Reported issues', 'wp-external-links' ); ?></h3> |
| 30 | <p><?php WPEL_Plugin::wp_kses_wf(__('When you experience problems using this plugin please look if your problem was <a href="https://wordpress.org/support/plugin/wp-external-links" target="_blank">already reported</a>.', 'wp-external-links' )); ?></p> |
| 31 | |
| 32 | <h3><?php esc_html_e( 'Send your issue', 'wp-external-links' ); ?></h3> |
| 33 | <p><?php WPEL_Plugin::wp_kses_wf(__('If the issue wasn\'t reported yet then you should <a href="https://wordpress.org/support/plugin/wp-external-links#postform" target="_blank">post your problem</a>. <b>Our average response time is a few hours, and we reply to every message!</b>', 'wp-external-links' )); ?> |
| 34 | <?php WPEL_Plugin::wp_kses_wf(__( '<br>Make sure you copy/paste the technical information displayed below. Without it we can\'t help you.', 'wp-external-links' )); ?> |
| 35 | </p> |
| 36 | <p> |
| 37 | <button class="button js-wpel-copy"><?php esc_html_e( 'Copy Technical Info', 'wp-external-links' ); ?></button> |
| 38 | </p> |
| 39 | <p> |
| 40 | <textarea id="plugin-settings" class="large-text js-wpel-copy-target" rows="8" readonly="readonly"> |
| 41 | <?php esc_html_e( 'WP URL: ', 'wp-external-links' ); echo esc_html(get_bloginfo( 'wpurl' )); ?> |
| 42 | |
| 43 | <?php esc_html_e( 'WP version: ', 'wp-external-links' ); echo esc_html(get_bloginfo( 'version' )); ?> |
| 44 | |
| 45 | <?php esc_html_e( 'PHP version: ', 'wp-external-links' ); echo esc_html(phpversion()); ?> |
| 46 | |
| 47 | <?php $theme = wp_get_theme(); esc_html_e( 'Active Theme: ', 'wp-external-links' ); echo esc_html($theme->get('Name') . ', version: ' . $theme->get('Version')); ?> |
| 48 | |
| 49 | <?php esc_html_e( 'Active Plugins:', 'wp-external-links' ); ?> |
| 50 | |
| 51 | <?php |
| 52 | $plugins = get_plugins() ; |
| 53 | |
| 54 | foreach ( $plugins as $plugin => $plugin_values ) { |
| 55 | if ( ! is_plugin_active( $plugin ) ) { |
| 56 | continue; |
| 57 | } |
| 58 | |
| 59 | echo ' - '. esc_html($plugin_values[ 'Name' ]) .', version: '. esc_html($plugin_values[ 'Version' ]) . "\n"; |
| 60 | } |
| 61 | ?> |
| 62 | |
| 63 | <?php esc_html_e( 'WPEL Settings:', 'wp-external-links' ); ?> |
| 64 | |
| 65 | array( |
| 66 | <?php |
| 67 | foreach ( $vars[ 'tabs' ] as $tab_key => $values ) { |
| 68 | if ( ! isset( $values[ 'fields' ] ) ) { |
| 69 | continue; |
| 70 | } |
| 71 | |
| 72 | $option_values = $values[ 'fields' ]->get_option_values(); |
| 73 | $option_name = $values[ 'fields' ]->get_setting( 'option_name' ); |
| 74 | |
| 75 | echo esc_html("'$option_name' => "); |
| 76 | //phpcs:ignore as var_export has cleaner formatting |
| 77 | var_export( $option_values ); //phpcs:ignore |
| 78 | echo esc_html( ",\n"); |
| 79 | } |
| 80 | ?> |
| 81 | ); |
| 82 | </textarea> |
| 83 | </p> |
| 84 |