Пример #1
0
 /**
  * Init
  */
 public function __construct()
 {
     /** Ajax pagination for property_overview */
     add_action("wp_ajax_wpp_property_overview_pagination", array($this, "ajax_handler"));
     add_action("wp_ajax_nopriv_wpp_property_overview_pagination", array($this, "ajax_handler"));
     $custom_attributes = ud_get_wp_property('property_stats', array());
     $image_sizes = array('' => __('No Image', ud_get_wp_property('domain')));
     foreach (get_intermediate_image_sizes() as $name) {
         $sizes = \WPP_F::image_sizes($name);
         if (!$sizes) {
             continue;
         }
         $image_sizes[$name] = $name . ' (' . $sizes['width'] . 'x' . $sizes['height'] . 'px)';
     }
     $sort_by = array('post_date' => sprintf(__('Post Date (%s)', ud_get_wp_property('domain')), 'post_date'), 'post_modified' => sprintf(__('Modified Date (%s)', ud_get_wp_property('domain')), 'post_modified'), 'random' => sprintf(__('Random (%s)', ud_get_wp_property('domain')), 'random'), 'menu_order' => sprintf(__('Menu Order (%s)', ud_get_wp_property('domain')), 'menu_order'));
     $sortable_atts = ud_get_wp_property('sortable_attributes', array());
     if (!empty($sortable_atts) && is_array($sortable_atts)) {
         foreach ($sortable_atts as $attr) {
             if (array_key_exists($attr, $custom_attributes)) {
                 $sort_by[$attr] = $custom_attributes[$attr] . ' (' . $attr . ')';
             }
         }
     }
     $options = array('id' => 'property_overview', 'params' => array('property_id' => array('name' => __('Property ID', ud_get_wp_property()->domain), 'description' => __('If not empty, result will show particular property, which ID is set.', ud_get_wp_property()->domain), 'type' => 'text', 'default' => ''), 'post_parent' => array('name' => sprintf(__('Parent %s', ud_get_wp_property('domain')), \WPP_F::property_label()), 'description' => sprintf(__('If not empty, result will show children of particular property, which ID is set. You can use dynamic attributes instead of ID such as %1$s or %2$s.<br/>%1$s - to list all the listings that are a child of the current %3$s.<br/>%2$s - to list all listings that are children of the same parent (i.e. siblings) of the current %3$s', ud_get_wp_property('domain')), '<b>post_id</b>', '<b>post_parent</b>', \WPP_F::property_label()), 'type' => 'text', 'default' => ''), 'property_type' => array('name' => sprintf(__('%s Type', ud_get_wp_property('domain')), \WPP_F::property_label()), 'description' => sprintf(__('The list of %s types to be included. If no type checked, all available %s will be shown.', ud_get_wp_property('domain')), \WPP_F::property_label(), \WPP_F::property_label('plural')), 'type' => 'multi_checkbox', 'options' => ud_get_wp_property('property_types')), 'featured' => array('name' => sprintf(__('Show only Featured %s', ud_get_wp_property('domain')), \WPP_F::property_label('plural')), 'type' => 'checkbox'), 'custom_query' => array('name' => __('Custom Query by Attributes Values', ud_get_wp_property()->domain), 'description' => sprintf(__('Setup your custom query by providing values for specific attributes. Empty values will be ignored. Example:<br/>- to list only %1$s which have minimum 2 and maximum 4 bedrooms, you should set <b>2-4</b> value for your Bedrooms attribute.<br/>- to list only %1$s which have 1 or 3 bathrooms, you should set <b>1,3</b> value for your Batrooms attribute.', ud_get_wp_property('domain')), \WPP_F::property_label()), 'type' => 'custom_attributes', 'options' => $custom_attributes), 'show_children' => array('name' => __('Show Children', ud_get_wp_property()->domain), 'description' => sprintf(__('Switches children %s displaying.', ud_get_wp_property()->domain), \WPP_F::property_label()), 'type' => 'select', 'options' => array('true' => __('Yes', ud_get_wp_property()->domain), 'false' => __('No', ud_get_wp_property()->domain)), 'default' => 'true'), 'child_properties_title' => array('name' => sprintf(__('Child %s Title', ud_get_wp_property()->domain), \WPP_F::property_label('plural')), 'description' => sprintf(__('Title for Child %s section.', ud_get_wp_property()->domain), \WPP_F::property_label('plural')), 'type' => 'text', 'default' => __('Floor plans at location:', ud_get_wp_property()->domain)), 'fancybox_preview' => array('name' => __('Fancybox Preview', ud_get_wp_property()->domain), 'description' => __('Use fancybox preview.', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('true' => __('Yes', ud_get_wp_property()->domain), 'false' => __('No', ud_get_wp_property()->domain)), 'default' => 'true'), 'bottom_pagination_flag' => array('name' => __('Bottom Pagination', ud_get_wp_property()->domain), 'description' => __('Show Bottom Pagination.', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('true' => __('Yes', ud_get_wp_property()->domain), 'false' => __('No', ud_get_wp_property()->domain)), 'default' => 'false'), 'thumbnail_size' => array('name' => __('Thumbnail Size', ud_get_wp_property()->domain), 'description' => __('Show image with specific image size', ud_get_wp_property()->domain), 'type' => 'select', 'options' => $image_sizes, 'default' => 'thumbnail'), 'sort_by_text' => array('name' => __('Sort By Text', ud_get_wp_property()->domain), 'description' => __('Renames "Sort By:" text.', ud_get_wp_property()->domain), 'type' => 'text', 'default' => __('Sort By', ud_get_wp_property()->domain)), 'sort_by' => array('name' => __('Sort By', ud_get_wp_property()->domain), 'description' => sprintf(__('Sets sorting by sortable attribute or %s.', ud_get_wp_property()->domain), 'post_date, menu_order, random'), 'type' => 'select', 'options' => $sort_by, 'default' => 'post_date'), 'sort_order' => array('name' => __('Sort Order', ud_get_wp_property()->domain), 'description' => __('Sort Order', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('DESC' => 'DESC', 'ASC' => 'ASC'), 'default' => 'DESC'), 'template' => array('name' => __('Template', ud_get_wp_property()->domain), 'description' => sprintf(__('Sets layout using PHP template name. Your custom template should be stored in your theme\'s root directory. Example:<br/>if your custom template is called %s, the value of template must be %s.', ud_get_wp_property('domain')), '<b>property-overview-grid.php</b>', '<b>grid</b>'), 'type' => 'text'), 'sorter_type' => array('name' => __('Sorter Type', ud_get_wp_property()->domain), 'description' => __('Sorter Type', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('none' => __('None', ud_get_wp_property()->domain), 'buttons' => __('Buttons', ud_get_wp_property()->domain), 'dropdown' => __('Dropdown', ud_get_wp_property()->domain)), 'default' => 'buttons'), 'sorter' => array('name' => __('Sorter', ud_get_wp_property()->domain), 'description' => __('Show Sort UI', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('on' => __('On', ud_get_wp_property()->domain), 'off' => __('Off', ud_get_wp_property()->domain)), 'default' => 'on'), 'pagination' => array('name' => __('Pagination', ud_get_wp_property()->domain), 'description' => __('Show Pagination', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('on' => __('On', ud_get_wp_property()->domain), 'off' => __('Off', ud_get_wp_property()->domain)), 'default' => 'on'), 'pagination_type' => array('name' => __('Pagination Type', ud_get_wp_property()->domain), 'description' => __('Determine pagination UI', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('slider' => __('slider', ud_get_wp_property()->domain), 'numeric' => __('numeric', ud_get_wp_property()->domain)), 'default' => ud_get_wp_property('configuration.property_overview.pagination_type') ? ud_get_wp_property('configuration.property_overview.pagination_type') : 'slider'), 'per_page' => array('name' => __('Per Page', ud_get_wp_property()->domain), 'description' => sprintf(__('%s quantity per page.', ud_get_wp_property()->domain), \WPP_F::property_label()), 'type' => 'number', 'default' => 10), 'starting_row' => array('name' => __('Starting Row', ud_get_wp_property()->domain), 'description' => __('Sets starting row.', ud_get_wp_property()->domain), 'type' => 'number', 'default' => 0), 'detail_button' => array('name' => __('Detail Button', ud_get_wp_property()->domain), 'description' => __('Name of Detail Button. Button will not be shown if the value is empty.', ud_get_wp_property()->domain), 'type' => 'text'), 'hide_count' => array('name' => __('Hide Count', ud_get_wp_property()->domain), 'description' => __('Hide the "10 found." text.', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('true' => __('Yes', ud_get_wp_property()->domain), 'false' => __('No', ud_get_wp_property()->domain)), 'default' => 'false'), 'in_new_window' => array('name' => __('In new window?', ud_get_wp_property()->domain), 'description' => __('Open links in new window.', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('true' => __('Yes', ud_get_wp_property()->domain), 'false' => __('No', ud_get_wp_property()->domain)), 'default' => 'false'), 'strict_search' => array('name' => __('Strict Search', ud_get_wp_property()->domain), 'description' => __('Provides strict search', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('true' => __('Yes', ud_get_wp_property()->domain), 'false' => __('No', ud_get_wp_property()->domain)), 'default' => 'false')), 'description' => sprintf(__('Renders %s Attributes', ud_get_wp_property()->domain), \WPP_F::property_label()), 'group' => 'WP-Property');
     parent::__construct($options);
 }
Пример #2
0
 /**
  * init
  */
 public function __construct()
 {
     $taxonomies = array();
     $_taxonomies = ud_get_wp_property('taxonomies', array());
     if (!empty($_taxonomies) && is_array($_taxonomies)) {
         foreach ($_taxonomies as $k => $v) {
             $taxonomies[$k] = !empty($v['label']) ? $v['label'] : $k;
         }
     }
     $options = array('id' => 'property_terms', 'params' => array('property_id' => array('name' => sprintf(__('%s ID', ud_get_wp_property('domain')), \WPP_F::property_label()), 'description' => sprintf(__('If not empty, result will show particular %s, which ID is set.', ud_get_wp_property('domain')), \WPP_F::property_label()), 'type' => 'text', 'default' => ''), 'taxonomy' => array('name' => __('Taxonomy', ud_get_wp_property()->domain), 'description' => sprintf(__('Renders %s terms of particular taxonomy', ud_get_wp_property('domain')), \WPP_F::property_label()), 'type' => 'select', 'options' => $taxonomies)), 'description' => sprintf(__('Renders %s Terms for specific taxonomy', ud_get_wp_property()->domain), \WPP_F::property_label()), 'group' => 'WP-Property');
     parent::__construct($options);
 }
 /**
  * Init
  */
 public function __construct()
 {
     $attributes = ud_get_wp_property('property_stats', array());
     /*
             $hidden_attributes = ud_get_wp_property( 'hidden_frontend_attributes', array() );
             foreach( $attributes as $k => $v ) {
               if( in_array( $k, $hidden_attributes ) ) {
                 unset( $attributes[$k] );
               }
             }
             //*/
     $options = array('id' => 'property_attributes', 'params' => array('sort_by_groups' => array('name' => __('Sort by groups', ud_get_wp_property()->domain), 'description' => __('Sort attributes by groups or not', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('true' => __('Yes', ud_get_wp_property()->domain), 'false' => __('No', ud_get_wp_property()->domain))), 'display' => array('name' => __('Display', ud_get_wp_property()->domain), 'description' => __('The way of displaying attributes', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('list' => __('Simple List', ud_get_wp_property()->domain), 'dl_list' => __('Definitions List', ud_get_wp_property()->domain), 'plain_list' => __('Plain List', ud_get_wp_property()->domain), 'detail' => __('Detailed List', ud_get_wp_property()->domain))), 'show_true_as_image' => array('name' => __('Show "True" as image', ud_get_wp_property()->domain), 'description' => __('Display boolean attributes like checkbox image.', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('false' => __('No', ud_get_wp_property()->domain), 'true' => __('Yes', ud_get_wp_property()->domain))), 'make_link' => array('name' => __('Make link', ud_get_wp_property()->domain), 'description' => __('Make URLs into clickable links', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('true' => __('Yes', ud_get_wp_property()->domain), 'false' => __('No', ud_get_wp_property()->domain))), 'hide_false' => array('name' => __('Hide false', ud_get_wp_property()->domain), 'description' => __('Hide attributes with false value', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('false' => __('No', ud_get_wp_property()->domain), 'true' => __('Yes', ud_get_wp_property()->domain))), 'return_blank' => array('name' => __('Return Blank', ud_get_wp_property()->domain), 'description' => __('Omit blank values or not.', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('false' => __('No', ud_get_wp_property()->domain), 'true' => __('Yes', ud_get_wp_property()->domain))), 'include' => array('name' => __('Include', ud_get_wp_property()->domain), 'description' => __('The list of attributes to be included. If no attribute checked, all available attributes will be shown.', ud_get_wp_property()->domain), 'type' => 'multi_checkbox', 'options' => $attributes), 'exclude' => array('name' => __('Exclude', ud_get_wp_property()->domain), 'description' => __('The list of attributes which will not be shown.', ud_get_wp_property()->domain), 'type' => 'multi_checkbox', 'options' => $attributes)), 'description' => sprintf(__('Renders %s Attributes List', ud_get_wp_property()->domain), \WPP_F::property_label()), 'group' => 'WP-Property');
     parent::__construct($options);
 }
Пример #4
0
 /**
  * init
  */
 public function __construct()
 {
     $options = array('id' => 'list_attachments', 'params' => array('type' => array('name' => __('Type', ud_get_wp_property()->domain), 'description' => __('Comma-separated list of file extensions that should be included in the list', ud_get_wp_property()->domain), 'type' => 'text', 'default' => ''), 'sort_order' => array('name' => __('Sort Order', ud_get_wp_property()->domain), 'description' => __('Indicate whether the list should be sorted in ascending or descending order.', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('ASC' => 'ASC', 'DESC' => 'DESC'), 'default' => 'ASC'), 'groupby' => array('name' => __('Group By', ud_get_wp_property()->domain), 'description' => sprintf(__('If you would like the list split into specific groups, you can indicate any of the WordPress post object parameters as the value of this %s. For instance, you can use a common <b>%s</b> for your attachments to organize them into groups. In that case, you would use <b>%s</b> as the <b>%s</b> parameter for this shortcode or widget.', ud_get_wp_property()->domain), \WPP_F::property_label(), 'description', 'post_content', 'groupby'), 'type' => 'text', 'default' => ''), 'opening' => array('name' => __('Opening List', ud_get_wp_property()->domain), 'description' => __('Any HTML code you want to appear before the list begins opening - the opening tag(s) for the list.', ud_get_wp_property()->domain), 'type' => 'text', 'default' => '<ul class="attachment-list wpp_attachment_list">'), 'closing' => array('name' => __('CLosing List', ud_get_wp_property()->domain), 'description' => __('The closing tag(s) for the list.', ud_get_wp_property()->domain), 'type' => 'text', 'default' => '</ul>'), 'before_item' => array('name' => __('Before Item', ud_get_wp_property()->domain), 'description' => __('The opening tag(s) for each item of the list.', ud_get_wp_property()->domain), 'type' => 'text', 'default' => '<li>'), 'after_item' => array('name' => __('After Item', ud_get_wp_property()->domain), 'description' => __('The closing tag(s) for each item of the list.', ud_get_wp_property()->domain), 'type' => 'text', 'default' => '</li>')), 'description' => sprintf(__('Used to display attachments of a %s, can also be used in a post. Ported over from List Attachments Shortcode plugin.  If plugin exists, the WP-Property version of shortcode is not loaded.', ud_get_wp_property()->domain), \WPP_F::property_label()), 'group' => 'WP-Property');
     parent::__construct($options);
 }
 /**
  * Init
  */
 public function __construct()
 {
     $options = array('id' => 'property_attribute', 'params' => array('attribute' => array('type' => 'text', 'name' => __('Attribute', ud_get_wp_property()->domain), 'description' => __('Renders single attribute data', ud_get_wp_property()->domain), 'default' => ''), 'before' => array('type' => 'text', 'name' => __('Before', ud_get_wp_property()->domain), 'description' => __('Before attribute', ud_get_wp_property()->domain), 'default' => ''), 'after' => array('type' => 'text', 'name' => __('After', ud_get_wp_property()->domain), 'description' => __('After attribute', ud_get_wp_property()->domain), 'default' => ''), 'if_empty' => array('type' => 'text', 'name' => __('If Empty', ud_get_wp_property()->domain), 'description' => __('What to show if attribute is empty', ud_get_wp_property()->domain), 'default' => ''), 'do_not_format' => array('type' => 'text', 'name' => __('Do not format', ud_get_wp_property()->domain), 'description' => __('Uh?', ud_get_wp_property()->domain), 'default' => ''), 'make_terms_links' => array('type' => 'select', 'name' => __('Make links of terms', ud_get_wp_property()->domain), 'description' => __('Make links of terms', ud_get_wp_property()->domain), 'options' => array('true' => __('Yes', ud_get_wp_property()->domain), 'false' => __('No', ud_get_wp_property()->domain)), 'default' => 'false'), 'separator' => array('type' => 'text', 'name' => __('Separator', ud_get_wp_property()->domain), 'description' => __('Separator', ud_get_wp_property()->domain), 'default' => ' '), 'strip_tags' => array('type' => 'text', 'name' => __('Strip Tags', ud_get_wp_property()->domain), 'description' => __('Strip tags', ud_get_wp_property()->domain), 'default' => '')), 'description' => sprintf(__('Renders %s Attribute', ud_get_wp_property()->domain), \WPP_F::property_label()), 'group' => 'WP-Property');
     parent::__construct($options);
 }
Пример #6
0
 /**
  * Init
  */
 public function __construct()
 {
     $options = array('id' => 'property_search', 'params' => array('searchable_attributes' => array('name' => __('Searchable Attributes', ud_get_wp_property()->domain), 'description' => __('CSV attributes list', ud_get_wp_property()->domain), 'type' => 'text', 'default' => ''), 'searchable_property_types' => array('name' => sprintf(__('Searchable %s Types', ud_get_wp_property()->domain), \WPP_F::property_label()), 'description' => __('CSV types list', ud_get_wp_property()->domain), 'type' => 'text', 'default' => ''), 'pagination' => array('name' => __('Pagination', ud_get_wp_property()->domain), 'description' => __('Use pagination?', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('on' => __('Yes', ud_get_wp_property()->domain), 'off' => __('No', ud_get_wp_property()->domain)), 'default' => 'on'), 'group_attributes' => array('name' => __('Group Attributes', ud_get_wp_property()->domain), 'description' => __('Group Attributes?', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('on' => __('Yes', ud_get_wp_property()->domain), 'off' => __('No', ud_get_wp_property()->domain)), 'default' => 'off'), 'per_page' => array('name' => __('Per Page', ud_get_wp_property()->domain), 'description' => __('Items per page', ud_get_wp_property()->domain), 'type' => 'number', 'min' => 1, 'default' => 10), 'strict_search' => array('name' => __('Strict Search', ud_get_wp_property()->domain), 'description' => __('Use strict search', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('true' => __('Yes', ud_get_wp_property()->domain), 'false' => __('No', ud_get_wp_property()->domain)), 'default' => 'false')), 'description' => sprintf(__('Renders %s Search form', ud_get_wp_property()->domain), \WPP_F::property_label()), 'group' => 'WP-Property');
     parent::__construct($options);
 }
 /**
  * Init
  */
 public function __construct()
 {
     $options = array('id' => 'featured_properties', 'params' => array('property_type' => array('name' => sprintf(__('%s Type', ud_get_wp_property()->domain), \WPP_F::property_label()), 'description' => sprintf(__('%s Type', ud_get_wp_property()->domain), \WPP_F::property_label()), 'type' => 'text', 'default' => 'all'), 'type' => array('name' => __('Type', ud_get_wp_property()->domain), 'description' => __('Type', ud_get_wp_property()->domain), 'type' => 'text', 'default' => ''), 'class' => array('name' => __('Class', ud_get_wp_property()->domain), 'description' => __('CSS Class', ud_get_wp_property()->domain), 'type' => 'text', 'default' => 'shortcode_featured_properties'), 'per_page' => array('name' => __('Per Page', ud_get_wp_property()->domain), 'description' => __('Items per page', ud_get_wp_property()->domain), 'type' => 'number', 'default' => 6), 'sorter_type' => array('name' => __('Sorter Type', ud_get_wp_property()->domain), 'description' => __('Sorter Type', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('none' => __('None', ud_get_wp_property()->domain), 'buttons' => __('Buttons', ud_get_wp_property()->domain), 'dropdown' => __('Dropdown', ud_get_wp_property()->domain)), 'default' => 'none'), 'show_children' => array('name' => __('Show Children', ud_get_wp_property()->domain), 'description' => __('Show children or not.', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('true' => __('Yes', ud_get_wp_property()->domain), 'false' => __('No', ud_get_wp_property()->domain)), 'default' => 'false'), 'hide_count' => array('name' => __('Hide Count', ud_get_wp_property()->domain), 'description' => __('Hide Count', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('true' => __('Yes', ud_get_wp_property()->domain), 'false' => __('No', ud_get_wp_property()->domain)), 'default' => 'true'), 'fancybox_preview' => array('name' => __('Fancybox Preview', ud_get_wp_property()->domain), 'description' => __('Use fancybox preview.', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('true' => __('Yes', ud_get_wp_property()->domain), 'false' => __('No', ud_get_wp_property()->domain)), 'default' => 'false'), 'bottom_pagination_flag' => array('name' => __('Bottom Pagination', ud_get_wp_property()->domain), 'description' => __('Bottom Pagination.', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('true' => __('Yes', ud_get_wp_property()->domain), 'false' => __('No', ud_get_wp_property()->domain)), 'default' => 'false'), 'pagination' => array('name' => __('Pagination', ud_get_wp_property()->domain), 'description' => __('Pagination', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('on' => __('On', ud_get_wp_property()->domain), 'off' => __('Off', ud_get_wp_property()->domain)), 'default' => 'off'), 'stats' => array('name' => __('Stats', ud_get_wp_property()->domain), 'description' => __('CSV stats', ud_get_wp_property()->domain), 'type' => 'text', 'default' => ''), 'thumbnail_size' => array('name' => __('Thumbnail Size', ud_get_wp_property()->domain), 'description' => __('Thumbnail Size.', ud_get_wp_property()->domain), 'type' => 'text', 'default' => 'thumbnail')), 'description' => sprintf(__('Renders Featured %s', ud_get_wp_property()->domain), \WPP_F::property_label('plural')), 'group' => 'WP-Property');
     parent::__construct($options);
 }
Пример #8
0
 /**
  * Shortcode constructor.
  */
 public function __construct()
 {
     parent::__construct('small-caps');
 }
Пример #9
0
 /**
  * Init
  */
 public function __construct()
 {
     $options = array('id' => 'property_map', 'params' => array('property_id' => array('name' => sprintf(__('%s ID', ud_get_wp_property('domain')), \WPP_F::property_label()), 'description' => sprintf(__('If empty, current %s will be used.', ud_get_wp_property()->domain), \WPP_F::property_label()), 'type' => 'text', 'default' => ''), 'width' => array('name' => __('Width', ud_get_wp_property()->domain), 'description' => __('Set width of map. (e.g. 100%, 500px)', ud_get_wp_property()->domain), 'type' => 'text', 'default' => '100%'), 'height' => array('name' => __('Height', ud_get_wp_property()->domain), 'description' => __('Set height of map. (e.g. 500px)', ud_get_wp_property()->domain), 'type' => 'text', 'default' => '450px'), 'zoom_level' => array('name' => __('Zoom Level', ud_get_wp_property()->domain), 'description' => __('Set level of map zoom', ud_get_wp_property()->domain), 'type' => 'number', 'min' => '1', 'default' => '13'), 'hide_infobox' => array('name' => __('Hide Infobox', ud_get_wp_property()->domain), 'description' => __('Set infobox hidden or not', ud_get_wp_property()->domain), 'type' => 'select', 'options' => array('true' => __('Yes', ud_get_wp_property()->domain), 'false' => __('No', ud_get_wp_property()->domain)), 'default' => 'false')), 'description' => sprintf(__('Renders %s Map', ud_get_wp_property()->domain), \WPP_F::property_label()), 'group' => 'WP-Property');
     parent::__construct($options);
 }
Пример #10
0
 /**
  * init
  */
 public function __construct()
 {
     $meta = ud_get_wp_property('property_meta', array());
     $options = array('id' => 'property_meta', 'params' => array('property_id' => array('name' => __('Property ID', ud_get_wp_property()->domain), 'description' => __('If not empty, result will show particular property, which ID is set.', ud_get_wp_property()->domain), 'type' => 'text', 'default' => ''), 'include' => array('name' => __('Include', ud_get_wp_property()->domain), 'description' => __('The list of meta attributes to be included. If no meta checked, all available meta attributes will be shown.', ud_get_wp_property()->domain), 'type' => 'multi_checkbox', 'options' => $meta)), 'description' => sprintf(__('Renders %s Meta', ud_get_wp_property()->domain), \WPP_F::property_label()), 'group' => 'WP-Property');
     parent::__construct($options);
 }
Пример #11
0
 /**
  * Shortcode constructor.
  */
 public function __construct()
 {
     parent::__construct('pull-quote');
 }
Пример #12
0
 /**
  * Shortcode constructor.
  */
 public function __construct()
 {
     parent::__construct('u');
 }