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();
 }
 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();
 }
 function __construct()
 {
     $this->icon_url = PBComponentData::get($this->getComponentId(), 'icon_url');
     $this->icon_url_retina = PBComponentData::get($this->getComponentId(), 'icon_url_retina');
     $this->icon_path = PBComponentData::get($this->getComponentId(), 'icon_path');
     $this->icon_file = PBComponentData::setFile($this->getComponentId(), 'icon_file', $this->icon_path);
     $this->script = array('notice' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'PB.Notice.js', 'dependencies' => array('jquery')), 'jquery-countdown' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'jquery.countdown.min.js', 'dependencies' => array('jquery')));
     $this->style = array('notice' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'style.css'));
     $this->component = array('name' => __('Notice', PLUGIN_PAGE_BUILDER_DOMAIN), 'description' => __('Displays Notice', PLUGIN_PAGE_BUILDER_DOMAIN), 'structure' => array('window' => array('title' => __('Notice', 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' => __('Box', PLUGIN_PAGE_BUILDER_DOMAIN)), 5 => array('header' => __('Icon', PLUGIN_PAGE_BUILDER_DOMAIN)), 6 => array('header' => __('Timeline', PLUGIN_PAGE_BUILDER_DOMAIN)), 7 => array('header' => __('Close button', PLUGIN_PAGE_BUILDER_DOMAIN))), 'group' => array(1 => array('header' => __('Border top', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Border top settings (width, color) of the box', PLUGIN_PAGE_BUILDER_DOMAIN)), 2 => array('header' => __('Border right', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Border right settings (width, color) of the box', PLUGIN_PAGE_BUILDER_DOMAIN)), 3 => array('header' => __('Border bottom', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Border bottom settings (width, color) of the box', PLUGIN_PAGE_BUILDER_DOMAIN)), 4 => array('header' => __('Border left', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Border left settings (width, color) of the box', 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' => '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' => 'box_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')), 'shortcode' => array('path' => '@box_bg_color')), array('id' => 'box_border_top_width', 'ui' => array('panel' => 4, 'group' => 1, 'text' => array('label' => __('Width in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '4'))), 'shortcode' => array('path' => '@box_border_top_width')), array('id' => 'box_border_top_color', 'ui' => array('panel' => 4, 'group' => 1, 'text' => array('label' => __('Color in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker')), 'shortcode' => array('path' => '@box_border_top_color')), array('id' => 'box_border_right_width', 'ui' => array('panel' => 4, 'group' => 2, 'text' => array('label' => __('Width in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '4'))), 'shortcode' => array('path' => '@box_border_right_width')), array('id' => 'box_border_right_color', 'ui' => array('panel' => 4, 'group' => 2, 'text' => array('label' => __('Color in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker')), 'shortcode' => array('path' => '@box_border_right_color')), array('id' => 'box_border_bottom_width', 'ui' => array('panel' => 4, 'group' => 3, 'text' => array('label' => __('Width in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '4'))), 'shortcode' => array('path' => '@box_border_bottom_width')), array('id' => 'box_border_bottom_color', 'ui' => array('panel' => 4, 'group' => 3, 'text' => array('label' => __('Color in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker')), 'shortcode' => array('path' => '@box_border_bottom_color')), array('id' => 'box_border_left_width', 'ui' => array('panel' => 4, 'group' => 4, 'text' => array('label' => __('Width in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '4'))), 'shortcode' => array('path' => '@box_border_left_width')), array('id' => 'box_border_left_color', 'ui' => array('panel' => 4, 'group' => 4, 'text' => array('label' => __('Color in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker')), 'shortcode' => array('path' => '@box_border_left_color')), array('id' => 'icon', 'ui' => array('panel' => 5, 'text' => array('header' => __('Icon', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select an icon', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => $this->icon_file))), 'shortcode' => array('path' => '@icon', 'default' => 'tick_alt.png')), array('id' => 'icon_bg_color', 'ui' => array('panel' => 5, 'text' => array('header' => __('Background color', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Background color of the icon', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker')), 'shortcode' => array('path' => '@icon_bg_color')), array('id' => 'timeline_enable', 'ui' => array('panel' => 6, 'text' => array('header' => __('Enable timeline', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('path' => '@timeline_enable', 'default' => '0')), array('id' => 'timeline_time_to_close', 'ui' => array('panel' => 6, 'text' => array('header' => __('Time to close', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Time to close in seconds', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '4'))), 'shortcode' => array('path' => '@timeline_time_to_close')), array('id' => 'timeline_bg_color', 'ui' => array('panel' => 6, 'text' => array('header' => __('Background color', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Background color of the timeline in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker')), 'shortcode' => array('path' => '@timeline_bg_color')), array('id' => 'timeline_height', 'ui' => array('panel' => 6, 'text' => array('header' => __('Timeline height', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Timeline height in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '3'))), 'shortcode' => array('path' => '@timeline_height')), array('id' => 'close_button_enable', 'ui' => array('panel' => 7, 'text' => array('header' => __('Enable close button', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('path' => '@close_button_enable', 'default' => '1')), array('id' => 'close_button_text_color', 'ui' => array('panel' => 7, 'text' => array('header' => __('Text color', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Text color of the close button in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker')), 'shortcode' => array('path' => '@close_button_text_color')))));
     parent::__construct();
 }
 function __construct()
 {
     $Align = new PBAlign();
     $Border = new PBBorder();
     $Header = new PBheader();
     $this->style = array('box' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'style.css'));
     $this->script = array('box' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'PB.Box.js'));
     $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->component = array('name' => __('Box', PLUGIN_PAGE_BUILDER_DOMAIN), 'description' => __('Displays box', PLUGIN_PAGE_BUILDER_DOMAIN), 'structure' => array('window' => array('title' => __('Box', PLUGIN_PAGE_BUILDER_DOMAIN)), 'ui' => array('panel' => array(1 => array('header' => __('General', PLUGIN_PAGE_BUILDER_DOMAIN)), 2 => array('header' => __('Icon', PLUGIN_PAGE_BUILDER_DOMAIN)), 3 => array('header' => __('Styles', PLUGIN_PAGE_BUILDER_DOMAIN))), 'group' => array(1 => array('header' => __('Border top', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Border top properties in order: style, width, color, radius.', PLUGIN_PAGE_BUILDER_DOMAIN)), 2 => array('header' => __('Border right', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Border right properties in order: style, width, color, radius.', PLUGIN_PAGE_BUILDER_DOMAIN)), 3 => array('header' => __('Border bottom', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Border bottom properties in order: style, width, color, radius.', PLUGIN_PAGE_BUILDER_DOMAIN)), 4 => array('header' => __('Border left', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Border left properties in order: style, width, color, radius.', PLUGIN_PAGE_BUILDER_DOMAIN)), 5 => array('header' => __('Padding', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Padding of the box in pixels in order: top, right, bottom, left.', PLUGIN_PAGE_BUILDER_DOMAIN)), 6 => array('header' => __('Text colors', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Text colors in HEX.', 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' => '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' => __('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(), 'header_important_default'), 'path' => 'header/@important')), array('id' => 'header_align', 'ui' => array('panel' => 1, 'text' => array('header' => __('Align of the header', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Align->align)))), 'shortcode' => array('path' => 'header/@align', 'default' => 'left')), array('id' => 'text', 'ui' => array('panel' => 1, 'text' => array('header' => __('Content', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'editor')), 'visibility' => 1, 'shortcode' => array('path' => 'text/@content')), array('id' => 'icon_enable', 'ui' => array('panel' => 2, 'text' => array('header' => __('Enable icon', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'icon', 'ui' => array('panel' => 2, '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'], 'use_default' => false)))), array('id' => 'icon_size', 'ui' => array('panel' => 2, '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' => 2, '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' => 'icon_background_position', 'ui' => array('panel' => 2, 'text' => array('header' => __('Icon background position', PLUGIN_PAGE_BUILDER_DOMAIN)))), array('id' => 'background_color', 'ui' => array('panel' => 3, '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' => 'border_top_style', 'ui' => array('panel' => 3, 'group' => 1, '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' => 3, 'group' => 1, 'text' => array('label' => __('Width in pixels:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 3)))), array('id' => 'border_top_color', 'ui' => array('panel' => 3, 'group' => 1, 'text' => array('label' => __('Color in HEX:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))), array('id' => 'border_top_radius', 'ui' => array('panel' => 3, 'group' => 1, 'text' => array('label' => __('Radius in pixels:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 3)))), array('id' => 'border_right_style', 'ui' => array('panel' => 3, 'group' => 2, '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' => 3, 'group' => 2, 'text' => array('label' => __('Width in pixels:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 3)))), array('id' => 'border_right_color', 'ui' => array('panel' => 3, 'group' => 2, 'text' => array('label' => __('Color in HEX:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))), array('id' => 'border_right_radius', 'ui' => array('panel' => 3, 'group' => 2, 'text' => array('label' => __('Radius in pixels:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 3)))), array('id' => 'border_bottom_style', 'ui' => array('panel' => 3, 'group' => 3, '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' => 3, 'group' => 3, 'text' => array('label' => __('Width in pixels:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 3)))), array('id' => 'border_bottom_color', 'ui' => array('panel' => 3, 'group' => 3, 'text' => array('label' => __('Color in HEX:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))), array('id' => 'border_bottom_radius', 'ui' => array('panel' => 3, 'group' => 3, 'text' => array('label' => __('Radius in pixels:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 3)))), array('id' => 'border_left_style', 'ui' => array('panel' => 3, 'group' => 4, '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' => 3, 'group' => 4, 'text' => array('label' => __('Width in pixels:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 3)))), array('id' => 'border_left_color', 'ui' => array('panel' => 3, 'group' => 4, 'text' => array('label' => __('Color in HEX:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))), array('id' => 'border_left_radius', 'ui' => array('panel' => 3, 'group' => 4, 'text' => array('label' => __('Radius in pixels:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 3)))), array('id' => 'padding_top', 'ui' => array('panel' => 3, 'group' => 5, 'text' => array('label' => __('Top:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 3)))), array('id' => 'padding_right', 'ui' => array('panel' => 3, 'group' => 5, 'text' => array('label' => __('Right:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 3)))), array('id' => 'padding_bottom', 'ui' => array('panel' => 3, 'group' => 5, 'text' => array('label' => __('Bottom:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 3)))), array('id' => 'padding_left', 'ui' => array('panel' => 3, 'group' => 5, 'text' => array('label' => __('Left:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 3)))), array('id' => 'text_color_content', 'ui' => array('panel' => 3, 'group' => 6, 'text' => array('label' => __('Content text color:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker')), 'shortcode' => array('path' => 'text/@text_color')), array('id' => 'text_color_header', 'ui' => array('panel' => 3, 'group' => 6, 'text' => array('label' => __('Header text color:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker')), 'shortcode' => array('path' => 'header/@text_color')), array('id' => 'text_color_link', 'ui' => array('panel' => 3, 'group' => 6, 'text' => array('label' => __('Link text color:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))), array('id' => 'text_color_link_hover', 'ui' => array('panel' => 3, 'group' => 6, 'text' => array('label' => __('Link text color on hover:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))))));
     parent::__construct();
 }
 function __construct()
 {
     $Font = new PBFont();
     $Border = new PBBorder();
     $Window = new PBWindow();
     $this->style = array('button' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'style.css'));
     $this->script = array('button' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'PB.Button.js'));
     $this->buttonSize = array('tiny' => array(__('Tiny', PLUGIN_PAGE_BUILDER_DOMAIN)), 'small' => array(__('Small', PLUGIN_PAGE_BUILDER_DOMAIN)), 'medium' => array(__('Medium', PLUGIN_PAGE_BUILDER_DOMAIN)), 'large' => array(__('Large', PLUGIN_PAGE_BUILDER_DOMAIN)));
     $this->buttonIconPosition = array('left' => array(__('Left', PLUGIN_PAGE_BUILDER_DOMAIN)), 'right' => array(__('Right', PLUGIN_PAGE_BUILDER_DOMAIN)));
     $this->icon_url = PBComponentData::get($this->getComponentId(), 'icon_url');
     $this->icon_url_retina = PBComponentData::get($this->getComponentId(), 'icon_url_retina');
     $this->icon_path = PBComponentData::get($this->getComponentId(), 'icon_path');
     $this->icon_file = PBComponentData::setFile($this->getComponentId(), 'icon_file', $this->icon_path);
     $this->component = array('name' => __('Button', PLUGIN_PAGE_BUILDER_DOMAIN), 'description' => __('Displays button', PLUGIN_PAGE_BUILDER_DOMAIN), 'structure' => array('window' => array('title' => __('Button', PLUGIN_PAGE_BUILDER_DOMAIN)), 'ui' => array('panel' => array(1 => array('header' => __('General', PLUGIN_PAGE_BUILDER_DOMAIN)), 2 => array('header' => __('Icon', PLUGIN_PAGE_BUILDER_DOMAIN)), 3 => array('header' => __('Styles', PLUGIN_PAGE_BUILDER_DOMAIN))), 'group' => array(1 => array('header' => __('Normal state', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Styles used in normal (default) state', PLUGIN_PAGE_BUILDER_DOMAIN)), 2 => array('header' => __('Hover state', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Styles used in hover state', PLUGIN_PAGE_BUILDER_DOMAIN)))), 'element' => array(array('id' => 'label', 'ui' => array('panel' => 1, 'text' => array('header' => __('Label', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Label of the button', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => '@content')), array('id' => 'src', 'ui' => array('panel' => 1, 'text' => array('header' => __('URL', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('URL address of a link', PLUGIN_PAGE_BUILDER_DOMAIN)))), array('id' => 'src_target', 'ui' => array('panel' => 1, 'text' => array('header' => __('URL target', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Window->linkTarget)))), 'shortcode' => array('default' => '_self')), array('id' => 'size', 'ui' => array('panel' => 1, 'text' => array('header' => __('Button size', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($this->buttonSize)))), 'shortcode' => array('default' => 'medium')), 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' => 'arrow_enable', 'ui' => array('panel' => 2, 'text' => array('header' => __('Enable arrow', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'icon_enable', 'ui' => array('panel' => 2, 'text' => array('header' => __('Enable icon', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '0')), array('id' => 'icon', 'ui' => array('panel' => 2, 'text' => array('header' => __('Icon', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => PBHelper::extractDictionary($this->icon_file))))), array('id' => 'icon_position', 'ui' => array('panel' => 2, 'text' => array('header' => __('Icon position', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($this->buttonIconPosition)))), 'shortcode' => array('default' => 'left')), array('id' => 'text_color', 'ui' => array('panel' => 3, 'group' => 1, 'text' => array('label' => __('Text color in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))), array('id' => 'bg_color', 'ui' => array('panel' => 3, 'group' => 1, 'text' => array('label' => __('Background color in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))), array('id' => 'border_style', 'ui' => array('panel' => 3, 'group' => 1, 'text' => array('label' => __('Border style:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Border->style)))), 'shortcode' => array('default' => '-1')), array('id' => 'border_color', 'ui' => array('panel' => 3, 'group' => 1, 'text' => array('label' => __('Border color in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))), array('id' => 'border_width', 'ui' => array('panel' => 3, 'group' => 1, 'text' => array('label' => __('Border width in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '3'))), 'shortcode' => array('default' => '0')), array('id' => 'border_radius', 'ui' => array('panel' => 3, 'group' => 1, 'text' => array('label' => __('Border radius in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '3'))), 'shortcode' => array('default' => '0')), array('id' => 'font_weight', 'ui' => array('panel' => 3, 'group' => 1, 'text' => array('label' => __('Font weight', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Font->weight)))), 'shortcode' => array('default' => '-1')), array('id' => 'text_color_hover', 'ui' => array('panel' => 3, 'group' => 2, 'text' => array('label' => __('Text color in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))), array('id' => 'bg_color_hover', 'ui' => array('panel' => 3, 'group' => 2, 'text' => array('label' => __('Background color in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))), array('id' => 'border_style_hover', 'ui' => array('panel' => 3, 'group' => 2, 'text' => array('label' => __('Border style:', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Border->style)))), 'shortcode' => array('default' => '-1')), array('id' => 'border_color_hover', 'ui' => array('panel' => 3, 'group' => 2, 'text' => array('label' => __('Border color in HEX', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'color-picker'))), array('id' => 'border_width_hover', 'ui' => array('panel' => 3, 'group' => 2, 'text' => array('label' => __('Border width in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '3'))), 'shortcode' => array('default' => '0')), array('id' => 'border_radius_hover', 'ui' => array('panel' => 3, 'group' => 2, 'text' => array('label' => __('Border radius in pixels', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => '3'))), 'shortcode' => array('default' => '0')), array('id' => 'font_weight_hover', 'ui' => array('panel' => 3, 'group' => 2, 'text' => array('label' => __('Font weight', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($Font->weight)))), 'shortcode' => array('default' => '-1')))));
     parent::__construct();
 }
 function __construct()
 {
     $Easing = new PBEasing();
     $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);
     if (PBData::get('retina_ready') == 1) {
         $this->icon_url_retina = PBComponentData::get($this->getComponentId(), 'icon_url_retina');
     }
     add_theme_support('menus');
     add_filter('wp_setup_nav_menu_item', array($this, 'setupNavigationMenuItemField'));
     add_action('wp_update_nav_menu_item', array($this, 'updateNavigationMenuItemField'), 10, 3);
     add_filter('wp_edit_nav_menu_walker', array($this, 'editNavigationMenuWalker'), 10, 2);
     $this->style = array('menu' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'style.css'), 'responsive-nav' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'responsive-nav.css'));
     $this->script = array('responsive-nav' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'responsive-nav.min.js'), 'superfish' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'superfish.js'), 'menu' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'PB.Menu.js'));
     $ResponsiveMode = new PBResponsiveMode();
     $this->responiveMode = $ResponsiveMode->getDictionary();
     $this->component = array('name' => __('Menu + Logo', PLUGIN_PAGE_BUILDER_DOMAIN), 'description' => __('Displays Menu and logo', PLUGIN_PAGE_BUILDER_DOMAIN), 'structure' => array('window' => array('title' => __('Menu + Logo', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array(array('id' => 'logo_src', 'ui' => array('text' => array('header' => __('Logo', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select a image file', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-image'))), array('id' => 'menu_id', 'ui' => array('text' => array('header' => __('Menu', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select a menu', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($this->getMenuDictionary()))))), array('id' => 'responsive_mode', 'ui' => array('text' => array('header' => __('Responsive menu', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable responsive menu when screen width (in px) is less than selected', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($this->responiveMode), 'use_default' => true))), 'shortcode' => array('default' => PBComponentData::get($this->getComponentId(), 'responsive_menu_default'))), array('id' => 'sticky_enable', 'ui' => array('text' => array('header' => __('Sticky menu', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable sticky menu', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'hide_scroll_enable', 'ui' => array('text' => array('header' => __('Hide menu on scroll', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Hide menu when page is scrolled', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'menu_animation_enable', 'ui' => array('text' => array('header' => __('Menu animation', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable menu animation', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'menu_animation_speed_open', 'ui' => array('text' => array('header' => __('Menu opening speed', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Speed of the opening animation in miliseconds', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('default' => '400')), array('id' => 'menu_animation_speed_close', 'ui' => array('text' => array('header' => __('Menu closing speed', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Speed of the closing animation in miliseconds', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('default' => '200')), array('id' => 'menu_animation_delay', 'ui' => array('text' => array('header' => __('Menu delay', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('The delay in milliseconds that the mouse can remain outside a submenu without it closing', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('default' => '800')), array('id' => 'scroll_animation_enable', 'ui' => array('text' => array('header' => __('Scrolling animation', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable animation during page scrolling (after clicking on menu item)', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'scroll_animation_speed', 'ui' => array('text' => array('header' => __('Scrolling speed', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Speed of the scrolling in miliseconds', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('default' => '1000')), array('id' => 'scroll_animation_easing', 'ui' => array('text' => array('header' => __('Scrolling easing', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Type of easing for scrolling animation.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => PBHelper::extractDictionary($Easing->easingType)))), 'shortcode' => array('default' => 'easeOutQuint')), 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();
 }
 function __construct()
 {
     $Easing = new PBEasing();
     $Layout = new PBLayout();
     $ImageHover = new PBImageHover();
     $this->social = array();
     $this->social_icon_url = PBComponentData::get($this->getComponentId(), 'social_icon_url');
     $this->social_icon_path = PBComponentData::get($this->getComponentId(), 'social_icon_path');
     $this->social_icon_file = PBComponentData::setFile($this->getComponentId(), 'social_icon_file', $this->social_icon_path);
     foreach ($this->social_icon_file as $value) {
         $pathinfo = pathinfo($this->social_icon_path . $value);
         $id = $pathinfo['filename'];
         $name = ucfirst(preg_replace(array('/-/', '/_/'), ' ', $pathinfo['filename']));
         $this->social[$id] = array($name, $value);
     }
     $this->template = array(1 => array(__('Template 1'), PLUGIN_PAGE_BUILDER_DOMAIN), 2 => array(__('Template 2'), PLUGIN_PAGE_BUILDER_DOMAIN), 3 => array(__('Template 3'), PLUGIN_PAGE_BUILDER_DOMAIN));
     $this->layout = $Layout->getMainLayout();
     $this->style = array('team' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'style.css'));
     $this->script = array('team' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'PB.Team.js'));
     $this->component = array('name' => __('Team', PLUGIN_PAGE_BUILDER_DOMAIN), 'description' => __('Displays Team', PLUGIN_PAGE_BUILDER_DOMAIN), 'structure' => array('window' => array('title' => __('Team', PLUGIN_PAGE_BUILDER_DOMAIN)), 'ui' => array('panel' => array(1 => array('header' => __('General', PLUGIN_PAGE_BUILDER_DOMAIN)), 2 => array('header' => __('Skills list', PLUGIN_PAGE_BUILDER_DOMAIN)))), 'element' => array(array('id' => 'template', 'ui' => array('panel' => 1, 'text' => array('header' => __('Template', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select one from the available team templates.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($this->template)))), 'shortcode' => array('default' => '1')), array('id' => 'layout', 'ui' => array('panel' => 1, 'text' => array('header' => __('Layout', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select layout for the team members (this option can be used only for <i>Template 3</i>).', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($this->layout, 'name')))), 'shortcode' => array('default' => '25x25x25x25')), array('id' => 'image_size', 'ui' => array('panel' => 1, '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' => 'category', 'ui' => array('panel' => 1, 'text' => array('header' => __('Category', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select one or more categories from which team members have to be retrieved.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'term', 'dictionary' => array('term' => PLUGIN_PAGE_BUILDER_CONTEXT . '_team_category')))), array('id' => 'preloader_enable', 'ui' => array('panel' => 1, '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('panel' => 1, '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('panel' => 1, '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' => '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' => 'skill_list_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' => 'skill_list_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' => 'skill_list_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' => 'skill_list_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')))));
     parent::__construct();
 }
 function __construct()
 {
     $this->icon = array();
     $this->social = array();
     $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'));
     if (PBComponentData::get($this->getComponentId(), 'icon_type') == 'gr') {
         $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']);
         foreach ($this->icon['file'] as $value) {
             $pathinfo = pathinfo($this->icon['path'] . $value);
             $name = ucfirst(preg_replace(array('/-/', '/_/'), ' ', $pathinfo['filename']));
             $this->social[$pathinfo['filename']] = array($name, $value);
         }
     } else {
         $this->social = array('behance' => array('Behance', 'behance'), 'deviantart' => array('Deviantart', 'deviantart'), 'digg' => array('Digg', 'digg'), 'dribbble' => array('DribbBle', 'dribbble'), 'facebook' => array('Facebook', 'facebook'), 'flickr' => array('Flickr', 'flickr'), 'foursquare' => array('Foursquare', 'foursquare'), 'googleplus' => array('Google+', 'google-plus'), 'instagram' => array('Instagram', 'instagram'), 'linkedin' => array('Linkedin', 'linkedin'), 'pinterest' => array('Pinterest', 'pinterest'), 'reddit' => array('Reddit', 'reddit'), 'rss' => array('RSS', 'rss'), 'skype' => array('Skype', 'skype'), 'soundcloud' => array('Soundcloud', 'soundcloud'), 'spotify' => array('Spotify', 'spotify'), 'stumbleupon' => array('Stumbleupon', 'stumbleupon'), 'tumblr' => array('Tumblr', 'tumblr'), 'twitter' => array('Twitter', 'twitter'), 'vimeo' => array('Vimeo', 'vimeo-square'), 'xing' => array('Xing', 'xing'), 'youtube' => array('Youtube', 'youtube'));
     }
     $Window = new PBWindow();
     $group = array(1 => array('header' => __('Dimension', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Dimension 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' => 'font_icon_size', 'ui' => array('panel' => 2, 'group' => 1, 'text' => array('label' => __('Icon size in pixels. Value 0 means that default size for will be used', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'slider', 'value' => 0, 'option' => array('min' => 0, 'max' => 200)))), 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' => 'icon_color', 'ui' => array('panel' => 2, 'group' => 2, 'text' => array('label' => __('Icon 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' => 'font_icon_color_hover', 'ui' => array('panel' => 2, 'group' => 3, 'text' => array('label' => __('Icon 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'))))));
     if (PBComponentData::get($this->getComponentId(), 'icon_type') === 'gr') {
         PBHelper::unsetComponentElementById($this->component['structure']['element'], array('font_icon_size', 'font_icon_color_hover', 'font_icon_color_hover'));
     }
     $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();
 }