function popup_elements()
 {
     $wp_categories = FusionHelper::get_wp_categories_list();
     $cat_element = array('' => 'All');
     $wp_categories = $cat_element + $wp_categories;
     $this->config['subElements'] = array(array("name" => __('Layout', 'fusion-core'), "desc" => __('Choose a layout style for Post Slider.', 'fusion-core'), "id" => "fusion_type", "type" => ElementTypeEnum::SELECT, "value" => "posts", "allowedValues" => array('posts' => __('Posts with Title', 'fusion-core'), 'posts-with-excerpt' => __('Posts with Title and Excerpt', 'fusion-core'), 'attachments' => __('Attachment Layout, Only Images Attached to Post/Page', 'fusion-core'))), array("name" => __('Excerpt Number of Words', 'fusion-core'), "desc" => __('Insert the number of words you want to show in the excerpt.', 'fusion-core'), "id" => "fusion_excerpt", "type" => ElementTypeEnum::INPUT, "value" => "35"), array("name" => __('Category', 'fusion-core'), "desc" => __('Select a category of posts to display.', 'fusion-core'), "id" => "fusion_category", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $wp_categories), array("name" => __('Number of Slides', 'fusion-core'), "desc" => __('Select the number of slides to display.', 'fusion-core'), "id" => "fusion_limit", "type" => ElementTypeEnum::INPUT, "value" => "3"), array("name" => __('Lightbox on Click', 'fusion-core'), "desc" => __('Only works on attachment layout.', 'fusion-core'), "id" => "fusion_lightbox", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Attach Images to Post/Page Gallery', 'fusion-core'), "desc" => __('Only works for attachments layout.', 'fusion-core'), "id" => "fusion_gallery", "type" => ElementTypeEnum::GALLERY, "value" => " "), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""));
 }
 function popup_elements()
 {
     $posts_per_page = array('fusion_-1' => 'All', 'fusion_' => 'Default');
     $blog_posts_per_page = FusionHelper::fusion_create_dropdown_data(1, 25, $posts_per_page);
     $wp_categories_list = FusionHelper::get_wp_categories_list();
     $choices = FusionHelper::get_shortcode_choices();
     $this->config['subElements'] = array(array("name" => __('Blog Layout', 'fusion-core'), "desc" => __('Select the layout for the blog shortcode', 'fusion-core'), "id" => "fusion_layout", "type" => ElementTypeEnum::SELECT, "value" => "large", "allowedValues" => array('large' => __('Large', 'fusion-core'), 'medium' => __('Medium', 'fusion-core'), 'large alternate' => __('Large Alternate', 'fusion-core'), 'medium alternate' => __('Medium Alternate', 'fusion-core'), 'grid' => __('Grid', 'fusion-core'), 'timeline' => __('Timeline', 'fusion-core'))), array("name" => __('Posts Per Page', 'fusion-core'), "desc" => __('Select number of posts per page.', 'fusion-core'), "id" => "fusion_posts_per_page", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $blog_posts_per_page), array("name" => __('Post Offset', 'fusion-core'), "desc" => __('The number of posts to skip. ex: 1.', 'fusion-core'), "id" => "fusion_offset", "type" => ElementTypeEnum::INPUT, "value" => ''), array("name" => __('Categories', 'fusion-core'), "desc" => __('Select a category or leave blank for all.', 'fusion-core'), "id" => "fusion_cat_slug", "type" => ElementTypeEnum::MULTI, "value" => array(''), "allowedValues" => $wp_categories_list), array("name" => __('Exclude Categories', 'fusion-core'), "desc" => __('Select a category to exclude.', 'fusion-core'), "id" => "fusion_exclude_cats", "type" => ElementTypeEnum::MULTI, "value" => array(''), "allowedValues" => $wp_categories_list), array("name" => __('Show Title', 'fusion-core'), "desc" => __('Display the post title below the featured image.', 'fusion-core'), "id" => "fusion_title", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Link Title To Post', 'fusion-core'), "desc" => __('Choose if the title should be a link to the single post page.', 'fusion-core'), "id" => "fusion_title_link", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Thumbnail', 'fusion-core'), "desc" => __('Display the post featured image.', 'fusion-core'), "id" => "fusion_thumbnail", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Excerpt', 'fusion-core'), "desc" => __('Show excerpt or choose "no" for full content.', 'fusion-core'), "id" => "fusion_excerpt", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Number of words/characters in Excerpt', 'fusion-core'), "desc" => __('Control the excerpt length based on words/character setting in Theme Options > Extra.', 'fusion-core'), "id" => "fusion_excerpt_words", "type" => ElementTypeEnum::INPUT, "value" => 35), array("name" => __('Show Meta Info', 'fusion-core'), "desc" => __('Choose to show all meta data.', 'fusion-core'), "id" => "fusion_meta_all", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Author Name', 'fusion-core'), "desc" => __('Choose to show the author.', 'fusion-core'), "id" => "fusion_meta_author", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Categories', 'fusion-core'), "desc" => __("Choose to show the categories. Grid and timeline layout generally don't display categories.", 'fusion-core'), "id" => "fusion_meta_categories", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Comment Count', 'fusion-core'), "desc" => __('Choose to show the comments.', 'fusion-core'), "id" => "fusion_meta_comments", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Date', 'fusion-core'), "desc" => __('Choose to show the date.', 'fusion-core'), "id" => "fusion_meta_date", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Read More Link', 'fusion-core'), "desc" => __('Choose to show the Read More link.', 'fusion-core'), "id" => "fusion_meta_link", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Tags', 'fusion-core'), "desc" => __("Choose to show the tags. Grid and timeline layout generally don't display tags.", 'fusion-core'), "id" => "fusion_meta_tags", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Pagination', 'fusion-core'), "desc" => __('Show numerical pagination boxes.', 'fusion-core'), "id" => "fusion_paging", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Pagination Type', 'fusion-core'), "desc" => __('Choose the type of pagination.', 'fusion-core'), "id" => "fusion_scrolling", "type" => ElementTypeEnum::SELECT, "value" => "pagination", "allowedValues" => array('pagination' => __('Pagination', 'fusion-core'), 'infinite' => __('Infinite Scrolling', 'fusion-core'), 'load_more_button' => __('Load More Button', 'fusion-core'))), array("name" => __('Grid Layout # of Columns', 'fusion-core'), "desc" => __('Select whether to display the grid layout in 2, 3, 4, 5 or 6 column.', 'fusion-core'), "id" => "fusion_blog_grid_columns", "type" => ElementTypeEnum::SELECT, "value" => "3", "allowedValues" => array('2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6')), array("name" => __('Grid Layout Column Spacing', 'fusion-core'), "desc" => __('Insert the amount of spacing between blog grid posts without "px".', 'fusion-core'), "id" => "fusion_blog_grid_column_spacing", "type" => ElementTypeEnum::INPUT, "value" => "40"), array("name" => __('Strip HTML from Posts Content', 'fusion-core'), "desc" => __('Strip HTML from the post excerpt.', 'fusion-core'), "id" => "fusion_strip_html", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""));
 }
Пример #3
0
 function popup_elements()
 {
     $no_of_columns = FusionHelper::fusion_create_dropdown_data(1, 6);
     $wp_categories_list = FusionHelper::get_wp_categories_list();
     $animation_speed = FusionHelper::get_animation_speed_data();
     $animation_direction = FusionHelper::get_animation_direction_data();
     $animation_type = FusionHelper::get_animation_type_data();
     $choices = FusionHelper::get_shortcode_choices();
     $this->config['subElements'] = array(array("name" => __('Layout', 'fusion-core'), "desc" => __('Select the layout for the shortcode', 'fusion-core'), "id" => "fusion_layout", "type" => ElementTypeEnum::SELECT, "value" => "default", "allowedValues" => array('default' => __('Default', 'fusion-core'), 'thumbnails-on-side' => __('Thumbnails on Side', 'fusion-core'), 'date-on-side' => __('Date on Side', 'fusion-core'))), array("name" => __('Hover Type', 'fusion-core'), "desc" => __('Select the hover effect type.', 'fusion-core'), "id" => "fusion_hover_type", "type" => ElementTypeEnum::SELECT, "value" => "none", "allowedValues" => array('none' => __('None', 'fusion-core'), 'zoomin' => __('Zoom In', 'fusion-core'), 'zoomout' => __('Zoom Out', 'fusion-core'), 'liftup' => __('Lift Up', 'fusion-core'))), array("name" => __('Columns', 'fusion-core'), "desc" => __('Select the number of columns to display', 'fusion-core'), "id" => "fusion_columns", "type" => ElementTypeEnum::SELECT, "value" => "1", "allowedValues" => $no_of_columns), array("name" => __('Number of Posts', 'fusion-core'), "desc" => __('Select the number of posts to display', 'fusion-core'), "id" => "fusion_number_posts", "type" => ElementTypeEnum::INPUT, "value" => "4"), array("name" => __('Post Offset', 'fusion-core'), "desc" => __('The number of posts to skip. ex: 1.', 'fusion-core'), "id" => "fusion_offset", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Categories', 'fusion-core'), "desc" => __('Select a category or leave blank for all', 'fusion-core'), "id" => "fusion_cat_slug", "type" => ElementTypeEnum::MULTI, "value" => array(''), "allowedValues" => $wp_categories_list), array("name" => __('Exclude Categories', 'fusion-core'), "desc" => __('Select a category to exclude', 'fusion-core'), "id" => "fusion_exclude_cats", "type" => ElementTypeEnum::MULTI, "value" => array(''), "allowedValues" => $wp_categories_list), array("name" => __('Show Thumbnail', 'fusion-core'), "desc" => __('Display the post featured image', 'fusion-core'), "id" => "fusion_thumbnail", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Title', 'fusion-core'), "desc" => __('Display the post title below the featured image', 'fusion-core'), "id" => "fusion_title", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Meta', 'fusion-core'), "desc" => __('Choose to show all meta data', 'fusion-core'), "id" => "fusion_meta", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Excerpt', 'fusion-core'), "desc" => __('Choose to display the post excerpt', 'fusion-core'), "id" => "fusion_excerpt", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Excerpt Length', 'fusion-core'), "desc" => __('Insert the number of words/characters you want to show in the excerpt', 'fusion-core'), "id" => "fusion_excerpt_words", "type" => ElementTypeEnum::INPUT, "value" => 35), array("name" => __('Strip HTML', 'fusion-core'), "desc" => __('Strip HTML from the post excerpt', 'fusion-core'), "id" => "fusion_strip_html", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Animation Type', 'fusion-core'), "desc" => __('Select the type on animation to use on the shortcode', 'fusion-core'), "id" => "fusion_animation_type", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $animation_type), array("name" => __('Direction of Animation', 'fusion-core'), "desc" => __('Select the incoming direction for the animation', 'fusion-core'), "id" => "fusion_animation_direction", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $animation_direction), array("name" => __('Speed of Animation', 'fusion-core'), "desc" => __('Type in speed of animation in seconds (0.1 - 1)', 'fusion-core'), "id" => "fusion_animation_speed", "type" => ElementTypeEnum::SELECT, "value" => "0.1", "allowedValues" => $animation_speed), array("name" => __('Offset of Animation', 'fusion-core'), "desc" => __('Choose when the animation should start.', 'fusion-core'), "id" => "fusion_animation_offset", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'top-into-view' => __('Top of element hits bottom of viewport', 'fusion-core'), 'top-mid-of-view' => __('Top of element hits middle of viewport', 'fusion-core'), 'bottom-in-view' => __('Bottom of element enters viewport', 'fusion-core'))), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "fusion_id", "type" => ElementTypeEnum::INPUT, "value" => ""));
 }