PluginProbe
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP / 1.0.22
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP v1.0.22
1.2.73 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 All 173 releases
userswp / widgets / users.php

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

77 lines 1.8 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 users widget.
8 *
9 * @since 1.0.22
10 */
11 class UWP_Users_Widget extends WP_Super_Duper {
12
13 /**
14 * Register the users 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','users']",
25 'class_name' => __CLASS__,
26 'base_id' => 'uwp_users',
27 'name' => __('UWP > Users','userswp'),
28 'widget_ops' => array(
29 'classname' => 'uwp-users-class',
30 'description' => esc_html__('Displays users 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 ob_start();
52
53 echo '<div class="uwp_widgets uwp_widget_users">';
54
55 $temp_obj = new UsersWP_Templates();
56
57 $template = $temp_obj->uwp_locate_template('users');
58
59 echo '<div class="uwp_page">';
60
61 if ($template) {
62 include($template);
63 }
64
65 echo '</div>';
66
67 echo '</div>';
68
69 $output = ob_get_contents();
70
71 ob_end_clean();
72
73 return trim($output);
74
75 }
76
77 }