예제 #1
0
 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()
 {
     $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();
 }
 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();
 }
 function __construct()
 {
     $Layout = new PBLayout();
     $Easing = new PBEasing();
     $CarouFredSel = new PBCarouFredSel();
     $this->style = array('testimonial' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'style.css'));
     $this->script = array('testimonial' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'PB.Testimonial.js'));
     $this->layout = $Layout->getMainLayout();
     $this->component = array('name' => __('Testimonials', PLUGIN_PAGE_BUILDER_DOMAIN), 'description' => __('Displays Testimonials', PLUGIN_PAGE_BUILDER_DOMAIN), 'structure' => array('window' => array('title' => __('Testimonials', 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' => __('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 testimonials', 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' => 'easeInQuad')), 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)), 'element' => array('attribute' => array('maxlength' => 5))), 'shortcode' => array('default' => '500')), array('id' => 'content', 'ui' => array('panel' => 3, 'multi' => 1, 'text' => array('header' => __('Content', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'textarea')), 'shortcode' => array('path' => '*item/item_content/@content')), array('id' => 'author_name', 'ui' => array('panel' => 3, 'multi' => 1, 'text' => array('header' => __('Author name', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => '*item/item_author/item_author_name/@content')), array('id' => 'author_position', 'ui' => array('panel' => 3, 'multi' => 1, 'text' => array('header' => __('Author position', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => '*item/item_author/item_author_position/@content')), array('id' => 'author_company', 'ui' => array('panel' => 3, 'multi' => 1, 'text' => array('header' => __('Author company', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => '*item/item_author/item_author_company/@content')))));
     parent::__construct();
 }
예제 #5
0
 function __construct()
 {
     $Layout = new PBLayout();
     $Background = new PBBackground();
     $this->style = array('class' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'style.css'));
     $this->script = array('class' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'PB.Class.js'));
     $this->currentIndex = 0;
     $this->currentLayout = null;
     $this->layout = $Layout->getMainLayout();
     $this->component = array('name' => __('Class', PLUGIN_PAGE_BUILDER_DOMAIN), 'description' => __('Displays Class', PLUGIN_PAGE_BUILDER_DOMAIN), 'structure' => array('window' => array('title' => __('Class', PLUGIN_PAGE_BUILDER_DOMAIN)), 'ui' => array('panel' => array(1 => array('header' => __('General', PLUGIN_PAGE_BUILDER_DOMAIN)), 2 => array('header' => __('Classes', PLUGIN_PAGE_BUILDER_DOMAIN))), 'multi' => array(1 => array('header' => __('Class details', 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 classes.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => PBHelper::extractDictionary($this->layout, 'name')))), 'shortcode' => array('default' => '50x50')), 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' => 'class_name', 'ui' => array('panel' => 2, 'multi' => 1, 'text' => array('header' => __('Class name', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => '*item/item_name/@content')), array('id' => 'class_label', 'ui' => array('panel' => 2, 'multi' => 1, 'text' => array('header' => __('Class label', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Caption displayed under name of the class', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => '*item/item_label/@content', 'default' => __('Class name', PLUGIN_PAGE_BUILDER_DOMAIN))), array('id' => 'item_attribute', 'ui' => array('panel' => 2, 'multi' => 1, 'text' => array('header' => __('Attributes', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => array(__('List of attributes (pairs in format name:value) separated by new line. E.g: Class size:15 <NEW_LINE> Years old:2-3', PLUGIN_PAGE_BUILDER_DOMAIN))), 'element' => array('type' => 'textarea')), 'shortcode' => array('path' => '*item/item_attribute/@content')), array('id' => 'item_image_url', 'ui' => array('panel' => 2, 'multi' => 1, 'text' => array('header' => __('Image URL', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-image')), 'shortcode' => array('path' => '*item/@image_url')), array('id' => 'item_image_position', 'ui' => array('panel' => 2, 'multi' => 1, 'text' => array('header' => __('Image position', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => '*item/@image_position')), array('id' => 'item_image_repeat', 'ui' => array('panel' => 2, 'multi' => 1, 'text' => array('header' => __('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('path' => '*item/@image_repeat')), array('id' => 'item_image_size_a', 'ui' => array('panel' => 2, 'multi' => 1, 'text' => array('header' => __('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)))), 'shortcode' => array('path' => '*item/@image_size_a')), array('id' => 'item_image_size_b', 'ui' => array('panel' => 2, 'multi' => 1, 'text' => array('header' => __('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)))), 'shortcode' => array('path' => '*item/@image_size_b')), array('id' => 'item_button_label', 'ui' => array('panel' => 2, 'multi' => 1, 'text' => array('header' => __('Button label', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => '*item/item_button/@content', 'default' => __('Read more', PLUGIN_PAGE_BUILDER_DOMAIN))), array('id' => 'item_button_url', 'ui' => array('panel' => 2, 'multi' => 1, 'text' => array('header' => __('Button URL', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => '*item/item_button/@url')))));
     parent::__construct();
 }
 function __construct()
 {
     $Easing = new PBEasing();
     $Layout = new PBLayout();
     $ImageHover = new PBImageHover();
     $this->script = array('pb-recent-post' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'PB.RecentPost.js', 'dependencies' => array('jquery')));
     $this->style = array('pb-recent-post' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'style.css'));
     $this->layout = $Layout->getMainLayout();
     $this->template = array('1' => array(__('Template 1'), PLUGIN_PAGE_BUILDER_DOMAIN), '2' => array(__('Template 2'), PLUGIN_PAGE_BUILDER_DOMAIN));
     $this->component = array('name' => __('Recent Posts', PLUGIN_PAGE_BUILDER_DOMAIN), 'description' => __('Displays Recent Post', PLUGIN_PAGE_BUILDER_DOMAIN), 'structure' => array('window' => array('title' => __('Recent Posts', PLUGIN_PAGE_BUILDER_DOMAIN)), 'ui' => array('panel' => array(1 => array('header' => __('General', PLUGIN_PAGE_BUILDER_DOMAIN)), 2 => array('header' => __('Elements', PLUGIN_PAGE_BUILDER_DOMAIN)))), 'element' => array(array('id' => 'category', 'name' => 'category[]', 'ui' => array('panel' => 1, 'text' => array('header' => __('Category', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select one or more categories from which data have to be retrieved.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'term', 'dictionary' => array('term' => 'category')))), 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' => 'layout', 'ui' => array('panel' => 1, 'text' => array('header' => __('Layout', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select layout of the posts', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($this->layout, 'name')))), 'shortcode' => array('default' => '33x33x33')), array('id' => 'template', 'ui' => array('panel' => 1, 'text' => array('header' => __('Template', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select template', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($this->template)))), 'shortcode' => array('default' => PBComponentData::get($this->getComponentId(), 'template_default'))), array('id' => 'post_count', 'ui' => array('panel' => 1, 'text' => array('header' => __('Post count', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Number of posts to show', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('attribute' => array('maxlength' => 3))), 'shortcode' => array('default' => '3')), 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' => 'date_enable', 'ui' => array('panel' => 2, 'text' => array('header' => __('Show date', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable visibility of post date', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'image_enable', 'ui' => array('panel' => 2, 'text' => array('header' => __('Show image', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable visibility of post feature image', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'header_enable', 'ui' => array('panel' => 2, 'text' => array('header' => __('Show header', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable visibility of post header', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'excerpt_enable', 'ui' => array('panel' => 2, 'text' => array('header' => __('Show excerpt', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable visibility of post excerpt', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'author_enable', 'ui' => array('panel' => 2, 'text' => array('header' => __('Show author', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable visibility of post author', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'category_enable', 'ui' => array('panel' => 2, 'text' => array('header' => __('Show categories', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable visibility of post categories', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')), array('id' => 'comment_count_enable', 'ui' => array('panel' => 2, 'text' => array('header' => __('Show comment count', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Enable or disable visibility of comment count', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'choice-2')), 'shortcode' => array('default' => '1')))));
     parent::__construct();
 }
예제 #7
0
 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()
 {
     $Background = new PBBackground();
     $bullet = (array) PBComponentData::get($this->getComponentId(), 'bullet');
     $this->bullet = array();
     $this->bullet['url'] = $bullet['url'];
     $this->bullet['url_retina'] = $bullet['url_retina'];
     $this->bullet['path'] = $bullet['path'];
     $file = PBFile::scanDir($bullet['path']);
     $this->bullet['file'] = array();
     if (is_array($file)) {
         $this->bullet['file'] = array_combine($file, $file);
     }
     $Layout = new PBLayout();
     $this->currentIndex = 0;
     $this->currentLayout = null;
     $this->style = array('pricing-plan' => array('use' => 2, 'path' => $this->getStyleURL(), 'file' => 'style.css'));
     $this->script = array('pricing-plan' => array('use' => 2, 'path' => $this->getScriptURL(), 'file' => 'PB.PricingPlan.js'));
     $this->type = array('1' => array(__('Type 1', PLUGIN_PAGE_BUILDER_DOMAIN)), '2' => array(__('Type 2', PLUGIN_PAGE_BUILDER_DOMAIN)));
     $this->layout = $Layout->getMainLayout();
     $this->component = array('name' => __('Pricing Plan', PLUGIN_PAGE_BUILDER_DOMAIN), 'description' => __('Displays Pricing Plan', PLUGIN_PAGE_BUILDER_DOMAIN), 'structure' => array('window' => array('title' => __('Pricing Plan', PLUGIN_PAGE_BUILDER_DOMAIN)), 'ui' => array('panel' => array(1 => array('header' => __('General', PLUGIN_PAGE_BUILDER_DOMAIN)), 2 => array('header' => __('Plans', PLUGIN_PAGE_BUILDER_DOMAIN))), 'multi' => array(1 => array('header' => __('Content of the plan', 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 pricing plan.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => PBHelper::extractDictionary($this->layout, 'name')))), 'shortcode' => array('default' => '50x50')), array('id' => 'type', 'ui' => array('panel' => 1, 'text' => array('header' => __('Type', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select one from the available types.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'radio', 'dictionary' => array('source' => PBHelper::extractDictionary($this->type)))), 'shortcode' => array('default' => '1')), 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' => 'item_header', 'ui' => array('panel' => 2, 'multi' => 1, 'text' => array('header' => __('Header', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => '*item/item_header/@content')), array('id' => 'item_description', 'ui' => array('panel' => 2, 'multi' => 1, 'text' => array('header' => __('Description', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'textarea')), 'shortcode' => array('path' => '*item/item_description/@content')), array('id' => 'item_feature', 'ui' => array('panel' => 2, 'multi' => 1, 'text' => array('header' => __('Feature list', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('List of features separated by new line.', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'textarea')), 'shortcode' => array('path' => '*item/item_feature/@content')), array('id' => 'item_feature_bullet', 'ui' => array('panel' => 2, 'multi' => 1, 'text' => array('header' => __('Feature list bullet', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Bullet for the feature list elements', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-one', 'dictionary' => array('source' => $this->bullet['file'], 'use_default' => false))), 'shortcode' => array('path' => '*item/item_feature/@bullet')), array('id' => 'item_image_url', 'ui' => array('panel' => 2, 'multi' => 1, 'text' => array('header' => __('Image URL', PLUGIN_PAGE_BUILDER_DOMAIN), 'subheader' => __('Select image of the background. This option works only with type named "Style 2".', PLUGIN_PAGE_BUILDER_DOMAIN)), 'element' => array('type' => 'select-image')), 'shortcode' => array('path' => '*item/@image_url')), array('id' => 'item_image_position', 'ui' => array('panel' => 2, 'multi' => 1, 'text' => array('header' => __('Image position', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => '*item/@image_position')), array('id' => 'item_image_repeat', 'ui' => array('panel' => 2, 'multi' => 1, 'text' => array('header' => __('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('path' => '*item/@image_repeat')), array('id' => 'item_image_size_a', 'ui' => array('panel' => 2, 'multi' => 1, 'text' => array('header' => __('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)))), 'shortcode' => array('path' => '*item/@image_size_a')), array('id' => 'item_image_size_b', 'ui' => array('panel' => 2, 'multi' => 1, 'text' => array('header' => __('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)))), 'shortcode' => array('path' => '*item/@image_size_b')), array('id' => 'item_button_label', 'ui' => array('panel' => 2, 'multi' => 1, 'text' => array('header' => __('Button label', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => '*item/item_button/@content')), array('id' => 'item_button_url', 'ui' => array('panel' => 2, 'multi' => 1, 'text' => array('header' => __('Button URL', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => '*item/item_button/@url')), array('id' => 'item_price_value', 'ui' => array('panel' => 2, 'multi' => 1, 'text' => array('header' => __('Price', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => '*item/item_price/item_price_value/@content')), array('id' => 'item_price_suffix', 'ui' => array('panel' => 2, 'multi' => 1, 'text' => array('header' => __('Price suffix', PLUGIN_PAGE_BUILDER_DOMAIN))), 'shortcode' => array('path' => '*item/item_price/item_price_suffix/@content')))));
     parent::__construct();
 }