PluginProbe
GDPRess | Eliminate external requests to increase GDPR compliance / trunk
GDPRess | Eliminate external requests to increase GDPR compliance vtrunk
trunk 1.0.2 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1
gdpr-press / src / Admin / Settings / Help.php

Help.php in GDPRess | Eliminate external requests to increase GDPR compliance trunk, at src/Admin/Settings/Help.php

86 lines 4.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package GDPRess
4 * @author Daan van den Bergh
5 * https://daan.dev
6 */
7
8 namespace GDPRess\Admin\Settings;
9
10
11 class Help extends Builder {
12
13 public function __construct() {
14 $this->init();
15 }
16
17 private function init() {
18 // Content
19 add_filter( 'gdpress_help_content', [ $this, 'content' ], 20 );
20 }
21
22 public function content() {
23 $tweet_url = add_query_arg(
24 [
25 'text' => sprintf(
26 _x( 'I am using %s for `@WordPress`! Eliminate external requests and increase GDPR compliance. Try it for yourself:', 'Promotional Tweet text on Help tab in Settings screen', 'gdpr-press' ),
27 wp_strip_all_tags( (string) apply_filters( 'gdpress_settings_page_title', 'GDPRess' ) )
28 ),
29 'via' => 'Dan0sz',
30 'hashtags' => 'GDPR,Privacy,WordPress',
31 'url' => esc_url_raw( (string) apply_filters( 'gdpress_help_tab_plugin_url', 'https://wordpress.org/plugins/gdpr-press/' ) ),
32 ],
33 'https://twitter.com/intent/tweet'
34 );
35 ?>
36 <div class="gdpress-help-container">
37 <div class="content">
38 <h2><?php echo esc_html( sprintf( __( 'Thank you for using %s!', 'gdpr-press' ), wp_strip_all_tags( apply_filters( 'gdpress_settings_page_title', 'GDPRess' ) ) ) ); ?></h2>
39 <p class="about">
40 <?php echo esc_html( sprintf( __( 'Need help configuring %s? Please refer to the links below to get you started.', 'gdpr-press' ), wp_strip_all_tags( apply_filters( 'gdpress_settings_page_title', 'GDPRess' ) ) ) ); ?>
41 </p>
42 <div class="column-container">
43 <div class="column">
44 <h3>
45 <?php _e( 'Need Help?', 'gdpr-press' ); ?>
46 </h3>
47 <ul>
48 <li><a target="_blank" rel="noopener noreferrer"
49 href="<?php echo esc_url( apply_filters( 'gdpress_settings_help_support_link', 'https://wordpress.org/support/plugin/gdpr-press/' ) ); ?>"><i
50 class="dashicons dashicons-email"></i><?php echo esc_html__( 'Get Support', 'gdpr-press' ); ?></a></li>
51 </ul>
52 </div>
53 <div class="column">
54 <h3><?php echo esc_html( sprintf( __( 'Support %s & Spread the Word!', 'gdpr-press' ), wp_strip_all_tags( apply_filters( 'gdpress_settings_page_title', 'GDPRess' ) ) ) ); ?></h3>
55 <ul>
56 <li>
57 <a target="_blank" rel="noopener noreferrer"
58 href="<?php echo esc_url( apply_filters( 'gdpress_help_tab_review_link', 'https://wordpress.org/support/plugin/gdpr-press/reviews/?rate=5#new-post' ) ); ?>">
59 <i class="dashicons dashicons-star-filled"></i>
60 <?php echo esc_html__( 'Write a 5-star Review or,', 'gdpr-press' ); ?>
61 </a>
62 </li>
63 <li>
64 <a target="_blank" rel="noopener noreferrer" href="<?php echo esc_url( $tweet_url ); ?>">
65 <i class="dashicons dashicons-twitter"></i>
66 <?php echo esc_html__( 'Tweet about it!', 'gdpr-press' ); ?>
67 </a>
68 </li>
69 </ul>
70 </div>
71 <div class="column last">
72 <h3 class="signature"><?php echo esc_html__( 'Coded with ❤️ by', 'gdpr-press' ); ?> </h3>
73 <p class="signature">
74 <a target="_blank" rel="noopener noreferrer" title="<?php echo esc_attr__( 'Visit Daan.dev', 'gdpr-press' ); ?>" href="https://daan.dev/wordpress-plugins/">
75 <img class="signature-image" alt="<?php echo esc_attr__( 'Visit Daan.dev', 'gdpr-press' ); ?>"
76 src="<?php echo esc_url( plugin_dir_url( GDPRESS_PLUGIN_FILE ) . 'assets/images/logo-color@2x.png' ); ?>"/>
77 </a>
78 </p>
79 </div>
80 </div>
81 </div>
82 </div>
83 <?php
84 }
85 }
86