PluginProbe
GamiPress – Gamification plugin to reward points, badges & ranks in WordPress, now with AI / trunk
GamiPress – Gamification plugin to reward points, badges & ranks in WordPress, now with AI vtrunk
8.0.1 8.0.2 8.0.0 7.9.9.7 7.9.9.6 7.9.9.5 7.9.9.4 7.9.9.3 7.9.9.2 7.9.9.1 7.9.9 7.9.8 7.9.7 7.9.6 7.9.5 7.9.4 7.9.3 7.9.2 7.9.1 7.9.0 7.8.9 7.8.8 7.8.7 7.8.6 7.8.5 All 44 releases
gamipress / includes / widgets / email-settings-widget.php

email-settings-widget.php in GamiPress – Gamification plugin to reward points, badges & ranks in WordPress, now with AI trunk, at includes/widgets/email-settings-widget.php

39 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Email Settings Widget
4 *
5 * @package GamiPress\Widgets\Widget\Email_Settings
6 * @author GamiPress <contact@gamipress.com>, Ruben Garcia <rubengcdev@gmail.com>
7 * @since 1.0.0
8 */
9 // Exit if accessed directly
10 if( !defined( 'ABSPATH' ) ) exit;
11
12 class GamiPress_Email_Settings_Widget extends GamiPress_Widget {
13
14 /**
15 * Shortcode for this widget.
16 *
17 * @var string
18 */
19 protected $shortcode = 'gamipress_email_settings';
20
21 public function __construct() {
22 parent::__construct(
23 $this->shortcode . '_widget',
24 __( 'GamiPress: Email Settings', 'gamipress' ),
25 __( 'Display the user email notifications preferences for the GamiPress emails.', 'gamipress' )
26 );
27 }
28
29 public function get_fields() {
30 return GamiPress()->shortcodes[$this->shortcode]->fields;
31 }
32
33 public function get_widget( $args, $instance ) {
34 // Build shortcode attributes from widget instance
35 $atts = gamipress_build_shortcode_atts( $this->shortcode, $instance );
36
37 echo gamipress_do_shortcode( $this->shortcode, $atts );
38 }
39 }