Ejemplo n.º 1
0
?>
[image_height]" value="<?php 
echo isset($instance['data']['image_height']) ? $instance['data']['image_height'] : '230';
?>
" />
    </div>
    
    <h4><?php 
echo __('Filter Profiles');
?>
</h4>
    <?php 
if (wpl_global::check_addon('pro')) {
    ?>
    <?php 
    $membership_types = wpl_users::get_membership_types();
    ?>
    <div>
    	<label for="<?php 
    echo $this->get_field_id('data_user_type');
    ?>
"><?php 
    echo __('User Type', WPL_TEXTDOMAIN);
    ?>
: </label>
        <select id="<?php 
    echo $this->get_field_id('data_user_type');
    ?>
" name="<?php 
    echo $this->get_field_name('data');
    ?>
Ejemplo n.º 2
0
 private function generate_edit_page($user_id = '')
 {
     $this->user_info = wpl_users::get_user($user_id);
     $this->fields = wpl_db::columns('wpl_users');
     $this->user_data = wpl_users::get_wpl_user($user_id);
     $this->data = $this->user_data;
     $this->units = wpl_units::get_units(4);
     $this->listings = wpl_listing_types::get_listing_types();
     $this->property_types = wpl_property_types::get_property_types();
     $this->memberships = wpl_users::get_wpl_memberships();
     $this->membership_types = wpl_users::get_membership_types();
     parent::render($this->tpl_path, 'edit');
     exit;
 }