示例#1
0
 function __construct()
 {
     $categories = get_terms('category', array('hide_empty' => 0, 'orderby' => 'ASC'));
     $cate = '';
     if (is_array($categories)) {
         foreach ($categories as $cat) {
             $cate[$cat->term_id] = $cat->name;
         }
     }
     parent::__construct('gallery', __('Thim: Filter Gallery ', 'mabu'), array('description' => __('gallery', 'mabu'), 'help' => '', 'panels_groups' => array('thim_widget_group')), array(), array('cat' => array('type' => 'select', 'label' => __('Select Category', 'mabu'), 'options' => $cate), 'display_filter' => array('type' => 'select', 'label' => __('Display Filter', 'mabu'), 'default' => 'true', 'options' => array('true' => __('Yes', 'mabu'), 'false' => __('No', 'mabu')))), TP_THEME_DIR . 'inc/widgets/gallery/');
 }
示例#2
0
 function __construct()
 {
     $list_image_size = $this->get_image_sizes();
     $image_size = array();
     $image_size['none'] = __("No Image", 'mabu');
     if (is_array($list_image_size) && !empty($list_image_size)) {
         foreach ($list_image_size as $key => $value) {
             if ($value['width'] && $value['height']) {
                 $image_size[$key] = $value['width'] . 'x' . $value['height'];
             } else {
                 $image_size[$key] = $key;
             }
         }
     }
     parent::__construct('list-post', __('Thim: List Posts', 'mabu'), array('description' => __('Show Post', 'mabu'), 'help' => '', 'panels_groups' => array('thim_widget_group')), array(), array('title' => array('type' => 'text', 'label' => __('Title', 'mabu'), 'default' => __("From Blog", 'mabu')), 'h' => array("type" => "select", "label" => __("Title heading", 'mabu'), 'default' => 'h3', "options" => array("h1" => __("H1", 'mabu'), "h2" => __("H2", 'mabu'), "h3" => __("H3", 'mabu'), "h4" => __("H4", 'mabu'), "h5" => __("H5", 'mabu'), "h6" => __("H6", 'mabu'))), 'cat_id' => array('type' => 'select', 'label' => __('Select Categories', 'mabu'), 'default' => 'none', 'options' => $this->thim_get_categories()), 'link_cat' => array("type" => "select", "label" => __("Display link to Category", 'mabu'), "options" => array("yes" => __("Yes", 'mabu'), "no" => __("No", 'mabu'))), 'number_posts' => array('type' => 'number', 'label' => __('Number Post', 'mabu'), 'default' => '4'), 'orderby' => array("type" => "select", "label" => __("Order by", 'mabu'), "options" => array("popular" => __("Popular", 'mabu'), "recent" => __("Recent", 'mabu'), "title" => __("Title", 'mabu'), "random" => __("Random", 'mabu'))), 'order' => array("type" => "select", "label" => __("Order by", 'mabu'), "options" => array("asc" => __("ASC", 'mabu'), "desc" => __("DESC", 'mabu'))), 'image_size' => array('type' => 'select', 'label' => __('Select Image Size', 'mabu'), 'default' => 'none', 'options' => $image_size), 'style' => array('type' => 'select', 'label' => __('Style', 'mabu'), 'default' => 'default', 'options' => array('default' => __('Default', 'mabu'), 'style2' => __('Style 2', 'mabu'))), 'date' => array('type' => 'select', 'label' => __('Date', 'mabu'), 'default' => 'show', 'options' => array('show' => __('Show', 'mabu'), 'hidden' => __('Hidden', 'mabu'))), 'comment' => array('type' => 'select', 'label' => __('Comment', 'mabu'), 'default' => 'show', 'options' => array('show' => __('Show', 'mabu'), 'hidden' => __('Hidden', 'mabu'))), 'content' => array('type' => 'select', 'label' => __('Show Content', 'mabu'), 'default' => 'show', 'options' => array('show' => __('Show', 'mabu'), 'hidden' => __('Hidden', 'mabu'))), 'readmore' => array('type' => 'select', 'label' => __('Read More', 'mabu'), 'default' => 'show', 'options' => array('show' => __('Show', 'mabu'), 'hidden' => __('Hidden', 'mabu'))), 'tpl' => array('type' => 'select', 'label' => __('Templates', 'mabu'), 'default' => 'base', 'options' => array('base' => __('Default', 'mabu'), 'simple' => __('Simple List', 'mabu')))), TP_THEME_DIR . 'inc/widgets/list-post/');
 }
示例#3
0
 function __construct()
 {
     parent::__construct('client-logo', __('Thim: Client Logo', 'mabu'), array('description' => __('Add client logo', 'mabu'), 'help' => '', 'panels_groups' => array('thim_widget_group')), array(), array('image' => array('type' => 'multimedia', 'label' => __('Logo', 'mabu'), 'description' => __('Select image from media library.', 'mabu')), 'image_size' => array('type' => 'text', 'label' => __('Logo size', 'mabu'), 'description' => __('Enter image size. Example: "thumbnail", "medium", "large", "full"', 'mabu')), 'image_link' => array('type' => 'text', 'label' => __('Logo Link', 'mabu'), 'description' => __('Enter URL if you want this image to have a link. These links are separated by comma (Ex: #,#,#,#)', 'mabu')), 'link_target' => array("type" => "select", "label" => __("Link Target", 'mabu'), "options" => array("_self" => __("Same window", 'mabu'), "_blank" => __("New window", 'mabu'))), 'items' => array("type" => "number", "label" => __("Items", 'mabu'), 'description' => __('This variable allows you to set the maximum amount of items displayed at a time with the widest browser width', 'mabu'), 'default' => 6), 'autoPlay' => array("type" => "select", "label" => __("Auto Play", 'mabu'), "options" => array("false" => __("False", 'mabu'), "true" => __("True", 'mabu'))), 'css_animation' => array("type" => "select", "label" => __("CSS Animation", 'mabu'), "options" => array("" => __("No", 'mabu'), "top-to-bottom" => __("Top to bottom", 'mabu'), "bottom-to-top" => __("Bottom to top", 'mabu'), "left-to-right" => __("Left to right", 'mabu'), "right-to-left" => __("Right to left", 'mabu'), "appear" => __("Appear from center", 'mabu')))), TP_THEME_DIR . 'inc/widgets/client-logo/');
 }
示例#4
0
 function __construct()
 {
     parent::__construct('features-list', __('Thim: Features List', 'mabu'), array('description' => __('Add features list', 'mabu'), 'help' => '', 'panels_groups' => array('thim_widget_group')), array(), array('features' => array('type' => 'repeater', 'label' => __('Features', 'mabu'), 'item_name' => __('Feature item', 'mabu'), 'fields' => array('title' => array('type' => 'text', 'label' => __('Title text', 'mabu')), 'text' => array('type' => 'textarea', 'allow_html_formatting' => true, 'label' => __('Text', 'mabu')), 'image' => array('type' => 'media', 'label' => __('Image', 'mabu'), 'description' => __('Select image from media library.', 'mabu')), 'image_size' => array('type' => 'text', 'label' => __('Image size', 'mabu'), 'description' => __('Enter image size. Example: "thumbnail", "medium", "large", "full" or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height). Leave empty to use "thumbnail" size.', 'mabu')), 'icon' => array('type' => 'text', 'label' => __('Icon', 'mabu'), 'description' => __('Ex: <i class="fa fa-facebook"></i>', 'mabu')))), 'per_row' => array('type' => 'number', 'label' => __('Features per row', 'mabu'), 'default' => 3), 'display_items' => array('type' => 'number', 'label' => __('Features display in first load', 'mabu'), 'default' => 6), 'style' => array('type' => 'select', 'label' => __('Style', 'mabu'), 'default' => 'default', 'options' => array('default' => __('Default', 'mabu'), 'default-plus' => __('Default Plus', 'mabu'), 'simple' => __('Simple - Not Image', 'mabu'), 'style2' => __('Style 2', 'mabu')))), TP_THEME_DIR . 'inc/widgets/features-list/');
 }
示例#5
0
 function __construct()
 {
     parent::__construct('testimonials', __('Thim: Testimonials', 'mabu'), array('description' => '', 'help' => '', 'panels_groups' => array('thim_widget_group'), 'panels_icon' => 'dashicons dashicons-welcome-learn-more'), array(), array('number' => array('type' => 'number', 'label' => __('Number Posts', 'mabu'), 'default' => '4'), 'item_visible' => array('type' => 'number', 'fallback' => true, 'label' => __('Item Visible', 'mabu'), 'default' => '5', 'state_handler' => array('template[base]' => array('hide'), 'template[style2]' => array('hide'), 'template[style3]' => array('show'))), 'mousewheel' => array('type' => 'checkbox', 'label' => esc_html__('Mousewheel Scroll', 'mabu'), 'default' => false, 'state_handler' => array('template[base]' => array('hide'), 'template[style2]' => array('hide'), 'template[style3]' => array('show'))), 'template' => array("type" => "select", "label" => __("Template", 'mabu'), "default" => "base", "options" => array("base" => __("Default", 'mabu'), "style2" => __("Style 2", 'mabu'), "style3" => __("Style 3", 'mabu')), 'state_emitter' => array('callback' => 'select', 'args' => array('template')))), TP_THEME_DIR . 'inc/widgets/testimonials/');
 }
示例#6
0
 function __construct()
 {
     parent::__construct('share-social', __('Thim: Share Social', 'mabu'), array('description' => __('Share Social', 'mabu'), 'help' => '', 'panels_groups' => array('thim_widget_group')), array(), array('title' => array('type' => 'text', 'label' => __('Title', 'mabu'), 'default' => __('Share on', 'mabu')), 'facebook' => array('type' => 'select', 'label' => __('Facebook', 'mabu'), 'default' => true, 'options' => array(true => __('Yes', 'mabu'), false => __('No', 'mabu'))), 'twitter' => array('type' => 'select', 'label' => __('Twitter', 'mabu'), 'default' => true, 'options' => array(true => __('Yes', 'mabu'), false => __('No', 'mabu'))), 'google' => array('type' => 'select', 'label' => __('Google', 'mabu'), 'default' => true, 'options' => array(true => __('Yes', 'mabu'), false => __('No', 'mabu')))), TP_THEME_DIR . 'inc/widgets/share-social/');
 }
示例#7
0
 function __construct()
 {
     parent::__construct('heading', __('Thim: Heading', 'mabu'), array('description' => __('Add heading text', 'mabu'), 'help' => '', 'panels_groups' => array('thim_widget_group')), array(), array('title' => array('type' => 'text', 'label' => __('Heading Text', 'mabu'), 'default' => ''), 'sub-title' => array('type' => 'text', 'label' => __('Sub Heading', 'mabu'), 'default' => '', 'allow_html_formatting' => true), 'line' => array('type' => 'checkbox', 'label' => __('Show Separator', 'mabu'), 'default' => false), 'textcolor' => array('type' => 'color', 'label' => __('Text Heading color', 'mabu'), 'default' => ''), 'size' => array("type" => "select", "label" => __("Size Heading", 'mabu'), "options" => array("h2" => __("h2", 'mabu'), "h3" => __("h3", 'mabu'), "h4" => __("h4", 'mabu'), "h5" => __("h5", 'mabu'), "h6" => __("h6", 'mabu')), "default" => "h3"), 'heading_padding' => array('type' => 'text', 'label' => __('Heading Padding', 'mabu'), 'default' => ''), 'font_heading' => array("type" => "select", "label" => __("Font Heading", 'mabu'), "default" => "default", "options" => array("default" => __("Default", 'mabu'), "custom" => __("Custom", 'mabu')), "description" => __("Select Font heading.", 'mabu'), 'state_emitter' => array('callback' => 'select', 'args' => array('font_heading_type'))), 'custom_font_heading' => array('type' => 'section', 'label' => __('Custom Font Heading', 'mabu'), 'hide' => true, 'state_handler' => array('font_heading_type[custom]' => array('show'), 'font_heading_type[default]' => array('hide')), 'fields' => array('custom_font_size' => array("type" => "number", "label" => __("Font Size", 'mabu'), "suffix" => "px", "default" => "14", "description" => __("custom font size", 'mabu'), "class" => "color-mini"), 'custom_font_weight' => array("type" => "select", "label" => __("Custom Font Weight", 'mabu'), "options" => array("normal" => __("Normal", 'mabu'), "bold" => __("Bold", 'mabu'), "100" => __("100", 'mabu'), "200" => __("200", 'mabu'), "300" => __("300", 'mabu'), "400" => __("400", 'mabu'), "500" => __("500", 'mabu'), "600" => __("600", 'mabu'), "700" => __("700", 'mabu'), "800" => __("800", 'mabu'), "900" => __("900", 'mabu')), "description" => __("Select Custom Font Weight", 'mabu'), "class" => "color-mini"), 'custom_font_style' => array("type" => "select", "label" => __("Custom Font Style", 'mabu'), "options" => array("inherit" => __("inherit", 'mabu'), "initial" => __("initial", 'mabu'), "italic" => __("italic", 'mabu'), "normal" => __("normal", 'mabu'), "oblique" => __("oblique", 'mabu')), "description" => __("Select Custom Font Style", 'mabu'), "class" => "color-mini"))), 'css_animation' => array("type" => "select", "label" => __("CSS Animation", 'mabu'), "options" => array("" => __("No", 'mabu'), "top-to-bottom" => __("Top to bottom", 'mabu'), "bottom-to-top" => __("Bottom to top", 'mabu'), "left-to-right" => __("Left to right", 'mabu'), "right-to-left" => __("Right to left", 'mabu'), "appear" => __("Appear from center", 'mabu'))), 'align' => array("type" => "select", "label" => __("Align", 'mabu'), "options" => array("center" => __("Center", 'mabu'), "left" => __("Left", 'mabu'), "right" => __("Right", 'mabu')))), TP_THEME_DIR . 'inc/widgets/heading/');
 }
示例#8
0
 function __construct()
 {
     parent::__construct('google-map', __('Thim: Google Maps', 'mabu'), array('description' => __('A Google Maps widget.', 'mabu'), 'help' => '', 'panels_groups' => array('thim_widget_group')), array(), array('title' => array('type' => 'text', 'label' => __('Title', 'mabu')), 'map_center' => array('type' => 'textarea', 'rows' => 2, 'label' => __('Map center', 'mabu'), 'description' => __('The name of a place, town, city, or even a country. Can be an exact address too.', 'mabu')), 'settings' => array('type' => 'section', 'label' => __('Settings', 'mabu'), 'hide' => false, 'description' => __('Set map display options.', 'mabu'), 'fields' => array('height' => array('type' => 'text', 'default' => 480, 'label' => __('Height', 'mabu')), 'zoom' => array('type' => 'slider', 'label' => __('Zoom level', 'mabu'), 'description' => __('A value from 0 (the world) to 21 (street level).', 'mabu'), 'min' => 0, 'max' => 21, 'default' => 12, 'integer' => true), 'scroll_zoom' => array('type' => 'checkbox', 'default' => true, 'state_name' => 'interactive', 'label' => __('Scroll to zoom', 'mabu'), 'description' => __('Allow scrolling over the map to zoom in or out.', 'mabu')), 'draggable' => array('type' => 'checkbox', 'default' => true, 'state_name' => 'interactive', 'label' => __('Draggable', 'mabu'), 'description' => __('Allow dragging the map to move it around.', 'mabu')))), 'markers' => array('type' => 'section', 'label' => __('Markers', 'mabu'), 'hide' => true, 'description' => __('Use markers to identify points of interest on the map.', 'mabu'), 'fields' => array('marker_at_center' => array('type' => 'checkbox', 'default' => true, 'label' => __('Show marker at map center', 'mabu')), 'marker_icon' => array('type' => 'media', 'default' => '', 'label' => __('Marker Icon', 'mabu'), 'description' => __('Replaces the default map marker with your own image.', 'mabu')), 'marker_positions' => array('type' => 'repeater', 'label' => __('Marker positions', 'mabu'), 'item_name' => __('Marker', 'mabu'), 'fields' => array('place' => array('type' => 'textarea', 'rows' => 2, 'label' => __('Place', 'mabu'))))))));
 }
示例#9
0
 function __construct()
 {
     parent::__construct('copyright', __('Thim: Copyright', 'mabu'), array('description' => __('Display copyright text', 'mabu'), 'help' => '', 'panels_groups' => array('thim_widget_group')), array(), array('text_align' => array("type" => "select", "label" => __("Text Align", 'mabu'), "options" => array("left" => __("Left", 'mabu'), "right" => __("Right", 'mabu'), "center" => __("Center", 'mabu')))), TP_THEME_DIR . 'inc/widgets/copyright/');
 }
示例#10
0
文件: team.php 项目: vinhnq1211/funy
 function __construct()
 {
     parent::__construct('team', __('Thim: Our Team', 'mabu'), array('description' => '', 'help' => '', 'panels_groups' => array('thim_widget_group'), 'panels_icon' => 'dashicons dashicons-welcome-learn-more'), array(), array('number' => array('type' => 'number', 'label' => __('Number Members', 'mabu'), 'default' => '8'), 'per_row' => array('type' => 'number', 'label' => __('Number member in row', 'mabu'), 'default' => '4')), TP_THEME_DIR . 'inc/widgets/team/');
 }
示例#11
0
 function __construct()
 {
     parent::__construct('empty-space', __('Thim: Empty Space', 'mabu'), array('description' => __('Add space width custom height', 'mabu'), 'help' => '', 'panels_groups' => array('thim_widget_group')), array(), array('height' => array('type' => 'number', 'label' => __('Height', 'mabu'), 'default' => '30', 'desc' => __("Enter empty space height.", 'mabu'), 'suffix' => 'px')), TP_THEME_DIR . 'inc/widgets/empty-space/');
 }
示例#12
0
 function __construct()
 {
     parent::__construct('slider-images', __('Thim: Round Slider', 'mabu'), array('description' => __('Add Round Slider', 'mabu'), 'help' => '', 'panels_groups' => array('thim_widget_group')), array(), array('image' => array('type' => 'multimedia', 'label' => __('Image', 'mabu'), 'description' => __('Select image from media library.', 'mabu')), 'image_size' => array('type' => 'text', 'label' => __('Image size', 'mabu'), 'description' => __('Enter image size. Example: "thumbnail", "medium", "large", "full"', 'mabu')), 'css_animation' => array("type" => "select", "label" => __("CSS Animation", 'mabu'), "options" => array("" => __("No", 'mabu'), "top-to-bottom" => __("Top to bottom", 'mabu'), "bottom-to-top" => __("Bottom to top", 'mabu'), "left-to-right" => __("Left to right", 'mabu'), "right-to-left" => __("Right to left", 'mabu'), "appear" => __("Appear from center", 'mabu')))), TP_THEME_DIR . 'inc/widgets/slider-images/');
 }
示例#13
0
 function __construct()
 {
     parent::__construct('list-html', __('Thim: List Html Two Columns', 'mabu'), array('description' => __('Add html', 'mabu'), 'help' => '', 'panels_groups' => array('thim_widget_group')), array(), array('list-html' => array('type' => 'repeater', 'label' => __('Text', 'mabu'), 'item_name' => __('Text', 'mabu'), 'fields' => array('title' => array("type" => "text", "label" => __("Title", 'mabu'), "default" => "Title", 'fallback' => true, 'state_handler' => array('template[base]' => array('show'), 'template[ostyle]' => array('hide'))), 'content' => array("type" => "textarea", "label" => __("Content", 'mabu'), 'allow_html_formatting' => true), 'image' => array("type" => "media", "label" => __("Image", 'mabu'), 'fallback' => true, 'state_handler' => array('template[base]' => array('hide'), 'template[ostyle]' => array('show'))))), 'title' => array('type' => 'text', 'fallback' => true, 'label' => __('Enter title of box', 'mabu'), 'default' => '', 'state_handler' => array('template[base]' => array('hide'), 'template[ostyle]' => array('show'))), 'template' => array("type" => "select", "label" => __("Template", 'mabu'), 'default' => 'base', "options" => array("base" => __("Default", 'mabu'), "ostyle" => __("O-Style", 'mabu')), 'state_emitter' => array('callback' => 'select', 'args' => array('template')))), TP_THEME_DIR . 'inc/widgets/list-html/');
 }
示例#14
0
 function __construct()
 {
     parent::__construct('feature-box', __('Thim: Feature Box', 'mabu'), array('description' => __('Add feature box', 'mabu'), 'help' => '', 'panels_groups' => array('thim_widget_group')), array(), array('title' => array('type' => 'text', 'label' => __('Title', 'mabu'), 'description' => __('Title Box', 'mabu')), 'heading_1' => array('type' => 'text', 'label' => __('Heading', 'mabu'), 'description' => __('Heading text', 'mabu')), 'heading_2' => array('type' => 'text', 'label' => __('Heading 2', 'mabu'), 'description' => __('Heading text 2', 'mabu')), 'content' => array('type' => 'textarea', 'label' => __('Content', 'mabu'), 'description' => __('Content text here', 'mabu')), 'image' => array('type' => 'multimedia', 'label' => __('Image', 'mabu'), 'description' => __('Select image from media library.', 'mabu')), 'link' => array('type' => 'text', 'label' => __('Learm More Link', 'mabu'), 'description' => __('Enter URL if you want this feature to have a link.', 'mabu')), 'link_target' => array("type" => "select", "label" => __("Link Target", 'mabu'), "options" => array("_self" => __("Same window", 'mabu'), "_blank" => __("New window", 'mabu'))), 'css_animation' => array("type" => "select", "label" => __("CSS Animation", 'mabu'), "options" => array("default" => __("Default", 'mabu'), "style2" => __("Style 2", 'mabu'), "style3" => __("Style 3", 'mabu'))), 'layout' => array("type" => "select", "label" => __("Layout", 'mabu'), "description" => "Layout Box", "options" => array("left" => __("Float Left", 'mabu'), "right" => __("Float Right", 'mabu'))), 'template' => array("type" => "select", "label" => __("Template", 'mabu'), "options" => array("base" => __("Default", 'mabu'), "step" => __("Step by Step", 'mabu')))), TP_THEME_DIR . 'inc/widgets/feature-box/');
 }
示例#15
0
 function __construct()
 {
     parent::__construct('icon-box', __('Thim: Icon Box', 'mabu'), array('description' => __('Add icon box', 'mabu'), 'help' => '', 'panels_groups' => array('thim_widget_group')), array(), array('sub-title' => array('type' => 'text', 'label' => __('Sub Title', 'mabu')), 'title_group' => array('type' => 'section', 'label' => __('Title Options', 'mabu'), 'hide' => true, 'fields' => array('title' => array('type' => 'text', 'label' => __('Title', 'mabu'), "default" => "This is an icon box.", "description" => __("Provide the title for this icon box.", 'mabu'), 'allow_html_formatting' => true), 'color_title' => array('type' => 'color', 'label' => __('Color Title', 'mabu')), 'size' => array("type" => "select", "label" => __("Size Heading", 'mabu'), "default" => "h3", "options" => array("h2" => __("h2", 'mabu'), "h3" => __("h3", 'mabu'), "h4" => __("h4", 'mabu'), "h5" => __("h5", 'mabu'), "h6" => __("h6", 'mabu')), "description" => __("Select size heading.", 'mabu')), 'font_heading' => array("type" => "select", "label" => __("Font Heading", 'mabu'), "options" => array("default" => __("Default", 'mabu'), "custom" => __("Custom", 'mabu')), "description" => __("Select Font heading.", 'mabu'), 'state_emitter' => array('callback' => 'select', 'args' => array('custom_font_heading'))), 'custom_heading' => array('type' => 'section', 'label' => __('Custom Heading Option', 'mabu'), 'hide' => true, 'state_handler' => array('custom_font_heading[custom]' => array('show'), 'custom_font_heading[default]' => array('hide')), 'fields' => array('custom_font_size' => array("type" => "number", "label" => __("Font Size", 'mabu'), "suffix" => "px", "default" => "14", "description" => __("custom font size", 'mabu'), "class" => "color-mini"), 'custom_font_weight' => array("type" => "select", "label" => __("Custom Font Weight", 'mabu'), "class" => "color-mini", "options" => array("normal" => __("Normal", 'mabu'), "bold" => __("Bold", 'mabu'), "100" => __("100", 'mabu'), "200" => __("200", 'mabu'), "300" => __("300", 'mabu'), "400" => __("400", 'mabu'), "500" => __("500", 'mabu'), "600" => __("600", 'mabu'), "700" => __("700", 'mabu'), "800" => __("800", 'mabu'), "900" => __("900", 'mabu')), "description" => __("Select Custom Font Weight", 'mabu')), 'custom_mg_bt' => array("type" => "number", "class" => "color-mini", "label" => __("Margin Bottom Value", 'mabu'), "value" => 0, "suffix" => "px"))), 'line_after_title' => array('type' => 'checkbox', 'label' => __('Show Separator', 'mabu')))), 'desc_group' => array('type' => 'section', 'label' => __('Description', 'mabu'), 'hide' => true, 'fields' => array('content' => array("type" => "textarea", "label" => __("Add description", 'mabu'), "default" => "Write a short description, that will describe the title or something informational and useful.", "description" => __("Provide the description for this icon box.", 'mabu'), 'allow_html_formatting' => true), 'custom_font_size_des' => array("type" => "number", "label" => __("Custom Font Size", 'mabu'), "suffix" => "px", "default" => "", "description" => __("custom font size", 'mabu'), "class" => "color-mini"), 'custom_font_weight' => array("type" => "select", "label" => __("Custom Font Weight", 'mabu'), "class" => "color-mini", "options" => array("" => __("Normal", 'mabu'), "bold" => __("Bold", 'mabu'), "100" => __("100", 'mabu'), "200" => __("200", 'mabu'), "300" => __("300", 'mabu'), "400" => __("400", 'mabu'), "500" => __("500", 'mabu'), "600" => __("600", 'mabu'), "700" => __("700", 'mabu'), "800" => __("800", 'mabu'), "900" => __("900", 'mabu')), "description" => __("Select Custom Font Weight", 'mabu')), 'color_description' => array("type" => "color", "label" => __("Color Description", 'mabu'), "class" => "color-mini"))), 'read_more_group' => array('type' => 'section', 'label' => __('Link Icon Box', 'mabu'), 'hide' => true, 'fields' => array('link' => array("type" => "text", "label" => __("Add Link", 'mabu'), "description" => __("Provide the link that will be applied to this icon box.", 'mabu')), 'read_more' => array("type" => "select", "label" => __("Apply link to:", 'mabu'), "options" => array("complete_box" => "Complete Box", "title" => "Box Title", "more" => "Display Read More"), "description" => __("Select whether to use color for icon or not.", 'mabu'), 'state_emitter' => array('callback' => 'select', 'args' => array('read_more_op'))), 'button_read_more_group' => array('type' => 'section', 'label' => __('Option Button Read More', 'mabu'), 'hide' => true, 'state_handler' => array('read_more_op[more]' => array('show'), 'read_more_op[complete_box]' => array('hide'), 'read_more_op[title]' => array('hide')), 'fields' => array('read_text' => array("type" => "text", "label" => __("Read More Text", 'mabu'), "default" => "Read More", "description" => __("Customize the read more text.", 'mabu')), 'read_more_text_color' => array("type" => "color", "class" => "", "label" => __("Text Color Read More", 'mabu'), "description" => __("Select whether to use text color for Read More Text or default.", 'mabu'), "class" => "color-mini"), 'border_read_more_text' => array("type" => "color", "label" => __("Border Color Read More Text:", 'mabu'), "description" => __("Select whether to use border color for Read More Text or none.", 'mabu'), "class" => "color-mini"), 'bg_read_more_text' => array("type" => "color", "class" => "mini", "label" => __("Background Color Read More Text:", 'mabu'), "description" => __("Select whether to use background color for Read More Text or default.", 'mabu'), "class" => "color-mini"), 'read_more_text_color_hover' => array("type" => "color", "class" => "", "label" => __("Text Hover Color Read More", 'mabu'), "description" => __("Select whether to use text color for Read More Text or default.", 'mabu'), "class" => "color-mini"), 'bg_read_more_text_hover' => array("type" => "color", "label" => __("Background Hover Color Read More Text:", 'mabu'), "description" => __("Select whether to use background color when hover Read More Text or default.", 'mabu'), "class" => "color-mini"))))), 'icon_type' => array("type" => "select", "class" => "", "label" => __("Icon to display:", 'mabu'), "default" => "font-awesome", "options" => array("font-awesome" => "Font Awesome Icon", "font-7-stroke" => "Font 7 stroke Icon", "custom" => "Custom Image Icon"), 'state_emitter' => array('callback' => 'select', 'args' => array('icon_type_op'))), 'font_7_stroke_group' => array('type' => 'section', 'label' => __('Font 7 Stroke Icon', 'mabu'), 'hide' => true, 'state_handler' => array('icon_type_op[font-awesome]' => array('hide'), 'icon_type_op[custom]' => array('hide'), 'icon_type_op[font-7-stroke]' => array('show')), 'fields' => array('icon' => array("type" => "icon-7-stroke", "class" => "", "label" => __("Select Icon:", 'mabu'), "description" => __("Select the icon from the list.", 'mabu'), "class_name" => 'font-7-stroke'), 'icon_size' => array("type" => "number", "class" => "", "label" => __("Icon Font Size ", 'mabu'), "suffix" => "px", "default" => "14", "description" => __("Select the icon font size.", 'mabu'), "class_name" => 'font-7-stroke'))), 'font_awesome_group' => array('type' => 'section', 'label' => __('Font Awesome Icon', 'mabu'), 'hide' => true, 'state_handler' => array('icon_type_op[font-awesome]' => array('show'), 'icon_type_op[custom]' => array('hide'), 'icon_type_op[font-7-stroke]' => array('hide')), 'fields' => array('icon' => array("type" => "icon", "class" => "", "label" => __("Select Icon:", 'mabu'), "description" => __("Select the icon from the list.", 'mabu'), "class_name" => 'font-awesome'), 'icon_size' => array("type" => "number", "class" => "", "label" => __("Icon Font Size ", 'mabu'), "suffix" => "px", "default" => "14", "description" => __("Select the icon font size.", 'mabu'), "class_name" => 'font-awesome'))), 'font_image_group' => array('type' => 'section', 'label' => __('Custom Image Icon', 'mabu'), 'hide' => true, 'state_handler' => array('icon_type_op[font-awesome]' => array('hide'), 'icon_type_op[custom]' => array('show'), 'icon_type_op[font-7-stroke]' => array('hide')), 'fields' => array('icon_img' => array("type" => "media", "label" => __("Upload Image Icon:", 'mabu'), "description" => __("Upload the custom image icon.", 'mabu'), "class_name" => 'custom'))), 'width_icon_box' => array("type" => "number", "class" => "", "default" => "100", "label" => __("Width Box Icon", 'mabu'), "suffix" => "px"), 'color_group' => array('type' => 'section', 'label' => __('Color Options', 'mabu'), 'hide' => true, 'fields' => array('icon_color' => array("type" => "color", "class" => "color-mini", "label" => __("Select Icon Color:", 'mabu'), "description" => __("Select the icon color.", 'mabu')), 'icon_border_color' => array("type" => "color", "label" => __("Icon Border Color:", 'mabu'), "description" => __("Select the color for icon border.", 'mabu'), "class" => "color-mini"), 'icon_bg_color' => array("type" => "color", "label" => __("Icon Background Color:", 'mabu'), "description" => __("Select the color for icon background.", 'mabu'), "class" => "color-mini"), 'icon_hover_color' => array("type" => "color", "label" => __("Hover Icon Color:", 'mabu'), "description" => __("Select the color hover for icon.", 'mabu'), "class" => "color-mini"), 'icon_border_color_hover' => array("type" => "color", "label" => __("Hover Icon Border Color:", 'mabu'), "description" => __("Select the color hover for icon border.", 'mabu'), "class" => "color-mini"), 'icon_bg_color_hover' => array("type" => "color", "label" => __("Hover Icon Background Color:", 'mabu'), "description" => __("Select the color hover for icon background .", 'mabu'), "class" => "color-mini"))), 'layout_group' => array('type' => 'section', 'label' => __('Layout Options', 'mabu'), 'hide' => true, 'fields' => array('box_icon_style' => array("type" => "select", "class" => "", "label" => __("Icon Shape", 'mabu'), "options" => array("" => __("None", 'mabu'), "circle" => __("Circle", 'mabu')), "std" => "circle"), 'pos' => array("type" => "select", "class" => "", "label" => __("Box Style:", 'mabu'), "default" => "top", "options" => array("left" => "Icon at Left", "right" => "Icon at Right", "top" => "Icon at Top"), "description" => __("Select icon position. Icon box style will be changed according to the icon position.", 'mabu')), 'text_align_sc' => array("type" => "select", "class" => "", "label" => __("Text Align Shortcode:", 'mabu'), "options" => array("text-left" => "Text Left", "text-right" => "Text Right", "text-center" => "Text Center")))), 'widget_background' => array("type" => "select", "label" => __("Widget Background", 'mabu'), "default" => "none", "options" => array("none" => "None", "bg_video" => "Video Background", "bg_image" => "Image Background"), 'state_emitter' => array('callback' => 'select', 'args' => array('bg_video_style', 'bg_image_style'))), 'self_video' => array('type' => 'media', 'fallback' => true, 'label' => __('Select video', 'mabu'), 'description' => __("Select an uploaded video in mp4 format. Other formats, such as webm and ogv will work in some browsers. You can use an online service such as <a href='http://video.online-convert.com/convert-to-mp4' target='_blank'>online-convert.com</a> to convert your videos to mp4.", 'mabu'), 'default' => '', 'library' => 'video', 'state_handler' => array('bg_video_style[bg_video]' => array('show'), 'bg_video_style[none]' => array('hide'), 'bg_video_style[bg_image]' => array('hide'))), 'self_poster' => array('type' => 'media', 'label' => __('Select cover image', 'mabu'), 'default' => '', 'library' => 'image', 'state_handler' => array('bg_video_style[bg_video]' => array('show'), 'bg_video_style[none]' => array('hide'), 'bg_video_style[bg_image]' => array('hide'))), 'background_image' => array('type' => 'media', 'fallback' => true, 'label' => __('Select Background Image', 'mabu'), 'default' => '', 'library' => 'image', 'state_handler' => array('bg_image_style[bg_video]' => array('hide'), 'bg_image_style[none]' => array('hide'), 'bg_image_style[bg_image]' => array('show'))), 'css_animation' => array("type" => "select", "label" => __("CSS Animation", 'mabu'), "options" => array("" => __("No", 'mabu'), "top-to-bottom" => __("Top to bottom", 'mabu'), "bottom-to-top" => __("Bottom to top", 'mabu'), "left-to-right" => __("Left to right", 'mabu'), "right-to-left" => __("Right to left", 'mabu'), "appear" => __("Appear from center", 'mabu')))), TP_THEME_DIR . 'inc/widgets/icon-box/');
 }
示例#16
0
 function __construct()
 {
     parent::__construct('social', __('Thim: Social Links', 'mabu'), array('description' => __('Social Links', 'mabu'), 'help' => '', 'panels_groups' => array('thim_widget_group')), array(), array('title' => array('type' => 'text', 'label' => __('Title', 'mabu')), 'link_face' => array('type' => 'text', 'label' => __('Facebook Url', 'mabu')), 'link_twitter' => array('type' => 'text', 'label' => __('Twitter Url', 'mabu')), 'link_google' => array('type' => 'text', 'label' => __('Google Url', 'mabu')), 'link_dribble' => array('type' => 'text', 'label' => __('Dribble Url', 'mabu')), 'link_linkedin' => array('type' => 'text', 'label' => __('Linked in Url', 'mabu')), 'link_pinterest' => array('type' => 'text', 'label' => __('Pinterest Url', 'mabu')), 'link_digg' => array('type' => 'text', 'label' => __('Digg Url', 'mabu')), 'link_youtube' => array('type' => 'text', 'label' => __('Youtube Url', 'mabu')), 'link_target' => array("type" => "select", "label" => __("Link Target", 'mabu'), "options" => array("_self" => __("Same window", 'mabu'), "_blank" => __("New window", 'mabu'))), 'style' => array('type' => 'select', 'label' => __('Style', 'mabu'), 'default' => 'default', 'options' => array('default' => __('Default', 'mabu'), 'style2' => __('Style 2', 'mabu'))), 'align' => array('type' => 'select', 'label' => __('Align', 'mabu'), 'default' => 'left', 'options' => array('left' => __('Left', 'mabu'), 'right' => __('Right', 'mabu'), 'center' => __('Center', 'mabu')))), TP_THEME_DIR . 'inc/widgets/social/');
 }
示例#17
0
 function __construct()
 {
     parent::__construct('events', __('Thim: Events', 'nem'), array('description' => __('Display events', 'nem'), 'help' => '', 'panels_groups' => array('thim_widget_group')), array(), array('column' => array('type' => 'number', 'label' => __('Column', 'nem'), 'default' => '3'), 'number' => array('type' => 'number', 'label' => __('Number Events', 'nem'), 'default' => '3'), 'display_link' => array('type' => 'select', 'label' => __('Link View All', 'nem'), 'default' => 'yes', 'options' => array('yes' => 'Show', 'no' => 'Hidden'))), TP_THEME_DIR . 'inc/widgets/events/');
 }
示例#18
0
 function __construct()
 {
     parent::__construct('counters-box', __('Thim: Counters Box', 'mabu'), array('description' => __('Counters Box', 'mabu'), 'help' => '', 'panels_groups' => array('thim_widget_group')), array(), array('counters_label' => array("type" => "text", "label" => __("Counters label", 'mabu')), 'counters_value' => array("type" => "number", "label" => __("Counters Value", 'mabu'), "default" => "20"), 'display_number' => array("type" => "number", "label" => __("Length Of Number", 'mabu'), "default" => "2"), 'icon' => array("type" => "icon", "label" => __("Icon", 'mabu')), 'border_color' => array("type" => "color", "label" => __("Border Color Icon", 'mabu')), 'counter_color' => array("type" => "color", "label" => __("Counters Box Icon", 'mabu')), 'css_animation' => array("type" => "select", "label" => __("CSS Animation", 'mabu'), "options" => array("" => __("No", 'mabu'), "top-to-bottom" => __("Top to bottom", 'mabu'), "bottom-to-top" => __("Bottom to top", 'mabu'), "left-to-right" => __("Left to right", 'mabu'), "right-to-left" => __("Right to left", 'mabu'), "appear" => __("Appear from center", 'mabu')))), TP_THEME_DIR . 'inc/widgets/counters-box/');
 }
示例#19
0
 function __construct()
 {
     parent::__construct('accordion', __('Thim: Accordion', 'mabu'), array('description' => __('Add Accordion', 'mabu'), 'help' => '', 'panels_groups' => array('thim_widget_group')), array(), array('title' => array('type' => 'text', 'label' => __('Title', 'mabu'), 'default' => ''), 'panel' => array('type' => 'repeater', 'label' => __('Panel List', 'mabu'), 'item_name' => __('Panel', 'mabu'), 'fields' => array('panel_title' => array('type' => 'text', 'label' => __('Panel Title', 'mabu')), 'panel_body' => array('type' => 'textarea', 'allow_html_formatting' => true, 'label' => __('Panel Body', 'mabu'))))), TP_THEME_DIR . 'inc/widgets/accordion/');
 }
示例#20
0
 function __construct()
 {
     parent::__construct('loginout', __('Thim: Login/Out', 'mabu'), array('description' => __('Displays a login link, or if a user is logged in, displays a logout link', 'mabu'), 'help' => '', 'panels_groups' => array('thim_widget_group')), array(), array(), TP_THEME_DIR . 'inc/widgets/loginout/');
 }
示例#21
0
 function __construct()
 {
     parent::__construct('button', __('Thim: Button', 'mabu'), array('description' => __('Button', 'mabu'), 'help' => '', 'panels_groups' => array('thim_widget_group')), array(), array('text' => array('type' => 'text', 'label' => __('Text', 'mabu'), 'default' => __('Button Text', 'mabu')), 'link' => array('type' => 'text', 'label' => __('Link', 'mabu'), 'default' => __('#', 'mabu')), 'target' => array('type' => 'select', 'label' => __('Open in new window', 'mabu'), 'default' => '_blank', 'options' => array('_blank' => __('Yes', 'mabu'), '_self' => __('No', 'mabu'))), 'align' => array('type' => 'select', 'label' => __('Align', 'mabu'), 'default' => 'left', 'options' => array('left' => __('Left', 'mabu'), 'right' => __('Right', 'mabu'), 'center' => __('Center', 'mabu'))), 'style' => array('type' => 'select', 'label' => __('Style', 'mabu'), 'default' => 'default', 'options' => array('default' => __('Default', 'mabu'), 'style2' => __('Style 2', 'mabu'), 'style3' => __('Style 3', 'mabu'), 'style4' => __('Style 4', 'mabu'), 'style5' => __('Style 5', 'mabu'))), 'size' => array('type' => 'select', 'label' => __('Sizes', 'mabu'), 'default' => 'default', 'options' => array('default' => __('Default button', 'mabu'), 'large' => __('Large button', 'mabu')))), TP_THEME_DIR . 'inc/widgets/button/');
 }
示例#22
0
 function __construct()
 {
     parent::__construct('document', __('Thim: Document List', 'mabu'), array('description' => __('Add document list', 'mabu'), 'help' => '', 'panels_groups' => array('thim_widget_group')), array(), array('title' => array('type' => 'text', 'label' => __('Title', 'mabu'), 'default' => __("Documents", 'mabu')), 'description' => array('type' => 'text', 'label' => __('Description', 'mabu'), 'default' => ''), 'image' => array('type' => 'media', 'label' => __('Image', 'mabu')), 'doc_cat' => array('type' => 'select', 'label' => __('Documentation Categories', 'mabu'), 'default' => 'none', 'options' => $this->thim_get_categories()), 'number_posts' => array('type' => 'number', 'label' => __('Number Post', 'mabu'), 'default' => '4'), 'orderby' => array("type" => "select", "label" => __("Order by", 'mabu'), "options" => array("popular" => __("Popular", 'mabu'), "recent" => __("Recent", 'mabu'), "title" => __("Title", 'mabu'), "random" => __("Random", 'mabu'))), 'order' => array("type" => "select", "label" => __("Order by", 'mabu'), "options" => array("asc" => __("ASC", 'mabu'), "desc" => __("DESC", 'mabu')))), TP_THEME_DIR . 'inc/widgets/document/');
 }
示例#23
0
 function __construct()
 {
     parent::__construct('woo-box', __('Thim: Woocomerce Single Product Box', 'mabu'), array('description' => __('Display single product woocommerce', 'mabu'), 'help' => '', 'panels_groups' => array('thim_widget_group')), array(), array('title' => array('type' => 'text', 'label' => __('Title', 'mabu')), 'description' => array('type' => 'textarea', 'label' => __('Description', 'mabu')), 'image' => array('type' => 'media', 'label' => __('Image', 'mabu'), 'description' => __('Select image from media library.', 'mabu'))), TP_THEME_DIR . 'inc/widgets/woo-box/');
 }
示例#24
0
 function __construct()
 {
     parent::__construct('list-job', __('Thim: List Jobs', 'mabu'), array('description' => __('Show list job by category', 'mabu'), 'help' => '', 'panels_groups' => array('thim_widget_group')), array(), array('title' => array('type' => 'text', 'label' => __('Title', 'mabu'), 'default' => __("Jobs", 'mabu')), 'cat_id' => array('type' => 'select', 'label' => __('Select Categories', 'mabu'), 'default' => 'none', 'options' => $this->thim_get_categories()), 'orderby' => array("type" => "select", "label" => __("Order by", 'mabu'), "options" => array("recent" => __("Recent", 'mabu'), "title" => __("Title", 'mabu'), "random" => __("Random", 'mabu'))), 'order' => array("type" => "select", "label" => __("Order by", 'mabu'), "options" => array("asc" => __("ASC", 'mabu'), "desc" => __("DESC", 'mabu'))), 'number_posts' => array('type' => 'number', 'label' => __('Number Job', 'mabu'), 'default' => '4'), 'description' => array("type" => "select", "label" => __("Display Description", 'mabu'), "options" => array(true => __("Yes", 'mabu'), false => __("No", 'mabu')))), TP_THEME_DIR . 'inc/widgets/list-job/');
 }
示例#25
0
 function __construct()
 {
     parent::__construct('single-images', __('Thim: Single Images', 'mabu'), array('description' => __('Add heading text', 'mabu'), 'help' => '', 'panels_groups' => array('thim_widget_group')), array(), array('image' => array('type' => 'media', 'label' => __('Image', 'mabu'), 'description' => __('Select image from media library.', 'mabu')), 'image_size' => array('type' => 'text', 'label' => __('Image size', 'mabu'), 'description' => __('Enter image size. Example: "thumbnail", "medium", "large", "full" or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height). Leave empty to use "thumbnail" size.', 'mabu')), 'image_link' => array('type' => 'text', 'label' => __('Image Link', 'mabu'), 'description' => __('Enter URL if you want this image to have a link.', 'mabu')), 'link_target' => array("type" => "select", "label" => __("Link Target", 'mabu'), "options" => array("_self" => __("Same window", 'mabu'), "_blank" => __("New window", 'mabu'))), 'image_alignment' => array("type" => "select", "label" => __("Image alignment", 'mabu'), "description" => "Select image alignment.", "options" => array("left" => __("Align Left", 'mabu'), "right" => __("Align Right", 'mabu'), "center" => __("Align Center", 'mabu'))), 'image_parallax' => array('type' => 'checkbox', 'label' => __('Images Parallax', 'mabu')), 'css_animation' => array("type" => "select", "label" => __("CSS Animation", 'mabu'), "options" => array("" => __("No", 'mabu'), "top-to-bottom" => __("Top to bottom", 'mabu'), "bottom-to-top" => __("Bottom to top", 'mabu'), "left-to-right" => __("Left to right", 'mabu'), "right-to-left" => __("Right to left", 'mabu'), "appear" => __("Appear from center", 'mabu')))), TP_THEME_DIR . 'inc/widgets/single-images/');
 }