Example #1
0
    </tr>


    <tr>
      <th>
        <?php 
_e('Admin Settings', ud_get_wp_property()->domain);
?>
      </th>
        <td>
        <ul>
          <li><?php 
printf(__('Thumbnail size for %1s images displayed on %2s page: ', ud_get_wp_property()->domain), WPP_F::property_label('singular'), WPP_F::property_label('plural'));
?>
 <?php 
WPP_F::image_sizes_dropdown("name=wpp_settings[configuration][admin_ui][overview_table_thumbnail_size]&selected=" . (isset($wp_properties['configuration']['admin_ui']['overview_table_thumbnail_size']) ? $wp_properties['configuration']['admin_ui']['overview_table_thumbnail_size'] : false));
?>
</li>
          <li>
          <?php 
echo WPP_F::checkbox("name=wpp_settings[configuration][completely_hide_hidden_attributes_in_admin_ui]&label=" . sprintf(__('Completely hide hidden attributes when editing %1s.', ud_get_wp_property()->domain), WPP_F::property_label('plural')), isset($wp_properties['configuration']['completely_hide_hidden_attributes_in_admin_ui']) ? $wp_properties['configuration']['completely_hide_hidden_attributes_in_admin_ui'] : false);
?>
          </li>
        </ul>
      </td>
    </tr>

    <?php 
do_action('wpp_settings_display_tab_bottom');
?>
    /**
     * @see WP_Widget::form
     */
    function form($instance)
    {
        global $wp_properties;
        $title = isset($instance['title']) ? esc_attr($instance['title']) : '';
        $amount_items = isset($instance['amount_items']) ? esc_attr($instance['amount_items']) : false;
        $address_format = !empty($instance['address_format']) ? $instance['address_format'] : "[street_number] [street_name],[city], [state]";
        $instance_stats = isset($instance['stats']) ? $instance['stats'] : array();
        $image_type = isset($instance['image_type']) ? esc_attr($instance['image_type']) : false;
        $hide_image = isset($instance['hide_image']) ? $instance['hide_image'] : false;
        $show_title = isset($instance['show_title']) ? $instance['show_title'] : false;
        $enable_more = isset($instance['enable_more']) ? $instance['enable_more'] : false;
        $enable_view_all = isset($instance['enable_view_all']) ? $instance['enable_view_all'] : false;
        $property_stats = isset($wp_properties['property_stats']) ? $wp_properties['property_stats'] : array();
        if (!isset($property_stats['property_type'])) {
            $property_stats['property_type'] = sprintf(__('%s Type', ud_get_wp_property()->domain), WPP_F::property_label());
        }
        ?>
    <script type="text/javascript">
      //hide and show dropdown whith thumb settings
      jQuery( document ).ready( function ( $ ) {
        jQuery( 'input.check_me' ).change( function () {
          if ( $( this ).attr( 'checked' ) !== true ) {
            jQuery( 'p#choose_thumb' ).css( 'display', 'block' );
          } else {
            jQuery( 'p#choose_thumb' ).css( 'display', 'none' );
          }
        } );
      } );
    </script>
    <p>
      <label for="<?php 
        echo $this->get_field_id('title');
        ?>
"><?php 
        _e('Title:', ud_get_wp_property()->domain);
        ?>
        <input class="widefat" id="<?php 
        echo $this->get_field_id('title');
        ?>
"
               name="<?php 
        echo $this->get_field_name('title');
        ?>
" type="text"
               value="<?php 
        echo !empty($title) ? $title : __('Latest Properties', ud_get_wp_property()->domain);
        ?>
"/>
      </label>
    </p>
    <p>
      <label for="<?php 
        echo $this->get_field_id('hide_image');
        ?>
">
        <input id="<?php 
        echo $this->get_field_id('hide_image');
        ?>
" class="check_me"
               name="<?php 
        echo $this->get_field_name('hide_image');
        ?>
" type="checkbox"
               value="on" <?php 
        if ($hide_image == 'on') {
            echo " checked='checked';";
        }
        ?>
 />
        <?php 
        _e('Hide Images?', ud_get_wp_property()->domain);
        ?>
      </label>
    </p>
    <p id="choose_thumb" <?php 
        echo $hide_image !== 'on' ? 'style="display:block;"' : 'style="display:none;"';
        ?>
>
      <label for="<?php 
        echo $this->get_field_id('image_type');
        ?>
"><?php 
        _e('Image Size:', ud_get_wp_property()->domain);
        ?>
        <?php 
        WPP_F::image_sizes_dropdown("name=" . $this->get_field_name('image_type') . "&selected=" . $image_type);
        ?>
      </label>
    </p>
    <p>
      <label for="<?php 
        echo $this->get_field_id('per_page');
        ?>
"><?php 
        _e('Listings to display?', ud_get_wp_property()->domain);
        ?>
        <input style="width:30px" id="<?php 
        echo $this->get_field_id('amount_items');
        ?>
"
               name="<?php 
        echo $this->get_field_name('amount_items');
        ?>
" type="text"
               value="<?php 
        echo empty($amount_items) ? 5 : $amount_items;
        ?>
"/>
      </label>
    </p>
    <p><?php 
        _e('Select stats you want to display', ud_get_wp_property()->domain);
        ?>
</p>
    <p>
      <label for="<?php 
        echo $this->get_field_id('show_title');
        ?>
">
        <input id="<?php 
        echo $this->get_field_id('show_title');
        ?>
"
               name="<?php 
        echo $this->get_field_name('show_title');
        ?>
" type="checkbox"
               value="on" <?php 
        if ($show_title == 'on') {
            echo " checked='checked';";
        }
        ?>
 />
        <?php 
        _e('Title', ud_get_wp_property()->domain);
        ?>
      </label>
      <?php 
        foreach ($property_stats as $stat => $label) {
            ?>
        <br/>
        <label for="<?php 
            echo $this->get_field_id('stats');
            ?>
_<?php 
            echo $stat;
            ?>
">
          <input id="<?php 
            echo $this->get_field_id('stats');
            ?>
_<?php 
            echo $stat;
            ?>
"
                 name="<?php 
            echo $this->get_field_name('stats');
            ?>
[]" type="checkbox" value="<?php 
            echo $stat;
            ?>
"
          <?php 
            if (is_array($instance_stats) && in_array($stat, $instance_stats)) {
                echo " checked ";
            }
            ?>
">
          <?php 
            echo $label;
            ?>
        </label>
      <?php 
        }
        ?>
    </p>
    <p>
      <label for="<?php 
        echo $this->get_field_id('address_format');
        ?>
"><?php 
        _e('Address Format:', ud_get_wp_property()->domain);
        ?>
        <textarea style="width: 100%" id="<?php 
        echo $this->get_field_id('address_format');
        ?>
"
                  name="<?php 
        echo $this->get_field_name('address_format');
        ?>
"><?php 
        echo $address_format;
        ?>
</textarea>
      </label>
    </p>
    <p>
      <label for="<?php 
        echo $this->get_field_id('enable_more');
        ?>
">
        <input id="<?php 
        echo $this->get_field_id('enable_more');
        ?>
"
               name="<?php 
        echo $this->get_field_name('enable_more');
        ?>
" type="checkbox"
               value="on" <?php 
        if ($enable_more == 'on') {
            echo " checked='checked';";
        }
        ?>
 />
        <?php 
        _e('Show "More" link?', ud_get_wp_property()->domain);
        ?>
      </label>
    </p>
    <p>
      <label for="<?php 
        echo $this->get_field_id('enable_view_all');
        ?>
">
        <input id="<?php 
        echo $this->get_field_id('enable_view_all');
        ?>
"
               name="<?php 
        echo $this->get_field_name('enable_view_all');
        ?>
" type="checkbox"
               value="on" <?php 
        if ($enable_view_all == 'on') {
            echo " checked='checked';";
        }
        ?>
 />
        <?php 
        _e('Show "View All" link?', ud_get_wp_property()->domain);
        ?>
      </label>
    </p>
  <?php 
    }
    /**
     * Form handler
     *
     * @param array $instance
     */
    function form($instance)
    {
        global $wp_properties;
        $title = isset($instance['title']) ? esc_attr($instance['title']) : '';
        $show_title = isset($instance['show_title']) ? $instance['show_title'] : false;
        $amount_items = !empty($instance['amount_items']) ? $instance['amount_items'] : 5;
        $address_format = !empty($instance['address_format']) ? $instance['address_format'] : '[street_number] [street_name], [city], [state]';
        $image_type = isset($instance['image_type']) ? esc_attr($instance['image_type']) : false;
        $property_stats = isset($instance['stats']) ? $instance['stats'] : array();
        $hide_image = isset($instance['hide_image']) ? $instance['hide_image'] : false;
        $enable_more = isset($instance['enable_more']) ? $instance['enable_more'] : false;
        $enable_view_all = isset($instance['enable_view_all']) ? $instance['enable_view_all'] : false;
        $show_properties_of_type = isset($instance['show_properties_of_type']) ? $instance['show_properties_of_type'] : false;
        $shuffle_order = isset($instance['shuffle_order']) ? $instance['shuffle_order'] : false;
        ?>
    <script type="text/javascript">

      jQuery( document ).ready( function ( $ ) {
        jQuery( 'input.check_me_other' ).live( 'change', function () {
          var parent = jQuery( this ).closest( '.widget-content' );
          if ( jQuery( this ).is( ':checked' ) ) {
            jQuery( 'p.choose_thumb_other', parent ).hide();
          } else {
            jQuery( 'p.choose_thumb_other', parent ).show();
          }
        } )
      } );

    </script>
    <p><?php 
        _e('The widget will show other properties that share a parent with the currently displayed property.', ud_get_wp_property()->domain);
        ?>
</p>

    <p>
      <label for="<?php 
        echo $this->get_field_id('title');
        ?>
"><?php 
        _e('Title:', ud_get_wp_property()->domain);
        ?>
</label>
      <input class="widefat" id="<?php 
        echo $this->get_field_id('title');
        ?>
"
             name="<?php 
        echo $this->get_field_name('title');
        ?>
" type="text" value="<?php 
        echo $title;
        ?>
"/>
    </p>

    <p>
      <input id="<?php 
        echo $this->get_field_id('hide_image');
        ?>
" class="check_me_other"
             name="<?php 
        echo $this->get_field_name('hide_image');
        ?>
" type="checkbox"
             value="on" <?php 
        if ($hide_image == 'on') {
            echo "checked='checked'";
        }
        ?>
 />
      <label for="<?php 
        echo $this->get_field_id('hide_image');
        ?>
"><?php 
        _e('Hide images.', ud_get_wp_property()->domain);
        ?>
</label>
    </p>

    <p
        class="choose_thumb_other" <?php 
        echo $hide_image !== 'on' ? 'style="display:block;"' : 'style="display:none;"';
        ?>
>
      <label for="<?php 
        echo $this->get_field_id('image_type');
        ?>
"><?php 
        _e('Image Size:', ud_get_wp_property()->domain);
        ?>
</label>
      <?php 
        WPP_F::image_sizes_dropdown("name=" . $this->get_field_name('image_type') . "&selected=" . $image_type);
        ?>
    </p>

    <p>
      <label
          for="<?php 
        echo $this->get_field_id('amount_items');
        ?>
"><?php 
        _e('Listings to display?', ud_get_wp_property()->domain);
        ?>
</label>
      <input style="width:30px" id="<?php 
        echo $this->get_field_id('amount_items');
        ?>
"
             name="<?php 
        echo $this->get_field_name('amount_items');
        ?>
" type="text"
             value="<?php 
        echo $amount_items;
        ?>
"/>
    </p>

    <p><?php 
        _e('Select the attributes you want to display: ', ud_get_wp_property()->domain);
        ?>
</p>

    <ul class="wp-tab-panel">
      <li>
        <input id="<?php 
        echo $this->get_field_id('show_title');
        ?>
"
               name="<?php 
        echo $this->get_field_name('show_title');
        ?>
" type="checkbox"
               value="on" <?php 
        if ($show_title == 'on') {
            echo " checked='checked';";
        }
        ?>
 />
        <label for="<?php 
        echo $this->get_field_id('show_title');
        ?>
"><?php 
        _e('Title', ud_get_wp_property()->domain);
        ?>
</label>
      </li>

      <?php 
        foreach ($wp_properties['property_stats'] as $stat => $label) {
            ?>
        <li>
          <input id="<?php 
            echo $this->get_field_id('stats');
            ?>
_<?php 
            echo $stat;
            ?>
"
                 name="<?php 
            echo $this->get_field_name('stats');
            ?>
[]" type="checkbox"
                 value="<?php 
            echo $stat;
            ?>
" <?php 
            if (is_array($property_stats) && in_array($stat, $property_stats)) {
                echo ' checked="checked" ';
            }
            ?>
 />
          <label for="<?php 
            echo $this->get_field_id('stats');
            ?>
_<?php 
            echo $stat;
            ?>
"><?php 
            echo $label;
            ?>
</label>
        </li>
      <?php 
        }
        ?>

    </ul>

    <div>
      <label for="<?php 
        echo $this->get_field_id('address_format');
        ?>
"><?php 
        _e('Address Format:', ud_get_wp_property()->domain);
        ?>
        <textarea style="width: 100%" id="<?php 
        echo $this->get_field_id('address_format');
        ?>
"
                  name="<?php 
        echo $this->get_field_name('address_format');
        ?>
"><?php 
        echo $address_format;
        ?>
</textarea>
      </label>
    </div>

    <ul>
      <li>
        <input id="<?php 
        echo $this->get_field_id('enable_more');
        ?>
"
               name="<?php 
        echo $this->get_field_name('enable_more');
        ?>
" type="checkbox"
               value="on" <?php 
        if ($enable_more == 'on') {
            echo " checked='checked';";
        }
        ?>
 />
        <label
            for="<?php 
        echo $this->get_field_id('enable_more');
        ?>
"><?php 
        _e('Show "More" link?', ud_get_wp_property()->domain);
        ?>
</label>
      </li>
      <li>
        <input id="<?php 
        echo $this->get_field_id('enable_view_all');
        ?>
"
               name="<?php 
        echo $this->get_field_name('enable_view_all');
        ?>
" type="checkbox"
               value="on" <?php 
        if ($enable_view_all == 'on') {
            echo " checked='checked';";
        }
        ?>
 />
        <label
            for="<?php 
        echo $this->get_field_id('enable_view_all');
        ?>
"><?php 
        _e('Show "View All" link?', ud_get_wp_property()->domain);
        ?>
</label>
      </li>
      <li>
        <input id="<?php 
        echo $this->get_field_id('show_properties_of_type');
        ?>
"
               name="<?php 
        echo $this->get_field_name('show_properties_of_type');
        ?>
" type="checkbox"
               value="on" <?php 
        checked('on', $show_properties_of_type);
        ?>
 />
        <label
            for="<?php 
        echo $this->get_field_id('show_properties_of_type');
        ?>
"><?php 
        _e('If property has no parent, show other properties of same type.', ud_get_wp_property()->domain);
        ?>
</label>
      </li>
      <li>
        <input id="<?php 
        echo $this->get_field_id('shuffle_order');
        ?>
"
               name="<?php 
        echo $this->get_field_name('shuffle_order');
        ?>
" type="checkbox"
               value="on" <?php 
        checked('on', $shuffle_order);
        ?>
 />
        <label
            for="<?php 
        echo $this->get_field_id('shuffle_order');
        ?>
"><?php 
        _e('Randomize order of displayed properties.', ud_get_wp_property()->domain);
        ?>
</label>
      </li>
    </ul>

  <?php 
    }
    /** @see WP_Widget::form */
    function form($instance)
    {
        global $wp_properties;
        $title = isset($instance['title']) ? esc_attr($instance['title']) : '';
        $image_type = isset($instance['image_type']) ? $instance['image_type'] : false;
        $big_image_type = isset($instance['big_image_type']) ? $instance['big_image_type'] : false;
        $show_caption = isset($instance['show_caption']) ? $instance['show_caption'] : false;
        $show_description = isset($instance['show_description']) ? $instance['show_description'] : false;
        $gallery_count = isset($instance['gallery_count']) ? $instance['gallery_count'] : false;
        ?>
    <p>
      <label for="<?php 
        echo $this->get_field_id('title');
        ?>
"><?php 
        _e('Title:');
        ?>
</label>
      <input class="widefat" id="<?php 
        echo $this->get_field_id('title');
        ?>
"
             name="<?php 
        echo $this->get_field_name('title');
        ?>
" type="text" value="<?php 
        echo $title;
        ?>
"/>
    </p>

    <p>
      <label for="<?php 
        echo $this->get_field_id('image_type');
        ?>
"><?php 
        _e('Regular Size:');
        ?>
</label>
      <?php 
        WPP_F::image_sizes_dropdown("name=" . $this->get_field_name('image_type') . "&selected=" . $image_type);
        ?>
    </p>

    <p class="wpp_gallery_big_image_type">
      <label for="<?php 
        echo $this->get_field_id('big_image_type');
        ?>
"><?php 
        _e('Large Image Size:');
        ?>
</label>
      <?php 
        WPP_F::image_sizes_dropdown("name=" . $this->get_field_name('big_image_type') . "&selected=" . $big_image_type);
        ?>
    </p>

    <p>
      <label for="<?php 
        echo $this->get_field_id('gallery_count');
        ?>
"></label>
      <?php 
        $number_of_images = '<input size="3" type="text" id="' . $this->get_field_id('gallery_count') . '" name="' . $this->get_field_name('gallery_count') . '" value="' . $gallery_count . '" />';
        ?>
      <?php 
        echo sprintf(__('Show %s Images', ud_get_wp_property()->domain), $number_of_images);
        ?>
    </p>

    <p>
      <input name="<?php 
        echo $this->get_field_name('show_caption');
        ?>
"
             id="<?php 
        echo $this->get_field_id('show_caption');
        ?>
"
             type="checkbox" <?php 
        checked('on', $show_caption);
        ?>
 value="on"/>
      <label
          for="<?php 
        echo $this->get_field_id('show_caption');
        ?>
"><?php 
        _e('Show Image Captions', ud_get_wp_property()->domain);
        ?>
</label>
    </p>

    <p class="wpp_gallery_show_description">
      <input name="<?php 
        echo $this->get_field_name('show_description');
        ?>
"
             id="<?php 
        echo $this->get_field_id('show_description');
        ?>
"
             type="checkbox" <?php 
        checked('on', $show_description);
        ?>
 value="on"/>
      <label
          for="<?php 
        echo $this->get_field_id('show_description');
        ?>
"><?php 
        _e('Show Image Descriptions.', ud_get_wp_property()->domain);
        ?>
</label>
    </p>

    <?php 
        do_action('wpp_widget_slideshow_bottom', array('this_object' => $this, 'instance' => $instance));
        ?>


  <?php 
    }
    /**
     * Form
     *
     * @param array $instance
     */
    function form($instance)
    {
        global $wp_properties;
        $title = isset($instance['title']) ? esc_attr($instance['title']) : '';
        $show_title = isset($instance['show_title']) ? $instance['show_title'] : false;
        $address_format = !empty($instance['address_format']) ? esc_attr($instance['address_format']) : "[street_number] [street_name], [city], [state]";
        $image_type = isset($instance['image_type']) ? esc_attr($instance['image_type']) : false;
        $amount_items = !empty($instance['amount_items']) ? $instance['amount_items'] : 5;
        $property_stats = isset($instance['stats']) ? $instance['stats'] : array();
        $hide_image = isset($instance['hide_image']) ? $instance['hide_image'] : false;
        $enable_more = isset($instance['enable_more']) ? $instance['enable_more'] : false;
        $enable_view_all = isset($instance['enable_view_all']) ? $instance['enable_view_all'] : false;
        $sort_by = isset($instance['sort_by']) ? $instance['sort_by'] : false;
        $sort_order = isset($instance['sort_order']) ? $instance['sort_order'] : false;
        ?>
    <script type="text/javascript">
      //hide and show dropdown whith thumb settings
      jQuery( document ).ready( function ( $ ) {
        $( 'input.check_me_child' ).change( function () {
          if ( $( this ).attr( 'checked' ) !== true ) {
            $( 'p#choose_thumb_child' ).css( 'display', 'block' );
          } else {
            $( 'p#choose_thumb_child' ).css( 'display', 'none' );
          }
        } )
      } );
    </script>
    <p><?php 
        _e('The widget will not be displayed if the currently viewed property has no children.', ud_get_wp_property()->domain);
        ?>
</p>
    <p>
      <label for="<?php 
        echo $this->get_field_id('title');
        ?>
"><?php 
        _e('Title:', ud_get_wp_property()->domain);
        ?>
        <input class="widefat" id="<?php 
        echo $this->get_field_id('title');
        ?>
"
               name="<?php 
        echo $this->get_field_name('title');
        ?>
" type="text" value="<?php 
        echo $title;
        ?>
"/>
      </label>
    </p>

    <p>
      <label for="<?php 
        echo $this->get_field_id('hide_image');
        ?>
">
        <input id="<?php 
        echo $this->get_field_id('hide_image');
        ?>
" class="check_me_child"
               name="<?php 
        echo $this->get_field_name('hide_image');
        ?>
" type="checkbox"
               value="on" <?php 
        if ($hide_image == 'on') {
            echo " checked='checked';";
        }
        ?>
 />
        <?php 
        _e('Hide Images?', ud_get_wp_property()->domain);
        ?>
      </label>
    </p>
    <p id="choose_thumb_child" <?php 
        if ($hide_image !== 'on') {
            echo 'style="display:block;"';
        } else {
            echo 'style="display:none;"';
        }
        ?>
>
    <label for="<?php 
        echo $this->get_field_id('image_type');
        ?>
"><?php 
        _e('Image Size:', ud_get_wp_property()->domain);
        ?>
      <?php 
        WPP_F::image_sizes_dropdown("name=" . $this->get_field_name('image_type') . "&selected=" . $image_type);
        ?>
    </label>

    <p>
      <label for="<?php 
        echo $this->get_field_id('amount_items');
        ?>
"><?php 
        _e('Listings to display?', ud_get_wp_property()->domain);
        ?>
        <input style="width:30px" id="<?php 
        echo $this->get_field_id('amount_items');
        ?>
"
               name="<?php 
        echo $this->get_field_name('amount_items');
        ?>
" type="text"
               value="<?php 
        echo $amount_items;
        ?>
"/>
      </label>
    </p>

    <p>
      <label for="<?php 
        echo $this->get_field_id('sort_by');
        ?>
"><?php 
        _e('Sort By', ud_get_wp_property()->domain);
        ?>
      <input id="<?php 
        echo $this->get_field_id('sort_by');
        ?>
"
             name="<?php 
        echo $this->get_field_name('sort_by');
        ?>
" type="text"
             value="<?php 
        echo $sort_by;
        ?>
"/>
      </label>
    </p>

    <p>
      <label for="<?php 
        echo $this->get_field_id('sort_order');
        ?>
"><?php 
        _e('Sort Order', ud_get_wp_property()->domain);
        ?>
        <select id="<?php 
        echo $this->get_field_id('sort_order');
        ?>
" name="<?php 
        echo $this->get_field_name('sort_order');
        ?>
">
          <option value="ASC" <?php 
        echo $sort_order == 'ASC' ? 'selected="selected"' : '';
        ?>
>ASC</option>
          <option value="DESC" <?php 
        echo $sort_order == 'DESC' ? 'selected="selected"' : '';
        ?>
>DESC</option>
        </select>
      </label>
    </p>

    <p><?php 
        _e('Select the stats you want to display', ud_get_wp_property()->domain);
        ?>
</p>
    <ul class="wpp-multi-checkbox-wrapper">
      <li>
        <label for="<?php 
        echo $this->get_field_id('show_title');
        ?>
">
          <input id="<?php 
        echo $this->get_field_id('show_title');
        ?>
"
                 name="<?php 
        echo $this->get_field_name('show_title');
        ?>
" type="checkbox"
                 value="on" <?php 
        if ($show_title == 'on') {
            echo " checked='checked';";
        }
        ?>
 />
          <?php 
        _e('Title', ud_get_wp_property()->domain);
        ?>
        </label>
      </li>
      <?php 
        foreach ($wp_properties['property_stats'] as $stat => $label) {
            ?>
        <li>
          <label for="<?php 
            echo $this->get_field_id('stats');
            ?>
_<?php 
            echo $stat;
            ?>
">
            <input id="<?php 
            echo $this->get_field_id('stats');
            ?>
_<?php 
            echo $stat;
            ?>
"
                   name="<?php 
            echo $this->get_field_name('stats');
            ?>
[]" type="checkbox" value="<?php 
            echo $stat;
            ?>
"
                <?php 
            if (is_array($property_stats) && in_array($stat, $property_stats)) {
                echo " checked ";
            }
            ?>
 />

            <?php 
            echo $label;
            ?>
          </label>
        </li>
      <?php 
        }
        ?>
    </ul>
    <p>
      <label for="<?php 
        echo $this->get_field_id('address_format');
        ?>
"><?php 
        _e('Address Format:', ud_get_wp_property()->domain);
        ?>
        <textarea style="width: 100%" id="<?php 
        echo $this->get_field_id('address_format');
        ?>
"
                  name="<?php 
        echo $this->get_field_name('address_format');
        ?>
"><?php 
        echo $address_format;
        ?>
</textarea>
      </label>
    </p>
    <p>
      <label for="<?php 
        echo $this->get_field_id('enable_more');
        ?>
">
        <input id="<?php 
        echo $this->get_field_id('enable_more');
        ?>
"
               name="<?php 
        echo $this->get_field_name('enable_more');
        ?>
" type="checkbox"
               value="on" <?php 
        if ($enable_more == 'on') {
            echo " checked='checked';";
        }
        ?>
 />
        <?php 
        _e('Show "More" link?', ud_get_wp_property()->domain);
        ?>
      </label>
    </p>

    <p>
      <label for="<?php 
        echo $this->get_field_id('enable_view_all');
        ?>
">
        <input id="<?php 
        echo $this->get_field_id('enable_view_all');
        ?>
"
               name="<?php 
        echo $this->get_field_name('enable_view_all');
        ?>
" type="checkbox"
               value="on" <?php 
        if ($enable_view_all == 'on') {
            echo " checked='checked';";
        }
        ?>
 />
        <?php 
        _e('Show "View All" link?', ud_get_wp_property()->domain);
        ?>
      </label>
    </p>

  <?php 
    }