本文整理汇总了PHP中FusionHelper::GET_ICONS_LIST方法的典型用法代码示例。如果您正苦于以下问题:PHP FusionHelper::GET_ICONS_LIST方法的具体用法?PHP FusionHelper::GET_ICONS_LIST怎么用?PHP FusionHelper::GET_ICONS_LIST使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FusionHelper
的用法示例。
在下文中一共展示了FusionHelper::GET_ICONS_LIST方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
$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" => ""));
}
示例4: 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" => ""));
}
示例5: popup_elements
function popup_elements($am_elements)
{
$choices = FusionHelper::get_shortcode_choices_with_default();
$am_array = array();
$am_array[] = array(array("name" => __('Select Icon', 'fusion-core'), "desc" => __('This setting will override the global setting above. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_icon[0]", "type" => ElementTypeEnum::ICON_BOX, "value" => array(""), "list" => FusionHelper::GET_ICONS_LIST()), array("name" => __('List Item Content', 'fusion-core'), "desc" => __('Add list item content', 'fusion-core'), "id" => "fusion_content_wp[0]", "type" => ElementTypeEnum::HTML_EDITOR, "value" => array('')));
$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" => __('Select Icon', 'fusion-core'), "desc" => __('Global setting for all list items, this can be overridden individually below. Click an icon to select, click again to deselect.', 'fusion-core'), "id" => "icon", "type" => ElementTypeEnum::ICON_BOX, "value" => "fa-check", "list" => FusionHelper::GET_ICONS_LIST()), array("name" => __('Icon Color', 'fusion-core'), "desc" => __('Global setting for all list items. Leave blank for theme option selection. Defines the icon color.', 'fusion-core'), "id" => "fusion_iconcolor", "type" => ElementTypeEnum::COLOR, "value" => ''), array("name" => __('Icon in Circle', 'fusion-core'), "desc" => __('Global setting for all list items. Set to default for theme option selection. Choose to have icons in circles.', 'fusion-core'), "id" => "fusion_circle", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $choices), array("name" => __('Circle Color', 'fusion-core'), "desc" => __('Global setting for all list items. Leave blank for theme option selection. Defines the circle color.', 'fusion-core'), "id" => "fusion_circlecolor", "type" => ElementTypeEnum::COLOR, "value" => ''), array("name" => __('Item Size', 'fusion-core'), "desc" => __('Select the list item\'s size. In pixels (px), ex: 13px.', 'fusion-core'), "id" => "fusion_size", "type" => ElementTypeEnum::INPUT, "value" => "13px"), 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 List Item', 'fusion-core'), "id" => "am_fusion_content", "elements" => $am_array));
}
示例6: popup_elements
function popup_elements($am_elements)
{
$choices = FusionHelper::get_shortcode_choices();
$am_array = array();
$am_array[] = array(array("name" => __('Tab Title', 'fusion-core'), "desc" => __('Title of the tab', 'fusion-core'), "id" => "fusion_title[0]", "type" => ElementTypeEnum::INPUT, "value" => array("")), array("name" => __('Select Icon', 'fusion-core'), "desc" => __('Display an icon next to tab title. 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" => __('Tab Content', 'fusion-core'), "desc" => __('Add the tabs content', 'fusion-core'), "id" => "fusion_content_wp[0]", "type" => ElementTypeEnum::HTML_EDITOR, "value" => array("Tab content")));
$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" => __('Design', 'fusion-core'), "desc" => __('Choose a design for the shortcode.', 'fusion-core'), "id" => "fusion_design", "type" => ElementTypeEnum::SELECT, "value" => array(""), "allowedValues" => array('classic' => __('Classic', 'fusion-core'), 'clean' => __('Clean', 'fusion-core'))), array("name" => __('Layout', 'fusion-core'), "desc" => __('Choose the layout of the shortcode', 'fusion-core'), "id" => "fusion_layout", "type" => ElementTypeEnum::SELECT, "value" => "horizontal", "allowedValues" => array('horizontal' => __('Horizontal', 'fusion-core'), 'vertical' => __('Vertical', 'fusion-core'))), array("name" => __('Justify Tabs', 'fusion-core'), "desc" => __('Choose to get tabs stretched over full shortcode width.', 'fusion-core'), "id" => "fusion_justified", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $choices), array("name" => __('Background Color', 'fusion-core'), "desc" => __('Controls the background tab color. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_backgroundcolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Inactive Color', 'fusion-core'), "desc" => __('Controls the inactive tab color. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_inactivecolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Border Color', 'fusion-core'), "desc" => __('Controls the color of the outer tab border. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_bordercolor", "type" => ElementTypeEnum::COLOR, "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 Tab', 'fusion-core'), "id" => "am_fusion_tab", "elements" => $am_array));
}
示例7: popup_elements
function popup_elements($am_elements)
{
$fille_area_data = FusionHelper::fusion_create_dropdown_data(1, 100);
$no_of_columns = FusionHelper::fusion_create_dropdown_data(1, 6);
$choices = FusionHelper::get_shortcode_choices();
$am_array = array();
$am_array[] = array(array("name" => __('Counter Value', 'fusion-core'), "desc" => __('The number to which the counter will animate.', 'fusion-core'), "id" => "fusion_value[0]", "type" => ElementTypeEnum::INPUT, "value" => array("")), array("name" => __('Delimiter Digit', 'fusion-core'), "desc" => __('Insert a delimiter digit for better readability. ex: ,', 'fusion-core'), "id" => "fusion_delimiter[0]", "type" => ElementTypeEnum::INPUT, "value" => array("")), array("name" => __('Counter Box Unit', 'fusion-core'), "desc" => __('Insert a unit for the counter. ex %', 'fusion-core'), "id" => "fusion_unit[0]", "type" => ElementTypeEnum::INPUT, "value" => array("")), array("name" => __('Unit Position', 'fusion-core'), "desc" => __('Choose the positioning of the unit.', 'fusion-core'), "id" => "fusion_unitpos[0]", "type" => ElementTypeEnum::SELECT, "value" => array(""), "allowedValues" => array('suffix' => __('After Counter', 'fusion-core'), 'prefix' => __('Before Counter', 'fusion-core'))), 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" => __('Counter Direction', 'fusion-core'), "desc" => __('Choose to count up or down.', 'fusion-core'), "id" => "fusion_direction[0]", "type" => ElementTypeEnum::SELECT, "value" => array(""), "allowedValues" => array('up' => __('Count Up', 'fusion-core'), 'down' => __('Count Down', 'fusion-core'))), array("name" => __('Counter Box Text', 'fusion-core'), "desc" => __('Insert text for counter box', 'fusion-core'), "id" => "fusion_content[0]", "type" => ElementTypeEnum::INPUT, "value" => array("Text")));
$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" => "4", "allowedValues" => $no_of_columns), array("name" => __('Counter Box Title Font Color', 'fusion-core'), "desc" => __('Controls the color of the counter "value" and icon. Leave blank for theme option styling.', 'fusion-core'), "id" => "fusion_color", "type" => ElementTypeEnum::COLOR, "value" => array()), array("name" => __('Counter Box Title Font Size', 'fusion-core'), "desc" => __('Controls the size of the counter "value" and icon. Enter the font size without \'px\' ex: 50. Leave blank for theme option styling.', 'fusion-core'), "id" => "fusion_title_size", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Counter Box Icon Size', 'fusion-core'), "desc" => __('Controls the size of the icon. Enter the font size without \'px\'. Default is 50. Leave blank for theme option styling.', 'fusion-core'), "id" => "fusion_icon_size", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Counter Box Icon Top', 'fusion-core'), "desc" => __('Controls the position of the icon. Select Default for theme option styling.', 'fusion-core'), "id" => "fusion_icon_top", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('' => __('Default', 'fusion-core'), 'no' => __('No', 'fusion-core'), 'yes' => __('Yes', 'fusion-core'))), array("name" => __('Counter Box Body Font Color', 'fusion-core'), "desc" => __('Controls the color of the counter body text. Leave blank for theme option styling.', 'fusion-core'), "id" => "fusion_body_color", "type" => ElementTypeEnum::COLOR, "value" => array()), array("name" => __('Counter Box Body Font Size', 'fusion-core'), "desc" => __('Controls the size of the counter body text. Enter the font size without \'px\' ex: 13. Leave blank for theme option styling.', 'fusion-core'), "id" => "fusion_body_size", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Counter Box Border Color', 'fusion-core'), "desc" => __('Controls the color of the border.', 'fusion-core'), "id" => "fusion_border_color", "type" => ElementTypeEnum::COLOR, "value" => array()), 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 Counter Box', 'fusion-core'), "id" => "cb_fusion_box", "elements" => $am_array));
}
示例8: 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));
}
示例9: popup_elements
function popup_elements()
{
$margin_data = FusionHelper::fusion_create_dropdown_data(1, 100);
$choices = FusionHelper::get_shortcode_choices_with_default();
$this->config['subElements'] = array(array("name" => __('Style', 'fusion-core'), "desc" => __('Choose the separator line style', 'fusion-core'), "id" => "fusion_style", "type" => ElementTypeEnum::SELECT, "value" => "none", "allowedValues" => array('none' => __('No Style', 'fusion-core'), 'single' => __('Single Border Solid', 'fusion-core'), 'double' => __('Double Border Solid', 'fusion-core'), 'single|dashed' => __('Single Border Dashed', 'fusion-core'), 'double|dashed' => __('Double Border Dashed', 'fusion-core'), 'single|dotted' => __('Single Border Dotted', 'fusion-core'), 'double|dotted' => __('Double Border Dotted', 'fusion-core'), 'shadow' => __('Shadow', 'fusion-core'))), array("name" => __('Margin Top', 'fusion-core'), "desc" => __('Spacing above the separator. In pixels or percentage, ex: 10px or 10%.', 'fusion-core'), "id" => "fusion_top", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Margin Bottom', 'fusion-core'), "desc" => __('Spacing below the separator. In pixels or percentage, ex: 10px or 10%.', 'fusion-core'), "id" => "fusion_bottom", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Separator Color', 'fusion-core'), "desc" => __('Controls the separator color. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_sepcolor", "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_border_size", "type" => ElementTypeEnum::INPUT, "value" => ""), 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" => "", "list" => FusionHelper::GET_ICONS_LIST()), array("name" => __('Circled Icon', 'fusion-core'), "desc" => __('Choose to have a circle in separator color around the icon.', 'fusion-core'), "id" => "fusion_circle", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => $choices), array("name" => __('Circle Color', 'fusion-core'), "desc" => __('Controls the background color of the circle around the icon.', 'fusion-core'), "id" => "fusion_circlecolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Separator Width', 'fusion-core'), "desc" => __('In pixels (px or %), ex: 1px, ex: 50%. Leave blank for full width.', 'fusion-core'), "id" => "fusion_width", "type" => ElementTypeEnum::INPUT, "value" => ""), array("name" => __('Alignment', 'fusion-core'), "desc" => __('Select the separator alignment; only works when a width is specified.', 'fusion-core'), "id" => "fusion_alignment", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('center' => __('Center', 'fusion-core'), 'left' => __('Left', '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" => ""));
}
示例10: popup_elements
function popup_elements()
{
$margin_data = FusionHelper::fusion_create_dropdown_data(1, 100);
$this->config['subElements'] = array(array("name" => __('Position of the Divider Candy', 'fusion-core'), "desc" => __('Select the position of the triangle candy', 'fusion-core'), "id" => "fusion_divider_candy", "type" => ElementTypeEnum::SELECT, "value" => "", "allowedValues" => array('top' => __('Top', 'fusion-core'), 'bottom' => __('Bottom', 'fusion-core'), 'bottom,top' => __('Top and Bottom', 'fusion-core'))), 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" => "", "list" => FusionHelper::GET_ICONS_LIST()), array("name" => __('Icon Color', 'fusion-core'), "desc" => __('Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_iconcolor", "type" => ElementTypeEnum::COLOR, "value" => ""), array("name" => __('Border', 'fusion-core'), "desc" => __('In pixels (px), ex: 1px. Leave blank for theme option selection.', '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" => __('Background Color of Divider Candy', 'fusion-core'), "desc" => __('Controls the background color of the triangle. Leave blank for theme option selection.', 'fusion-core'), "id" => "fusion_backgroundcolor", "type" => ElementTypeEnum::COLOR, "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" => ""));
}
示例11: parseElementType
/**
* Check the subelement type and render it with the correct implementation
* @param $element element
* @return string correct implementation for the element according to its type
*/
private function parseElementType($element)
{
$output = "";
switch ($element['type']) {
case ElementTypeEnum::COLOR:
$output .= '<input type="text" class="text-field fusion-color-field" value="' . nl2br($element['value']) . '" id="' . $element['id'] . '" name="' . $element['id'] . '" size="50"/>';
break;
case ElementTypeEnum::GALLERY:
$output .= '<a href="' . $element['id'] . '" class="fusion-gallery-button fusion-shortcodes-button">' . __('Attach Images to Gallery', 'fusion-core') . '</a>';
break;
case ElementTypeEnum::UPLOAD:
$button_class = $element['value'] == 'fusion-hidden-img' ? '' : 'remove-image';
$button_text = $element['value'] == 'fusion-hidden-img' ? __('Upload', 'fusion-core') : __('Remove', 'fusion-core');
$output .= '<div class="fusion-upload-container">';
$output .= '<img src="' . $element['value'] . '" alt="Image" class="uploaded-image" />';
$output .= '<input type="hidden" class="fusion-form-text fusion-form-upload fusion-input"
name="' . $element['id'] . '" id="' . $element['id'] . '" value="' . $element['value'] . '" />' . "\n";
$output .= '<a href="' . $element['id'] . '" class="fusion-upload-button ' . $button_class . '"
data-upid="' . $element['upid'] . '">
' . $button_text . '</a>';
$output .= '</div>';
break;
case ElementTypeEnum::INPUT:
$output .= '<input type="text" class="text-field" value="' . nl2br($element['value']) . '" id="' . $element['id'] . '" name="' . $element['id'] . '" size="50"/>';
break;
case ElementTypeEnum::HIDDEN:
$output .= '<input type="hidden" value="' . $element['value'] . '" id="' . $element['id'] . '" name="' . $element['id'] . '"/>';
break;
case ElementTypeEnum::MULTI:
$output .= '<select id="' . $element['id'] . '" name="' . $element['id'] . '" class="select-field chosen-select" multiple>';
foreach ($element['allowedValues'] as $key => $value) {
$selected = "";
if (!empty($element['value']) && $element['value'] == $key) {
$selected = "selected";
}
$output .= '<option value="' . $key . '" ' . $selected . '>' . $value . '</option>';
}
$output .= '</select>';
break;
case ElementTypeEnum::SELECT:
$output .= '<select id="' . $element['id'] . '" name="' . $element['id'] . '" class="select-field">';
foreach ($element['allowedValues'] as $key => $value) {
$selected = "";
if (!empty($element['value']) && $element['value'] == $key) {
$selected = "selected";
}
$output .= '<option value="' . $key . '" ' . $selected . '>' . $value . '</option>';
}
$output .= '</select>';
break;
case ElementTypeEnum::RADIO:
$counter = 1;
foreach ($element['allowedValues'] as $key => $radiobutton) {
$checked = "";
if ($element['value'] == $key) {
$checked = 'checked = "checked"';
}
$output .= '<span class="radio-field">';
$output .= '<input ' . $checked . ' type="radio" value="' . $key . '"
id="' . $element['id'] . $counter . '" name="' . $element['id'] . '"/>';
$output .= '<label for="' . $element['id'] . $counter . '"><span class="labeltext">' . $radiobutton . '</span>';
$output .= '</label>';
$output .= '</span>';
$counter++;
}
break;
case ElementTypeEnum::CHECKBOX:
$counter = 1;
foreach ($element['allowedValues'] as $key => $checkbox) {
$checked = "";
if ($element['value'] == $key) {
$checked = 'checked = "checked"';
}
$output .= '<span class="checkbox-field">';
$output .= '<input ' . $checked . ' type="checkbox" value="' . $key . '" id="' . $element['id'] . $counter . '" name="' . $element['id'] . '"/>';
$output .= '<label for="' . $element['id'] . $counter . '"><span class="labeltext">' . $checkbox . '</span>';
$output .= '</label>';
$output .= '</span>';
$counter++;
}
break;
case ElementTypeEnum::TEXTAREA:
$output .= '<textarea rows="5" cols="55" class="textarea-field" id="' . $element['id'] . '" name="' . $element['id'] . '">' . $element['value'] . '</textarea>';
break;
case ElementTypeEnum::HTML_EDITOR:
$output .= '<textarea rows="5" cols="55" class="textarea-field" id="' . $element['id'] . '" name="' . $element['id'] . '">' . $element['value'] . '</textarea>';
$output .= '<script type="text/javascript">jQuery("#' . $element['id'] . '").jqte();</script>';
break;
case ElementTypeEnum::ICON_BOX:
$iconsArray = FusionHelper::GET_ICONS_LIST();
$output .= "<div class='icon_select_container'>";
foreach ($iconsArray as $iconKey => $iconValue) {
$selectedClass = "";
if ($element['value'] == $iconValue) {
$selectedClass = "selected-element";
//.........这里部分代码省略.........