本文整理汇总了PHP中PBHelper::extractDictionary方法的典型用法代码示例。如果您正苦于以下问题:PHP PBHelper::extractDictionary方法的具体用法?PHP PBHelper::extractDictionary怎么用?PHP PBHelper::extractDictionary使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PBHelper
的用法示例。
在下文中一共展示了PBHelper::extractDictionary方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
function __construct()
{
$this->style = array('video' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'style.css'));
$this->videoType = array('vimeo' => array(__('Vimeo video', PLUGIN_PAGE_BUILDER_DOMAIN)), 'youtube' => array(__('Youtube video', PLUGIN_PAGE_BUILDER_DOMAIN)), 'metacafe' => array(__('Metacafe video', PLUGIN_PAGE_BUILDER_DOMAIN)), 'dailymotion' => array(__('Dailymotion video', PLUGIN_PAGE_BUILDER_DOMAIN)));
$this->component = array('name' => __('Video', PLUGIN_PAGE_BUILDER_DOMAIN), 'description' => __('Displays Video', PLUGIN_PAGE_BUILDER_DOMAIN), 'structure' => array('window' => array('title' => __('Video', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array(array('id' => 'type', 'ui' => array('text' => array('header' => __('Video type', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($this->videoType)))), 'shortcode' => array('default' => 'youtube')), array('id' => 'src', 'ui' => array('text' => array('header' => __('Video source', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('URL address of video', PLUGIN_PAGE_BUILDER_DOMAIN)))), array('id' => 'player_width', 'ui' => array('text' => array('header' => __('Player width', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Player width in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 4)))), array('id' => 'css_class', 'ui' => array('text' => array('header' => __('CSS class', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('List of CSS classes defined in CSS files separated by space.', PLUGIN_PAGE_BUILDER_DOMAIN)))))));
parent::__construct();
}
示例2: __construct
function __construct()
{
$Window = new PBWindow();
$Border = new PBBorder();
$Layout = new PBLayout();
$Easing = new PBEasing();
$CarouFredSel = new PBCarouFredSel();
$this->style = array('feature' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'style.css'));
$this->script = array('feature' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'PB.Feature.js'));
$this->layout = $Layout->getMainLayout();
$this->icon = (array) PBComponentData::get($this->getComponentId(), 'icon');
foreach ($this->icon as $index => $value) {
$this->icon[$index]['file'] = PBComponentData::setFile($this->getComponentId(), 'icon_feature_' . $index, $value['path']);
}
$this->iconPosition = array('top' => array(__('Top', PLUGIN_PAGE_BUILDER_DOMAIN)), 'right' => array(__('Right', PLUGIN_PAGE_BUILDER_DOMAIN)), 'bottom' => array(__('Bottom', PLUGIN_PAGE_BUILDER_DOMAIN)), 'left' => array(__('Left', PLUGIN_PAGE_BUILDER_DOMAIN)));
$this->waypointType = array('none' => array(__('None', PLUGIN_PAGE_BUILDER_DOMAIN)), 'iconFadeIn' => array(__('Icon fade in', PLUGIN_PAGE_BUILDER_DOMAIN)), 'itemFadeIn' => array(__('Item fade in', PLUGIN_PAGE_BUILDER_DOMAIN)));
$this->attrItemURL = null;
$this->attrItemURLTarget = null;
$this->attrIconSize = null;
$this->attrIconPosition = null;
$this->layoutAttr = null;
$this->layoutAttrColumnIndex = 0;
$this->component = array('name' => __('Features', PLUGIN_PAGE_BUILDER_DOMAIN), 'description' => __('Displays Features', PLUGIN_PAGE_BUILDER_DOMAIN), 'structure' => array('window' => array('title' => __('Features', PLUGIN_PAGE_BUILDER_DOMAIN)), 'ui' => array('panel' => array(1 => array('header' => __('General', PLUGIN_PAGE_BUILDER_DOMAIN)), 2 => array('header' => __('Styles', PLUGIN_PAGE_BUILDER_DOMAIN)), 3 => array('header' => __('Carousel', PLUGIN_PAGE_BUILDER_DOMAIN)), 4 => array('header' => __('Waypoints', PLUGIN_PAGE_BUILDER_DOMAIN)), 5 => array('header' => __('Items', PLUGIN_PAGE_BUILDER_DOMAIN))), 'group' => array(1 => array('header' => __('Odd elements', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Styles for odd elements', PLUGIN_PAGE_BUILDER_DOMAIN)), 2 => array('header' => __('Even elements', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Styles for even elements', PLUGIN_PAGE_BUILDER_DOMAIN)), 3 => array('header' => __('URL', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enter link and link target of feature ', PLUGIN_PAGE_BUILDER_DOMAIN))), 'multi' => array(1 => array('header' => __('Item', PLUGIN_PAGE_BUILDER_DOMAIN)))), 'element' => array(array('id' => 'layout', 'ui' => array('panel' => 1, 'text' => array('header' => __('Layout', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select layout of the fetaures.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => PBHelper::extractDictionary($this->layout, 'name')))), 'shortcode' => array('default' => '100')), array('id' => 'icon_size', 'ui' => array('panel' => 1, 'text' => array('header' => __('Icon size', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($this->icon, 'label')))), 'shortcode' => array('default' => PBComponentData::get($this->getComponentId(), 'icon_size_default'))), array('id' => 'icon_position', 'ui' => array('panel' => 1, 'text' => array('header' => __('Icon position', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($this->iconPosition)))), 'shortcode' => array('default' => 'left')), array('id' => 'css_class', 'ui' => array('panel' => 1, 'text' => array('header' => __('CSS class', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('List of CSS classes defined in CSS files separated by space.', PLUGIN_PAGE_BUILDER_DOMAIN)))), array('id' => 'element_even_icon_bg_color', 'ui' => array('panel' => 2, 'group' => 2, 'text' => array('label' => __('Background color of icon in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))), array('id' => 'element_even_icon_border_style', 'ui' => array('panel' => 2, 'group' => 2, 'text' => array('label' => __('Border style of icon', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Border->style)))), 'shortcode' => array('default' => '-1')), array('id' => 'element_even_icon_border_color', 'ui' => array('panel' => 2, 'group' => 2, 'text' => array('label' => __('Border color of icon in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))), array('id' => 'element_even_icon_border_width', 'ui' => array('panel' => 2, 'group' => 2, 'text' => array('label' => __('Border width of icon in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '3'))), 'shortcode' => array('default' => '-1')), array('id' => 'element_even_icon_border_radius', 'ui' => array('panel' => 2, 'group' => 2, 'text' => array('label' => __('Border radius of icon in percentage. Value -1 means that default value will be used.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'slider', 'value' => -1, 'option' => array('min' => -1, 'max' => 100))), 'shortcode' => array('default' => '-1')), array('id' => 'element_odd_icon_bg_color', 'ui' => array('panel' => 2, 'group' => 1, 'text' => array('label' => __('Background color of icon in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))), array('id' => 'element_odd_icon_border_style', 'ui' => array('panel' => 2, 'group' => 1, 'text' => array('label' => __('Border style of icon', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Border->style)))), 'shortcode' => array('default' => '-1')), array('id' => 'element_odd_icon_border_color', 'ui' => array('panel' => 2, 'group' => 1, 'text' => array('label' => __('Border color of icon in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))), array('id' => 'element_odd_icon_border_width', 'ui' => array('panel' => 2, 'group' => 1, 'text' => array('label' => __('Border width of icon in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '3'))), 'shortcode' => array('default' => '-1')), array('id' => 'element_odd_icon_border_radius', 'ui' => array('panel' => 2, 'group' => 1, 'text' => array('label' => __('Border radius of icon in percentage. Value -1 means that default value will be used.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'slider', 'value' => -1, 'option' => array('min' => -1, 'max' => 100))), 'shortcode' => array('default' => '-1')), array('id' => 'carousel_enable', 'ui' => array('panel' => 3, 'text' => array('header' => __('Enable carousel', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable carousel', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => 0)), array('id' => 'carousel_autoplay_enable', 'ui' => array('panel' => 3, 'text' => array('header' => __('Autoplay', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Autoplay', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => 0)), array('id' => 'carousel_circular_enable', 'ui' => array('panel' => 3, 'text' => array('header' => __('Circular', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Determines whether the carousel should be circular', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => 1)), array('id' => 'carousel_infinite_enable', 'ui' => array('panel' => 3, 'text' => array('header' => __('Infinite', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Determines whether the carousel should be infinite', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => 1)), array('id' => 'carousel_scroll_pause_hover', 'ui' => array('panel' => 3, 'text' => array('header' => __('Pause on hover', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Determines whether the timeout between transitions should be paused', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => 1)), array('id' => 'carousel_scroll_fx', 'ui' => array('panel' => 3, 'text' => array('header' => __('Scroll effect', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Indicates which effect to use for the transition', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($CarouFredSel->scrollFX)))), 'shortcode' => array('default' => 'scroll')), array('id' => 'carousel_scroll_easing', 'ui' => array('panel' => 3, 'text' => array('header' => __('Easing', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Indicates which easing function to use for the transition', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => PBHelper::extractDictionary($Easing->easingType)))), 'shortcode' => array('default' => 'easeInQuad')), array('id' => 'carousel_scroll_duration', 'ui' => array('panel' => 3, 'text' => array('header' => __('Duration', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Determines the duration of the transition in milliseconds', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('default' => '500')), array('id' => 'waypoint_type', 'ui' => array('panel' => 4, 'text' => array('header' => __('Animation', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select animation', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => PBHelper::extractDictionary($this->waypointType), 'use_default' => false))), 'shortcode' => array('default' => 'none')), array('id' => 'waypoint_offset_trigger', 'ui' => array('panel' => 4, 'text' => array('header' => __('Offset', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('This option determines how far the top of the element must be from the top of the viewport to trigger the animation', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 10))), 'shortcode' => array('default' => '90%')), array('id' => 'waypoint_duration', 'ui' => array('panel' => 4, 'text' => array('header' => __('Duration', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Duration of the animation in milliseconds', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('default' => '500')), array('id' => 'waypoint_easing', 'ui' => array('panel' => 4, 'text' => array('header' => __('Easing', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Easing type of animation', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => PBHelper::extractDictionary($Easing->easingType)))), 'shortcode' => array('default' => 'swing')), array('id' => 'waypoint_opacity_initial', 'ui' => array('panel' => 4, 'text' => array('header' => __('Opacity', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Initial opacity value for "fade in" animations.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'slider', 'value' => 10, 'option' => array('min' => 0, 'max' => 100))), 'shortcode' => array('default' => 10)), array('id' => 'item_url', 'ui' => array('panel' => 5, 'multi' => 1, 'group' => 3, 'text' => array('label' => __('URL', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => '*item/@item_url')), array('id' => 'item_url_target', 'ui' => array('panel' => 5, 'multi' => 1, 'group' => 3, 'text' => array('label' => __('Target', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => PBHelper::extractDictionary($Window->linkTarget)))), 'shortcode' => array('path' => '*item/@item_url_target', 'default' => '_blank')), array('id' => 'item_icon', 'ui' => array('panel' => 5, 'multi' => 1, 'text' => array('header' => __('Icon', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => $this->icon[PBComponentData::get($this->getComponentId(), 'icon_size_default')]['file']))), 'shortcode' => array('path' => '*item/@item_icon')), array('id' => 'item_header', 'ui' => array('panel' => 5, 'multi' => 1, 'text' => array('header' => __('Header', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => '*item/item_header/@content')), array('id' => 'item_content', 'ui' => array('panel' => 5, 'multi' => 1, 'text' => array('header' => __('Content', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'textarea')), 'shortcode' => array('path' => '*item/item_content/@content')))));
parent::__construct();
}
示例3: __construct
function __construct()
{
$Window = new PBWindow();
$this->icon_url = PBComponentData::get($this->getComponentId(), 'icon_url');
$this->icon_path = PBComponentData::get($this->getComponentId(), 'icon_path');
$this->icon_file = PBComponentData::setFile($this->getComponentId(), 'icon_file', $this->icon_path);
$this->style = array('social-icon' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'style.css'));
$this->script = array('social-icon' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'PB.SocialIcon.js'));
$this->social = array();
foreach ($this->icon_file as $value) {
$pathinfo = pathinfo($this->icon_path . $value);
$id = $pathinfo['filename'];
$name = ucfirst(preg_replace(array('/-/', '/_/'), ' ', $pathinfo['filename']));
$this->social[$id] = array($name, $value);
}
$group = array(1 => array('header' => __('Dimension', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Dimension (width,height) of the icon in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 2 => array('header' => __('Normal state', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Styles for normal state', PLUGIN_PAGE_BUILDER_DOMAIN)), 3 => array('header' => __('Hover state', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Styles for hover state', PLUGIN_PAGE_BUILDER_DOMAIN)), 4 => array('header' => __('Border radius', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Border radius in order: top left, top right, bottom right, bottom left', PLUGIN_PAGE_BUILDER_DOMAIN)));
$start = count($group) + 1;
$i = $start;
foreach ($this->social as $index => $value) {
$group[$i] = array('header' => $value[0], 'subheader' => sprintf(__('Settings for %s', PLUGIN_PAGE_BUILDER_DOMAIN), $value[0]));
$i++;
}
$this->component = array('name' => __('Social Icons', PLUGIN_PAGE_BUILDER_DOMAIN), 'description' => __('Displays Social Icons', PLUGIN_PAGE_BUILDER_DOMAIN), 'structure' => array('window' => array('title' => __('Social Icons', PLUGIN_PAGE_BUILDER_DOMAIN)), 'ui' => array('panel' => array(1 => array('header' => __('General', PLUGIN_PAGE_BUILDER_DOMAIN)), 2 => array('header' => __('Styles', PLUGIN_PAGE_BUILDER_DOMAIN)), 3 => array('header' => __('Profiles', PLUGIN_PAGE_BUILDER_DOMAIN))), 'group' => $group), 'element' => array(array('id' => 'target', 'ui' => array('panel' => 1, 'text' => array('header' => __('Target of the links', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Window->linkTarget)))), 'shortcode' => array('default' => '_blank')), array('id' => 'css_class', 'ui' => array('panel' => 1, 'text' => array('header' => __('CSS class', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('List of CSS classes defined in CSS files separated by space', PLUGIN_PAGE_BUILDER_DOMAIN)))), array('id' => 'native_color_enable', 'ui' => array('panel' => 2, 'text' => array('header' => __('Native colors', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => array(__('Use native colors for social icons (for both states: normal and hover)', PLUGIN_PAGE_BUILDER_DOMAIN))), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'width', 'ui' => array('panel' => 2, 'group' => 1, 'text' => array('label' => __('Width in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '3')))), array('id' => 'height', 'ui' => array('panel' => 2, 'group' => 1, 'text' => array('label' => __('Height in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '3')))), array('id' => 'border_radius_top_left', 'ui' => array('panel' => 2, 'group' => 4, 'text' => array('label' => __('Top left in pixels:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '3')))), array('id' => 'border_radius_top_right', 'ui' => array('panel' => 2, 'group' => 4, 'text' => array('label' => __('Top right in pixels:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '3')))), array('id' => 'border_radius_bottom_right', 'ui' => array('panel' => 2, 'group' => 4, 'text' => array('label' => __('Bottom right in pixels:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '3')))), array('id' => 'border_radius_bottom_left', 'ui' => array('panel' => 2, 'group' => 4, 'text' => array('label' => __('Bottom left in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '3')))), array('id' => 'border_width', 'ui' => array('panel' => 2, 'group' => 2, 'text' => array('label' => __('Border width in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '3')))), array('id' => 'border_color', 'ui' => array('panel' => 2, 'group' => 2, 'text' => array('label' => __('Border color in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))), array('id' => 'bg_color', 'ui' => array('panel' => 2, 'group' => 2, 'text' => array('label' => __('Background color in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))), array('id' => 'border_width_hover', 'ui' => array('panel' => 2, 'group' => 3, 'text' => array('label' => __('Border width in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '3')))), array('id' => 'border_color_hover', 'ui' => array('panel' => 2, 'group' => 3, 'text' => array('label' => __('Border color in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))), array('id' => 'bg_color_hover', 'ui' => array('panel' => 2, 'group' => 3, 'text' => array('label' => __('Background color in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))))));
$i = $start;
foreach ($this->social as $index => $value) {
array_push($this->component['structure']['element'], array('id' => 'profile_' . $index . '_url', 'ui' => array('panel' => 3, 'group' => $i, 'text' => array('label' => __('URL', PLUGIN_PAGE_BUILDER_DOMAIN)))), array('id' => 'profile_' . $index . '_order', 'ui' => array('panel' => 3, 'group' => $i, 'text' => array('label' => __('Order', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '2')))));
$i++;
}
parent::__construct();
}
示例4: __construct
function __construct()
{
$Align = new PBAlign();
$Border = new PBBorder();
$this->style = array('divider' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'style.css'));
$this->component = array('name' => __('Divider', PLUGIN_PAGE_BUILDER_DOMAIN), 'description' => __('Displays Divider', PLUGIN_PAGE_BUILDER_DOMAIN), 'structure' => array('window' => array('title' => __('Divider', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array(array('id' => 'line_width', 'ui' => array('text' => array('header' => __('Line width', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Line width in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 4)))), array('id' => 'line_height', 'ui' => array('text' => array('header' => __('Line height', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Line height in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 4)))), array('id' => 'line_style', 'ui' => array('text' => array('header' => __('Line style', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Border->style))))), array('id' => 'line_color', 'ui' => array('text' => array('header' => __('Line color', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Line color in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))), array('id' => 'align', 'ui' => array('text' => array('header' => __('Align', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Align->align))))), array('id' => 'margin_top', 'ui' => array('text' => array('header' => __('Top margin', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Top margin in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 4)))), array('id' => 'margin_bottom', 'ui' => array('text' => array('header' => __('Bottom margin', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Bottom margin in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 4)))), array('id' => 'css_class', 'ui' => array('text' => array('header' => __('CSS class', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('List of CSS classes defined in CSS files separated by space.', PLUGIN_PAGE_BUILDER_DOMAIN)))))));
parent::__construct();
}
示例5: __construct
function __construct()
{
$Easing = new PBEasing();
$this->style = array('counter-list' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'style.css'));
$this->script = array('counter-list' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'PB.CounterList.js'));
$this->component = array('name' => __('Counter List', PLUGIN_PAGE_BUILDER_DOMAIN), 'description' => __('Displays Counter List', PLUGIN_PAGE_BUILDER_DOMAIN), 'structure' => array('window' => array('title' => __('Counter List', PLUGIN_PAGE_BUILDER_DOMAIN)), 'ui' => array('panel' => array(1 => array('header' => __('General', PLUGIN_PAGE_BUILDER_DOMAIN)), 2 => array('header' => __('Waypoints', PLUGIN_PAGE_BUILDER_DOMAIN)), 3 => array('header' => __('Items', PLUGIN_PAGE_BUILDER_DOMAIN))), 'multi' => array(1 => array('header' => __('Item', PLUGIN_PAGE_BUILDER_DOMAIN)))), 'element' => array(array('id' => 'css_class', 'ui' => array('panel' => 1, 'text' => array('header' => __('CSS class', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('List of CSS classes defined in CSS files separated by space.', PLUGIN_PAGE_BUILDER_DOMAIN)))), array('id' => 'character_before', 'ui' => array('panel' => 1, 'text' => array('header' => __('Character before', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enter character which has to be visible before value on list.', PLUGIN_PAGE_BUILDER_DOMAIN)))), array('id' => 'character_after', 'ui' => array('panel' => 1, 'text' => array('header' => __('Character after', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enter character which has to be visible after value on list.', PLUGIN_PAGE_BUILDER_DOMAIN)))), array('id' => 'waypoint_enable', 'ui' => array('panel' => 2, 'text' => array('header' => __('Animation', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Run animation on start', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => 1)), array('id' => 'waypoint_offset_trigger', 'ui' => array('panel' => 2, 'text' => array('header' => __('Offset', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('This option determines how far the top of the element must be from the top of the viewport to trigger the animation', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 10))), 'shortcode' => array('default' => '90%')), array('id' => 'waypoint_duration', 'ui' => array('panel' => 2, 'text' => array('header' => __('Duration', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Duration of the animation in milliseconds', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('default' => '500')), array('id' => 'waypoint_easing', 'ui' => array('panel' => 2, 'text' => array('header' => __('Easing', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Easing type of animation', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => PBHelper::extractDictionary($Easing->easingType)))), 'shortcode' => array('default' => 'swing')), array('id' => 'label', 'ui' => array('panel' => 3, 'multi' => 1, 'text' => array('header' => __('Name', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => '*item/@name')), array('id' => 'value', 'ui' => array('panel' => 3, 'multi' => 1, 'text' => array('header' => __('Value', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('path' => '*item/@value')))));
parent::__construct();
}
示例6: __construct
function __construct()
{
$this->style = array('jquery-nivo-slider' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'jquery.nivo.slider.css'), 'nivo-slider' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'style.css'));
$this->script = array('jquery-nivo-slider' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'jquery.nivo.slider.pack.js'), 'nivo-slider' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'PB.NivoSlider.js'));
$this->effect = array('sliceDown' => array(__('Slice down', PLUGIN_PAGE_BUILDER_DOMAIN)), 'sliceDownLeft' => array(__('Slice down left', PLUGIN_PAGE_BUILDER_DOMAIN)), 'sliceUp' => array(__('Slice up', PLUGIN_PAGE_BUILDER_DOMAIN)), 'sliceUpLeft' => array(__('Slice up left', PLUGIN_PAGE_BUILDER_DOMAIN)), 'sliceUpDown' => array(__('Slice up down', PLUGIN_PAGE_BUILDER_DOMAIN)), 'sliceUpDownLeft' => array(__('Slice up down left', PLUGIN_PAGE_BUILDER_DOMAIN)), 'fold' => array(__('Fold', PLUGIN_PAGE_BUILDER_DOMAIN)), 'fade' => array(__('Fade', PLUGIN_PAGE_BUILDER_DOMAIN)), 'random' => array(__('Random', PLUGIN_PAGE_BUILDER_DOMAIN)), 'slideInRight' => array(__('Slide in right', PLUGIN_PAGE_BUILDER_DOMAIN)), 'slideInLeft' => array(__('Slide in left', PLUGIN_PAGE_BUILDER_DOMAIN)), 'boxRandom' => array(__('Box random', PLUGIN_PAGE_BUILDER_DOMAIN)), 'boxRain' => array(__('Box rain', PLUGIN_PAGE_BUILDER_DOMAIN)), 'boxRainReverse' => array(__('Box rain reverse', PLUGIN_PAGE_BUILDER_DOMAIN)), 'boxRainGrow' => array(__('Box rain grow', PLUGIN_PAGE_BUILDER_DOMAIN)), 'boxRainGrowReverse' => array(__('Box rain grow reverse', PLUGIN_PAGE_BUILDER_DOMAIN)));
$this->component = array('name' => __('Nivo Slider', PLUGIN_PAGE_BUILDER_DOMAIN), 'description' => __('Displays Nivo Slider', PLUGIN_PAGE_BUILDER_DOMAIN), 'structure' => array('window' => array('title' => __('Nivo Slider', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array(array('id' => 'image', 'ui' => array('text' => array('header' => __('Images', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Click on below button to create gallery with images to the slider', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-gallery'))), array('id' => 'image_size', 'ui' => array('text' => array('header' => __('Image size', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select image size', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'image-size')), 'shortcode' => array('default' => PBComponentData::get($this->getComponentId(), 'image_default'))), array('id' => 'url', 'ui' => array('text' => array('header' => __('URL', PLUGIN_PAGE_BUILDER_DOMAIN)))), array('id' => 'transition_effect', 'ui' => array('text' => array('header' => __('Transition effect', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select transition effect', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'checkbox', 'dictionary' => array('source' => PBHelper::extractDictionary($this->effect)))), 'shortcode' => array('default' => 'random')), array('id' => 'count_slice', 'ui' => array('text' => array('header' => __('Number of slices', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enter number of slices - only for "slice" transitions', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 3))), 'shortcode' => array('default' => '15')), array('id' => 'count_column', 'ui' => array('text' => array('header' => __('Number of columns', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enter number of columns - only for "box" transitions', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 3))), 'shortcode' => array('default' => '8')), array('id' => 'count_row', 'ui' => array('text' => array('header' => __('Number of rows', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enter number of rows - only for "box" transitions', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 3))), 'shortcode' => array('default' => '4')), array('id' => 'transition_speed', 'ui' => array('text' => array('header' => __('Transition speed', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Slide transition speed in miliseconds', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('default' => '500')), array('id' => 'pause_time', 'ui' => array('text' => array('header' => __('Pause time', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enter value of pause time in miliseconds', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('default' => '3000')), array('id' => 'start_slide', 'ui' => array('text' => array('header' => __('Start slide', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enter number of start slide', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 3))), 'shortcode' => array('default' => '0')), array('id' => 'preloader_enable', 'ui' => array('text' => array('header' => __('Preloader', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable image slider preloader', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'direction_navigation_enable', 'ui' => array('text' => array('header' => __('Direction navigation', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable Prev/Next navigation', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'control_navigation_enable', 'ui' => array('text' => array('header' => __('Control navigation', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable 1,2,3 ... navigation (pagination)', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'control_navigation_thumbs_enable', 'ui' => array('text' => array('header' => __('Control navigation with thumbnails', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Use thumbnails for control navigation', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'pause_on_hover', 'ui' => array('text' => array('header' => __('Pause on hover', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Stop transition when user hover on image', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'manual_advance_enable', 'ui' => array('text' => array('header' => __('Manual advance', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Force manual transitions', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'random_start_enable', 'ui' => array('text' => array('header' => __('Random at start', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Start on a random slide', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'css_class', 'ui' => array('text' => array('header' => __('CSS class', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('List of CSS classes defined in CSS files separated by space', PLUGIN_PAGE_BUILDER_DOMAIN)))))));
parent::__construct();
}
示例7: __construct
function __construct()
{
$Font = new PBFont();
$Header = new PBHeader();
$this->style = array('header-subheader' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'style.css'));
$this->component = array('name' => __('Header + Subheader', PLUGIN_PAGE_BUILDER_DOMAIN), 'description' => __('Displays header + subheader', PLUGIN_PAGE_BUILDER_DOMAIN), 'structure' => array('window' => array('title' => __('Header + Subheader', PLUGIN_PAGE_BUILDER_DOMAIN)), 'ui' => array('panel' => array(1 => array('header' => __('General', PLUGIN_PAGE_BUILDER_DOMAIN)), 2 => array('header' => __('Header styles', PLUGIN_PAGE_BUILDER_DOMAIN)), 3 => array('header' => __('Subheader styles', PLUGIN_PAGE_BUILDER_DOMAIN)))), 'element' => array(array('id' => 'header_content', 'ui' => array('panel' => 1, 'text' => array('header' => __('Header', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Content of the header', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => 'header/@content')), array('id' => 'header_important', 'ui' => array('panel' => 1, 'text' => array('header' => __('Important of the header', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Header->important)))), 'shortcode' => array('default' => '2', 'path' => 'header/@important')), array('id' => 'subheader', 'ui' => array('panel' => 1, 'text' => array('header' => __('Subheader', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Content of the subheader', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => 'subheader/@content')), array('id' => 'subheader_important', 'ui' => array('panel' => 1, 'text' => array('header' => __('Important of the subheader', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Header->important)))), 'shortcode' => array('default' => '6', 'path' => 'subheader/@important')), array('id' => 'underline_enable', 'ui' => array('panel' => 1, 'text' => array('header' => __('Underline', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable header underline', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'css_class', 'ui' => array('panel' => 1, 'text' => array('header' => __('CSS class', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('List of CSS classes defined in CSS files separated by space.', PLUGIN_PAGE_BUILDER_DOMAIN)))), array('id' => 'header_font_size', 'ui' => array('panel' => 2, 'text' => array('header' => __('Font size', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Font size in pixels. Value 0 means that default size for selected header will be used.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'slider', 'value' => 0, 'option' => array('min' => 0, 'max' => 200))), 'shortcode' => array('path' => 'header/@font_size', 'default' => '0')), array('id' => 'header_font_weight', 'ui' => array('panel' => 2, 'text' => array('header' => __('Font weight', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Font->weight)))), 'shortcode' => array('path' => 'header/@font_weight', 'default' => '-1')), array('id' => 'header_font_style', 'ui' => array('panel' => 2, 'text' => array('header' => __('Font style', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Font->style)))), 'shortcode' => array('path' => 'header/@font_style', 'default' => '-1')), array('id' => 'header_font_color', 'ui' => array('panel' => 2, 'text' => array('header' => __('Font color', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Font color in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker')), 'shortcode' => array('path' => 'header/@font_color')), array('id' => 'header_line_height', 'ui' => array('panel' => 2, 'text' => array('header' => __('Line height', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Line height in selected unit. E.g: 1em, 2px etc.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('path' => 'header/@line_height')), array('id' => 'subheader_font_size', 'ui' => array('panel' => 3, 'text' => array('header' => __('Font size', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Font size in pixels. Value 0 means that default size for selected header will be used.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'slider', 'value' => 0, 'option' => array('min' => 0, 'max' => 200))), 'shortcode' => array('path' => 'subheader/@font_size', 'default' => '0')), array('id' => 'subheader_font_weight', 'ui' => array('panel' => 3, 'text' => array('header' => __('Font weight', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Font->weight)))), 'shortcode' => array('path' => 'subheader/@font_weight', 'default' => '-1')), array('id' => 'subheader_font_style', 'ui' => array('panel' => 3, 'text' => array('header' => __('Font style', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Font->style)))), 'shortcode' => array('path' => 'subheader/@font_style', 'default' => '-1')), array('id' => 'subheader_font_color', 'ui' => array('panel' => 3, 'text' => array('header' => __('Font color', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Font color in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker')), 'shortcode' => array('path' => 'subheader/@font_color')), array('id' => 'subheader_line_height', 'ui' => array('panel' => 3, 'text' => array('header' => __('Line height', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Line height in selected unit. E.g: 1em, 2px etc.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('path' => 'subheader/@line_height')))));
parent::__construct();
}
示例8: __construct
function __construct()
{
$Easing = new PBEasing();
$this->style = array('tab' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'style.css'));
$this->script = array('tab' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'PB.Tab.js'));
$this->heightStyle = array('content' => array(__('Content: Each panel will be only as tall as its content', PLUGIN_PAGE_BUILDER_DOMAIN)), 'auto' => array(__('Auto: all panels will be set to the height of the tallest panel', PLUGIN_PAGE_BUILDER_DOMAIN)), 'fill' => array(__('Fill: Expand to the available height based on the parent height', PLUGIN_PAGE_BUILDER_DOMAIN)));
$this->component = array('name' => __('Tab', PLUGIN_PAGE_BUILDER_DOMAIN), 'description' => __('Displays Tab', PLUGIN_PAGE_BUILDER_DOMAIN), 'structure' => array('window' => array('title' => __('Tab', PLUGIN_PAGE_BUILDER_DOMAIN)), 'ui' => array('panel' => array(1 => array('header' => __('General', PLUGIN_PAGE_BUILDER_DOMAIN)), 2 => array('header' => __('Animations', PLUGIN_PAGE_BUILDER_DOMAIN)), 3 => array('header' => __('Panels', PLUGIN_PAGE_BUILDER_DOMAIN))), 'group' => array(1 => array('header' => __('Show', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Options describe how to animate the showing of the panel.', PLUGIN_PAGE_BUILDER_DOMAIN)), 2 => array('header' => __('Hide', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Options describe how to animate the hiding of the panel.', PLUGIN_PAGE_BUILDER_DOMAIN))), 'multi' => array(1 => array('header' => __('Content of the panel', PLUGIN_PAGE_BUILDER_DOMAIN)))), 'element' => array(array('id' => 'header_font_size', 'ui' => array('panel' => 1, 'text' => array('header' => __('Header font size', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Font size in pixels. If value 0 will be selected, then default font size for H5 header will be applied.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'slider', 'value' => 0, 'option' => array('min' => 0, 'max' => 100))), 'shortcode' => array('default' => 0)), array('id' => 'active', 'ui' => array('panel' => 1, 'text' => array('header' => __('Active', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('The zero-based index of the panel that is active (open).', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 3))), 'shortcode' => array('default' => 0)), array('id' => 'collapsible', 'ui' => array('panel' => 1, 'text' => array('header' => __('Collapsible', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Whether all the sections can be closed at once. Allows collapsing the active section.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => 0)), array('id' => 'disabled', 'ui' => array('panel' => 1, 'text' => array('header' => __('Disabled', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Disable all tabs', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => 0)), array('id' => 'height_style', 'ui' => array('panel' => 1, 'text' => array('header' => __('Height style', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Controls the height of the tabs', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => PBHelper::extractDictionary($this->heightStyle)))), 'shortcode' => array('default' => 'content')), array('id' => 'css_class', 'ui' => array('panel' => 1, 'text' => array('header' => __('CSS class', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('List of CSS classes defined in CSS files separated by space.', PLUGIN_PAGE_BUILDER_DOMAIN)))), array('id' => 'animation_show_enable', 'ui' => array('panel' => 2, 'group' => 1, 'text' => array('label' => __('Enable or disable animation', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'animation_show_duration', 'ui' => array('panel' => 2, 'group' => 1, 'text' => array('label' => __('Duration of animation in miliseconds', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('default' => '300')), array('id' => 'animation_show_delay', 'ui' => array('panel' => 2, 'group' => 1, 'text' => array('label' => __('Delay of animation in miliseconds', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('default' => '0')), array('id' => 'animation_show_easing', 'ui' => array('panel' => 2, 'group' => 1, 'text' => array('label' => __('Easing type of animation', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => PBHelper::extractDictionary($Easing->easingType)))), 'shortcode' => array('default' => 'swing')), array('id' => 'animation_hide_enable', 'ui' => array('panel' => 2, 'group' => 2, 'text' => array('label' => __('Enable or disable animation', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'animation_hide_duration', 'ui' => array('panel' => 2, 'group' => 2, 'text' => array('label' => __('Duration of animation in miliseconds', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('default' => '200')), array('id' => 'animation_hide_delay', 'ui' => array('panel' => 2, 'group' => 2, 'text' => array('label' => __('Delay of animation in miliseconds', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('default' => '0')), array('id' => 'animation_hide_easing', 'ui' => array('panel' => 2, 'group' => 2, 'text' => array('label' => __('Easing type of animation', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => PBHelper::extractDictionary($Easing->easingType)))), 'shortcode' => array('default' => 'swing')), array('id' => 'header', 'ui' => array('panel' => 3, 'multi' => 1, 'text' => array('header' => __('Header', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Header of the panel', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => 'navigation/*navigation_header/@content')), array('id' => 'content', 'ui' => array('panel' => 3, 'multi' => 1, 'text' => array('header' => __('Content', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Content of the panel', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'textarea')), 'shortcode' => array('path' => 'panel/*panel_content/@content')))));
parent::__construct();
}
示例9: __construct
function __construct()
{
$this->style = array('supersized' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'style.css'), 'jquery-supersized' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'jquery-supersized.css'));
$this->script = array('supersized' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'PB.Supersized.js'), 'jquery-supersized' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'jquery.supersized.min.js'));
$this->performance = array('0' => __('No adjustments', PLUGIN_PAGE_BUILDER_DOMAIN), '1' => __('Hybrid, lowers image quality during transitions and restores after completed. (Default)', PLUGIN_PAGE_BUILDER_DOMAIN), '2' => __('Higher image quality', PLUGIN_PAGE_BUILDER_DOMAIN), '3' => __('Faster transition speed, lower image qualit', PLUGIN_PAGE_BUILDER_DOMAIN));
$this->transition = array('none' => __('none - No transition effect', PLUGIN_PAGE_BUILDER_DOMAIN), 'fade' => __('fade - Fade effect (Default)', PLUGIN_PAGE_BUILDER_DOMAIN), 'slideTop' => __('slideTop - Slide in from top', PLUGIN_PAGE_BUILDER_DOMAIN), 'slideRight' => __('slideRight - Slide in from right', PLUGIN_PAGE_BUILDER_DOMAIN), 'slideBottom' => __('slideBottom - Slide in from bottom', PLUGIN_PAGE_BUILDER_DOMAIN), 'slideLeft' => __('slideLeft - Slide in from left', PLUGIN_PAGE_BUILDER_DOMAIN), 'carouselRight' => __('carouselRight - Carousel from right to left', PLUGIN_PAGE_BUILDER_DOMAIN), 'carouselLeft' => __('carouselLeft - Carousel from left to right', PLUGIN_PAGE_BUILDER_DOMAIN));
$this->component = array('name' => __('Supersized', PLUGIN_PAGE_BUILDER_DOMAIN), 'description' => __('Displays Supersized', PLUGIN_PAGE_BUILDER_DOMAIN), 'structure' => array('window' => array('title' => __('Supersized', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array(array('id' => 'image', 'ui' => array('text' => array('header' => __('Images', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Click on below button to create gallery with images to the slider', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-gallery'))), array('id' => 'autoplay', 'ui' => array('text' => array('header' => __('Autoplay', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Determines whether slideshow begins playing when page is loaded', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'fit_always', 'ui' => array('text' => array('header' => __('Fit always', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Prevents the image from ever being cropped. Ignores minimum width and height', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'fit_landscape', 'ui' => array('text' => array('header' => __('Fit landscape', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Prevents the image from being cropped by locking it at 100% width', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'fit_portrait', 'ui' => array('text' => array('header' => __('Fit portrait', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Prevents the image from being cropped by locking it at 100% height', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'horizontal_center', 'ui' => array('text' => array('header' => __('Horizontal center', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Centers image horizontally. When turned off, the images resize/display from the left of the page', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'vertical_center', 'ui' => array('text' => array('header' => __('Vertical center', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Centers image vertically. When turned off, the images resize/display from the top of the page', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'min_width', 'ui' => array('text' => array('header' => __('Minimum width', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Minimum width the image is allowed to be. If it is met, the image won\'t size down any further.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('default' => 0)), array('id' => 'min_height', 'ui' => array('text' => array('header' => __('Minimum height', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Minimum height the image is allowed to be. If it is met, the image won\'t size down any further.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('default' => 0)), array('id' => 'image_protect', 'ui' => array('text' => array('header' => __('Image protect', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Disables right clicking and image dragging using Javascript', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'keyboard_nav', 'ui' => array('text' => array('header' => __('Keyboard navigation', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Allows control via keyboard', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'new_window', 'ui' => array('text' => array('header' => __('New window', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Slide links open in a new window.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'pause_hover', 'ui' => array('text' => array('header' => __('Pause on hover', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Pauses slideshow while current image hovered over', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'random', 'ui' => array('text' => array('header' => __('Random', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Slides are shown in a random order', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'start_slide', 'ui' => array('text' => array('header' => __('Start slide', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('The slide the slideshow starts on', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('default' => '0')), array('id' => 'stop_loop', 'ui' => array('text' => array('header' => __('Stop loop', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Pauses slideshow upon reaching the last slide', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'performance', 'ui' => array('text' => array('header' => __('Performance', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Uses image rendering options in Firefox and Internet Explorer to adjust image quality. This can speed up/slow down transitions. Webkit does not yet support these options', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => PBHelper::extractDictionary($this->performance)))), 'shortcode' => array('default' => '1')), array('id' => 'transition', 'ui' => array('text' => array('header' => __('Transition', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Controls which effect is used to transition between slides', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => PBHelper::extractDictionary($this->transition)))), 'shortcode' => array('default' => '1')), array('id' => 'transition_speed', 'ui' => array('text' => array('header' => __('Transition speed', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Speed of transitions in milliseconds', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('default' => '750')), array('id' => 'slide_interval', 'ui' => array('text' => array('header' => __('Slide interval', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Time between slide changes in milliseconds', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('default' => '5000')), array('id' => 'css_class', 'ui' => array('text' => array('header' => __('CSS class', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('List of CSS classes defined in CSS files separated by space', PLUGIN_PAGE_BUILDER_DOMAIN)))))));
parent::__construct();
}
示例10: __construct
function __construct()
{
$Easing = new PBEasing();
$CarouFredSel = new PBCarouFredSel();
$this->script = array('jquery-timeago' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'jquery.timeago.js', 'dependencies' => array('jquery')), 'twitter-user-timeline' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'PB.TwitterUserTimeline.js', 'dependencies' => array('jquery')));
$this->style = array('twitter-user-timeline' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'style.css'));
$this->component = array('name' => __('Twitter User Timeline', PLUGIN_PAGE_BUILDER_DOMAIN), 'description' => __('Displays Latest Tweets', PLUGIN_PAGE_BUILDER_DOMAIN), 'structure' => array('window' => array('title' => __('Twitter User Timeline', PLUGIN_PAGE_BUILDER_DOMAIN)), 'ui' => array('panel' => array(1 => array('header' => __('General', PLUGIN_PAGE_BUILDER_DOMAIN)), 2 => array('header' => __('Twitter', PLUGIN_PAGE_BUILDER_DOMAIN)), 3 => array('header' => __('Carousel', PLUGIN_PAGE_BUILDER_DOMAIN)))), 'element' => array(array('id' => 'css_class', 'ui' => array('panel' => 1, 'text' => array('header' => __('CSS class', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('List of CSS classes defined in CSS files separated by space', PLUGIN_PAGE_BUILDER_DOMAIN)))), array('id' => 'twitter_username', 'ui' => array('panel' => 2, 'text' => array('header' => __('Username', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Username of Twitter account', PLUGIN_PAGE_BUILDER_DOMAIN)))), array('id' => 'twitter_consumer_key', 'ui' => array('panel' => 2, 'text' => array('header' => __('Consumer key', PLUGIN_PAGE_BUILDER_DOMAIN)))), array('id' => 'twitter_consumer_key_secret', 'ui' => array('panel' => 2, 'text' => array('header' => __('Consumer secret key', PLUGIN_PAGE_BUILDER_DOMAIN)))), array('id' => 'twitter_access_token', 'ui' => array('panel' => 2, 'text' => array('header' => __('Access token', PLUGIN_PAGE_BUILDER_DOMAIN)))), array('id' => 'twitter_access_token_secret', 'ui' => array('panel' => 2, 'text' => array('header' => __('Access token secret', PLUGIN_PAGE_BUILDER_DOMAIN)))), array('id' => 'twitter_tweet_number', 'ui' => array('panel' => 2, 'text' => array('header' => __('Number of tweets', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Specifies the number of tweets to try and retrieve.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 3))), 'shortcode' => array('default' => 10)), array('id' => 'carousel_enable', 'ui' => array('panel' => 3, 'text' => array('header' => __('Enable carousel', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable carousel', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => 1)), array('id' => 'carousel_autoplay_enable', 'ui' => array('panel' => 3, 'text' => array('header' => __('Autoplay', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Autoplay', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => 0)), array('id' => 'carousel_circular_enable', 'ui' => array('panel' => 3, 'text' => array('header' => __('Circular', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Determines whether the carousel should be circular', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => 1)), array('id' => 'carousel_infinite_enable', 'ui' => array('panel' => 3, 'text' => array('header' => __('Infinite', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Determines whether the carousel should be infinite', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => 1)), array('id' => 'carousel_scroll_pause_hover', 'ui' => array('panel' => 3, 'text' => array('header' => __('Pause on hover', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Determines whether the timeout between transitions should be paused', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => 1)), array('id' => 'carousel_scroll_fx', 'ui' => array('panel' => 3, 'text' => array('header' => __('Scroll effect', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Indicates which effect to use for the transition', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($CarouFredSel->scrollFX)))), 'shortcode' => array('default' => 'scroll')), array('id' => 'carousel_scroll_easing', 'ui' => array('panel' => 3, 'text' => array('header' => __('Easing', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Indicates which easing function to use for the transition', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => PBHelper::extractDictionary($Easing->easingType)))), 'shortcode' => array('default' => 'easeInQuad')), array('id' => 'carousel_scroll_duration', 'ui' => array('panel' => 3, 'text' => array('header' => __('Duration', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Determines the duration of the transition in milliseconds', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('default' => '500')))));
parent::__construct();
}
示例11: __construct
function __construct()
{
$Header = new PBHeader();
$Window = new PBWindow();
$this->style = array('call-to-action' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'style.css'));
$this->script = array('call-to-action' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'PB.CallToAction.js'));
$this->component = array('name' => __('Call To Action', PLUGIN_PAGE_BUILDER_DOMAIN), 'description' => __('Displays Call To Action box', PLUGIN_PAGE_BUILDER_DOMAIN), 'structure' => array('window' => array('title' => __('Call To Action', PLUGIN_PAGE_BUILDER_DOMAIN)), 'ui' => array('panel' => array(1 => array('header' => __('General', PLUGIN_PAGE_BUILDER_DOMAIN)), 2 => array('header' => __('First line', PLUGIN_PAGE_BUILDER_DOMAIN)), 3 => array('header' => __('Second line', PLUGIN_PAGE_BUILDER_DOMAIN)), 4 => array('header' => __('Button', PLUGIN_PAGE_BUILDER_DOMAIN)), 5 => array('header' => __('Box', PLUGIN_PAGE_BUILDER_DOMAIN)), 6 => array('header' => __('Border', PLUGIN_PAGE_BUILDER_DOMAIN))), 'group' => array(1 => array('header' => __('Colors', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Colors of button elements in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 2 => array('header' => __('Padding', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Padding of the box in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 3 => array('header' => __('Border top', PLUGIN_PAGE_BUILDER_DOMAIN)), 4 => array('header' => __('Border right', PLUGIN_PAGE_BUILDER_DOMAIN)), 5 => array('header' => __('Border bottom', PLUGIN_PAGE_BUILDER_DOMAIN)), 6 => array('header' => __('Border left', PLUGIN_PAGE_BUILDER_DOMAIN)), 7 => array('header' => __('Padding', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Padding of the button in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 8 => array('header' => __('Margin', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Margin of the button in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)))), 'element' => array(array('id' => 'css_class', 'ui' => array('panel' => 1, 'text' => array('header' => __('CSS class', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('List of CSS classes defined in CSS files separated by space', PLUGIN_PAGE_BUILDER_DOMAIN)))), array('id' => 'first_line_text', 'ui' => array('panel' => 2, 'text' => array('header' => __('First line', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Content of the first line', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => 'first_line/@content')), array('id' => 'first_line_text_color', 'ui' => array('panel' => 2, 'text' => array('header' => __('Text color', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Text color of the first line in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker')), 'shortcode' => array('path' => 'first_line/@text_color')), array('id' => 'first_line_header_important', 'ui' => array('panel' => 2, 'text' => array('header' => __('Importance of the header', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Header->important)))), 'shortcode' => array('default' => PBComponentData::get($this->getComponentId(), 'first_line_header_important_default'), 'path' => 'first_line/@header_important')), array('id' => 'second_line_text', 'ui' => array('panel' => 3, 'text' => array('header' => __('Second line', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Content of the second line', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => 'second_line/@content')), array('id' => 'second_line_text_color', 'ui' => array('panel' => 3, 'text' => array('header' => __('Text color', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Text color of the second line in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker')), 'shortcode' => array('path' => 'second_line/@text_color')), array('id' => 'second_line_header_important', 'ui' => array('panel' => 3, 'text' => array('header' => __('Importance of the header', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Header->important)))), 'shortcode' => array('default' => PBComponentData::get($this->getComponentId(), 'second_line_header_important_default'), 'path' => 'second_line/@header_important')), array('id' => 'button_src', 'ui' => array('panel' => 4, 'text' => array('header' => __('URL', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('URL of the button', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => 'button/@src')), array('id' => 'button_target', 'ui' => array('panel' => 4, 'text' => array('header' => __('Target', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Target of the URL', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Window->linkTarget)))), 'shortcode' => array('path' => 'button/@src_target')), array('id' => 'button_label', 'ui' => array('panel' => 4, 'text' => array('header' => __('Label', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Label of the button', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => 'button/@content')), array('id' => 'button_text_color', 'ui' => array('panel' => 4, 'group' => 1, 'text' => array('label' => __('Text color', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker')), 'shortcode' => array('path' => 'button/@text_color')), array('id' => 'button_text_color_hover', 'ui' => array('panel' => 4, 'group' => 1, 'text' => array('label' => __('Text color (on hover)', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker')), 'shortcode' => array('path' => 'button/@text_color_hover')), array('id' => 'button_bg_color', 'ui' => array('panel' => 4, 'group' => 1, 'text' => array('label' => __('Background color', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker')), 'shortcode' => array('path' => 'button/@bg_color')), array('id' => 'button_bg_color_hover', 'ui' => array('panel' => 4, 'group' => 1, 'text' => array('label' => __('Background color (on hover)', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker')), 'shortcode' => array('path' => 'button/@bg_color_hover')), array('id' => 'button_border_color', 'ui' => array('panel' => 4, 'group' => 1, 'text' => array('label' => __('Border color', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker')), 'shortcode' => array('path' => 'button/@border_color')), array('id' => 'button_border_color_hover', 'ui' => array('panel' => 4, 'group' => 1, 'text' => array('label' => __('Border color (on hover)', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker')), 'shortcode' => array('path' => 'button/@border_color_hover')), array('id' => 'button_padding_top', 'ui' => array('panel' => 4, 'group' => 7, 'text' => array('label' => __('Top', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '4'))), 'shortcode' => array('path' => 'button/@padding_top')), array('id' => 'button_padding_right', 'ui' => array('panel' => 4, 'group' => 7, 'text' => array('label' => __('Right', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '4'))), 'shortcode' => array('path' => 'button/@padding_right')), array('id' => 'button_padding_bottom', 'ui' => array('panel' => 4, 'group' => 7, 'text' => array('label' => __('Bottom', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '4'))), 'shortcode' => array('path' => 'button/@padding_bottom')), array('id' => 'button_padding_left', 'ui' => array('panel' => 4, 'group' => 7, 'text' => array('label' => __('Left', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '4'))), 'shortcode' => array('path' => 'button/@padding_left')), array('id' => 'button_margin_top', 'ui' => array('panel' => 4, 'group' => 8, 'text' => array('label' => __('Top', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '4'))), 'shortcode' => array('path' => 'button/@margin_top')), array('id' => 'button_margin_bottom', 'ui' => array('panel' => 4, 'group' => 8, 'text' => array('label' => __('Bottom', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '4'))), 'shortcode' => array('path' => 'button/@margin_bottom')), array('id' => 'box_bg_color', 'ui' => array('panel' => 5, 'text' => array('header' => __('Background color', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Background color in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker')), 'shortcode' => array('path' => '@bg_color')), array('id' => 'box_padding_top', 'ui' => array('panel' => 5, 'group' => 2, 'text' => array('label' => __('Top', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '4'))), 'shortcode' => array('path' => '@padding_top')), array('id' => 'box_padding_right', 'ui' => array('panel' => 5, 'group' => 2, 'text' => array('label' => __('Right', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '4'))), 'shortcode' => array('path' => '@padding_right')), array('id' => 'box_padding_bottom', 'ui' => array('panel' => 5, 'group' => 2, 'text' => array('label' => __('Bottom', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '4'))), 'shortcode' => array('path' => '@padding_bottom')), array('id' => 'box_padding_left', 'ui' => array('panel' => 5, 'group' => 2, 'text' => array('label' => __('Left', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '4'))), 'shortcode' => array('path' => '@padding_left')), array('id' => 'box_border_top_width', 'ui' => array('panel' => 6, 'group' => 3, 'text' => array('label' => __('Width in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '4'))), 'shortcode' => array('path' => '@border_top_width')), array('id' => 'box_border_top_color', 'ui' => array('panel' => 6, 'group' => 3, 'text' => array('label' => __('Color in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker')), 'shortcode' => array('path' => '@border_top_color')), array('id' => 'box_border_right_width', 'ui' => array('panel' => 6, 'group' => 4, 'text' => array('label' => __('Width in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '4'))), 'shortcode' => array('path' => '@border_right_width')), array('id' => 'box_border_right_color', 'ui' => array('panel' => 6, 'group' => 4, 'text' => array('label' => __('Color in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker')), 'shortcode' => array('path' => '@border_right_color')), array('id' => 'box_border_bottom_width', 'ui' => array('panel' => 6, 'group' => 5, 'text' => array('label' => __('Width in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '4'))), 'shortcode' => array('path' => '@border_bottom_width')), array('id' => 'box_border_bottom_color', 'ui' => array('panel' => 6, 'group' => 5, 'text' => array('label' => __('Color in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker')), 'shortcode' => array('path' => '@border_bottom_color')), array('id' => 'box_border_left_width', 'ui' => array('panel' => 6, 'group' => 6, 'text' => array('label' => __('Width in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '4'))), 'shortcode' => array('path' => '@border_left_width')), array('id' => 'box_border_left_color', 'ui' => array('panel' => 6, 'group' => 6, 'text' => array('label' => __('Color in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker')), 'shortcode' => array('path' => '@border_left_color')))));
parent::__construct();
}
示例12: __construct
function __construct()
{
$Border = new PBBorder();
$Layout = new PBLayout();
$Easing = new PBEasing();
$Background = new PBBackground();
$this->script = array('layout' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'PB.Layout.js'));
$this->component = array('name' => __('Layout', PLUGIN_PAGE_BUILDER_DOMAIN), 'description' => __('Displays layout', PLUGIN_PAGE_BUILDER_DOMAIN), 'visibility' => 2, 'structure' => array('window' => array('title' => __('Layout', PLUGIN_PAGE_BUILDER_DOMAIN)), 'ui' => array('panel' => array(1 => array('header' => __('General', PLUGIN_PAGE_BUILDER_DOMAIN)), 2 => array('header' => __('Image', PLUGIN_PAGE_BUILDER_DOMAIN)), 3 => array('header' => __('Video', PLUGIN_PAGE_BUILDER_DOMAIN)), 4 => array('header' => __('Colors', PLUGIN_PAGE_BUILDER_DOMAIN)), 5 => array('header' => __('Styles', PLUGIN_PAGE_BUILDER_DOMAIN))), 'group' => array(1 => array('header' => __('Padding', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Padding of the layout in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 2 => array('header' => __('Video', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select video in available format. To display background video, at least one format has to be selected', PLUGIN_PAGE_BUILDER_DOMAIN)), 3 => array('header' => __('Overlay', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select color and opacity of overlay', PLUGIN_PAGE_BUILDER_DOMAIN)), 4 => array('header' => __('Border top', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Border top properties in order: style, width, color', PLUGIN_PAGE_BUILDER_DOMAIN)), 5 => array('header' => __('Border right', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Border right properties in order: style, width, color', PLUGIN_PAGE_BUILDER_DOMAIN)), 6 => array('header' => __('Border bottom', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Border bottom properties in order: style, width, color', PLUGIN_PAGE_BUILDER_DOMAIN)), 7 => array('header' => __('Border left', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Border left properties in order: style, width, color', PLUGIN_PAGE_BUILDER_DOMAIN)))), 'element' => array(array('id' => 'layout_line', 'ui' => array('panel' => 1, 'text' => array('header' => __('Layout of parent section', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select layout of parent section', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Layout->layoutLine, 'name')))), 'shortcode' => array('default' => 'wide')), array('id' => 'layout', 'ui' => array('panel' => 1, 'text' => array('header' => __('Layout', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select layout (number and width of columns)', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Layout->layout, 'name')))), 'visibility' => 2, 'shortcode' => array('default' => '100')), array('id' => 'css_class', 'ui' => array('panel' => 1, 'text' => array('header' => __('CSS class', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('List of CSS classes defined in CSS files separated by space', PLUGIN_PAGE_BUILDER_DOMAIN)))), array('id' => 'css_group', 'ui' => array('panel' => 1, 'text' => array('header' => __('CSS class group name', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Name of the CSS class of related lines', PLUGIN_PAGE_BUILDER_DOMAIN)))), array('id' => 'text', 'ui' => array('panel' => 1, 'text' => array('header' => __('Content', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'textarea')), 'visibility' => 2, 'shortcode' => array('path' => '@content')), array('id' => 'bg_image', 'ui' => array('panel' => 2, 'text' => array('header' => __('Background image', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Click on button to select image', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-image'))), array('id' => 'bg_repeat', 'ui' => array('panel' => 2, 'text' => array('header' => __('Background image repeat', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select type of background repeat', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => PBHelper::extractDictionary($Background->backgroundRepeat)))), 'shortcode' => array('default' => 'no-repeat')), array('id' => 'bg_position', 'ui' => array('panel' => 2, 'text' => array('header' => __('Background image position', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enter position of the background', PLUGIN_PAGE_BUILDER_DOMAIN)))), array('id' => 'bg_size_a', 'ui' => array('panel' => 2, 'text' => array('header' => __('Background image size', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Specify the image size. For options "Length" and "Percentage" you have to specify these values in next field.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => PBHelper::extractDictionary($Background->backgroundSize))))), array('id' => 'bg_size_b', 'ui' => array('panel' => 2, 'text' => array('header' => __('Background image size', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => array(__('Sets the width and height of the background image.', PLUGIN_PAGE_BUILDER_DOMAIN), __('Sets the width and height of the background image in percent of the parent element.', PLUGIN_PAGE_BUILDER_DOMAIN), __('The first value sets the width, the second value sets the height. If only one value is given, the second is set to "auto"', PLUGIN_PAGE_BUILDER_DOMAIN))))), array('id' => 'bg_parallax_enable', 'ui' => array('panel' => 2, 'text' => array('header' => __('Enable parallax', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable parallax effect on background image', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'bg_parallax_mobile_enable', 'ui' => array('panel' => 2, 'text' => array('header' => __('Enable parallax on mobile devices', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable parallax on mobile devices', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'bg_parallax_speed', 'ui' => array('panel' => 2, 'text' => array('header' => __('Parallax speed', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Speed of parallax effect', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'slider', 'value' => 30, 'option' => array('min' => 0, 'max' => 100))), 'shortcode' => array('default' => '30')), array('id' => 'video_format_webm', 'ui' => array('panel' => 3, 'group' => 2, 'text' => array('label' => __('Format WEBM', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-file'))), array('id' => 'video_format_ogg', 'ui' => array('panel' => 3, 'group' => 2, 'text' => array('label' => __('Format OGG', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-file'))), array('id' => 'video_format_mp4', 'ui' => array('panel' => 3, 'group' => 2, 'text' => array('label' => __('Format MP4', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-file'))), array('id' => 'video_poster', 'ui' => array('panel' => 3, 'text' => array('header' => __('Poster', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Click on button to select image', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-image'))), array('id' => 'video_autoplay', 'ui' => array('panel' => 3, 'text' => array('header' => __('Autoplay', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('If enabled, the video will automatically begin to play back as soon as it can do so without stopping to finish loading the data', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'video_loop', 'ui' => array('panel' => 3, 'text' => array('header' => __('Loop', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('If enabled, upon reaching the end of the video, automatically seek back to the start', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'video_muted', 'ui' => array('panel' => 3, 'text' => array('header' => __('Muted', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('If enabled, the audio will be initially silenced', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'video_control', 'ui' => array('panel' => 3, 'text' => array('header' => __('Controls', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('If enabled, control buttons (play, mute etc.) will be visible', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'video_mobile_enable', 'ui' => array('panel' => 3, 'text' => array('header' => __('Enable video on mobile devices', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable video on mobile devices', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'bg_color', 'ui' => array('panel' => 4, 'text' => array('header' => __('Background color', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Background color in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))), array('id' => 'overlay_color', 'ui' => array('panel' => 4, 'group' => 3, 'text' => array('label' => __('Overlay color in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))), array('id' => 'padding_top', 'ui' => array('panel' => 5, 'group' => 1, 'text' => array('label' => __('Top', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '4')))), array('id' => 'padding_right', 'ui' => array('panel' => 5, 'group' => 1, 'text' => array('label' => __('Right', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '4')))), array('id' => 'padding_bottom', 'ui' => array('panel' => 5, 'group' => 1, 'text' => array('label' => __('Bottom', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '4')))), array('id' => 'padding_left', 'ui' => array('panel' => 5, 'group' => 1, 'text' => array('label' => __('Left', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '4')))), array('id' => 'border_top_style', 'ui' => array('panel' => 5, 'group' => 4, 'text' => array('label' => __('Style:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Border->style))))), array('id' => 'border_top_width', 'ui' => array('panel' => 5, 'group' => 4, 'text' => array('label' => __('Width in pixels:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 3)))), array('id' => 'border_top_color', 'ui' => array('panel' => 5, 'group' => 4, 'text' => array('label' => __('Color in HEX:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))), array('id' => 'border_right_style', 'ui' => array('panel' => 5, 'group' => 5, 'text' => array('label' => __('Style:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Border->style))))), array('id' => 'border_right_width', 'ui' => array('panel' => 5, 'group' => 5, 'text' => array('label' => __('Width in pixels:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 3)))), array('id' => 'border_right_color', 'ui' => array('panel' => 5, 'group' => 5, 'text' => array('label' => __('Color in HEX:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))), array('id' => 'border_bottom_style', 'ui' => array('panel' => 5, 'group' => 6, 'text' => array('label' => __('Style:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Border->style))))), array('id' => 'border_bottom_width', 'ui' => array('panel' => 5, 'group' => 6, 'text' => array('label' => __('Width in pixels:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 3)))), array('id' => 'border_bottom_color', 'ui' => array('panel' => 5, 'group' => 6, 'text' => array('label' => __('Color in HEX:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))), array('id' => 'border_left_style', 'ui' => array('panel' => 5, 'group' => 7, 'text' => array('label' => __('Style:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Border->style))))), array('id' => 'border_left_width', 'ui' => array('panel' => 5, 'group' => 7, 'text' => array('label' => __('Width in pixels:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 3)))), array('id' => 'border_left_color', 'ui' => array('panel' => 5, 'group' => 7, 'text' => array('label' => __('Color in HEX:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))))));
parent::__construct();
}
示例13: __construct
function __construct()
{
$Easing = new PBEasing();
$this->style = array('jquery-flexslider' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'flexslider.css'), 'flexslider' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'style.css'));
$this->script = array('jquery-flexslider' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'jquery.flexslider-min.js'), 'flexslider' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'PB.FlexSlider.js'));
$this->animation = array('fade' => __('Fade', PLUGIN_PAGE_BUILDER_DOMAIN), 'slide' => __('Slide', PLUGIN_PAGE_BUILDER_DOMAIN));
$this->direction = array('horizontal' => __('Horizontal', PLUGIN_PAGE_BUILDER_DOMAIN), 'vertical' => __('Vertical', PLUGIN_PAGE_BUILDER_DOMAIN));
$this->component = array('name' => __('FlexSlider', PLUGIN_PAGE_BUILDER_DOMAIN), 'description' => __('Displays FlexSlider', PLUGIN_PAGE_BUILDER_DOMAIN), 'structure' => array('window' => array('title' => __('FlexSlider', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array(array('id' => 'image', 'ui' => array('text' => array('header' => __('Images', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Click on below button to create gallery with images to the slider', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-gallery'))), array('id' => 'image_size', 'ui' => array('text' => array('header' => __('Image size', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select image size', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'image-size')), 'shortcode' => array('default' => PBComponentData::get($this->getComponentId(), 'image_default'))), array('id' => 'preloader_enable', 'ui' => array('text' => array('header' => __('Preloader', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable image slider preloader', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'url', 'ui' => array('text' => array('header' => __('URL', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => array(__('URL of site which has to be open after clicking on each image.', PLUGIN_PAGE_BUILDER_DOMAIN), __('You can set URL of separate image during editing it via Media Library.', PLUGIN_PAGE_BUILDER_DOMAIN))))), array('id' => 'animation', 'ui' => array('text' => array('header' => __('Animation', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select animation type', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($this->animation)))), 'shortcode' => array('default' => 'fade')), array('id' => 'easing', 'ui' => array('text' => array('header' => __('Easing', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Determines the easing method used in transitions', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => PBHelper::extractDictionary($Easing->easingType)))), 'shortcode' => array('default' => 'swing')), array('id' => 'direction', 'ui' => array('text' => array('header' => __('Direction', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select the sliding direction', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => $this->direction))), 'shortcode' => array('default' => 'horizontal')), array('id' => 'start_at', 'ui' => array('text' => array('header' => __('Start at', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('The slide that the slider should start on', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 3))), 'shortcode' => array('default' => '0')), array('id' => 'slideshow_speed', 'ui' => array('text' => array('header' => __('Slideshow speed', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Set the speed of the slideshow cycling in milliseconds.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('default' => '7000')), array('id' => 'animation_speed', 'ui' => array('text' => array('header' => __('Animation speed', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Set the speed of animations in milliseconds.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('default' => '600')), array('id' => 'init_delay', 'ui' => array('text' => array('header' => __('Initialization delay', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Set an initialization delay in milliseconds.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('default' => '0')), array('id' => 'reverse', 'ui' => array('text' => array('header' => __('Reverse', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Reverse the animation direction', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'animation_loop', 'ui' => array('text' => array('header' => __('Animation loop', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'smooth_height', 'ui' => array('text' => array('header' => __('Smooth height', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Allow height of the slider to animate smoothly in horizontal mode', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'slideshow', 'ui' => array('text' => array('header' => __('Slideshow', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Animate slider automatically', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'randomize', 'ui' => array('text' => array('header' => __('Randomize', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Randomize slide order', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'pause_on_action', 'ui' => array('text' => array('header' => __('Pause on action', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Pause the slideshow when interacting with control elements', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'pause_on_hover', 'ui' => array('text' => array('header' => __('Pause on hover', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Pause the slideshow when hovering over slider, then resume when no longer hovering', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'use_css', 'ui' => array('text' => array('header' => __('Use CSS', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Slider will use CSS3 transitions if available', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'touch', 'ui' => array('text' => array('header' => __('Touch', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Allow touch swipe navigation of the slider on touch-enabled devices', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'control_nav', 'ui' => array('text' => array('header' => __('Control navigation', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable control (1,2,3 ...) navigation', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'direction_nav', 'ui' => array('text' => array('header' => __('Direction navigation', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enbale or disable direction (previous/next slide) navigation', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'keyboard', 'ui' => array('text' => array('header' => __('Keyboard', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Allow slider navigating via keyboard left/right keys', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'multiple_keyboard', 'ui' => array('text' => array('header' => __('Multiple keyboard', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => array(__('Allow keyboard navigation to affect multiple sliders.', PLUGIN_PAGE_BUILDER_DOMAIN), __('Default behavior cuts out keyboard navigation with more than one slider present.', PLUGIN_PAGE_BUILDER_DOMAIN))), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'mousewheel', 'ui' => array('text' => array('header' => __('Mousewheel', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __(' Allows slider navigating via mousewheel.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'css_class', 'ui' => array('text' => array('header' => __('CSS class', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('List of CSS classes defined in CSS files separated by space', PLUGIN_PAGE_BUILDER_DOMAIN)))))));
parent::__construct();
}
示例14: __construct
function __construct()
{
$Layout = new PBLayout();
$ImageHover = new PBImageHover();
$this->style = array('gallery' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'style.css'));
$this->script = array('gallery' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'PB.Gallery.js'));
$this->layout = $Layout->getMainLayout();
$this->component = array('name' => __('Gallery', PLUGIN_PAGE_BUILDER_DOMAIN), 'description' => __('Displays Gallery', PLUGIN_PAGE_BUILDER_DOMAIN), 'structure' => array('window' => array('title' => __('Gallery', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array(array('id' => 'image', 'ui' => array('text' => array('header' => __('Images', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Click on below button to create gallery', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-gallery'))), array('id' => 'image_size', 'ui' => array('text' => array('header' => __('Image size', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select image size', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'image-size')), 'shortcode' => array('default' => PBComponentData::get($this->getComponentId(), 'image_default'))), array('id' => 'layout', 'ui' => array('text' => array('header' => __('Layout', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select layout of the images in gallery', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($this->layout, 'name')))), 'shortcode' => array('default' => '33x33x33')), array('id' => 'layout_full_width_enable', 'ui' => array('text' => array('header' => __('Layout full width', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable full width layout (without margins between columns)', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'preloader_enable', 'ui' => array('text' => array('header' => __('Preloader', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable preloader on images', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'hover_enable', 'ui' => array('text' => array('header' => __('Hover', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable hover on images', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'hover_type', 'ui' => array('text' => array('header' => __('Hover type', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select hover for the images in gallery', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => PBHelper::extractDictionary($ImageHover->type)))), 'shortcode' => array('default' => PBComponentData::get($this->getComponentId(), 'image_hover_type_default'))), array('id' => 'caption_enable', 'ui' => array('text' => array('header' => __('Caption', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable displaying captions under images', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'description_enable', 'ui' => array('text' => array('header' => __('Description', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable displaying descriptions under images', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'css_class', 'ui' => array('text' => array('header' => __('CSS class', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('List of CSS classes defined in CSS files separated by space', PLUGIN_PAGE_BUILDER_DOMAIN)))))));
parent::__construct();
}
示例15: __construct
function __construct()
{
$Layout = new PBLayout();
$Easing = new PBEasing();
$CarouFredSel = new PBCarouFredSel();
$this->style = array('counter-box' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'style.css'));
$this->script = array('counter-box' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'PB.CounterBox.js'));
$this->layout = $Layout->getMainLayout();
$this->component = array('name' => __('Counter Box', PLUGIN_PAGE_BUILDER_DOMAIN), 'description' => __('Displays Counter Box', PLUGIN_PAGE_BUILDER_DOMAIN), 'structure' => array('window' => array('title' => __('Counter Box', PLUGIN_PAGE_BUILDER_DOMAIN)), 'ui' => array('panel' => array(1 => array('header' => __('General', PLUGIN_PAGE_BUILDER_DOMAIN)), 2 => array('header' => __('Carousel', PLUGIN_PAGE_BUILDER_DOMAIN)), 3 => array('header' => __('Waypoints', PLUGIN_PAGE_BUILDER_DOMAIN)), 4 => array('header' => __('Items', PLUGIN_PAGE_BUILDER_DOMAIN))), 'multi' => array(1 => array('header' => __('Item', PLUGIN_PAGE_BUILDER_DOMAIN)))), 'element' => array(array('id' => 'layout', 'ui' => array('panel' => 1, 'text' => array('header' => __('Layout', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select layout of the counter boxes.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => PBHelper::extractDictionary($this->layout, 'name')))), 'shortcode' => array('default' => '100')), array('id' => 'css_class', 'ui' => array('panel' => 1, 'text' => array('header' => __('CSS class', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('List of CSS classes defined in CSS files separated by space.', PLUGIN_PAGE_BUILDER_DOMAIN)))), array('id' => 'carousel_enable', 'ui' => array('panel' => 2, 'text' => array('header' => __('Enable carousel', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable carousel', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => 1)), array('id' => 'carousel_autoplay_enable', 'ui' => array('panel' => 2, 'text' => array('header' => __('Autoplay', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Autoplay', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => 0)), array('id' => 'carousel_circular_enable', 'ui' => array('panel' => 2, 'text' => array('header' => __('Circular', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Determines whether the carousel should be circular', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => 1)), array('id' => 'carousel_infinite_enable', 'ui' => array('panel' => 2, 'text' => array('header' => __('Infinite', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Determines whether the carousel should be infinite', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => 1)), array('id' => 'carousel_scroll_pause_hover', 'ui' => array('panel' => 2, 'text' => array('header' => __('Pause on hover', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Determines whether the timeout between transitions should be paused', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => 1)), array('id' => 'carousel_scroll_fx', 'ui' => array('panel' => 2, 'text' => array('header' => __('Scroll effect', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Indicates which effect to use for the transition', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($CarouFredSel->scrollFX)))), 'shortcode' => array('default' => 'scroll')), array('id' => 'carousel_scroll_easing', 'ui' => array('panel' => 2, 'text' => array('header' => __('Easing', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Indicates which easing function to use for the transition', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => PBHelper::extractDictionary($Easing->easingType)))), 'shortcode' => array('default' => 'swing')), array('id' => 'carousel_scroll_duration', 'ui' => array('panel' => 2, 'text' => array('header' => __('Duration', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Determines the duration of the transition in milliseconds', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('default' => '500')), array('id' => 'waypoint_enable', 'ui' => array('panel' => 3, 'text' => array('header' => __('Animation', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Run animation on start', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => 1)), array('id' => 'waypoint_offset_trigger', 'ui' => array('panel' => 3, 'text' => array('header' => __('Offset', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('This option determines how far the top of the element must be from the top of the viewport to trigger the animation', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 10))), 'shortcode' => array('default' => '90%')), array('id' => 'waypoint_duration', 'ui' => array('panel' => 3, 'text' => array('header' => __('Duration', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Duration of the animation in milliseconds', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('default' => '500')), array('id' => 'waypoint_easing', 'ui' => array('panel' => 3, 'text' => array('header' => __('Easing', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Easing type of animation', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => PBHelper::extractDictionary($Easing->easingType)))), 'shortcode' => array('default' => 'swing')), array('id' => 'header', 'ui' => array('panel' => 4, 'multi' => 1, 'text' => array('header' => __('Header', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => '*item/item_header/@content')), array('id' => 'content', 'ui' => array('panel' => 4, 'multi' => 1, 'text' => array('header' => __('Content', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'textarea')), 'shortcode' => array('path' => '*item/item_content/@content')), array('id' => 'value', 'ui' => array('panel' => 4, 'multi' => 1, 'text' => array('header' => __('Value', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('path' => '*item/@value')), array('id' => 'character_before', 'ui' => array('panel' => 4, 'multi' => 1, 'text' => array('header' => __('Character before', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enter character which has to be visible before value.', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => '*item/@character_before')), array('id' => 'character_after', 'ui' => array('panel' => 4, 'multi' => 1, 'text' => array('header' => __('Character after', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enter character which has to be visible after value.', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => '*item/@character_after')), array('id' => 'text_counter_enable', 'ui' => array('panel' => 4, 'multi' => 1, 'text' => array('header' => __('Enable text counter', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable text counter.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => 1, 'path' => '*item/@text_counter_enable')), array('id' => 'graphic_counter_enable', 'ui' => array('panel' => 4, 'multi' => 1, 'text' => array('header' => __('Enable graphic counter', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable graphic counter.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => 1, 'path' => '*item/@graphic_counter_enable')))));
parent::__construct();
}