示例#1
0
 public function get_options()
 {
     global $ThemifyBuilder;
     $image_sizes = themify_get_image_sizes_list(false);
     $taxonomies = $ThemifyBuilder->get_public_taxonomies();
     $term_options = array();
     foreach ($taxonomies as $key => $label) {
         $term_options[] = array('id' => "{$key}_post", 'label' => $label, 'type' => 'query_category', 'options' => array('taxonomy' => $key), 'wrap_with_class' => "tf-group-element tf-group-element-{$key}");
     }
     /* allow query posts by slug */
     $taxonomies['post_slug'] = __('Slug', 'themify');
     $options = array(array('id' => 'mod_title_post', 'type' => 'text', 'label' => __('Module Title', 'themify'), 'class' => 'large'), array('id' => 'layout_post', 'type' => 'layout', 'label' => __('Post Layout', 'themify'), 'options' => array(array('img' => 'list-post.png', 'value' => 'list-post', 'label' => __('List Post', 'themify')), array('img' => 'grid3.png', 'value' => 'grid3', 'label' => __('Grid 3', 'themify')), array('img' => 'grid2.png', 'value' => 'grid2', 'label' => __('Grid 2', 'themify')), array('img' => 'grid4.png', 'value' => 'grid4', 'label' => __('Grid 4', 'themify')), array('img' => 'list-thumb-image.png', 'value' => 'list-thumb-image', 'label' => __('List Thumb Image', 'themify')), array('img' => 'grid2-thumb.png', 'value' => 'grid2-thumb', 'label' => __('Grid 2 Thumb', 'themify')))), array('id' => 'post_type_post', 'type' => 'select', 'label' => __('Post Type', 'themify'), 'options' => $ThemifyBuilder->get_public_post_types()), array('id' => 'type_query_post', 'type' => 'radio', 'label' => __('Query by', 'themify'), 'options' => $taxonomies, 'default' => 'category', 'option_js' => true), array('type' => 'group', 'fields' => $term_options), array('id' => 'query_slug_post', 'type' => 'text', 'label' => __('Post Slugs', 'themify'), 'class' => 'large', 'wrap_with_class' => 'tf-group-element tf-group-element-post_slug', 'help' => '<br/>' . __('Insert post slug. Multiple slug should be separated by comma (,)', 'themify')), array('id' => 'post_per_page_post', 'type' => 'text', 'label' => __('Limit', 'themify'), 'class' => 'xsmall', 'help' => __('number of posts to show', 'themify')), array('id' => 'offset_post', 'type' => 'text', 'label' => __('Offset', 'themify'), 'class' => 'xsmall', 'help' => __('number of post to displace or pass over', 'themify')), array('id' => 'order_post', 'type' => 'select', 'label' => __('Order', 'themify'), 'help' => __('Descending = show newer posts first', 'themify'), 'options' => array('desc' => __('Descending', 'themify'), 'asc' => __('Ascending', 'themify'))), array('id' => 'orderby_post', 'type' => 'select', 'label' => __('Order By', 'themify'), 'options' => array('date' => __('Date', 'themify'), 'id' => __('Id', 'themify'), 'author' => __('Author', 'themify'), 'title' => __('Title', 'themify'), 'name' => __('Name', 'themify'), 'modified' => __('Modified', 'themify'), 'rand' => __('Random', 'themify'), 'comment_count' => __('Comment Count', 'themify'))), array('id' => 'display_post', 'type' => 'select', 'label' => __('Display', 'themify'), 'options' => array('content' => __('Content', 'themify'), 'excerpt' => __('Excerpt', 'themify'), 'none' => __('None', 'themify'))), array('id' => 'hide_feat_img_post', 'type' => 'select', 'label' => __('Hide Featured Image', 'themify'), 'empty' => array('val' => '', 'label' => ''), 'options' => array('yes' => __('Yes', 'themify'), 'no' => __('No', 'themify'))), array('id' => 'image_size_post', 'type' => 'select', 'label' => Themify_Builder_Model::is_img_php_disabled() ? __('Image Size', 'themify') : false, 'empty' => array('val' => '', 'label' => ''), 'hide' => Themify_Builder_Model::is_img_php_disabled() ? false : true, 'options' => $image_sizes), array('id' => 'img_width_post', 'type' => 'text', 'label' => __('Image Width', 'themify'), 'class' => 'xsmall'), array('id' => 'img_height_post', 'type' => 'text', 'label' => __('Image Height', 'themify'), 'class' => 'xsmall'), array('id' => 'unlink_feat_img_post', 'type' => 'select', 'label' => __('Unlink Featured Image', 'themify'), 'empty' => array('val' => '', 'label' => ''), 'options' => array('yes' => __('Yes', 'themify'), 'no' => __('No', 'themify'))), array('id' => 'hide_post_title_post', 'type' => 'select', 'label' => __('Hide Post Title', 'themify'), 'empty' => array('val' => '', 'label' => ''), 'options' => array('yes' => __('Yes', 'themify'), 'no' => __('No', 'themify'))), array('id' => 'unlink_post_title_post', 'type' => 'select', 'label' => __('Unlink Post Title', 'themify'), 'empty' => array('val' => '', 'label' => ''), 'options' => array('yes' => __('Yes', 'themify'), 'no' => __('No', 'themify'))), array('id' => 'hide_post_date_post', 'type' => 'select', 'label' => __('Hide Post Date', 'themify'), 'empty' => array('val' => '', 'label' => ''), 'options' => array('yes' => __('Yes', 'themify'), 'no' => __('No', 'themify'))), array('id' => 'hide_post_meta_post', 'type' => 'select', 'label' => __('Hide Post Meta', 'themify'), 'empty' => array('val' => '', 'label' => ''), 'options' => array('yes' => __('Yes', 'themify'), 'no' => __('No', 'themify'))), array('id' => 'hide_page_nav_post', 'type' => 'select', 'label' => __('Hide Page Navigation', 'themify'), 'empty' => array('val' => '', 'label' => ''), 'options' => array('yes' => __('Yes', 'themify'), 'no' => __('No', 'themify')), 'default' => 'Yes'));
     return $options;
 }
示例#2
0
 public function get_options()
 {
     global $ThemifyBuilder;
     $visible_opt = array(1 => 1, 2, 3, 4, 5, 6, 7);
     $auto_scroll_opt = array('off' => __('Off', 'themify'), 1 => __('1 sec', 'themify'), 2 => __('2 sec', 'themify'), 3 => __('3 sec', 'themify'), 4 => __('4 sec', 'themify'), 5 => __('5 sec', 'themify'), 6 => __('6 sec', 'themify'), 7 => __('7 sec', 'themify'), 8 => __('8 sec', 'themify'), 9 => __('9 sec', 'themify'), 10 => __('10 sec', 'themify'));
     $image_sizes = themify_get_image_sizes_list(false);
     $display = array('blog' => __('Blog Posts', 'themify'), 'image' => __('Images', 'themify'), 'video' => __('Videos', 'themify'), 'text' => __('Text', 'themify'));
     if ($ThemifyBuilder->is_cpt_active('slider')) {
         $display['slider'] = __('Slider Posts', 'themify');
     }
     if ($ThemifyBuilder->is_cpt_active('portfolio')) {
         $display['portfolio'] = __('Portfolio', 'themify');
     }
     if ($ThemifyBuilder->is_cpt_active('testimonial')) {
         $display['testimonial'] = __('Testimonial', 'themify');
     }
     $options = array(array('id' => 'mod_title_slider', 'type' => 'text', 'label' => __('Module Title', 'themify'), 'class' => 'large'), array('id' => 'layout_display_slider', 'type' => 'radio', 'label' => __('Display', 'themify'), 'options' => $display, 'default' => 'blog', 'option_js' => true), array('id' => 'blog_category_slider', 'type' => 'query_category', 'label' => __('Category', 'themify'), 'options' => array(), 'help' => sprintf(__('Add more <a href="%s" target="_blank">blog posts</a>', 'themify'), admin_url('post-new.php')), 'wrap_with_class' => 'tf-group-element tf-group-element-blog'), array('id' => 'slider_category_slider', 'type' => 'query_category', 'label' => __('Category', 'themify'), 'options' => array('taxonomy' => 'slider-category'), 'help' => sprintf(__('Add more <a href="%s" target="_blank">slider posts</a>', 'themify'), admin_url('post-new.php?post_type=slider')), 'wrap_with_class' => 'tf-group-element tf-group-element-slider'), array('id' => 'portfolio_category_slider', 'type' => 'query_category', 'label' => __('Category', 'themify'), 'options' => array('taxonomy' => 'portfolio-category'), 'help' => sprintf(__('Add more <a href="%s" target="_blank">portfolio posts</a>', 'themify'), admin_url('post-new.php?post_type=portfolio')), 'wrap_with_class' => 'tf-group-element tf-group-element-portfolio'), array('id' => 'testimonial_category_slider', 'type' => 'query_category', 'label' => __('Category', 'themify'), 'options' => array('taxonomy' => 'testimonial-category'), 'help' => sprintf(__('Add more <a href="%s" target="_blank">testimonial posts</a>', 'themify'), admin_url('post-new.php?post_type=testimonial')), 'wrap_with_class' => 'tf-group-element tf-group-element-testimonial'), array('id' => 'posts_per_page_slider', 'type' => 'text', 'label' => __('Query', 'themify'), 'class' => 'xsmall', 'help' => __('number of posts to query', 'themify'), 'wrap_with_class' => 'tf-group-element tf-group-element-blog tf-group-element-portfolio tf-group-element-slider tf-group-element-testimonial'), array('id' => 'offset_slider', 'type' => 'text', 'label' => __('Offset', 'themify'), 'class' => 'xsmall', 'help' => __('number of post to displace or pass over', 'themify'), 'wrap_with_class' => 'tf-group-element tf-group-element-blog tf-group-element-portfolio tf-group-element-slider tf-group-element-testimonial'), array('id' => 'order_slider', 'type' => 'select', 'label' => __('Order', 'themify'), 'help' => __('Descending = show newer posts first', 'themify'), 'options' => array('desc' => __('Descending', 'themify'), 'asc' => __('Ascending', 'themify')), 'wrap_with_class' => 'tf-group-element tf-group-element-blog tf-group-element-slider tf-group-element-portfolio tf-group-element-testimonial'), array('id' => 'orderby_slider', 'type' => 'select', 'label' => __('Order By', 'themify'), 'options' => array('date' => __('Date', 'themify'), 'id' => __('Id', 'themify'), 'author' => __('Author', 'themify'), 'title' => __('Title', 'themify'), 'name' => __('Name', 'themify'), 'modified' => __('Modified', 'themify'), 'rand' => __('Random', 'themify'), 'comment_count' => __('Comment Count', 'themify')), 'wrap_with_class' => 'tf-group-element tf-group-element-blog tf-group-element-slider tf-group-element-portfolio tf-group-element-testimonial'), array('id' => 'display_slider', 'type' => 'select', 'label' => __('Display', 'themify'), 'options' => array('content' => __('Content', 'themify'), 'excerpt' => __('Excerpt', 'themify'), 'none' => __('None', 'themify')), 'wrap_with_class' => 'tf-group-element tf-group-element-blog tf-group-element-slider tf-group-element-portfolio tf-group-element-testimonial'), array('id' => 'hide_post_title_slider', 'type' => 'select', 'label' => __('Hide Post Title', 'themify'), 'empty' => array('val' => '', 'label' => ''), 'options' => array('yes' => __('Yes', 'themify'), 'no' => __('No', 'themify')), 'wrap_with_class' => 'tf-group-element tf-group-element-blog tf-group-element-slider tf-group-element-portfolio tf-group-element-testimonial'), array('id' => 'unlink_post_title_slider', 'type' => 'select', 'label' => __('Unlink Post Title', 'themify'), 'empty' => array('val' => '', 'label' => ''), 'options' => array('yes' => __('Yes', 'themify'), 'no' => __('No', 'themify')), 'wrap_with_class' => 'tf-group-element tf-group-element-blog tf-group-element-slider tf-group-element-portfolio'), array('id' => 'hide_feat_img_slider', 'type' => 'select', 'label' => __('Hide Featured Image', 'themify'), 'empty' => array('val' => '', 'label' => ''), 'options' => array('yes' => __('Yes', 'themify'), 'no' => __('No', 'themify')), 'wrap_with_class' => 'tf-group-element tf-group-element-blog tf-group-element-slider tf-group-element-portfolio tf-group-element-testimonial'), array('id' => 'unlink_feat_img_slider', 'type' => 'select', 'label' => __('Unlink Featured Image', 'themify'), 'empty' => array('val' => '', 'label' => ''), 'options' => array('yes' => __('Yes', 'themify'), 'no' => __('No', 'themify')), 'wrap_with_class' => 'tf-group-element tf-group-element-blog tf-group-element-slider tf-group-element-portfolio'), array('id' => 'open_link_new_tab_slider', 'type' => 'select', 'label' => __('Open link in a new tab', 'themify'), 'empty' => array('val' => '', 'label' => ''), 'options' => array('yes' => __('Yes', 'themify'), 'no' => __('No', 'themify')), 'wrap_with_class' => 'tf-group-element tf-group-element-blog tf-group-element-slider tf-group-element-portfolio tf-group-element-testimonial'), array('id' => 'img_content_slider', 'type' => 'builder', 'options' => array(array('id' => 'img_url_slider', 'type' => 'image', 'label' => __('Image URL', 'themify'), 'class' => 'xlarge'), array('id' => 'img_title_slider', 'type' => 'text', 'label' => __('Image Title', 'themify'), 'class' => 'fullwidth'), array('id' => 'img_link_slider', 'type' => 'text', 'label' => __('Image Link', 'themify'), 'class' => 'fullwidth'), array('id' => 'img_link_params', 'type' => 'select', 'label' => '&nbsp;', 'options' => array('' => '', 'lightbox' => __('Open link in lightbox', 'themify'), 'newtab' => __('Open link in new tab', 'themify'))), array('id' => 'img_caption_slider', 'type' => 'textarea', 'label' => __('Image Caption', 'themify'), 'class' => 'fullwidth', 'rows' => 6)), 'wrap_with_class' => 'tf-group-element tf-group-element-image'), array('id' => 'video_content_slider', 'type' => 'builder', 'options' => array(array('id' => 'video_url_slider', 'type' => 'text', 'label' => __('Video URL', 'themify'), 'class' => 'xlarge', 'help' => array('new_line' => true, 'text' => __('YouTube, Vimeo, etc', 'themify'))), array('id' => 'video_title_slider', 'type' => 'text', 'label' => __('Video Title', 'themify'), 'class' => 'fullwidth'), array('id' => 'video_title_link_slider', 'type' => 'text', 'label' => __('Video Title Link', 'themify'), 'class' => 'fullwidth'), array('id' => 'video_caption_slider', 'type' => 'textarea', 'label' => __('Video Caption', 'themify'), 'class' => 'fullwidth', 'rows' => 6), array('id' => 'video_width_slider', 'type' => 'text', 'label' => __('Video Width', 'themify'), 'class' => 'xsmall')), 'wrap_with_class' => 'tf-group-element tf-group-element-video'), array('id' => 'text_content_slider', 'type' => 'builder', 'options' => array(array('id' => 'text_caption_slider', 'type' => 'wp_editor', 'label' => false, 'class' => 'fullwidth builder-field', 'rows' => 6)), 'wrap_with_class' => 'tf-group-element tf-group-element-text'), array('id' => 'layout_slider', 'type' => 'layout', 'label' => __('Slider Layout', 'themify'), 'separated' => 'top', 'options' => array(array('img' => 'slider-default.png', 'value' => 'slider-default', 'label' => __('Slider Default', 'themify')), array('img' => 'slider-image-top.png', 'value' => 'slider-overlay', 'label' => __('Slider Overlay', 'themify')), array('img' => 'slider-caption-overlay.png', 'value' => 'slider-caption-overlay', 'label' => __('Slider Caption Overlay', 'themify')), array('img' => 'slider-agency.png', 'value' => 'slider-agency', 'label' => __('Agency', 'themify')))), array('id' => 'image_size_slider', 'type' => 'select', 'label' => Themify_Builder_Model::is_img_php_disabled() ? __('Image Size', 'themify') : false, 'empty' => array('val' => '', 'label' => ''), 'hide' => Themify_Builder_Model::is_img_php_disabled() ? false : true, 'options' => $image_sizes, 'wrap_with_class' => 'tf-group-element tf-group-element-blog tf-group-element-slider tf-group-element-portfolio tf-group-element-image'), array('id' => 'img_w_slider', 'type' => 'text', 'label' => __('Image Width', 'themify'), 'class' => 'xsmall', 'help' => 'px', 'wrap_with_class' => 'tf-group-element tf-group-element-blog tf-group-element-slider tf-group-element-portfolio tf-group-element-image'), array('id' => 'img_h_slider', 'type' => 'text', 'label' => __('Image Height', 'themify'), 'class' => 'xsmall', 'help' => 'px', 'wrap_with_class' => 'tf-group-element tf-group-element-blog tf-group-element-slider tf-group-element-portfolio tf-group-element-image'), array('id' => 'slider_option_slider', 'type' => 'slider', 'label' => __('Slider Options', 'themify'), 'options' => array(array('id' => 'visible_opt_slider', 'type' => 'select', 'default' => 1, 'options' => $visible_opt, 'help' => __('Visible', 'themify')), array('id' => 'auto_scroll_opt_slider', 'type' => 'select', 'default' => 4, 'options' => $auto_scroll_opt, 'help' => __('Auto Scroll', 'themify')), array('id' => 'scroll_opt_slider', 'type' => 'select', 'options' => $visible_opt, 'help' => __('Scroll', 'themify')), array('id' => 'speed_opt_slider', 'type' => 'select', 'options' => array('normal' => __('Normal', 'themify'), 'fast' => __('Fast', 'themify'), 'slow' => __('Slow', 'themify')), 'help' => __('Speed', 'themify')), array('id' => 'effect_slider', 'type' => 'select', 'options' => array('scroll' => __('Slide', 'themify'), 'fade' => __('Fade', 'themify'), 'crossfade' => __('Cross Fade', 'themify'), 'cover' => __('Cover', 'themify'), 'cover-fade' => __('Cover Fade', 'themify'), 'uncover' => __('Uncover', 'themify'), 'uncover-fade' => __('Uncover Fade', 'themify'), 'continuously' => __('Continuously', 'themify')), 'help' => __('Effect', 'themify')), array('id' => 'pause_on_hover_slider', 'type' => 'select', 'options' => array('resume' => __('Yes', 'themify'), 'false' => __('No', 'themify')), 'help' => __('Pause On Hover', 'themify')), array('id' => 'wrap_slider', 'type' => 'select', 'help' => __('Wrap', 'themify'), 'options' => array('yes' => __('Yes', 'themify'), 'no' => __('No', 'themify'))), array('id' => 'show_nav_slider', 'type' => 'select', 'help' => __('Show slider pagination', 'themify'), 'options' => array('yes' => __('Yes', 'themify'), 'no' => __('No', 'themify'))), array('id' => 'show_arrow_slider', 'type' => 'select', 'help' => __('Show slider arrow buttons', 'themify'), 'options' => array('yes' => __('Yes', 'themify'), 'no' => __('No', 'themify'))), array('id' => 'left_margin_slider', 'type' => 'text', 'class' => 'xsmall', 'unit' => 'px', 'help' => __('Left margin space between slides', 'themify')), array('id' => 'right_margin_slider', 'type' => 'text', 'class' => 'xsmall', 'unit' => 'px', 'help' => __('Right margin space between slides', 'themify')), array('id' => 'height_slider', 'type' => 'select', 'options' => array('variable' => __('Variable', 'themify'), 'auto' => __('Auto', 'themify')), 'help' => __('Height <small class="description">"Auto" measures the highest slide and all other slides will be set to that size. "Variable" makes every slide has it\'s own height.</small>', 'themify')))));
     return $options;
 }
示例#3
0
 public function get_options()
 {
     $options = array(array('id' => 'mod_title_gallery', 'type' => 'text', 'label' => __('Module Title', 'themify'), 'class' => 'large'), array('id' => 'layout_gallery', 'type' => 'radio', 'label' => __('Gallery Layout', 'themify'), 'options' => array('grid' => __('Grid', 'themify'), 'showcase' => __('Showcase', 'themify'), 'lightboxed' => __('Lightboxed', 'themify')), 'default' => 'grid', 'option_js' => true), array('id' => 'thumbnail_gallery', 'type' => 'image', 'label' => __('Thumbnail', 'themify'), 'class' => 'large', 'wrap_with_class' => 'tf-group-element tf-group-element-lightboxed'), array('id' => 'shortcode_gallery', 'type' => 'textarea', 'class' => 'fullwidth tf-shortcode-input', 'label' => __('Insert Gallery Shortcode', 'themify'), 'help' => sprintf('<a href="#" class="builder_button tf-gallery-btn">%s</a>', __('Insert Gallery', 'themify'))), array('id' => 'thumb_w_gallery', 'type' => 'text', 'label' => __('Thumbnail Width', 'themify'), 'class' => 'xsmall', 'hide' => Themify_Builder_Model::is_img_php_disabled() ? true : false, 'help' => 'px'), array('id' => 'thumb_h_gallery', 'type' => 'text', 'label' => __('Thumbnail Height', 'themify'), 'class' => 'xsmall', 'hide' => Themify_Builder_Model::is_img_php_disabled() ? true : false, 'help' => 'px'), array('id' => 'image_size_gallery', 'type' => 'select', 'label' => Themify_Builder_Model::is_img_php_disabled() ? __('Image Size', 'themify') : false, 'empty' => array('val' => '', 'label' => ''), 'hide' => Themify_Builder_Model::is_img_php_disabled() ? false : true, 'options' => themify_get_image_sizes_list(false)), array('id' => 'appearance_gallery', 'type' => 'checkbox', 'label' => __('Image Appearance', 'themify'), 'options' => array(array('name' => 'rounded', 'value' => __('Rounded', 'themify')), array('name' => 'drop-shadow', 'value' => __('Drop Shadow', 'themify')), array('name' => 'bordered', 'value' => __('Bordered', 'themify')), array('name' => 'circle', 'value' => __('Circle', 'themify'), 'help' => __('(square format image only)', 'themify')))));
     return $options;
 }
示例#4
0
 public function get_options()
 {
     $image_sizes = themify_get_image_sizes_list(false);
     $options = array(array('id' => 'mod_title_image', 'type' => 'text', 'label' => __('Module Title', 'themify'), 'class' => 'large'), array('id' => 'style_image', 'type' => 'layout', 'label' => __('Image Style', 'themify'), 'options' => array(array('img' => 'image-top.png', 'value' => 'image-top', 'label' => __('Image Top', 'themify')), array('img' => 'image-left.png', 'value' => 'image-left', 'label' => __('Image Left', 'themify')), array('img' => 'image-right.png', 'value' => 'image-right', 'label' => __('Image Right', 'themify')), array('img' => 'image-overlay.png', 'value' => 'image-overlay', 'label' => __('Image Overlay', 'themify')), array('img' => 'image-center.png', 'value' => 'image-center', 'label' => __('Centered Image', 'themify')))), array('id' => 'url_image', 'type' => 'image', 'label' => __('Image URL', 'themify'), 'class' => 'xlarge'), array('id' => 'appearance_image', 'type' => 'checkbox', 'label' => __('Image Appearance', 'themify'), 'options' => array(array('name' => 'rounded', 'value' => __('Rounded', 'themify')), array('name' => 'drop-shadow', 'value' => __('Drop Shadow', 'themify')), array('name' => 'bordered', 'value' => __('Bordered', 'themify')), array('name' => 'circle', 'value' => __('Circle', 'themify'), 'help' => __('(square format image only)', 'themify')))), array('id' => 'image_size_image', 'type' => 'select', 'label' => Themify_Builder_Model::is_img_php_disabled() ? __('Image Size', 'themify') : false, 'empty' => array('val' => '', 'label' => ''), 'hide' => Themify_Builder_Model::is_img_php_disabled() ? false : true, 'options' => $image_sizes), array('id' => 'width_image', 'type' => 'text', 'label' => __('Width', 'themify'), 'class' => 'xsmall', 'help' => 'px', 'value' => ''), array('id' => 'auto_fullwidth', 'type' => 'checkbox', 'pushed' => 'pushed', 'options' => array(array('name' => '1', 'value' => __('Auto fullwidth image', 'themify')))), array('id' => 'height_image', 'type' => 'text', 'label' => __('Height', 'themify'), 'class' => 'xsmall', 'help' => 'px', 'value' => ''), array('id' => 'title_image', 'type' => 'text', 'label' => __('Image Title', 'themify'), 'class' => 'fullwidth'), array('id' => 'link_image', 'type' => 'text', 'label' => __('Image Link', 'themify'), 'class' => 'fullwidth'), array('id' => 'param_image', 'type' => 'checkbox', 'label' => false, 'pushed' => 'pushed', 'options' => array(array('name' => 'lightbox', 'value' => __('Open link in lightbox', 'themify')), array('name' => 'zoom', 'value' => __('Show zoom icon', 'themify')), array('name' => 'newtab', 'value' => __('Open link in new tab', 'themify'))), 'new_line' => false), array('id' => 'alt_image', 'type' => 'text', 'label' => __('Image Alt', 'themify'), 'class' => 'fullwidth'), array('id' => 'caption_image', 'type' => 'textarea', 'label' => __('Image Caption', 'themify'), 'class' => 'fullwidth'));
     return $options;
 }
 public function get_options()
 {
     $image_sizes = themify_get_image_sizes_list(false);
     $options = array(array('id' => 'mod_title_highlight', 'type' => 'text', 'label' => __('Module Title', 'themify'), 'class' => 'large'), array('id' => 'layout_highlight', 'type' => 'layout', 'label' => __('Highlight Layout', 'themify'), 'options' => array(array('img' => 'grid4.png', 'value' => 'grid4', 'label' => __('Grid 4', 'themify')), array('img' => 'grid3.png', 'value' => 'grid3', 'label' => __('Grid 3', 'themify')), array('img' => 'grid2.png', 'value' => 'grid2', 'label' => __('Grid 2', 'themify')), array('img' => 'fullwidth.png', 'value' => 'fullwidth', 'label' => __('fullwidth', 'themify')))), array('id' => 'type_query_highlight', 'type' => 'radio', 'label' => __('Query by', 'themify'), 'options' => array('category' => __('Category', 'themify'), 'post_slug' => __('Slug', 'themify')), 'default' => 'category', 'option_js' => true), array('id' => 'category_highlight', 'type' => 'query_category', 'label' => __('Category', 'themify'), 'options' => array('taxonomy' => 'highlight-category'), 'help' => sprintf(__('Add more <a href="%s" target="_blank">highlight posts</a>', 'themify'), admin_url('post-new.php?post_type=highlight')), 'wrap_with_class' => 'tf-group-element tf-group-element-category'), array('id' => 'query_slug_highlight', 'type' => 'text', 'label' => __('Highlight Slugs', 'themify'), 'class' => 'large', 'wrap_with_class' => 'tf-group-element tf-group-element-post_slug', 'help' => '<br/>' . __('Insert Highlight slug. Multiple slug should be separated by comma (,)', 'themify')), array('id' => 'post_per_page_highlight', 'type' => 'text', 'label' => __('Limit', 'themify'), 'class' => 'xsmall', 'help' => __('number of posts to show', 'themify')), array('id' => 'offset_highlight', 'type' => 'text', 'label' => __('Offset', 'themify'), 'class' => 'xsmall', 'help' => __('number of post to displace or pass over', 'themify')), array('id' => 'order_highlight', 'type' => 'select', 'label' => __('Order', 'themify'), 'help' => __('Descending = show newer posts first', 'themify'), 'options' => array('desc' => __('Descending', 'themify'), 'asc' => __('Ascending', 'themify'))), array('id' => 'orderby_highlight', 'type' => 'select', 'label' => __('Order By', 'themify'), 'options' => array('date' => __('Date', 'themify'), 'id' => __('Id', 'themify'), 'author' => __('Author', 'themify'), 'title' => __('Title', 'themify'), 'name' => __('Name', 'themify'), 'modified' => __('Modified', 'themify'), 'rand' => __('Rand', 'themify'), 'comment_count' => __('Comment Count', 'themify'))), array('id' => 'display_highlight', 'type' => 'select', 'label' => __('Display', 'themify'), 'options' => array('content' => __('Content', 'themify'), 'excerpt' => __('Excerpt', 'themify'), 'none' => __('None', 'themify'))), array('id' => 'hide_feat_img_highlight', 'type' => 'select', 'label' => __('Hide Featured Image', 'themify'), 'empty' => array('val' => '', 'label' => ''), 'options' => array('yes' => __('Yes', 'themify'), 'no' => __('No', 'themify'))), array('id' => 'image_size_highlight', 'type' => 'select', 'label' => Themify_Builder_Model::is_img_php_disabled() ? __('Image Size', 'themify') : false, 'empty' => array('val' => '', 'label' => ''), 'hide' => Themify_Builder_Model::is_img_php_disabled() ? false : true, 'options' => $image_sizes), array('id' => 'img_width_highlight', 'type' => 'text', 'label' => __('Image Width', 'themify'), 'class' => 'xsmall'), array('id' => 'img_height_highlight', 'type' => 'text', 'label' => __('Image Height', 'themify'), 'class' => 'xsmall'), array('id' => 'hide_post_title_highlight', 'type' => 'select', 'label' => __('Hide Post Title', 'themify'), 'empty' => array('val' => '', 'label' => ''), 'options' => array('yes' => __('Yes', 'themify'), 'no' => __('No', 'themify'))), array('id' => 'hide_page_nav_highlight', 'type' => 'select', 'label' => __('Hide Page Navigation', 'themify'), 'options' => array('yes' => __('Yes', 'themify'), 'no' => __('No', 'themify'))));
     return $options;
 }