本文整理汇总了PHP中FusionHelper::get_animation_direction_data方法的典型用法代码示例。如果您正苦于以下问题:PHP FusionHelper::get_animation_direction_data方法的具体用法?PHP FusionHelper::get_animation_direction_data怎么用?PHP FusionHelper::get_animation_direction_data使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FusionHelper
的用法示例。
在下文中一共展示了FusionHelper::get_animation_direction_data方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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));
}
示例2: 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" => ""));
}
示例3: 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['layout_opt'] = true;
$this->config['subElements'] = array(array("name" => __('Last Column', 'fusion-core'), "desc" => __('Choose if the column is last in a set. This has to be set to "Yes" for the last column in a set.', 'fusion-core'), "id" => "last", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Column Spacing', 'fusion-core'), "desc" => __('Set to "No" to eliminate margin between columns.', 'fusion-core'), "id" => "spacing", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Center Content', 'fusion-core'), "desc" => __('Only works with columns inside a full width container that is set to equal heights. Set to "Yes" to center the content horizontally and vertically.', 'fusion-core'), "id" => "center_content", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Hide on Mobile', 'fusion-core'), "desc" => __('Select "Yes" to hide column on mobile.', 'fusion-core'), "id" => "hide_on_mobile", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => array('no' => __('No', 'fusion-core'), 'yes' => __('Yes', 'fusion-core'))), array("name" => __('Background Color', 'fusion-core'), "desc" => __('Controls the background color.', 'fusion-core'), "id" => "background_color", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Background Image', 'fusion-core'), "desc" => __('Upload an image to display in the background', 'fusion-core'), "id" => "background_image", "type" => ElementTypeEnum::UPLOAD, "upid" => "1", "value" => ""), array("name" => __('Background Repeat', 'fusion-core'), "desc" => __('Choose how the background image repeats.', 'fusion-core'), "id" => "background_repeat", "type" => ElementTypeEnum::SELECT, "value" => "no-repeat", "allowedValues" => array('no-repeat' => __('No Repeat', 'fusion-core'), 'repeat' => __('Repeat Vertically and Horizontally', 'fusion-core'), 'repeat-x' => __('Repeat Horizontally', 'fusion-core'), 'repeat-y' => __('Repeat Vertically', 'fusion-core'))), array("name" => __('Background Position', 'fusion-core'), "desc" => __('Choose the postion of the background image.', 'fusion-core'), "id" => "background_position", "type" => ElementTypeEnum::SELECT, "value" => "left top", "allowedValues" => array('left top' => __('Left Top', 'fusion-core'), 'left center' => __('Left Center', 'fusion-core'), 'left bottom' => __('Left Bottom', 'fusion-core'), 'right top' => __('Right Top', 'fusion-core'), 'right center' => __('Right Center', 'fusion-core'), 'right bottom' => __('Right Bottom', 'fusion-core'), 'center top' => __('Center Top', 'fusion-core'), 'center center' => __('Center Center', 'fusion-core'), 'center bottom' => __('Center Bottom', 'fusion-core'))), array("name" => __('Border Position', 'fusion-core'), "desc" => __('Choose the postion of the border.', 'fusion-core'), "id" => "border_position", "type" => ElementTypeEnum::SELECT, "value" => "all", "allowedValues" => array('all' => __('All', 'fusion-core'), 'top' => __('Top', 'fusion-core'), 'right' => __('Right', 'fusion-core'), 'bottom' => __('Bottom', 'fusion-core'), 'left' => __('Left', 'fusion-core'))), array("name" => __('Border Size', 'fusion-core'), "desc" => __('In pixels (px), ex: 1px.', 'fusion-core'), "id" => "border_size", "type" => ElementTypeEnum::INPUT, "value" => "0px"), array("name" => __('Border Color', 'fusion-core'), "desc" => __('Controls the border color.', 'fusion-core'), "id" => "border_color", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Border Style', 'fusion-core'), "desc" => __('Controls the border style.', 'fusion-core'), "id" => "border_style", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('solid' => __('Solid', 'fusion-core'), 'dashed' => __('Dashed', 'fusion-core'), 'dotted' => __('Dotted', 'fusion-core'))), array("name" => __('Padding', 'fusion-core'), "desc" => __('In pixels (px), ex: 10px.', 'fusion-core'), "id" => "padding", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Margin Top', 'fusion-core'), "desc" => __('In pixels (px), ex: 1px.', 'fusion-core'), "id" => "margin_top", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Margin Bottom', 'fusion-core'), "desc" => __('In pixels (px), ex: 1px.', 'fusion-core'), "id" => "margin_bottom", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Animation Type', 'fusion-core'), "desc" => __('Select the type on animation to use on the shortcode', 'fusion-core'), "id" => "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" => "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" => "animation_speed[0]", "type" => ElementTypeEnum::SELECT, "value" => array('0.1'), "allowedValues" => $animation_speed), 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" => ""));
}
示例4: 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();
$choices = FusionHelper::get_shortcode_choices();
$reverse_choices = FusionHelper::get_reversed_choice_data();
$this->config['subElements'] = array(array("name" => __('Select Icon', 'fusion-core'), "desc" => __('Click an icon to select, click again to deselect.', 'fusion-core'), "id" => "icon", "type" => ElementTypeEnum::ICON_BOX, "value" => "fa-flag", "list" => FusionHelper::GET_ICONS_LIST()), array("name" => __('Icon in Circle', 'fusion-core'), "desc" => __('Choose to display the icon in a circle', 'fusion-core'), "id" => "fusion_circle", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => $choices), array("name" => __('Icon Size', 'fusion-core'), "desc" => __('Set the size of the icon. In pixels (px), ex: 13px.', 'fusion-core'), "id" => "fusion_size", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Icon Color', 'fusion-core'), "desc" => __('Controls the color of the icon. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_iconcolor", "type" => ElementTypeEnum::COLOR, "value" => ""), 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", "type" => ElementTypeEnum::COLOR, "value" => ""), 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" => "circlebordercolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Rotate Icon', 'fusion-core'), "desc" => __('Choose to rotate the icon.', 'fusion-core'), "id" => "fusion_rotate", "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_spin", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $reverse_choices), 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" => "0", "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" => "", "allowedValues" => $animation_speed), array("name" => __('Alignment', 'fusion-core'), "desc" => __('Select the icon\'s alignment.', 'fusion-core'), "id" => "fusion_alignment", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'left' => __('Left', 'fusion-core'), 'center' => __('Center', 'fusion-core'), 'right' => __('Right', '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" => ""));
}
示例5: popup_elements
function popup_elements()
{
$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();
$opacity_data = $this->create_shadow_opacity_data();
$this->config['subElements'] = array(array("name" => __('Background Color', 'fusion-core'), "desc" => __('Controls the background color. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_backgroundcolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Shadow', 'fusion-core'), "desc" => __('Show the shadow below the box', 'fusion-core'), "id" => "fusion_shadow", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => $reverse_choices), array("name" => __('Shadow Opacity', 'fusion-core'), "desc" => __('Choose the opacity of the shadow', 'fusion-core'), "id" => "fusion_shadowopacity", "type" => ElementTypeEnum::SELECT, "value" => "0.7", "allowedValues" => $opacity_data), array("name" => __('Border', 'fusion-core'), "desc" => __('In pixels (px), ex: 1px', 'fusion-core'), "id" => "fusion_border", "type" => ElementTypeEnum::INPUT, "value" => "1px"), array("name" => __('Border Color', 'fusion-core'), "desc" => __('Controls the border color. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_bordercolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Highlight Border Position', 'fusion-core'), "desc" => __('Choose the position of the highlight. This border highlight is from theme options primary color and does not take the color from border color above', 'fusion-core'), "id" => "fusion_highlightposition", "type" => ElementTypeEnum::SELECT, "value" => "top", "allowedValues" => array('top' => __('Top', 'fusion-core'), 'bottom' => __('Bottom', 'fusion-core'), 'left' => __('Left', 'fusion-core'), 'right' => __('Right', 'fusion-core'), 'none' => __('None', 'fusion-core'))), array("name" => __('Content Alignment', 'fusion-core'), "desc" => __('Choose how the content should be displayed.', 'fusion-core'), "id" => "fusion_contentalignment", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('left' => __('Left', 'fusion-core'), 'center' => __('Center', 'fusion-core'), 'right' => __('Right', 'fusion-core'))), array("name" => __('Button Text', 'fusion-core'), "desc" => __('Insert the text that will display in the button', 'fusion-core'), "id" => "fusion_button", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Link', 'fusion-core'), "desc" => __('The url the button will link to', 'fusion-core'), "id" => "fusion_url", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Link Target', 'fusion-core'), "desc" => __('_self = open in same window<br>_blank = open in new window', 'fusion-core'), "id" => "fusion_target", "type" => ElementTypeEnum::SELECT, "value" => "_self", "allowedValues" => array('_self' => '_self', '_blank' => '_blank')), array("name" => __('Modal Window Anchor', 'fusion-core'), "desc" => __('Add the class name of the modal window you want to open on button click.', 'fusion-core'), "id" => "fusion_modalanchor", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Button Size', 'fusion-core'), "desc" => __('Select the button\'s size.', 'fusion-core'), "id" => "fusion_buttonsize", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'small' => __('Small', 'fusion-core'), 'medium' => __('Medium', 'fusion-core'), 'large' => __('Large', 'fusion-core'), 'xlarge' => __('XLarge', 'fusion-core'))), array("name" => __('Button Type', 'fusion-core'), "desc" => __('Select the button\'s type.', 'fusion-core'), "id" => "fusion_buttontype", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'flat' => __('Flat', 'fusion-core'), '3D' => '3D')), array("name" => __('Button Shape', 'fusion-core'), "desc" => __('Select the button\'s shape.', 'fusion-core'), "id" => "fusion_buttonshape", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'square' => __('Square', 'fusion-core'), 'pill' => __('Pill', 'fusion-core'), 'round' => __('Round', 'fusion-core'))), array("name" => __('Button Color', 'fusion-core'), "desc" => __('Choose the button color<br>Default uses theme option selection', 'fusion-core'), "id" => "fusion_buttoncolor", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'green' => __('Green', 'fusion-core'), 'darkgreen' => __('Dark Green', 'fusion-core'), 'orange' => __('Orange', 'fusion-core'), 'blue' => __('Blue', 'fusion-core'), 'red' => __('Red', 'fusion-core'), 'pink' => __('Pink', 'fusion-core'), 'darkgray' => __('Dark Gray', 'fusion-core'), 'lightgray' => __('Light Gray', 'fusion-core'))), array("name" => __('Tagline Title', 'fusion-core'), "desc" => __('Insert the title text', 'fusion-core'), "id" => "fusion_title", "type" => ElementTypeEnum::TEXTAREA, "value" => ""), array("name" => __('Tagline Description', 'fusion-core'), "desc" => __('Insert the description text', 'fusion-core'), "id" => "fusion_description", "type" => ElementTypeEnum::TEXTAREA, "value" => ""), array("name" => __('Additional Content', 'fusion-core'), "desc" => __('This is additional content you can add to the tagline box. This will show below the title and description if one is used.', 'fusion-core'), "id" => "fusion_additionalcontent", "type" => ElementTypeEnum::HTML_EDITOR, "value" => ""), array("name" => __('Margin Top', 'fusion-core'), "desc" => __('Add a custom top margin. In pixels.', 'fusion-core'), "id" => "fusion_margin_top", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Margin Bottom', 'fusion-core'), "desc" => __('Add a custom bottom margin. In pixels.', 'fusion-core'), "id" => "fusion_margin_bottom", "type" => ElementTypeEnum::INPUT, "value" => ""), 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::INPUT, "value" => "0.1", "allowedValues" => $animation_speed), array("name" => __('Offset of Animation', 'fusion-core'), "desc" => __('Choose when the animation shoul 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" => ""));
}
示例6: popup_elements
function popup_elements()
{
$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();
$this->config['subElements'] = array(array("name" => __('Frame Style Type', 'fusion-core'), "desc" => __('Select the frame style type.', 'fusion-core'), "id" => "fusion_style", "type" => ElementTypeEnum::SELECT, "value" => "none", "allowedValues" => array('none' => __('None', 'fusion-core'), 'glow' => __('Glow', 'fusion-core'), 'dropshadow' => __('Drop Shadow', 'fusion-core'), 'bottomshadow' => __('Bottom Shadow', '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" => __('Border Color', 'fusion-core'), "desc" => __('Controls the border color. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_bordercolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Border Size', 'fusion-core'), "desc" => __('In pixels (px), ex: 1px. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_bordersize", "type" => ElementTypeEnum::INPUT, "value" => "0px"), array("name" => __('Border Radius', 'fusion-core'), "desc" => __('Choose the radius of the image. In pixels (px), ex: 1px, or "round". Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_borderradius", "type" => ElementTypeEnum::INPUT, "value" => "0"), array("name" => __('Style Color', 'fusion-core'), "desc" => __('For all style types except border. Controls the style color. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_stylecolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Align', 'fusion-core'), "desc" => __('Choose how to align the image.', 'fusion-core'), "id" => "fusion_align", "type" => ElementTypeEnum::SELECT, "value" => "none", "allowedValues" => array('none' => __('None', 'fusion-core'), 'left' => __('Left', 'fusion-core'), 'right' => __('Right', 'fusion-core'), 'center' => __('Center', 'fusion-core'))), array("name" => __('Image lightbox', 'fusion-core'), "desc" => __('Show image in Lightbox.', 'fusion-core'), "id" => "fusion_lightbox", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => $reverse_choices), array("name" => __('Lightbox Image', 'fusion-core'), "desc" => __('Upload an image that will show up in the lightbox.', 'fusion-core'), "id" => "fusion_lightboximage", "type" => ElementTypeEnum::UPLOAD, "upid" => "2", "value" => ""), array("name" => __('Image', 'fusion-core'), "desc" => __('Upload an image to display in the frame.', 'fusion-core'), "id" => "fusion_image", "type" => ElementTypeEnum::UPLOAD, "upid" => "1", "value" => ""), array("name" => __('Image Alt Text', 'fusion-core'), "desc" => __('The alt attribute provides alternative information if an image cannot be viewed.', 'fusion-core'), "id" => "fusion_alt", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Picture Link URL', 'fusion-core'), "desc" => __('Add the URL the picture will link to, ex: http://example.com.', 'fusion-core'), "id" => "fusion_link", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Link Target', 'fusion-core'), "desc" => __('_self = open in same window<br>_blank = open in new window.', 'fusion-core'), "id" => "fusion_target", "type" => ElementTypeEnum::SELECT, "value" => "_self", "allowedValues" => array('_self' => '_self', '_blank' => '_blank')), 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" => "0", "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" => __('Hide on Mobile', 'fusion-core'), "desc" => __('Select yes to hide full width container on mobile.', 'fusion-core'), "id" => "hide_on_mobile", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => array('no' => __('No', 'fusion-core'), 'yes' => __('Yes', '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" => ""));
}
示例7: popup_elements
function popup_elements()
{
$choices = FusionHelper::get_shortcode_choices();
$leftright = FusionHelper::get_left_right_data();
$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" => __('Button URL', 'fusion-core'), "desc" => __('Add the button\'s url ex: http://example.com', 'fusion-core'), "id" => "fusion_url", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Button Style', 'fusion-core'), "desc" => __('Select the button\'s color. Select default or color name for theme options, or select custom to use advanced color options below.', 'fusion-core'), "id" => "fusion_style", "type" => ElementTypeEnum::SELECT, "value" => "default", "allowedValues" => array('default' => __('Default', 'fusion-core'), 'custom' => __('Custom', 'fusion-core'), 'green' => __('Green', 'fusion-core'), 'darkgreen' => __('Dark Green', 'fusion-core'), 'orange' => __('Orange', 'fusion-core'), 'blue' => __('Blue', 'fusion-core'), 'red' => __('Red', 'fusion-core'), 'pink' => __('Pink', 'fusion-core'), 'darkgray' => __('Dark Gray', 'fusion-core'), 'lightgray' => __('Light Gray', 'fusion-core'))), array("name" => __('Button Size', 'fusion-core'), "desc" => __('Select the button\'s size. Choose default for theme option selection.', 'fusion-core'), "id" => "fusion_size", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'small' => __('Small', 'fusion-core'), 'medium' => __('Medium', 'fusion-core'), 'large' => __('Large', 'fusion-core'), 'xlarge' => __('XLarge', 'fusion-core'))), array("name" => __('Button Type', 'fusion-core'), "desc" => __('Select the button\'s type. Choose default for theme option selection.', 'fusion-core'), "id" => "fusion_type", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'flat' => __('Flat', 'fusion-core'), '3d' => '3D')), array("name" => __('Button Shape', 'fusion-core'), "desc" => __('Select the button\'s shape. Choose default for theme option selection.', 'fusion-core'), "id" => "fusion_shape", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'square' => __('Square', 'fusion-core'), 'pill' => __('Pill', 'fusion-core'), 'round' => __('Round', 'fusion-core'))), array("name" => __('Button Target', 'fusion-core'), "desc" => __('_self = open in same window<br>_blank = open in new window', 'fusion-core'), "id" => "fusion_target", "type" => ElementTypeEnum::SELECT, "value" => "_self", "allowedValues" => array('_self' => '_self', '_blank' => '_blank')), array("name" => __('Button Title attribute', 'fusion-core'), "desc" => __('Set a title attribute for the button link.', 'fusion-core'), "id" => "fusion_title", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Button\'s Text', 'fusion-core'), "desc" => __('Add the text that will display on button', 'fusion-core'), "id" => "fusion_content", "type" => ElementTypeEnum::INPUT, "value" => "Button Text"), array("name" => __('Button Gradient Top Color', 'fusion-core'), "desc" => __('Custom setting only. Set the top color of the button background.', 'fusion-core'), "id" => "fusion_gradtopcolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Button Gradient Bottom Color', 'fusion-core'), "desc" => __('Custom setting only. Set the bottom color of the button background or leave empty for solid color.', 'fusion-core'), "id" => "fusion_gradbottomcolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Button Gradient Top Color Hover', 'fusion-core'), "desc" => __('Custom setting only. Set the top hover color of the button background.', 'fusion-core'), "id" => "fusion_gradtopcolorhover", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Button Gradient Bottom Color Hover', 'fusion-core'), "desc" => __('Custom setting only. Set the bottom hover color of the button background or leave empty for solid color.', 'fusion-core'), "id" => "fusion_gradbottomcolorhover", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Accent Color', 'fusion-core'), "desc" => __('Custom setting only. This option controls the color of the button border, divider, text and icon.', 'fusion-core'), "id" => "fusion_bordercolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Accent Hover Color', 'fusion-core'), "desc" => __('Custom setting only. This option controls the hover color of the button border, divider, text and icon.', 'fusion-core'), "id" => "fusion_borderhovercolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Bevel Color (3D Mode only)', 'fusion-core'), "desc" => __('Custom setting. Set the bevel color of 3D buttons.', 'fusion-core'), "id" => "fusion_bevelcolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Border Width', 'fusion-core'), "desc" => __('Custom setting only. In pixels (px), ex: 1px. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_bordersize", "type" => ElementTypeEnum::INPUT, "value" => "1px"), array("name" => __('Select Custom Icon', 'fusion-core'), "desc" => __('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" => __('Icon Position', 'fusion-core'), "desc" => __('Choose the position of the icon on the button.', 'fusion-core'), "id" => "fusion_iconposition", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $leftright), array("name" => __('Icon Divider', 'fusion-core'), "desc" => __('Choose to display a divider between icon and text.', 'fusion-core'), "id" => "fusion_icondivider", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => $choices), array("name" => __('Modal Window Anchor', 'fusion-core'), "desc" => __('Add the class name of the modal window you want to open on button click.', 'fusion-core'), "id" => "fusion_modal", "type" => ElementTypeEnum::INPUT, "value" => ""), 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" => __('Alignment', 'fusion-core'), "desc" => __('Select the button\'s alignment.', 'fusion-core'), "id" => "fusion_alignment", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'left' => __('Left', 'fusion-core'), 'center' => __('Center', 'fusion-core'), 'right' => __('Right', '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" => ""));
}
示例8: popup_elements
function popup_elements()
{
$no_of_columns = FusionHelper::fusion_create_dropdown_data(1, 6);
$wp_categories_list = FusionHelper::fusion_shortcodes_categories('portfolio_category');
$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" => __('Choose the layout for the shortcode', 'fusion-core'), "id" => "fusion_layout", "type" => ElementTypeEnum::SELECT, "value" => "carousel", "allowedValues" => array('carousel' => __('Carousel', 'fusion-core'), 'grid' => __('Grid', 'fusion-core'), 'grid-with-excerpts' => __('Grid with Excerpts', 'fusion-core'))), 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" => "fusion_picture_size", "type" => ElementTypeEnum::SELECT, "value" => "fixed", "allowedValues" => array('fixed' => __('Fixed', 'fusion-core'), 'auto' => __('Auto', 'fusion-core'))), array("name" => __('Grid with Excerpts Layout', 'fusion-core'), "desc" => __('Select if the grid with excerpts layouts are boxed or unboxed.', 'fusion-core'), "id" => "fusion_boxed_text", "type" => ElementTypeEnum::SELECT, "value" => "unboxed", "allowedValues" => array('boxed' => __('Boxed', 'fusion-core'), 'unboxed' => __('Unboxed', 'fusion-core'))), array("name" => __('Show Filters', 'fusion-core'), "desc" => __('Choose to show or hide the category filters', 'fusion-core'), "id" => "fusion_filters", "type" => ElementTypeEnum::SELECT, "value" => "yes", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'yes-without-all' => __('Yes without "All"', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Columns', 'fusion-core'), "desc" => __('Select the number of columns to display. With Carousel layout this specifies the maximum amount of columns.', 'fusion-core'), "id" => "fusion_columns", "type" => ElementTypeEnum::SELECT, "value" => "3", "allowedValues" => $no_of_columns), array("name" => __('Column Spacing', 'fusion-core'), "desc" => __('Insert the amount of spacing between portfolio items without "px". ex: 7.', 'fusion-core'), "id" => "fusion_column_spacing", "type" => ElementTypeEnum::INPUT, "value" => "12"), 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" => __('Number of Posts', 'fusion-core'), "desc" => __('Select the number of posts to display', 'fusion-core'), "id" => "fusion_number_posts", "type" => ElementTypeEnum::INPUT, "value" => "8"), 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" => __('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 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" => __('Carousel Layout', 'fusion-core'), "desc" => __('Choose to show titles on rollover image, or below image.', 'fusion-core'), "id" => "fusion_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 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 Autoplay', 'fusion-core'), "desc" => __('Choose to autoplay the carousel.', 'fusion-core'), "id" => "fusion_autoplay", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', 'fusion-core'))), array("name" => __('Carousel Show Navigation', 'fusion-core'), "desc" => __('Choose to show navigation buttons on the carousel.', 'fusion-core'), "id" => "fusion_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" => "fusion_mouse_scroll", "type" => ElementTypeEnum::SELECT, "value" => "no", "allowedValues" => array('yes' => __('Yes', 'fusion-core'), 'no' => __('No', '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" => "", "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" => __('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" => ""));
}
示例9: popup_elements
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" => ""));
}
示例10: 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();
$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()), array("name" => __('Icon Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_iconcolor[0]", "type" => ElementTypeEnum::COLOR, "value" => array()), array("name" => __('Icon Circle Background Color', 'fusion-core'), "desc" => __('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" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_circlebordercolor[0]", "type" => ElementTypeEnum::COLOR, "value" => array()), array("name" => __('Flip Icon', 'fusion-core'), "desc" => __('Choose to flip the icon.', 'fusion-core'), "id" => "fusion_iconflip[0]", "type" => ElementTypeEnum::SELECT, "value" => array(""), "allowedValues" => array('' => 'None', 'horizontal' => __('Horizontal', 'fusion-core'), 'vertical' => __('Vertical', 'fusion-core'))), 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" => __('Read More 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" => __('Read More 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" => __('Read More 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, "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('0.1'), "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" => __('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' => __('Icon beside Title', 'fusion-core'), 'icon-on-top' => __('Icon on Top of Title', 'fusion-core'), 'icon-on-side' => __('Icon beside Title and Content aligned with Title', 'fusion-core'), 'icon-boxed' => __('Icon Boxed', 'fusion-core'))), 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" => __('Icon Circle', 'fusion-core'), "desc" => __('Controls the circle 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 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" => __('Content Alignment', 'fusion-core'), "desc" => __('Works with "Icon beside Title", "Content aligned with Title" and "Icon Beside Title" layout options.', 'fusion-core'), "id" => "fusion_circle_align", "type" => ElementTypeEnum::SELECT, "value" => array("left"), "allowedValues" => array('left' => 'Left', 'right' => 'Right')), 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" => __('Margin Top', 'fusion-core'), "desc" => __('In pixels (px), ex: 1px.', 'fusion-core'), "id" => "margin_top", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Margin Bottom', 'fusion-core'), "desc" => __('In pixels (px), ex: 1px.', 'fusion-core'), "id" => "margin_bottom", "type" => ElementTypeEnum::INPUT, "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" => ""), array("type" => ElementTypeEnum::ADDMORE, "buttonText" => __('Add New Content Box', 'fusion-core'), "id" => "am_fusion_content", "elements" => $am_array));
}