本文整理汇总了PHP中SiteOrigin_Widget::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP SiteOrigin_Widget::__construct方法的具体用法?PHP SiteOrigin_Widget::__construct怎么用?PHP SiteOrigin_Widget::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SiteOrigin_Widget
的用法示例。
在下文中一共展示了SiteOrigin_Widget::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
function __construct()
{
parent::__construct(
'faqs',
__('Faqs', 'addon-so-widgets-bundle'),
array(
'description' => __('FAQs Component', 'addon-so-widgets-bundle'),
'panels_icon' => 'dashicons dashicons-exerpt-view',
'panels_groups' => array('addonso')
),
array(),
array(
'widget_title' => array(
'type' => 'text',
'label' => __('Widget Title.', 'addon-so-widgets-bundle'),
'default' => ''
),
'posts' => array(
'type' => 'posts',
'label' => __('Select FAQs', 'addon-so-widgets-bundle'),
),
'faqs_styling' => array(
'type' => 'section',
'label' => __( 'Widget styling' , 'widget-form-fields-text-domain' ),
'hide' => true,
'fields' => array(
'title_color' => array(
'type' => 'color',
'label' => __( 'Title color', 'widget-form-fields-text-domain' ),
'default' => ''
),
'title_hover_color' => array(
'type' => 'color',
'label' => __( 'Title Hover color', 'widget-form-fields-text-domain' ),
'default' => ''
),
'content_color' => array(
'type' => 'color',
'label' => __( 'Content color', 'widget-form-fields-text-domain' ),
'default' => ''
),
)
),
),
plugin_dir_path(__FILE__)
);
}
示例2: array
function __construct()
{
$this->networks = (include plugin_dir_path(__FILE__) . 'data/networks.php');
$network_names = array();
foreach ($this->networks as $key => $value) {
$network_names[$key] = $value['label'];
}
parent::__construct('sow-social-media-buttons', __('SiteOrigin Social Media Buttons', 'siteorigin-widgets'), array('description' => __('A social media buttons widget.', 'siteorigin-widgets'), 'help' => 'http://siteorigin.com/widgets-bundle/social-media-buttons-widget-documentation/'), array(), array('networks' => array('type' => 'repeater', 'label' => __('Networks', 'siteorigin-widgets'), 'item_name' => __('Network', 'siteorigin-widgets'), 'item_label' => array('selector' => "[id*='networks-name'] :selected", 'update_event' => 'change', 'value_method' => 'text'), 'fields' => array('name' => array('type' => 'select', 'label' => '', 'prompt' => __('Select network', 'siteorigin-widgets'), 'options' => $network_names), 'url' => array('type' => 'text', 'label' => __('URL', 'siteorigin-widgets')), 'icon_color' => array('type' => 'color', 'label' => __('Icon color', 'siteorigin-widgets')), 'button_color' => array('type' => 'color', 'label' => __('Background color', 'siteorigin-widgets')))), 'design' => array('type' => 'section', 'label' => __('Design and layout', 'siteorigin-widgets'), 'hide' => true, 'fields' => array('new_window' => array('type' => 'checkbox', 'label' => __('Open in a new window', 'siteorigin-widgets'), 'default' => true), 'theme' => array('type' => 'select', 'label' => __('Button theme', 'siteorigin-widgets'), 'default' => 'atom', 'options' => array('atom' => __('Atom', 'siteorigin-widgets'), 'flat' => __('Flat', 'siteorigin-widgets'), 'wire' => __('Wire', 'siteorigin-widgets'))), 'hover' => array('type' => 'checkbox', 'label' => __('Use hover effects'), 'default' => true), 'icon_size' => array('type' => 'select', 'label' => __('Icon size', 'siteorigin-widgets'), 'options' => array('1' => __('Normal', 'siteorigin-widgets'), '1.33' => __('Medium', 'siteorigin-widgets'), '1.66' => __('Large', 'siteorigin-widgets'), '2' => __('Extra large', 'siteorigin-widgets'))), 'rounding' => array('type' => 'select', 'label' => __('Rounding', 'siteorigin-widgets'), 'default' => '0.25', 'options' => array('0' => __('None', 'siteorigin-widgets'), '0.25' => __('Slightly rounded', 'siteorigin-widgets'), '0.5' => __('Very rounded', 'siteorigin-widgets'), '1.5' => __('Completely rounded', 'siteorigin-widgets'))), 'padding' => array('type' => 'select', 'label' => __('Padding', 'siteorigin-widgets'), 'default' => '1', 'options' => array('0.5' => __('Low', 'siteorigin-widgets'), '1' => __('Medium', 'siteorigin-widgets'), '1.4' => __('High', 'siteorigin-widgets'), '1.8' => __('Very high', 'siteorigin-widgets'))), 'align' => array('type' => 'select', 'label' => __('Align', 'siteorigin-widgets'), 'default' => 'left', 'options' => array('left' => __('Left', 'siteorigin-widgets'), 'right' => __('Right', 'siteorigin-widgets'), 'center' => __('Center', 'siteorigin-widgets'), 'justify' => __('Justify', 'siteorigin-widgets'))), 'margin' => array('type' => 'select', 'label' => __('Margin', 'siteorigin-widgets'), 'default' => '0.1', 'options' => array('0.1' => __('Low', 'siteorigin-widgets'), '0.2' => __('Medium', 'siteorigin-widgets'), '0.3' => __('High', 'siteorigin-widgets'), '0.4' => __('Very high', 'siteorigin-widgets')))))));
}
示例3: array
function __construct()
{
$erm_menu_args = array('post_type' => 'erm_menu', 'posts_per_page' => -1);
$loop_menu_args = new WP_Query($erm_menu_args);
$cate[0] = esc_html__('Create Menu', 'restaurant-wp');
if ($loop_menu_args->have_posts()) {
$cate = '';
while ($loop_menu_args->have_posts()) {
$loop_menu_args->the_post();
$cate[get_the_ID()] = get_the_title(get_the_ID());
}
}
wp_reset_postdata();
$form_options = array('tab' => array('type' => 'repeater', 'label' => esc_html__('Tab', 'restaurant-wp'), 'item_name' => esc_html__('Tab', 'restaurant-wp'), 'fields' => array('title' => array('type' => 'text', 'label' => esc_html__('Tab Title', 'restaurant-wp')), 'sub_title' => array('type' => 'text', 'label' => esc_html__('Sub Title', 'restaurant-wp')), 'image' => array('type' => 'media', 'label' => esc_html__('Icon Image', 'restaurant-wp'), 'name' => esc_html__('Upload Icon', 'restaurant-wp')), 'quick_menu' => array('type' => 'select', 'label' => esc_html__('Select Menu', 'restaurant-wp'), 'options' => $cate))), 'columns' => array('type' => 'select', 'label' => esc_html__('Columns', 'restaurant-wp'), 'options' => array('1' => 1, '2' => 2)), 'menu_style' => array('type' => 'select', 'label' => esc_html__('Menu Style', 'restaurant-wp'), 'options' => array('regular' => esc_html__('Regular', 'restaurant-wp'), 'dotted' => esc_html__('Dotted', 'restaurant-wp')), 'default' => 'Regular'));
parent::__construct('reswp_restaurant_filter_menu_widget', esc_html__('WPArena: Filter Restaurant Menu', 'restaurant-wp'), array('description' => esc_html__('Widget for Filter Menu', 'restaurant-wp')), array(), $form_options, plugin_dir_path(__FILE__));
}
示例4: array
function __construct()
{
$erm_menu_args = array('post_type' => 'erm_menu', 'posts_per_page' => -1);
$lop_menu_args = new WP_Query($erm_menu_args);
$cate[0] = esc_html__('Create Menu', 'restaurant-wp');
if ($lop_menu_args->have_posts()) {
$cate = '';
while ($lop_menu_args->have_posts()) {
$lop_menu_args->the_post();
$cate[get_the_ID()] = get_the_title(get_the_ID());
}
}
wp_reset_postdata();
$form_options = array('header_type' => array('type' => 'select', 'label' => esc_html__('Type', 'restaurant-wp'), 'default' => 'h3', 'options' => array('h2' => esc_html__('h2', 'restaurant-wp'), 'h3' => esc_html__('h3', 'restaurant-wp'), 'h4' => esc_html__('h4', 'restaurant-wp'), 'h5' => esc_html__('h5', 'restaurant-wp'), 'h6' => esc_html__('h6', 'restaurant-wp'))), 'header_color' => array('type' => 'color', 'label' => esc_html__('Choose a color', 'restaurant-wp'), 'default' => '#fff'), 'header_background' => array('type' => 'media', 'label' => esc_html__('Background image for header', 'restaurant-wp'), 'choose' => esc_html__('Choose image', 'restaurant-wp'), 'update' => esc_html__('Set image', 'restaurant-wp'), 'library' => 'image', 'fallback' => false), 'quick_menu' => array('type' => 'select', 'label' => esc_html__('Choose a menu.', 'restaurant-wp'), 'default' => 0, 'options' => $cate), 'columns' => array('type' => 'select', 'label' => esc_html__('Columns', 'restaurant-wp'), 'default' => 1, 'options' => array('1' => 1, '2' => 2)), 'menu_style' => array('type' => 'select', 'label' => esc_html__('Menu style', 'restaurant-wp'), 'default' => 'regular', 'options' => array('regular' => esc_html__('Regular', 'restaurant-wp'), 'dotted' => esc_html__('Dotted', 'restaurant-wp'))));
parent::__construct('reswp_restaurant_menu_widget', esc_html__('WPArena: Restaurant Menu', 'restaurant-wp'), array('description' => esc_html__('Widget for Quick Restaurant Menu', 'restaurant-wp')), array(), $form_options, plugin_dir_path(__FILE__));
}
示例5: array
function __construct()
{
parent::__construct('sow-post', __('Kreativa:Posts', 'siteorigin-widgets'), array('description' => __('Display your posts .', 'siteorigin-widgets')), array(), array('posts' => array('type' => 'posts', 'label' => __('Posts query', 'siteorigin-widgets'))), plugin_dir_path(__FILE__) . '../');
}
示例6: array
function __construct()
{
parent::__construct('lsow-stats-bars', __('Livemesh Stats Bars', 'livemesh-so-widgets'), array('description' => __('Display statistics or skills as a percentage stats bar.', 'livemesh-so-widgets'), 'panels_icon' => 'dashicons dashicons-minus', 'help' => 'http://portfoliotheme.org/widgets-bundle/stats-bar-widget-documentation/'), array(), array('title' => array('type' => 'text', 'label' => __('Title', 'livemesh-so-widgets')), 'stats-bars' => array('type' => 'repeater', 'label' => __('Stats Bars', 'livemesh-so-widgets'), 'item_name' => __('Stats Bar', 'livemesh-so-widgets'), 'item_label' => array('selector' => "[id*='stats-bars-title']", 'update_event' => 'change', 'value_method' => 'val'), 'fields' => array('title' => array('type' => 'text', 'label' => __('Stats Title', 'livemesh-so-widgets'), 'description' => __('The title for the stats bar', 'livemesh-so-widgets')), 'value' => array('type' => 'text', 'label' => __('Percentage Value', 'livemesh-so-widgets'), 'description' => __('The percentage value for the stats.', 'livemesh-so-widgets')), 'color' => array('type' => 'color', 'label' => __('Bar color', 'livemesh-so-widgets'))))));
}
示例7: array
function __construct()
{
parent::__construct('sow-features', __('SiteOrigin Features', 'siteorigin-widgets'), array('description' => __('Displays a list of features.', 'siteorigin-widgets'), 'help' => 'http://siteorigin.com/widgets-bundle/features-widget-documentation/'), array(), array('features' => array('type' => 'repeater', 'label' => __('Features', 'siteorigin-widgets'), 'item_name' => __('Feature', 'siteorigin-widgets'), 'item_label' => array('selector' => "[id*='features-title']", 'update_event' => 'change', 'value_method' => 'val'), 'fields' => array('container_color' => array('type' => 'color', 'label' => __('Container color', 'siteorigin-widgets'), 'default' => '#404040'), 'icon' => array('type' => 'icon', 'label' => __('Icon', 'siteorigin-widgets')), 'icon_color' => array('type' => 'color', 'label' => __('Icon color', 'siteorigin-widgets'), 'default' => '#FFFFFF'), 'icon_image' => array('type' => 'media', 'library' => 'image', 'label' => __('Icon image', 'siteorigin-widgets'), 'description' => __('Use your own icon image.', 'siteorigin-widgets')), 'title' => array('type' => 'text', 'label' => __('Title text', 'siteorigin-widgets')), 'text' => array('type' => 'text', 'label' => __('Text', 'siteorigin-widgets')), 'more_text' => array('type' => 'text', 'label' => __('More link text', 'siteorigin-widgets')), 'more_url' => array('type' => 'link', 'label' => __('More link URL', 'siteorigin-widgets')))), 'container_shape' => array('type' => 'select', 'label' => __('Container shape', 'siteorigin-widgets'), 'options' => array()), 'container_size' => array('type' => 'number', 'label' => __('Container size', 'siteorigin-widgets'), 'default' => 84), 'icon_size' => array('type' => 'number', 'label' => __('Icon size', 'siteorigin-widgets'), 'default' => 24), 'per_row' => array('type' => 'number', 'label' => __('Features per row', 'siteorigin-widgets'), 'default' => 3), 'responsive' => array('type' => 'checkbox', 'label' => __('Responsive layout', 'siteorigin-widgets'), 'default' => true), 'title_link' => array('type' => 'checkbox', 'label' => __('Link feature title to more URL', 'siteorigin-widgets'), 'default' => false), 'icon_link' => array('type' => 'checkbox', 'label' => __('Link icon to more URL', 'siteorigin-widgets'), 'default' => false), 'new_window' => array('type' => 'checkbox', 'label' => __('Open more URL in a new window', 'siteorigin-widgets'), 'default' => false)), plugin_dir_path(__FILE__) . '../');
}
示例8: array
function __construct()
{
parent::__construct('sow-video', __('SiteOrigin Video Player', 'so-widgets-bundle'), array('description' => __('A video player widget.', 'so-widgets-bundle'), 'help' => 'http://siteorigin.com/widgets-bundle/video-widget-documentation/'), array(), false, plugin_dir_path(__FILE__));
}
示例9: array
function __construct()
{
parent::__construct('sow-button', __('SiteOrigin Button', 'so-widgets-bundle'), array('description' => __('A customizable button widget.', 'so-widgets-bundle'), 'help' => 'https://siteorigin.com/widgets-bundle/button-widget-documentation/'), array(), array('text' => array('type' => 'text', 'label' => __('Button text', 'so-widgets-bundle')), 'url' => array('type' => 'link', 'label' => __('Destination URL', 'so-widgets-bundle')), 'new_window' => array('type' => 'checkbox', 'default' => false, 'label' => __('Open in a new window', 'so-widgets-bundle')), 'button_icon' => array('type' => 'section', 'label' => __('Icon', 'so-widgets-bundle'), 'fields' => array('icon_selected' => array('type' => 'icon', 'label' => __('Icon', 'so-widgets-bundle')), 'icon_color' => array('type' => 'color', 'label' => __('Icon color', 'so-widgets-bundle')), 'icon' => array('type' => 'media', 'label' => __('Image icon', 'so-widgets-bundle'), 'description' => __('Replaces the icon with your own image icon.', 'so-widgets-bundle')))), 'design' => array('type' => 'section', 'label' => __('Design and layout', 'so-widgets-bundle'), 'hide' => true, 'fields' => array('align' => array('type' => 'select', 'label' => __('Align', 'so-widgets-bundle'), 'default' => 'center', 'options' => array('left' => __('Left', 'so-widgets-bundle'), 'right' => __('Right', 'so-widgets-bundle'), 'center' => __('Center', 'so-widgets-bundle'), 'justify' => __('Justify', 'so-widgets-bundle'))), 'theme' => array('type' => 'select', 'label' => __('Button theme', 'so-widgets-bundle'), 'default' => 'atom', 'options' => array('atom' => __('Atom', 'so-widgets-bundle'), 'flat' => __('Flat', 'so-widgets-bundle'), 'wire' => __('Wire', 'so-widgets-bundle'))), 'button_color' => array('type' => 'color', 'label' => __('Button color', 'so-widgets-bundle')), 'text_color' => array('type' => 'color', 'label' => __('Text color', 'so-widgets-bundle')), 'hover' => array('type' => 'checkbox', 'default' => true, 'label' => __('Use hover effects', 'so-widgets-bundle')), 'font_size' => array('type' => 'select', 'label' => __('Font size', 'so-widgets-bundle'), 'options' => array('1' => __('Normal', 'so-widgets-bundle'), '1.15' => __('Medium', 'so-widgets-bundle'), '1.3' => __('Large', 'so-widgets-bundle'), '1.45' => __('Extra large', 'so-widgets-bundle'))), 'rounding' => array('type' => 'select', 'label' => __('Rounding', 'so-widgets-bundle'), 'default' => '0.25', 'options' => array('0' => __('None', 'so-widgets-bundle'), '0.25' => __('Slightly rounded', 'so-widgets-bundle'), '0.5' => __('Very rounded', 'so-widgets-bundle'), '1.5' => __('Completely rounded', 'so-widgets-bundle'))), 'padding' => array('type' => 'select', 'label' => __('Padding', 'so-widgets-bundle'), 'default' => '1', 'options' => array('0.5' => __('Low', 'so-widgets-bundle'), '1' => __('Medium', 'so-widgets-bundle'), '1.4' => __('High', 'so-widgets-bundle'), '1.8' => __('Very high', 'so-widgets-bundle'))))), 'attributes' => array('type' => 'section', 'label' => __('Other attributes and SEO', 'so-widgets-bundle'), 'hide' => true, 'fields' => array('id' => array('type' => 'text', 'label' => __('Button ID', 'so-widgets-bundle'), 'description' => __('An ID attribute allows you to target this button in Javascript.', 'so-widgets-bundle')), 'title' => array('type' => 'text', 'label' => __('Title attribute', 'so-widgets-bundle'), 'description' => __('Adds a title attribute to the button link.', 'so-widgets-bundle')), 'onclick' => array('type' => 'text', 'label' => __('Onclick', 'so-widgets-bundle'), 'description' => __('Run this Javascript when the button is clicked. Ideal for tracking.', 'so-widgets-bundle'))))), plugin_dir_path(__FILE__));
}
示例10: array
function __construct()
{
parent::__construct('lsow-pricing-plans', __('Livemesh Pricing Table', 'livemesh-so-widgets'), array('description' => __('Display pricing table in a multi-column grid.', 'livemesh-so-widgets'), 'panels_icon' => 'dashicons dashicons-minus', 'help' => LSOW_PLUGIN_HELP_URL . '#pricing-table'), array(), array('title' => array('type' => 'text', 'label' => __('Title', 'livemesh-so-widgets')), 'pricing-plans' => array('type' => 'repeater', 'label' => __('Pricing Table', 'livemesh-so-widgets'), 'item_name' => __('Pricing Plan', 'livemesh-so-widgets'), 'item_label' => array('selector' => "[id*='pricing-plans-title']", 'update_event' => 'change', 'value_method' => 'val'), 'fields' => array('pricing_title' => array('type' => 'text', 'label' => __('Pricing Plan Title', 'livemesh-so-widgets'), 'description' => __('The title for the pricing plan', 'livemesh-so-widgets')), 'tagline' => array('type' => 'text', 'label' => __('Tagline Text', 'livemesh-so-widgets'), 'description' => __('Provide any subtitle or taglines like "Most Popular", "Best Value", "Best Selling", "Most Flexible" etc. that you would like to use for this pricing plan.', 'livemesh-so-widgets')), 'image' => array('type' => 'media', 'label' => __('Image', 'livemesh-so-widgets')), 'price_tag' => array('type' => 'text', 'label' => __('Price Tag', 'livemesh-so-widgets'), 'description' => __('Enter the price tag for the pricing plan. HTML is accepted.', 'livemesh-so-widgets')), 'button_text' => array('type' => 'text', 'label' => __('Text for Pricing Link/Button', 'livemesh-so-widgets'), 'description' => __('Provide the text for the link or the button shown for this pricing plan.', 'livemesh-so-widgets')), 'url' => array('type' => 'link', 'label' => __('URL for the Pricing link/button', 'livemesh-so-widgets'), 'description' => __('Provide the target URL for the link or the button shown for this pricing plan.', 'livemesh-so-widgets')), 'button_new_window' => array('type' => 'checkbox', 'label' => __('Open Button URL in a new window', 'livemesh-so-widgets')), 'highlight' => array('type' => 'checkbox', 'label' => __('Highlight Pricing Plan', 'livemesh-so-widgets'), 'description' => __('Specify if you want to highlight the pricing plan.', 'livemesh-so-widgets')), 'items' => array('type' => 'repeater', 'label' => __('Pricing Plan Details', 'livemesh-so-widgets'), 'item_name' => __('Pricing Item', 'livemesh-so-widgets'), 'item_label' => array('selector' => "[id*='pricing-plans-items-text']", 'update_event' => 'change', 'value_method' => 'val'), 'fields' => array('title' => array('type' => 'text', 'label' => __('Title', 'livemesh-so-widgets')), 'value' => array('type' => 'text', 'label' => __('Value', 'livemesh-so-widgets')), 'icon_new' => array('type' => 'icon', 'label' => __('Icon', 'livemesh-so-widgets')))))), 'settings' => array('type' => 'section', 'label' => __('Settings', 'livemesh-so-widgets'), 'fields' => array('per_line' => array('type' => 'slider', 'label' => __('Pricing Columns per row', 'livemesh-so-widgets'), 'min' => 1, 'max' => 5, 'integer' => true, 'default' => 4)))));
}
示例11: array
function __construct()
{
parent::__construct('toggle-widget', __('Toggle Widget', 'imic-framework'), array('description' => __('A widget to add Toggle/Accordion to your pages.', 'imic-framework'), 'panels_icon' => 'dashicons dashicons-list-view', 'panels_groups' => array('framework')), array(), array('tab_id' => array('type' => 'text', 'label' => __('Toggle Name', 'imic-framework'), 'description' => __('Keep it unique if adding multiple tabs in a single page.(No spaces in name)', 'imic-framework')), 'tabs' => array('type' => 'repeater', 'label' => __('Toggles', 'imic-framework'), 'item_name' => __('Toggle', 'imic-framework'), 'item_label' => array('selector' => "[id*='tab-title']", 'update_event' => 'change', 'value_method' => 'val'), 'fields' => array('tab_nav_title' => array('type' => 'text', 'label' => __('Toggle title', 'imic-framework')), 'tab_nav_content' => array('type' => 'tinymce', 'label' => __('Toggle Content', 'imic-framework')))), 'display_type' => array('type' => 'select', 'state_name' => 'togglize', 'label' => __('Choose Type', 'imic-framework'), 'prompt' => __('Choose Type', 'framework'), 'options' => array('togglize' => __('Toggles', 'framework'), 'accordionize' => __('Accordions', 'framework')))), plugin_dir_path(__FILE__));
}
示例12: array
function __construct()
{
parent::__construct('sow-headline', __('SiteOrigin Headline', 'so-widgets-bundle'), array('description' => __('A headline widget.', 'so-widgets-bundle')), array(), array('headline' => array('type' => 'section', 'label' => __('Headline', 'so-widgets-bundle'), 'hide' => false, 'fields' => array('text' => array('type' => 'text', 'label' => __('Text', 'so-widgets-bundle')), 'tag' => array('type' => 'select', 'label' => __('H Tag', 'so-widgets-bundle'), 'default' => 'h1', 'options' => array('h1' => __('H1', 'so-widgets-bundle'), 'h2' => __('H2', 'so-widgets-bundle'), 'h3' => __('H3', 'so-widgets-bundle'), 'h4' => __('H4', 'so-widgets-bundle'), 'h5' => __('H5', 'so-widgets-bundle'), 'h6' => __('H6', 'so-widgets-bundle'))), 'font' => array('type' => 'font', 'label' => __('Font', 'so-widgets-bundle'), 'default' => 'default'), 'color' => array('type' => 'color', 'label' => __('Color', 'so-widgets-bundle'), 'default' => '#000000'), 'align' => array('type' => 'select', 'label' => __('Align', 'so-widgets-bundle'), 'default' => 'center', 'options' => array('center' => __('Center', 'so-widgets-bundle'), 'left' => __('Left', 'so-widgets-bundle'), 'right' => __('Right', 'so-widgets-bundle'), 'justify' => __('Justify', 'so-widgets-bundle'))))), 'sub_headline' => array('type' => 'section', 'label' => __('Sub headline', 'so-widgets-bundle'), 'hide' => true, 'fields' => array('text' => array('type' => 'text', 'label' => __('Text', 'so-widgets-bundle')), 'tag' => array('type' => 'select', 'label' => __('H Tag', 'so-widgets-bundle'), 'default' => 'h3', 'options' => array('h1' => __('H1', 'so-widgets-bundle'), 'h2' => __('H2', 'so-widgets-bundle'), 'h3' => __('H3', 'so-widgets-bundle'), 'h4' => __('H4', 'so-widgets-bundle'), 'h5' => __('H5', 'so-widgets-bundle'), 'h6' => __('H6', 'so-widgets-bundle'))), 'font' => array('type' => 'font', 'label' => __('Font', 'so-widgets-bundle'), 'default' => 'default'), 'color' => array('type' => 'color', 'label' => __('Color', 'so-widgets-bundle'), 'default' => '#000000'), 'align' => array('type' => 'select', 'label' => __('Align', 'so-widgets-bundle'), 'default' => 'center', 'options' => array('center' => __('Center', 'so-widgets-bundle'), 'left' => __('Left', 'so-widgets-bundle'), 'right' => __('Right', 'so-widgets-bundle'), 'justify' => __('Justify', 'so-widgets-bundle'))))), 'divider' => array('type' => 'section', 'label' => __('Divider', 'so-widgets-bundle'), 'hide' => true, 'fields' => array('style' => array('type' => 'select', 'label' => __('Style', 'so-widgets-bundle'), 'default' => 'solid', 'options' => array('none' => __('None', 'so-widgets-bundle'), 'solid' => __('Solid', 'so-widgets-bundle'), 'dotted' => __('Dotted', 'so-widgets-bundle'), 'dashed' => __('Dashed', 'so-widgets-bundle'), 'double' => __('Double', 'so-widgets-bundle'), 'groove' => __('Groove', 'so-widgets-bundle'), 'ridge' => __('Ridge', 'so-widgets-bundle'), 'inset' => __('Inset', 'so-widgets-bundle'), 'outset' => __('Outset', 'so-widgets-bundle'))), 'weight' => array('type' => 'select', 'label' => __('Weight', 'so-widgets-bundle'), 'default' => 'thin', 'options' => array('thin' => __('Thin', 'so-widgets-bundle'), 'medium' => __('Medium', 'so-widgets-bundle'), 'thick' => __('Thick', 'so-widgets-bundle'))), 'color' => array('type' => 'color', 'label' => __('Color', 'so-widgets-bundle'), 'default' => '#EEEEEE')))));
}
示例13: array
function __construct()
{
parent::__construct('sow-clientlogo', __('Kreativa:Client\'s Image', 'siteorigin-widgets'), array('description' => __('A list of images of client\'s.', 'siteorigin-widgets')), array(), array('image' => array('type' => 'media', 'label' => __('Image file', 'siteorigin-widgets')), 'desc' => array('type' => 'text', 'label' => __('Text', 'siteorigin-widgets'))), plugin_dir_path(__FILE__) . '../');
}
示例14: array
function __construct()
{
parent::__construct('lsow-posts-carousel', __('Livemesh Posts Carousel', 'livemesh-so-widgets'), array('description' => __('Display blog posts or custom post types as a carousel', 'livemesh-so-widgets'), 'panels_icon' => 'dashicons dashicons-minus', 'help' => LSOW_PLUGIN_HELP_URL . '#post-carousel'), array(), array('title' => array('type' => 'text', 'label' => __('Title', 'livemesh-so-widgets')), 'posts' => array('type' => 'posts', 'label' => __('Posts query', 'livemesh-so-widgets')), 'settings' => array('type' => 'section', 'label' => __('General Settings', 'livemesh-so-widgets'), 'fields' => array('taxonomy_chosen' => array('type' => 'select', 'label' => __('Choose the taxonomy to display info.', 'livemesh-so-widgets'), 'description' => __('Choose the taxonomy to use for display of taxonomy information for posts/custom post types.', 'livemesh-so-widgets'), 'options' => lsow_get_taxonomies_map(), 'default' => 'category'), 'image_linkable' => array('type' => 'checkbox', 'label' => __('Link Images to Posts?', 'livemesh-so-widgets'), 'default' => true), 'display_title' => array('type' => 'checkbox', 'label' => __('Display posts title below the post item?', 'livemesh-so-widgets'), 'default' => true), 'display_summary' => array('type' => 'checkbox', 'label' => __('Display post excerpt/summary below the post item?', 'livemesh-so-widgets'), 'default' => true), 'post_meta' => array('type' => 'section', 'label' => __('Post Meta', 'livemesh-so-widgets'), 'fields' => array('display_author' => array('type' => 'checkbox', 'label' => __('Display post author info below the post item?', 'livemesh-so-widgets'), 'default' => false), 'display_post_date' => array('type' => 'checkbox', 'label' => __('Display post date info below the post item?', 'livemesh-so-widgets'), 'default' => false), 'display_taxonomy' => array('type' => 'checkbox', 'label' => __('Display taxonomy info below the post item?', 'livemesh-so-widgets'), 'default' => false))))), 'carousel_settings' => array('type' => 'section', 'label' => __('Carousel Settings', 'livemesh-so-widgets'), 'fields' => array('arrows' => array('type' => 'checkbox', 'label' => __('Prev/Next Arrows?', 'livemesh-so-widgets'), 'default' => true), 'dots' => array('type' => 'checkbox', 'label' => __('Show dot indicators for navigation?', 'livemesh-so-widgets')), 'autoplay' => array('type' => 'checkbox', 'label' => __('Autoplay?', 'livemesh-so-widgets'), 'description' => __('Should the carousel autoplay as in a slideshow.', 'livemesh-so-widgets'), 'default' => false), 'autoplay_speed' => array('type' => 'number', 'label' => __('Autoplay speed in ms', 'livemesh-so-widgets'), 'default' => 3000), 'animation_speed' => array('type' => 'number', 'label' => __('Autoplay animation speed in ms', 'livemesh-so-widgets'), 'default' => 300), 'pause_on_hover' => array('type' => 'checkbox', 'label' => __('Pause on mouse hover?', 'livemesh-so-widgets'), 'default' => true), 'display_columns' => array('type' => 'slider', 'label' => __('Columns per row', 'livemesh-so-widgets'), 'min' => 1, 'max' => 5, 'integer' => true, 'default' => 3), 'scroll_columns' => array('type' => 'slider', 'label' => __('Columns to scroll', 'livemesh-so-widgets'), 'min' => 1, 'max' => 5, 'integer' => true, 'default' => 3), 'gutter' => array('type' => 'number', 'label' => __('Gutter', 'livemesh-so-widgets'), 'description' => __('Space between columns.', 'livemesh-so-widgets'), 'default' => 10), 'responsive' => array('type' => 'section', 'label' => __('Responsive', 'livemesh-so-widgets'), 'hide' => true, 'fields' => array('tablet' => array('type' => 'section', 'label' => __('Tablet', 'livemesh-so-widgets'), 'fields' => array('display_columns' => array('type' => 'slider', 'label' => __('Columns per row', 'livemesh-so-widgets'), 'min' => 1, 'max' => 5, 'integer' => true, 'default' => 2), 'scroll_columns' => array('type' => 'slider', 'label' => __('Columns to scroll', 'livemesh-so-widgets'), 'min' => 1, 'max' => 5, 'integer' => true, 'default' => 2), 'gutter' => array('type' => 'number', 'label' => __('Gutter', 'livemesh-so-widgets'), 'description' => __('Space between columns.', 'livemesh-so-widgets'), 'default' => 10), 'width' => array('type' => 'text', 'label' => __('Resolution', 'livemesh-so-widgets'), 'description' => __('The resolution to treat as a tablet resolution.', 'livemesh-so-widgets'), 'default' => 800, 'sanitize' => 'intval'))), 'mobile' => array('type' => 'section', 'label' => __('Mobile Phone', 'livemesh-so-widgets'), 'fields' => array('display_columns' => array('type' => 'slider', 'label' => __('Columns per row', 'livemesh-so-widgets'), 'min' => 1, 'max' => 5, 'integer' => true, 'default' => 1), 'scroll_columns' => array('type' => 'slider', 'label' => __('Columns to scroll', 'livemesh-so-widgets'), 'min' => 1, 'max' => 5, 'integer' => true, 'default' => 1), 'gutter' => array('type' => 'number', 'label' => __('Gutter', 'livemesh-so-widgets'), 'description' => __('Space between columns.', 'livemesh-so-widgets'), 'default' => 10), 'width' => array('type' => 'text', 'label' => __('Resolution', 'livemesh-so-widgets'), 'description' => __('The resolution to treat as a mobile resolution.', 'livemesh-so-widgets'), 'default' => 480, 'sanitize' => 'intval')))))))));
}
示例15: array
function __construct()
{
parent::__construct('ink-audio', __('Inked Audio', 'wpinked-widgets'), array('description' => __('Play self or externally hosted audios.', 'wpinked-widgets'), 'help' => 'http://docs.wpinked.com/widgets-for-siteorigin/audio-widget'), array(), array('admin' => array('type' => 'text', 'label' => __('Admin Label', 'wpinked-widgets'), 'default' => ''), 'audio' => array('type' => 'section', 'label' => __('Audio', 'wpinked-widgets'), 'hide' => true, 'fields' => array('type' => array('type' => 'select', 'label' => __('Audio Type', 'wpinked-widgets'), 'default' => 'oembed', 'options' => array('hosted' => __('Self Hosted', 'wpinked-widgets'), 'oembed' => __('oEmbed', 'wpinked-widgets')), 'state_emitter' => array('callback' => 'select', 'args' => array('audio_type'))), 'hosted' => array('type' => 'media', 'fallback' => true, 'label' => __('Audio File', 'wpinked-widgets'), 'default' => '', 'library' => 'audio', 'state_handler' => array('audio_type[hosted]' => array('show'), 'audio_type[oembed]' => array('hide'))), 'image' => array('type' => 'media', 'fallback' => true, 'label' => __('Background Image', 'wpinked-widgets'), 'default' => '', 'library' => 'image', 'state_handler' => array('audio_type[hosted]' => array('show'), 'audio_type[oembed]' => array('hide'))), 'oembed' => array('type' => 'text', 'sanitize' => 'url', 'label' => __('oEmbed Audio URL', 'wpinked-widgets'), 'state_handler' => array('audio_type[hosted]' => array('hide'), 'audio_type[oembed]' => array('show'))), 'background' => array('type' => 'color', 'label' => __('Background Color', 'wpinked-widgets'), 'default' => '#3498db', 'state_handler' => array('audio_type[hosted]' => array('show'), 'audio_type[oembed]' => array('hide'))), 'bg-opacity' => array('type' => 'slider', 'label' => __('Background Opacity', 'wpinked-widgets'), 'default' => 0, 'min' => 0, 'max' => 100, 'integer' => true, 'state_handler' => array('audio_type[hosted]' => array('show'), 'audio_type[oembed]' => array('hide'))), 'controls' => array('type' => 'select', 'label' => __('Controls Theme', 'wpinked-widgets'), 'default' => 'iw-text-center', 'options' => array('iw-so-player-light' => __('Light', 'wpinked-widgets'), 'iw-so-player-dark' => __('Dark', 'wpinked-widgets')), 'state_handler' => array('audio_type[hosted]' => array('show'), 'audio_type[oembed]' => array('hide'))), 'audio' => array('type' => 'text', 'label' => __('Audio Name', 'wpinked-widgets'), 'state_handler' => array('audio_type[hosted]' => array('show'), 'audio_type[oembed]' => array('hide'))), 'artist' => array('type' => 'text', 'label' => __('Artist', 'wpinked-widgets'), 'state_handler' => array('audio_type[hosted]' => array('show'), 'audio_type[oembed]' => array('hide'))), 'album' => array('type' => 'text', 'label' => __('Album', 'wpinked-widgets'), 'state_handler' => array('audio_type[hosted]' => array('show'), 'audio_type[oembed]' => array('hide'))), 'text' => array('type' => 'color', 'label' => __('Text Color', 'wpinked-widgets'), 'default' => '#fff', 'state_handler' => array('audio_type[hosted]' => array('show'), 'audio_type[oembed]' => array('hide'))), 'align' => array('type' => 'select', 'label' => __('Text Alignment', 'wpinked-widgets'), 'default' => 'iw-text-center', 'options' => array('iw-text-left' => __('Left', 'wpinked-widgets'), 'iw-text-center' => __('Center', 'wpinked-widgets'), 'iw-text-right' => __('Right', 'wpinked-widgets')), 'state_handler' => array('audio_type[hosted]' => array('show'), 'audio_type[oembed]' => array('hide')))))), plugin_dir_path(__FILE__));
}