本文整理汇总了PHP中FusionHelper类的典型用法代码示例。如果您正苦于以下问题:PHP FusionHelper类的具体用法?PHP FusionHelper怎么用?PHP FusionHelper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了FusionHelper类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: popup_elements
function popup_elements()
{
$animation_speed = FusionHelper::get_animation_speed_data();
$animation_direction = FusionHelper::get_animation_direction_data();
$animation_type = FusionHelper::get_animation_type_data();
$this->config['subElements'] = array(array("name" => __('Alert Type', 'fusion-core'), "desc" => __('Select the type of alert message. Choose custom for advanced color options below.', 'fusion-core'), "id" => "fusion_type", "type" => ElementTypeEnum::SELECT, "value" => "general", "allowedValues" => array('general' => __('General', 'fusion-core'), 'error' => __('Error', 'fusion-core'), 'success' => __('Success', 'fusion-core'), 'notice' => __('Notice', 'fusion-core'), 'custom' => __('Custom', 'fusion-core'))), array("name" => __('Accent Color', 'fusion-core'), "desc" => __('Custom setting only. Set the border, text and icon color for custom alert boxes.', 'fusion-core'), "id" => "fusion_accentcolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Background Color', 'fusion-core'), "desc" => __('Custom setting only. Set the background color for custom alert boxes.', 'fusion-core'), "id" => "fusion_backgroundcolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Border Width', 'fusion-core'), "desc" => __('Custom setting. For custom alert boxes. In pixels (px), ex: 1px.', 'fusion-core'), "id" => "fusion_bordersize", "type" => ElementTypeEnum::INPUT, "value" => "1px"), array("name" => __('Select Custom Icon', 'fusion-core'), "desc" => __('Custom setting only. Click an icon to select, click again to deselect', 'fusion-core'), "id" => "icon", "type" => ElementTypeEnum::ICON_BOX, "value" => "", "list" => FusionHelper::GET_ICONS_LIST()), array("name" => __('Box Shadow', 'fusion-core'), "desc" => __('Display a box shadow below the alert box.', 'fusion-core'), "id" => "fusion_boxshadow", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Alert Content', 'fusion-core'), "desc" => __('Insert the alert\'s content', 'fusion-core'), "id" => "fusion_content_wp", "type" => ElementTypeEnum::HTML_EDITOR, "value" => __('Your Content Goes Here', 'fusion-core')), array("name" => __('Animation Type', 'fusion-core'), "desc" => __('Select the type of 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" => "left", "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" => "", "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" => ""));
}
开发者ID:agiper,项目名称:wordpress,代码行数:7,代码来源:class-alert-box.php
示例2: popup_elements
function popup_elements()
{
$zoom_levels = FusionHelper::fusion_create_dropdown_data(1, 25);
$choices = FusionHelper::get_shortcode_choices();
$this->config['subElements'] = array(array("name" => __('Map Type', 'fusion-core'), "desc" => __('Select the type of google map to display', 'fusion-core'), "id" => "fusion_type", "type" => ElementTypeEnum::SELECT, "value" => "roadmap", "allowedValues" => array('roadmap' => __('Roadmap', 'fusion-core'), 'satellite' => __('Satellite', 'fusion-core'), 'hybrid' => __('Hybrid', 'fusion-core'), 'terrain' => __('Terrain', 'fusion-core'))), array("name" => __('Map Width', 'fusion-core'), "desc" => __('Map width in percentage or pixels. ex: 100%, or 940px', 'fusion-core'), "id" => "fusion_width", "type" => ElementTypeEnum::INPUT, "value" => "100%"), array("name" => __('Map Height', 'fusion-core'), "desc" => __('Map height in pixels. ex: 300px', 'fusion-core'), "id" => "fusion_height", "type" => ElementTypeEnum::INPUT, "value" => "300px"), array("name" => __('Zoom Level', 'fusion-core'), "desc" => __('Higher number will be more zoomed in.', 'fusion-core'), "id" => "fusion_zoom", "type" => ElementTypeEnum::SELECT, "value" => "14", "allowedValues" => $zoom_levels), array("name" => __('Scrollwheel on Map', 'fusion-core'), "desc" => __('Enable zooming using a mouse\'s scroll wheel', 'fusion-core'), "id" => "fusion_scrollwheel", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Scale Control on Map', 'fusion-core'), "desc" => __('Display the map scale', 'fusion-core'), "id" => "fusion_scale", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show Pan Control on Map', 'fusion-core'), "desc" => __('Displays pan control button', 'fusion-core'), "id" => "fusion_zoom_pancontrol", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Address Pin Animation', 'fusion-core'), "desc" => __('Choose to animate the address pins when the map first loads.', 'fusion-core'), "id" => "fusion_animation", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Show tooltip by default', 'fusion-core'), "desc" => __('Display or hide tooltip by default when the map first loads.', 'fusion-core'), "id" => "fusion_popup", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Select the Map Styling Switch', 'fusion-core'), "desc" => __('Choose default styling for classic google map styles. Choose theme styling for our custom style. Choose custom styling to make your own with the advanced options below.', 'fusion-core'), "id" => "fusion_mapstyle", "type" => ElementTypeEnum::SELECT, "value" => "default", "allowedValues" => array('default' => __('Default Styling', 'fusion-core'), 'theme' => __('Theme Styling', 'fusion-core'), 'custom' => __('Custom Styling', 'fusion-core'))), array("name" => __('Map Overlay Color', 'fusion-core'), "desc" => __('Custom styling setting only. Pick an overlaying color for the map. Works best with "roadmap" type.', 'fusion-core'), "id" => "fusion_overlaycolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Infobox Styling', 'fusion-core'), "desc" => __('Custom styling setting only. Choose between default or custom info box.', 'fusion-core'), "id" => "fusion_infobox", "type" => ElementTypeEnum::SELECT, "value" => "default", "allowedValues" => array('default' => __('Default Infobox', 'fusion-core'), 'custom' => __('Custom Infobox', 'fusion-core'))), array("name" => __('Infobox Content', 'fusion-core'), "desc" => __('Custom styling setting only. Type in custom info box content to replace address string. For multiple addresses, separate info box contents by using the | symbol. ex: InfoBox 1|InfoBox 2|InfoBox 3', 'fusion-core'), "id" => "fusion_infoboxcontent", "type" => ElementTypeEnum::TEXTAREA, "value" => ""), array("name" => __('Info Box Text Color', 'fusion-core'), "desc" => __('Custom styling setting only. Pick a color for the info box text.', 'fusion-core'), "id" => "fusion_infoboxtextcolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Info Box Background Color', 'fusion-core'), "desc" => __('Custom styling setting only. Pick a color for the info box background.', 'fusion-core'), "id" => "fusion_infoboxbackgroundcolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Custom Marker Icon', 'fusion-core'), "desc" => __('Custom styling setting only. Use full image urls for custom marker icons or input "theme" for our custom marker. For multiple addresses, separate icons by using the | symbol or use one for all. ex: Icon 1|Icon 2|Icon 3', 'fusion-core'), "id" => "fusion_icon", "type" => ElementTypeEnum::TEXTAREA, "value" => ""), array("name" => __('Address', 'fusion-core'), "desc" => __('Add address to the location which will show up on map. For multiple addresses, separate addresses by using the | symbol.
ex: Address 1|Address 2|Address 3', 'fusion-core'), "id" => "fusion_content", "type" => ElementTypeEnum::TEXTAREA, "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" => ""));
}
开发者ID:mathewdenis,项目名称:avada,代码行数:7,代码来源:class-google-map.php
示例3: popup_elements
function popup_elements()
{
$no_of_columns = FusionHelper::fusion_create_dropdown_data(1, 6);
$woo_commerce_categories = $this->get_woo_commerce_categories();
$choices = FusionHelper::get_shortcode_choices();
$this->config['subElements'] = array(array("name" => __('Picture Size', 'fusion-core'), "desc" => __('fixed = width and height will be fixed<br>auto = width and height will adjust to the image.', 'fusion-core'), "id" => "picture_size", "type" => ElementTypeEnum::SELECT, "value" => "fixed", "allowedValues" => array('fixed' => __('Fixed', 'fusion-core'), 'auto' => __('Auto', 'fusion-core'))), array("name" => __('Categories', 'fusion-core'), "desc" => __('Select a category or leave blank for all', 'fusion-core'), "id" => "cat_slug", "type" => ElementTypeEnum::MULTI, "value" => array(''), "allowedValues" => $woo_commerce_categories), array("name" => __('Number of Products', 'fusion-core'), "desc" => __('Select the number of products to display', 'fusion-core'), "id" => "number_posts", "type" => ElementTypeEnum::INPUT, "value" => "5"), array("name" => __('Carousel Layout', 'fusion-core'), "desc" => __('Choose to show titles on rollover image, or below image.', 'fusion-core'), "id" => "carousel_layout", "type" => ElementTypeEnum::SELECT, "value" => "title_on_rollover", "allowedValues" => array('title_on_rollover' => __('Title on rollover', 'fusion-core'), 'title_below_image' => __('Title below image', 'fusion-core'))), array("name" => __('Carousel Autoplay', 'fusion-core'), "desc" => __('Choose to autoplay the carousel.', 'fusion-core'), "id" => "autoplay", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Maximum Columns', 'fusion-core'), "desc" => __('Select the number of max columns to display.', 'fusion-core'), "id" => "columns", "type" => ElementTypeEnum::SELECT, "value" => "5", "allowedValues" => $no_of_columns), array("name" => __('Column Spacing', 'fusion-core'), "desc" => __("Insert the amount of spacing between items without 'px'. ex: 13.", 'fusion-core'), "id" => "column_spacing", "type" => ElementTypeEnum::INPUT, "value" => "13"), array("name" => __('Carousel Scroll Items', 'fusion-core'), "desc" => __("Insert the amount of items to scroll. Leave empty to scroll number of visible items.", 'fusion-core'), "id" => "fusion_scroll_items", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Carousel Show Navigation', 'fusion-core'), "desc" => __('Choose to show navigation buttons on the carousel.', 'fusion-core'), "id" => "navigation", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Carousel Mouse Scroll', 'fusion-core'), "desc" => __('Choose to enable mouse drag control on the carousel.', 'fusion-core'), "id" => "mouse_scroll", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Show Categories', 'fusion-core'), "desc" => __('Choose to show or hide the categories', 'fusion-core'), "id" => "show_cats", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => $choices), array("name" => __('Show Price', 'fusion-core'), "desc" => __('Choose to show or hide the price', 'fusion-core'), "id" => "show_price", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => $choices), array("name" => __('Show Buttons', 'fusion-core'), "desc" => __('Choose to show or hide the icon buttons', 'fusion-core'), "id" => "show_buttons", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => $choices), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "id", "type" => ElementTypeEnum::INPUT, "value" => ""));
}
开发者ID:universal-youth,项目名称:www.universal-youth.com,代码行数:7,代码来源:class-woo-carousel.php
示例4: popup_elements
function popup_elements($am_elements)
{
$no_of_columns = FusionHelper::fusion_create_dropdown_data(1, 6);
$border_size = FusionHelper::fusion_create_dropdown_data(0, 10);
$reverse_choices = FusionHelper::get_reversed_choice_data();
$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();
$am_array = array();
$am_array[] = array(array("name" => __('Flip Box Frontside Heading', 'fusion-core'), "desc" => __('Add a heading for the frontside of the flip box.', 'fusion-core'), "id" => "fusion_titlefront[0]", "type" => ElementTypeEnum::INPUT, "value" => array("Your Content Goes Here")), array("name" => __('Flip Box Backside Heading', 'fusion-core'), "desc" => __('Add a heading for the backside of the flip box.', 'fusion-core'), "id" => "fusion_titleback[0]", "type" => ElementTypeEnum::INPUT, "value" => array("Your Content Goes Here")), array("name" => __('Flip Box Frontside Content', 'fusion-core'), "desc" => __('Add content for the frontside of the flip box.', 'fusion-core'), "id" => "fusion_text_front[0]", "type" => ElementTypeEnum::INPUT, "value" => array("Your Content Goes Here")), array("name" => __('Flip Box Backside Content', 'fusion-core'), "desc" => __('Add content for the backside of the flip box.', 'fusion-core'), "id" => "fusion_content_wp[0]", "type" => ElementTypeEnum::HTML_EDITOR, "value" => array("Your Content Goes Here")), array("name" => __('Background Color Frontside', 'fusion-core'), "desc" => __('Controls the background color of the frontside. Leave blank for theme option selection. NOTE: flip boxes must have background colors to work correctly in all browsers.', 'fusion-core'), "id" => "fusion_backgroundcolorfront[0]", "type" => ElementTypeEnum::COLOR, "value" => array()), array("name" => __('Heading Color Frontside', 'fusion-core'), "desc" => __('Controls the heading color of the frontside. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_titlecolorfront[0]", "type" => ElementTypeEnum::COLOR, "value" => array()), array("name" => __('Text Color Frontside', 'fusion-core'), "desc" => __('Controls the text color of the frontside. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_textcolorfront[0]", "type" => ElementTypeEnum::COLOR, "value" => array()), array("name" => __('Background Color Backside', 'fusion-core'), "desc" => __('Controls the background color of the backside. Leave blank for theme option selection. NOTE: flip boxes must have background colors to work correctly in all browsers.', 'fusion-core'), "id" => "fusion_backgroundcolorback[0]", "type" => ElementTypeEnum::COLOR, "value" => array()), array("name" => __('Heading Color Backside', 'fusion-core'), "desc" => __('Controls the heading color of the backside. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_titlecolorback[0]", "type" => ElementTypeEnum::COLOR, "value" => array()), array("name" => __('Text Color Backside', 'fusion-core'), "desc" => __('Controls the text color of the backside. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_textcolorback[0]", "type" => ElementTypeEnum::COLOR, "value" => array()), array("name" => __('Border Size', 'fusion-core'), "desc" => __('In pixels (px), ex: 1px. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_bordersize[0]", "type" => ElementTypeEnum::INPUT, "value" => array("1px")), array("name" => __('Border Color', 'fusion-core'), "desc" => __('Controls the border color. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_bordercolor[0]", "type" => ElementTypeEnum::COLOR, "value" => array("")), array("name" => __('Border Radius', 'fusion-core'), "desc" => __('Controls the flip box border radius. In pixels (px), ex: 1px, or "round". Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_borderradius[0]", "type" => ElementTypeEnum::INPUT, "value" => array("4px")), array("name" => __('Icon', 'fusion-core'), "desc" => __('Click an icon to select, click again to deselect.', 'fusion-core'), "id" => "fusion_icon[0]", "type" => ElementTypeEnum::ICON_BOX, "value" => array(""), "list" => FusionHelper::GET_ICONS_LIST()), array("name" => __('Icon Color', 'fusion-core'), "desc" => __('Controls the color of the icon. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_iconcolor[0]", "type" => ElementTypeEnum::COLOR, "value" => array("")), array("name" => __('Icon Circle', 'fusion-core'), "desc" => __('Choose to use a circled background on the icon.', 'fusion-core'), "id" => "fusion_circle[0]", "type" => ElementTypeEnum::SELECT, "value" => array("yes"), "allowedValues" => $choices), array("name" => __('Icon Circle Background Color', 'fusion-core'), "desc" => __('Controls the color of the circle. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_circlecolor[0]", "type" => ElementTypeEnum::COLOR, "value" => array("")), array("name" => __('Icon Circle Border Color', 'fusion-core'), "desc" => __('Controls the color of the circle border. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_circlebordercolor[0]", "type" => ElementTypeEnum::COLOR, "value" => array("")), array("name" => __('Rotate Icon', 'fusion-core'), "desc" => __('Choose to rotate the icon.', 'fusion-core'), "id" => "fusion_rotate[0]", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => 'None', '90' => '90', '180' => '180', '270' => '270')), array("name" => __('Spinning Icon', 'fusion-core'), "desc" => __('Choose to let the icon spin.', 'fusion-core'), "id" => "fusion_iconspin[0]", "type" => ElementTypeEnum::SELECT, "value" => array("no"), "allowedValues" => $reverse_choices), array("name" => __('Icon Image', 'fusion-core'), "desc" => __('To upload your own icon image, deselect the icon above and then upload your icon image.', 'fusion-core'), "id" => "fusion_image[0]", "type" => ElementTypeEnum::UPLOAD, "upid" => array(1), "value" => array("")), array("name" => __('Icon Image Width', 'fusion-core'), "desc" => __('If using an icon image, specify the image width in pixels but do not add px, ex: 35.', 'fusion-core'), "id" => "fusion_image_width[0]", "type" => ElementTypeEnum::INPUT, "value" => array("35")), array("name" => __('Icon Image Height', 'fusion-core'), "desc" => __('If using an icon image, specify the image height in pixels but do not add px, ex: 35.', 'fusion-core'), "id" => "fusion_image_height[0]", "type" => ElementTypeEnum::INPUT, "value" => array("35")), array("name" => __('Animation Type', 'fusion-core'), "desc" => __('Select the type of animation to use on the shortcode.', 'fusion-core'), "id" => "fusion_animation_type[0]", "type" => ElementTypeEnum::SELECT, "value" => array(""), "allowedValues" => $animation_type), array("name" => __('Direction of Animation', 'fusion-core'), "desc" => __('Select the incoming direction for the animation.', 'fusion-core'), "id" => "fusion_animation_direction[0]", "type" => ElementTypeEnum::SELECT, "value" => array(""), "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[0]", "type" => ElementTypeEnum::SELECT, "value" => array(""), "allowedValues" => $animation_speed));
$this->config['defaults'] = $am_array[0];
if ($am_elements) {
$am_array_copy = $am_array[0];
$am_array = array();
foreach ($am_elements as $key => $am_element) {
$build_am = $am_array_copy;
foreach ($build_am as $build_am_key => $build_am_element) {
$build_am[$build_am_key]['value'] = $am_elements[$key][$build_am_key];
$build_am[$build_am_key]['id'] = str_replace('[0]', '[' . $key . ']', $build_am_element['id']);
}
$am_array[] = $build_am;
}
}
$this->config['subElements'] = array(array("name" => __('Number of Columns', 'fusion-core'), "desc" => __('Set the number of columns per row.', 'fusion-core'), "id" => "fusion_columns", "type" => ElementTypeEnum::SELECT, "value" => "1", "allowedValues" => $no_of_columns), 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" => ""), array("type" => ElementTypeEnum::ADDMORE, "buttonText" => __('Add New Flip Box', 'fusion-core'), "id" => "am_fusion_content", "elements" => $am_array));
}
开发者ID:universal-youth,项目名称:www.universal-youth.com,代码行数:26,代码来源:class-flip-boxes.php
示例5: popup_elements
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" => ""));
}
开发者ID:universal-youth,项目名称:www.universal-youth.com,代码行数:7,代码来源:class-post-slider.php
示例6: popup_elements
function popup_elements()
{
$no_of_columns = FusionHelper::fusion_create_dropdown_data(1, 6);
$choices = FusionHelper::get_shortcode_choices();
$cats = $this->get_event_cats();
$this->config['subElements'] = array(array("name" => __('Categories', 'fusion-core'), "desc" => __('Select a category or leave blank for all', 'fusion-core'), "id" => "cat_slug", "type" => ElementTypeEnum::MULTI, "value" => array(''), "allowedValues" => $cats), array("name" => __('Number of Events', 'fusion-core'), "desc" => __('Select the number of events to display', 'fusion-core'), "id" => "number_posts", "type" => ElementTypeEnum::INPUT, "value" => "4"), array("name" => __('Maximum Columns', 'fusion-core'), "desc" => __('Select the number of max columns to display.', 'fusion-core'), "id" => "columns", "type" => ElementTypeEnum::SELECT, "value" => "4", "allowedValues" => $no_of_columns), array("name" => __('Picture Size', 'fusion-core'), "desc" => __('cover = image will scale to cover the container<br />auto = width and height will adjust to the image.', 'fusion-core'), "id" => "picture_size", "type" => ElementTypeEnum::SELECT, "value" => "cover", "allowedValues" => array('cover' => __('Cover', 'fusion-core'), 'auto' => __('Auto', 'fusion-core'))), array("name" => __('CSS Class', 'fusion-core'), "desc" => __('Add a class to the wrapping HTML element.', 'fusion-core'), "id" => "class", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('CSS ID', 'fusion-core'), "desc" => __('Add an ID to the wrapping HTML element.', 'fusion-core'), "id" => "id", "type" => ElementTypeEnum::INPUT, "value" => ""));
}
开发者ID:universal-youth,项目名称:www.universal-youth.com,代码行数:7,代码来源:class-fusion-events.php
示例7: popup_elements
function popup_elements($am_elements)
{
$no_of_columns = FusionHelper::fusion_create_dropdown_data(1, 6);
$reverse_choices = FusionHelper::get_reversed_choice_data();
$animation_speed = FusionHelper::get_animation_speed_data();
$animation_direction = FusionHelper::get_animation_direction_data();
$animation_type = FusionHelper::get_animation_type_data();
$animation_speed_parent = FusionHelper::get_animation_speed_data(true);
$animation_direction_parent = FusionHelper::get_animation_direction_data(true);
$animation_type_parent = FusionHelper::get_animation_type_data(true);
$am_array = array();
$am_array[] = array(array("name" => __('Title', 'fusion-core'), "desc" => __('The box title.', 'fusion-core'), "id" => "fusion_title[0]", "type" => ElementTypeEnum::INPUT, "value" => array()), array("name" => __('Icon', 'fusion-core'), "desc" => __('Click an icon to select, click again to deselect', 'fusion-core'), "id" => "icon[0]", "type" => ElementTypeEnum::ICON_BOX, "value" => array(), "list" => FusionHelper::GET_ICONS_LIST()), array("name" => __('Content Box Background Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_backgroundcolor[0]", "type" => ElementTypeEnum::COLOR, "value" => array(), "settings_lvl" => "child"), array("name" => __('Icon Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_iconcolor[0]", "type" => ElementTypeEnum::COLOR, "settings_lvl" => "child", "value" => array()), array("name" => __('Icon Background Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_circlecolor[0]", "type" => ElementTypeEnum::COLOR, "settings_lvl" => "child", "value" => array()), array("name" => __('Icon Background Inner Border Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_circlebordercolor[0]", "type" => ElementTypeEnum::COLOR, "settings_lvl" => "child", "value" => array('')), array("name" => __('Icon Background Inner Border Size', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_circlebordercolorsize[0]", "type" => ElementTypeEnum::INPUT, "settings_lvl" => "child", "value" => array('')), array("name" => __('Icon Background Outer Border Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_outercirclebordercolor[0]", "type" => ElementTypeEnum::COLOR, "settings_lvl" => "child", "value" => array('')), array("name" => __('Icon Background Outer Border Size', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_outercirclebordersize[0]", "type" => ElementTypeEnum::INPUT, "settings_lvl" => "child", "value" => array('')), array("name" => __('Rotate Icon', 'fusion-core'), "desc" => __('Choose to rotate the icon.', 'fusion-core'), "id" => "fusion_iconrotate[0]", "type" => ElementTypeEnum::SELECT, "value" => array(""), "allowedValues" => array('' => 'None', '90' => '90', '180' => '180', '270' => '270')), array("name" => __('Spinning Icon', 'fusion-core'), "desc" => __('Choose to let the icon spin.', 'fusion-core'), "id" => "fusion_iconspin[0]", "type" => ElementTypeEnum::SELECT, "value" => array(""), "allowedValues" => $reverse_choices), array("name" => __('Icon Image', 'fusion-core'), "desc" => __('To upload your own icon image, deselect the icon above and then upload your icon image', 'fusion-core'), "id" => "fusion_image[0]", "type" => ElementTypeEnum::UPLOAD, "upid" => array(1), "value" => array()), array("name" => __('Icon Image Width', 'fusion-core'), "desc" => __('If using an icon image, specify the image width in pixels but do not add px, ex: 35', 'fusion-core'), "id" => "fusion_image_width[0]", "type" => ElementTypeEnum::INPUT, "value" => array(35)), array("name" => __('Icon Image Height', 'fusion-core'), "desc" => __('If using an icon image, specify the image height in pixels but do not add px, ex: 35', 'fusion-core'), "id" => "fusion_image_height[0]", "type" => ElementTypeEnum::INPUT, "value" => array(35)), array("name" => __('Link URL', 'fusion-core'), "desc" => __('Add the link\'s url ex: http://example.com', 'fusion-core'), "id" => "fusion_link[0]", "type" => ElementTypeEnum::INPUT, "value" => array()), array("name" => __('Link Text', 'fusion-core'), "desc" => __('Insert the text to display as the link', 'fusion-core'), "id" => "fusion_linktext[0]", "type" => ElementTypeEnum::INPUT, "value" => array()), array("name" => __('Link Target', 'fusion-core'), "desc" => __('_self = open in same window<br>_blank = open in new window', 'fusion-core'), "id" => "fusion_target[0]", "type" => ElementTypeEnum::SELECT, "value" => array("_self"), "allowedValues" => array('_self' => '_self', '_blank' => '_blank')), array("name" => __('Content Box Content', 'fusion-core'), "desc" => __('Add content for content box', 'fusion-core'), "id" => "fusion_content_wp[0]", "type" => ElementTypeEnum::HTML_EDITOR, "value" => array()), array("name" => __('Animation Type', 'fusion-core'), "desc" => __('Select the type on animation to use on the shortcode', 'fusion-core'), "id" => "fusion_animation_type[0]", "type" => ElementTypeEnum::SELECT, "settings_lvl" => "child", "value" => array(), "allowedValues" => $animation_type_parent), array("name" => __('Direction of Animation', 'fusion-core'), "desc" => __('Select the incoming direction for the animation', 'fusion-core'), "id" => "fusion_animation_direction[0]", "type" => ElementTypeEnum::SELECT, "settings_lvl" => "child", "value" => array(), "allowedValues" => $animation_direction_parent), array("name" => __('Speed of Animation', 'fusion-core'), "desc" => __('Type in speed of animation in seconds (0.1 - 1)', 'fusion-core'), "id" => "fusion_animation_speed[0]", "type" => ElementTypeEnum::SELECT, "settings_lvl" => "child", "value" => array(), "allowedValues" => $animation_speed_parent));
$this->config['defaults'] = $am_array[0];
if ($am_elements) {
$am_array_copy = $am_array[0];
$am_array = array();
foreach ($am_elements as $key => $am_element) {
$build_am = $am_array_copy;
foreach ($build_am as $build_am_key => $build_am_element) {
$build_am[$build_am_key]['value'] = $am_elements[$key][$build_am_key];
$build_am[$build_am_key]['id'] = str_replace('[0]', '[' . $key . ']', $build_am_element['id']);
}
$am_array[] = $build_am;
}
}
$this->config['subElements'] = array(array("name" => __('Parent / Child Settings', 'fusion-core'), "desc" => __('"Parent Level" settings will control all box styles together. "Child Level" settings will control each box style individually.', 'fusion-core'), "id" => "fusion_settings_lvl", "type" => ElementTypeEnum::SELECT, "value" => "child", "allowedValues" => array('parent' => 'Parent Level Settings', 'child' => 'Child Level Settings')), array("name" => __('Content Box Layout', 'fusion-core'), "desc" => __('Select the layout for the content box', 'fusion-core'), "id" => "fusion_layout", "type" => ElementTypeEnum::SELECT, "value" => "icon-with-title", "allowedValues" => array('icon-with-title' => __('Classic Icon With Title', 'fusion-core'), 'icon-on-top' => __('Classic Icon On Top', 'fusion-core'), 'icon-on-side' => __('Classic Icon On Side', 'fusion-core'), 'icon-boxed' => __('Classic Icon Boxed', 'fusion-core'), 'clean-vertical' => __('Clean Layout Vertical', 'fusion-core'), 'clean-horizontal' => __('Clean Layout Horizontal', 'fusion-core'), 'timeline-vertical' => __('Timeline Vertical', 'fusion-core'), 'timeline-horizontal' => __('Timeline Horizontal', 'fusion-core'))), array("name" => __('Number of Columns', 'fusion-core'), "desc" => __('Set the number of columns per row.', 'fusion-core'), "id" => "fusion_columns", "type" => ElementTypeEnum::SELECT, "value" => "4", "allowedValues" => $no_of_columns), array("name" => __('Content Alignment', 'fusion-core'), "desc" => __('Works with "Classic Icon With Title" and "Classic Icon On Side" layout options.', 'fusion-core'), "id" => "fusion_circle_align", "type" => ElementTypeEnum::SELECT, "value" => array("left"), "allowedValues" => array('left' => 'Left', 'right' => 'Right')), array("name" => __('Title Size', 'fusion-core'), "desc" => __('Controls the size of the title. Leave blank for theme option selection. In pixels ex: 18px.', 'fusion-core'), "id" => "fusion_title_size", "type" => ElementTypeEnum::INPUT, "value" => ''), array("name" => __('Title Font Color', 'fusion-core'), "desc" => __('Controls the color of the title font. Leave blank for theme option selection. ex: #000', 'fusion-core'), "id" => "fusion_title_color", "type" => ElementTypeEnum::COLOR, "value" => ''), array("name" => __('Body Font Color', 'fusion-core'), "desc" => __('Controls the color of the body font. Leave blank for theme option selection. ex: #000', 'fusion-core'), "id" => "fusion_body_color", "type" => ElementTypeEnum::COLOR, "value" => ''), array("name" => __('Content Box Background Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_backgroundcolor", "type" => ElementTypeEnum::COLOR, "value" => ''), array("name" => __('Icon Background', 'fusion-core'), "desc" => __('Choose to show a background behind the icon. Select default for theme option selection.', 'fusion-core'), "id" => "fusion_icon_circle", "type" => ElementTypeEnum::SELECT, "value" => '', "allowedValues" => array('' => 'Default', 'yes' => 'Yes', 'no' => 'No')), array("name" => __('Icon Background Radius', 'fusion-core'), "desc" => __('Choose the border radius of the icon background. Leave blank for theme option selection. In pixels (px), ex: 1px, or "round".', 'fusion-core'), "id" => "fusion_icon_circle_radius", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Icon Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_iconcolor", "type" => ElementTypeEnum::COLOR, "value" => ''), array("name" => __('Icon Background Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_circlecolor", "type" => ElementTypeEnum::COLOR, "value" => ''), array("name" => __('Icon Background Inner Border Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_circlebordercolor", "type" => ElementTypeEnum::COLOR, "value" => ''), array("name" => __('Icon Background Inner Border Size', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_circlebordercolorsize", "type" => ElementTypeEnum::INPUT, "value" => ''), array("name" => __('Icon Background Outer Border Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_outercirclebordercolor", "type" => ElementTypeEnum::COLOR, "value" => ''), array("name" => __('Icon Background Outer Border Size', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_outercirclebordersize", "type" => ElementTypeEnum::INPUT, "value" => ''), array("name" => __('Icon Size', 'fusion-core'), "desc" => __('Controls the size of the icon. Leave blank for theme option selection. In pixels ex: 18px.', 'fusion-core'), "id" => "fusion_icon_size", "type" => ElementTypeEnum::INPUT, "value" => ''), array("name" => __('Icon Hover Animation Type', 'fusion-core'), "desc" => __('Select the animation type for icon on hover. Select default for theme option selection.', 'fusion-core'), "id" => "fusion_icon_hover_type", "type" => ElementTypeEnum::SELECT, "value" => array(''), "allowedValues" => array('' => __('Default', 'Avada'), 'none' => __('None', 'Avada'), 'fade' => __('Fade', 'Avada'), 'slide' => __('Slide', 'Avada'), 'pulsate' => __('Pulsate', 'Avada'))), array("name" => __('Hover Animation Color', 'fusion-core'), "desc" => __('Select an accent color for the hover animation. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_hover_animation_color", "type" => ElementTypeEnum::COLOR, "value" => ''), array("name" => __('Link Type', 'fusion-core'), "desc" => __('Select the type of link that should show in the content box. Select default for theme option selection.', 'fusion-core'), "id" => "fusion_link_type", "type" => ElementTypeEnum::SELECT, "value" => array(''), "allowedValues" => array('' => 'Default', 'text' => 'Text', 'button-bar' => 'Button Bar', 'button' => 'Button')), array("name" => __('Link Area', 'fusion-core'), "desc" => __('Select which area the link will be assigned to. Select default for theme option selection.', 'fusion-core'), "id" => "fusion_link_area", "type" => ElementTypeEnum::SELECT, "value" => array(''), "allowedValues" => array('' => 'Default', 'link-icon' => 'Link+Icon', 'box' => 'Entire Content Box')), array("name" => __('Link Target', 'fusion-core'), "desc" => __('_self = open in same window<br>_blank = open in new window. Select default for theme option selection.', 'fusion-core'), "id" => "fusion_target", "type" => ElementTypeEnum::SELECT, "value" => array(''), "allowedValues" => array('' => 'Default', '_self' => '_self', '_blank' => '_blank')), array("name" => __('Animation Delay', 'fusion-core'), "desc" => __('Controls the delay of animation between each element in a set. In milliseconds, 1000 = 1 second.', 'fusion-core'), "id" => "animation_delay", "type" => ElementTypeEnum::INPUT, "value" => ""), 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" => __('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
|
请发表评论