PluginProbe
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP / 1.1.1
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP v1.1.1
1.2.72 1.2.71 1.2.70 1.2.69 1.2.68 1.2.67 1.2.66 1.2.65 1.2.64 1.2.63 trunk 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.20 1.0.21 1.0.22 1.0.23 All 172 releases
userswp / widgets / reset.php

reset.php in UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP 1.1.1, at widgets/reset.php

81 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit;
4 }
5
6 /**
7 * UsersWP reset password widget.
8 *
9 * @since 1.0.22
10 */
11 class UWP_Reset_Widget extends WP_Super_Duper {
12
13 /**
14 * Register the reset password widget with WordPress.
15 *
16 */
17 public function __construct() {
18
19
20 $options = array(
21 'textdomain' => 'userswp',
22 'block-icon' => 'admin-site',
23 'block-category'=> 'widgets',
24 'block-keywords'=> "['userswp','reset']",
25 'class_name' => __CLASS__,
26 'base_id' => 'uwp_reset',
27 'name' => __('UWP > Reset','userswp'),
28 'widget_ops' => array(
29 'classname' => 'uwp-reset-class',
30 'description' => esc_html__('Displays reset password form.','userswp'),
31 ),
32 'arguments' => array(
33 'title' => array(
34 'title' => __( 'Widget title', 'userswp' ),
35 'desc' => __( 'Enter widget title.', 'userswp' ),
36 'type' => 'text',
37 'desc_tip' => true,
38 'default' => '',
39 'advanced' => false
40 ),
41 )
42
43 );
44
45
46 parent::__construct( $options );
47 }
48
49 public function output( $args = array(), $widget_args = array(), $content = '' ) {
50
51 if (is_user_logged_in()) {
52 return false;
53 }
54
55 ob_start();
56
57 echo '<div class="uwp_widgets uwp_widget_reset">';
58
59 $temp_obj = new UsersWP_Templates();
60
61 $template = $temp_obj->uwp_locate_template('reset');
62
63 echo '<div class="uwp_page">';
64
65 if ($template) {
66 include($template);
67 }
68
69 echo '</div>';
70
71 echo '</div>';
72
73 $output = ob_get_contents();
74
75 ob_end_clean();
76
77 return trim($output);
78
79 }
80
81 }