PluginProbe
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP / 1.2.39
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP v1.2.39
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 / users-search.php

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

72 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 users search widget.
8 *
9 * @since 1.1.2
10 */
11 class UWP_Users_Search_Widget extends WP_Super_Duper {
12
13 /**
14 * Register the profile users search 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','user', 'search']",
25 'class_name' => __CLASS__,
26 'base_id' => 'uwp_users_search',
27 'name' => __('UWP > Users Search Form','userswp'),
28 //'no_wrap' => true,
29 'widget_ops' => array(
30 'classname' => 'uwp-user-search bsui',
31 'description' => esc_html__('Displays users search form.','userswp'),
32 ),
33 'arguments' => array(
34 'title' => array(
35 'title' => __( 'Title', 'userswp' ),
36 'desc' => __( 'Enter widget title.', 'userswp' ),
37 'type' => 'text',
38 'desc_tip' => true,
39 'default' => '',
40 'advanced' => false
41 ),
42 )
43
44 );
45
46
47 parent::__construct( $options );
48 }
49
50 /**
51 * The Super block output function.
52 *
53 * @param array $args
54 * @param array $widget_args
55 * @param string $content
56 *
57 * @return mixed|string|bool
58 */
59 public function output( $args = array(), $widget_args = array(), $content = '' ) {
60
61 ob_start();
62
63 $design_style = !empty($args['design_style']) ? esc_attr($args['design_style']) : uwp_get_option("design_style",'bootstrap');
64 $template = $design_style ? $design_style."/search-form.php" : "search-form.php";
65
66 uwp_get_template($template, $args);
67
68 return ob_get_clean();
69
70 }
71
72 }