✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ premium290.web-hosting.com ​🇻​♯➤ 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 63.250.38.37 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.217.165
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/tdhomesa/public_html/wp-content/plugins/user-meta/models/classes//FormWidget.php
<?php
namespace UserMeta;

/**
 * Building FormWidget
 *
 * @author Khaled Hossain
 * @since 1.2.1
 */
class FormWidget extends \WP_Widget
{

    /**
     * Register widget with WordPress.
     */
    public function __construct()
    {
        global $userMeta;

        parent::__construct('umForm', // Base ID
        __('User Meta Form', $userMeta->name), // Name
        array(
            'description' => __('Show user registration, profile or login form as widget', $userMeta->name)
        )); // Args
    }

    /**
     * Front-end display of widget.
     *
     * @see \WP_Widget::widget()
     * @param array $args
     *            Widget arguments.
     * @param array $instance
     *            Saved values from database.
     */
    public function widget($args, $instance)
    {
        global $userMeta;
        extract($args);

        $title = is_user_logged_in() ? (! empty($instance['user_title']) ? $instance['user_title'] : null) : (! empty($instance['guest_title']) ? $instance['guest_title'] : null);
        $title = apply_filters('widget_title', $title);

        echo $before_widget;
        if (! empty($title))
            echo $before_title . $title . $after_title;

        // echo $userMeta->userUpdateRegisterProcess( $instance['action_type'], $instance['form_name'] );

        $actionType = strtolower((! empty($instance['action_type']) ? $instance['action_type'] : null));
        $form = ! empty($instance['form_name']) ? $instance['form_name'] : null;
        $diff = ! empty($instance['diff']) ? $instance['diff'] : null;

        // Replace "both" to "profile-registration" and "none" to "public"
        $actionType = str_replace(array(
            'both',
            'none'
        ), array(
            'profile-registration',
            'public'
        ), $actionType);

        if (in_array($actionType, array(
            'registration',
            'profile',
            'profile-registration',
            'public'
        )))
            echo $userMeta->userUpdateRegisterProcess($actionType, $form, $diff);
        elseif ($actionType == 'login')
            echo $userMeta->userLoginProcess($form);
        else
            echo $userMeta->showError(sprintf(__('type="%s" is invalid.', $userMeta->name), $actionType), false);

        echo $after_widget;
    }

    /**
     * Sanitize widget form values as they are saved.
     *
     * @see \WP_Widget::update()
     * @param array $new_instance
     *            Values just sent to be saved.
     * @param array $old_instance
     *            Previously saved values from database.
     * @return array Updated safe values to be saved.
     */
    public function update($new_instance, $old_instance)
    {
        return array_map('strip_tags', $new_instance);

        /*
         * $instance = array();
         * $instance[ 'guest_title' ] = strip_tags( $new_instance[ 'guest_title' ] );
         * $instance[ 'user_title' ] = strip_tags( $new_instance[ 'user_title' ] );
         * $instance[ 'hide_from_login_page' ] = strip_tags( $new_instance[ 'hide_from_login_page' ] );
         *
         * return $instance;
         */
    }

    /**
     * Back-end widget form.
     *
     * @see \WP_Widget::form()
     * @param array $instance
     *            Previously saved values from database.
     */
    public function form($instance)
    {
        global $userMeta;

        $guest_title = isset($instance['guest_title']) ? $instance['guest_title'] : null;
        $user_title = isset($instance['user_title']) ? $instance['user_title'] : null;
        $action_type = isset($instance['action_type']) ? $instance['action_type'] : null;
        $form_name = isset($instance['form_name']) ? $instance['form_name'] : null;
        $diff = isset($instance['diff']) ? $instance['diff'] : null;

        $formsList = $userMeta->getFormsName();
        array_unshift($formsList, null);

        $actionTypes = $userMeta->validActionType();
        array_unshift($actionTypes, null);

        echo $userMeta->createInput($this->get_field_name('guest_title'), 'text', array(
            'value' => esc_attr($guest_title),
            'label' => __('Guest Title:', $userMeta->name),
            'id' => $this->get_field_id('guest_title'),
            'class' => 'widefat',
            'after' => '<i>' . __('Only guest users can see this title', $userMeta->name) . '</i>',
            'enclose' => 'p'
        ));

        echo $userMeta->createInput($this->get_field_name('user_title'), 'text', array(
            'value' => esc_attr($user_title),
            'label' => __('Logged-In User Title:', $userMeta->name),
            'id' => $this->get_field_id('user_title'),
            'class' => 'widefat',
            'after' => '<i>' . __('Only logged-in users can see this title', $userMeta->name) . '</i>',
            'enclose' => 'p'
        ));

        echo $userMeta->createInput($this->get_field_name('action_type'), 'select', array(
            'value' => esc_attr($action_type),
            'label' => __('Action Type:', $userMeta->name),
            'id' => $this->get_field_id('action_type'),
            'class' => 'widefat',
            'enclose' => 'p'
        ), $actionTypes);

        echo $userMeta->createInput($this->get_field_name('form_name'), 'select', array(
            'value' => esc_attr($form_name),
            'label' => __('Form Name:', $userMeta->name),
            'id' => $this->get_field_id('form_name'),
            'class' => 'widefat',
            'enclose' => 'p'
        ), $formsList);

        echo $userMeta->createInput($this->get_field_name('diff'), 'text', array(
            'value' => esc_attr($diff),
            'label' => __('Diff (optional):', $userMeta->name),
            'id' => $this->get_field_id('diff'),
            'class' => 'widefat',
            'after' => '<i>' . __('For showing role based on user profile', $userMeta->name) . '</i>',
            'enclose' => 'p'
        ));
    }
}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
9 Apr 2024 10.01 AM
tdhomesa / tdhomesa
0755
Field
--
9 Apr 2024 10.01 AM
tdhomesa / tdhomesa
0755
builder
--
9 Apr 2024 10.01 AM
tdhomesa / tdhomesa
0755
generate
--
9 Apr 2024 10.01 AM
tdhomesa / tdhomesa
0755
File.php
10.889 KB
12 Jan 2025 7.50 PM
tdhomesa / tdhomesa
0644
FileUploader.php
9.13 KB
12 Jan 2025 7.50 PM
tdhomesa / tdhomesa
0644
FormWidget.php
5.825 KB
12 Jan 2025 7.50 PM
tdhomesa / tdhomesa
0644
FormsListTable.php
14.105 KB
12 Jan 2025 7.50 PM
tdhomesa / tdhomesa
0644
Gdpr.php
1.904 KB
12 Jan 2025 7.50 PM
tdhomesa / tdhomesa
0644
Login.php
13.207 KB
12 Jan 2025 7.50 PM
tdhomesa / tdhomesa
0644
LoginWidget.php
3.925 KB
12 Jan 2025 7.50 PM
tdhomesa / tdhomesa
0644
OptionData.php
2.061 KB
12 Jan 2025 7.50 PM
tdhomesa / tdhomesa
0644
ResetPassword.php
7.434 KB
12 Jan 2025 7.50 PM
tdhomesa / tdhomesa
0644
RouteResponse.php
4 KB
12 Jan 2025 7.50 PM
tdhomesa / tdhomesa
0644
UserInsert.php
22.075 KB
12 Jan 2025 7.50 PM
tdhomesa / tdhomesa
0644
UserMeta.php
1.335 KB
12 Jan 2025 7.50 PM
tdhomesa / tdhomesa
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF