',
'params' => array(
'site_name' => array(
'type' => 'text',
'label' => __pl('site_title'),
'desc' => __pl('site_title_desc'),
'default' => get_bloginfo( 'name' ),
),
'align' => array(
'type' => 'radio',
'label' => __pl('obj_align_label'),
'default' => 'center',
'list' => array(
'left' => __pl('left'),
'center' => __pl('center'),
'right' => __pl('right')
),
'css' => ['{{element}} div' => 'text-align:{{val}};'],
),
'font_size' => array(
'type' => 'spinner',
'label' => 'Font Size',
'default' => '',
'min' => 1,
'max' => 1000,
'step' => 1,
'css' => ['{{element}} span' => 'font-size:{{val}}px;'],
),
'color' => array(
'type' => 'color',
'label' => 'Font Color',
'default' => '',
'css' => ['{{element}} span' => 'color:{{val}};'],
),
'site_logo' => array(
'type' => 'checkbox',
'label' => __pl('site_logo'),
'desc' => __pl('site_logo_desc'),
),
'logo_img' => array(
'type' => 'image',
'label' => __pl('site_logo_select'),
'default' => '',
'req' => array(
'site_logo' => 'true'
)
),
'logo_img_size' => array(
'type' => 'dimension',
'label' => __pl('site_logo_size'),
'desc' => __pl('site_logo_size_desc'),
'default' => '',
'req' => array(
'site_logo' => 'true'
),
'css' => ['{{element}} img' => 'height:{{val[0]}}px; width:{{val[1]}}px;'],
)
),
'font_style' => [
'site_title_font_family' => array(
'type' => 'select',
'label' => __pl('opt_google_fonts_family'),
'default' => 'default',
'list' => pagelayer_font_family(),
'css' => ['{{element}} span' => 'font-family: {{val}};'],
),
'site_title_valign' => array(
'type' => 'radio',
'label' => __pl('site_title_position'),
'default' => 'middle',
'css' => ['{{element}} .pagelayer-site-title-name' => 'vertical-align: {{val}}'],
'list' => array(
'top' => __pl('top'),
'middle' => __pl('middle'),
'bottom' => __pl('bottom')
),
'req' => array(
'site_logo' => 'true',
'logo_position' => array('','row-reverse')
)
),
'site_title_align' => array(
'type' => 'radio',
'label' => __pl('site_title_position'),
'default' => 'center',
'css' => ['{{element}} .pagelayer-site-title-name' => 'text-align: {{val}}'],
'list' => array(
'left' => __pl('left'),
'center' => __pl('center'),
'right' => __pl('right')
),
'req' => array(
'site_logo' => 'true',
'logo_position' => array('column','column-reverse')
)
)
],
'logo_style' => [
'logo_position' => array(
'type' => 'radio',
'label' => __pl('site_logo_position'),
'default' => 'left',
'css' => ['{{element}} a' => 'flex-direction: {{val}}'],
'list' => array(
'' => __pl('left'),
'row-reverse' => __pl('right'),
'column' => __pl('top'),
'column-reverse' => __pl('bottom')
),
'req' => array(
'site_logo' => 'true'
)
),
'space_logo' => array(
'type' => 'padding',
'label' => __pl('site_logo_margin'),
'desc' => __pl('site_logo_margin_desc'),
'req' => array(
'site_logo' => 'true'
),
'css' => ['{{element}} img' => 'margin:{{val[0]}}px {{val[1]}}px {{val[2]}}px {{val[3]}}px;'],
)
],
'styles' => [
'logo_style' => __pl('logo_style'),
'font_style' => __pl('font_style'),
]
)
);
// Primary Menu
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_menu', array(
'name' => __pl('Primary Menu'),
'group' => 'wordpress',
'func' => 'pagelayer_sc_wp_menu',
'html' => '',
'params' => array(
'align' => array(
'type' => 'radio',
'label' => 'Alignment',
'default' => 'right',
'list' => array(
'left' => 'Left',
'center' => 'Center',
'right' => 'Right'
)
),
'font_size' => array(
'type' => 'spinner',
'label' => 'Font Size',
'default' => '',
'min' => 1,
'max' => 1000,
'step' => 1
),
'color' => array(
'type' => 'color',
'label' => 'Color',
'default' => ''
),
'background_color' => array(
'type' => 'color',
'label' => 'Background Color',
'default' => ''
),
'font_family' => array(
'type' => 'select',
'label' => 'Font Family',
'default' => 'default',
'list' => pagelayer_font_family(),
),
'item_spacing' => array(
'type' => 'spinner',
'label' => 'Menu Item Spacing',
'default' => '',
'min' => 0,
'max' => 1000,
'step' => 0.5
),
'line_height' => array(
'type' => 'spinner',
'label' => 'Menu Item Height',
'default' => '',
'min' => 0,
'max' => 1000,
'step' => 1
),
'li_submenu' => array(
'type' => 'checkbox',
'label' => 'Style for Dropdown Menu',
'desc' => 'Check this to add style for dropdown menu items',
),
'dd_font_size' => array(
'type' => 'spinner',
'label' => 'Font Size',
'default' => '',
'min' => 1,
'max' => 1000,
'step' => 1,
'req' => array(
'li_submenu' => 'true'
)
),
'dd_color' => array(
'type' => 'color',
'label' => 'Color',
'default' => '',
'req' => array(
'li_submenu' => 'true'
)
),
'dd_background_color' => array(
'type' => 'color',
'label' => 'Background Color',
'default' => '',
'req' => array(
'li_submenu' => 'true'
)
),
'dd_line_height' => array(
'type' => 'spinner',
'label' => 'Menu Item Height',
'default' => '',
'min' => 0,
'max' => 1000,
'step' => 1,
'req' => array(
'li_submenu' => 'true'
)
),
'active_page' => array(
'type' => 'checkbox',
'label' => 'Active Page Effect',
'desc' => 'Check this to add style for active menu item',
),
'active_page_bg' => array(
'type' => 'color',
'label' => 'Active Page Background',
'default' => '',
'req' => array(
'active_page' => 'true'
)
),
'active_page_color' => array(
'type' => 'color',
'label' => 'Active Page Color',
'default' => '',
'req' => array(
'active_page' => 'true'
)
)
)
)
);
// Posts Grid
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_posts_grid', array(
'name' => __pl('Posts Grid'),
'group' => 'wordpress',
'func' => 'pagelayer_sc_wp_posts_grid',
'html' => '
',
'params' => array(
'query_type' => array(
'type' => 'radio',
'label' => __pl('posts_grid_query_type_label'),
'desc' => __pl('posts_grid_query_type_desc'),
'default' => 'simple',
'list' => array(
'simple' => __pl('simple'),
'custom' => __pl('posts_grid_custom_query_label'),
'ids' => __pl('ids'),
)
),
'post_type' => array(
'type' => 'select',
'label' => __pl('posts_grid_post_type_label'),
'desc' => __pl('posts_grid_post_type_desc'),
'list' => pagelayer_post_types(),
'req' => array(
'query_type' => 'simple'
)
),
'category' => array(
'type' => 'text',
'label' => __pl('posts_grid_category_label'),
'desc' => __pl('posts_grid_category_desc'),
'req' => array(
'post_type' => 'post'
)
),
'tag' => array(
'type' => 'text',
'label' => __pl('posts_grid_tag_label'),
'desc' => __pl('posts_grid_tag_desc'),
'req' => array(
'post_type' => 'post'
)
),
'custom_tax' => array(
'type' => 'text',
'label' => __pl('posts_grid_custom_tax_label'),
'req' => array(
'query_type' => 'simple'
)
),
'custom_tax_field' => array(
'type' => 'select',
'label' => __pl('posts_grid_custom_tax_field_label'),
'default' => 'slug',
'list' => array(
'term_id' => __pl('term_id'),
'slug' => __pl('slug'),
'name' => __pl('name')
),
'req' => array(
'query_type' => 'simple'
)
),
'custom_tax_terms' => array(
'type' => 'text',
'label' => __pl('posts_grid_custom_tax_term_label'),
'desc' => __pl('posts_grid_custom_tax_term_desc'),
'req' => array(
'query_type' => 'simple'
)
),
'posts_per_page' => array(
'type' => 'spinner',
'label' => __pl('posts_grid_posts_per_page_label'),
'default' => 4, // For backward compatibility in lite version must be 3 posts per page
'min' => 1,
'max' => 40,
'step' => 1,
'req' => array(
'query_type' => 'simple'
)
),
'posts_order' => array(
'type' => 'radio',
'label' => __pl('posts_grid_sort_order'),
'default' => 'DESC',
'list' => array(
'ASC' => __pl('posts_grid_sort_order_ascending'),
'DESC' => __pl('posts_grid_sort_order_descending')
),
'req' => array(
'query_type' => 'simple'
)
),
'custom_query' => array(
'type' => 'textarea',
'label' => __pl('posts_grid_custom_query_label'),
'desc' => __pl('posts_grid_custom_query_desc'),
'req' => array(
'query_type' => 'custom'
)
),
'ids' => array(
'type' => 'text',
'label' => __pl('posts_grid_ids_label'),
'desc' => __pl('posts_grid_ids_desc'),
'req' => array(
'query_type' => 'ids'
)
),
'columns' => array(
'type' => 'radio',
'label' => __pl('columns_count'),
'default' => 2,
'list' => array(
1 => 1,
2 => 2,
3 => 3,
4 => 4,
6 => 6
)
),
'template' => array(
'type' => 'select',
'label' => __pl('posts_grid_template_label'),
'list' => array(),
),
'posts_gap' => array(
'type' => 'slider',
'label' => __pl('posts_grid_posts_gap_label'),
'default' => 30,
'min' => 0,
'max' => 100,
'step' => 10,
),
'show_featured_image' => array(
'type' => 'checkbox',
'label' => __pl('posts_grid_show_featured_image'),
'default' => 'true',
),
'image_size' => array(
'type' => 'radio',
'label' => __pl('obj_image_size_label'),
'default' => 'large',
'list' => array(
'full' => __pl('full'),
'large' => __pl('large'),
'medium' => __pl('medium'),
'thumbnail' => __pl('thumbnail'),
'custom' => __pl('custom')
),
'req' => array(
'show_featured_image' => 'true'
),
),
'image_custom_size' => array(
'type' => 'text',
'desc' => __pl('image_custom_size_label'),
'req' => array(
'image_size' => 'custom'
),
),
'title_tag' => array(
'type' => 'radio',
'label' => __pl('posts_grid_title_tag'),
'default' => 'h2',
'list' => array(
'h1' => 'H1',
'h2' => 'H2',
'h3' => 'H3',
'h4' => 'H4',
'h5' => 'H5',
'hide' => __pl('posts_grid_title_tag_none'),
)
),
'show_date_comments' => array(
'type' => 'checkbox',
'label' => __pl('posts_grid_show_date_comments'),
'default' => 'true',
),
'show_content' => array(
'type' => 'radio',
'label' => __pl('posts_grid_show_content'),
'default' => 'short',
'list' => array(
'short' => __pl('posts_grid_show_content_short'),
'full' => __pl('posts_grid_show_content_full'),
'excerpt' => __pl('posts_grid_show_content_excerpt'),
'hide' => __pl('posts_grid_show_content_none'),
)
),
'short_content_length' => array(
'type' => 'slider',
'label' => __pl('posts_grid_short_content_length'),
'default' => 200,
'min' => 0,
'max' => 1000,
'step' => 20,
'req' => array(
'show_content' => 'short'
),
),
'read_more_text' => array(
'type' => 'text',
'label' => __pl('posts_grid_read_more_text_label'),
'default' => __pl('posts_grid_read_more_text')
),
'display_style' => array(
'type' => 'radio',
'label' => __pl('posts_grid_display_style'),
'default' => 'show_all',
'list' => array(
'show_all' => __pl('show_all'),
'load_more' => __pl('posts_grid_display_style_load_more'),
'pagination' => __pl('posts_grid_display_style_pagination')
)
),
'load_more_text' => array(
'type' => 'text',
'label' => __pl('posts_grid_load_more_text_label'),
'default' => __pl('posts_grid_load_more_text_default'), // "Load More"
'req' => array(
'display_style' => 'load_more'
)
),
'filter' => array(
'type' => 'radio',
'label' => __pl('posts_grid_filter_label'),
'desc' => __pl('posts_grid_filter_desc'),
'default' => 'none',
'list' => array(
'none' => __pl('none'),
'cats' => __pl('posts_grid_filter_by_first_tax'),
'tags' => __pl('posts_grid_filter_by_second_tax'),
'both' => __pl('posts_grid_filter_by_both')
),
'req' => array(
'query_type' => 'simple'
)
),
'filter_tax_1' => array(
'type' => 'select',
'label' => __pl('posts_grid_filter_first_tax_name'),
'desc' => '',
'default' => 'category',
'list' => pagelayer_tax_list('category'),
'req' => array(
'filter' => array( 'cats', 'both' )
)
),
'filter_tax_2' => array(
'type' => 'select',
'label' => __pl('posts_grid_filter_second_tax_name'),
'desc' => '',
'default' => 'post_tag',
'list' => pagelayer_tax_list('post_tag'),
'req' => array(
'filter' => array( 'tags', 'both' )
)
),
'filter_btn_color' => array(
'type' => 'color',
'label' => __pl('button_color_label'),
'default' => 'pagelayer-btn-color-silver',
'list' => array(
'none' => __pl('none'),
'pagelayer-btn-color-silver' => __pl('silver'),
'pagelayer-btn-color-red' => __pl('red'),
'pagelayer-btn-color-pink-dreams' => __pl('pink_dreams'),
'pagelayer-btn-color-warm' => __pl('warm'),
'pagelayer-btn-color-hot-summer' => __pl('hot_summer'),
'pagelayer-btn-color-olive-garden' => __pl('olive_garden'),
'pagelayer-btn-color-green-grass' => __pl('green_grass'),
'pagelayer-btn-color-skyline' => __pl('skyline'),
'pagelayer-btn-color-aqua-blue' => __pl('aqua_blue'),
'pagelayer-btn-color-violet' => __pl('violet'),
'pagelayer-btn-color-dark-grey' => __pl('dark_grey'),
'pagelayer-btn-color-black' => __pl('black')
),
'req' => array(
'!filter' => 'none'
)
),
'filter_btn_divider' => array(
'type' => 'text',
'label' => __pl('filter_links_divider'),
'default' => '/',
'req' => array(
'filter_btn_color' => 'none'
)
),
'filter_cats_text' => array(
'type' => 'text',
'label' => __pl('posts_grid_filter_first_tax_text_label'),
'default' => __pl('categories') . ':',
'req' => array(
'filter' => array('cats', 'both')
)
),
'filter_tags_text' => array(
'type' => 'text',
'label' => __pl('posts_grid_filter_second_tax_text_label'),
'default' => __pl('tags') . ':',
'req' => array(
'filter' => array('tags', 'both')
)
),
'filter_all_text' => array(
'type' => 'text',
'label' => __pl('posts_grid_filter_view_all_text_label'),
'default' => __pl('all'),
'req' => array(
'!filter' => 'none'
)
)
)
)
);
// Posts Slider
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_posts_slider', array(
'name' => __pl('Posts Slider'),
'group' => 'wordpress',
'func' => 'pagelayer_sc_wp_posts_slider',
'html' => '
',
'params' => array(
'post_type' => array(
'type' => 'select',
'label' => __pl('posts_slider_post_types_label'),
'default' => 'post',
'list' => pagelayer_post_types(true),
),
'category' => array(
'type' => 'text',
'label' => __pl('posts_grid_category_label'),
'desc' => __pl('posts_grid_category_desc'),
'req' => array(
'post_type' => 'post'
),
),
'tag' => array(
'type' => 'text',
'label' => __pl('posts_grid_tag_label'),
'desc' => __pl('posts_grid_tag_desc'),
'req' => array(
'post_type' => 'post'
),
),
'custom_tax' => array(
'type' => 'text',
'label' => __pl('posts_grid_custom_tax_label'),
'default' => ''
),
'custom_tax_field' => array(
'type' => 'select',
'label' => __pl('posts_grid_custom_tax_field_label'),
'default' => 'slug',
'list' => array(
'term_id' => __pl('term_id'),
'slug' => __pl('slug'),
'name' => __pl('name')
)
),
'custom_tax_terms' => array(
'type' => 'text',
'label' => __pl('posts_grid_custom_tax_term_label'),
'default' => '',
'desc' =>__pl('posts_grid_custom_tax_term_desc')
),
'posts_count' => array(
'type' => 'spinner',
'label' => __pl('posts_slider_posts_count_label'),
'default' => 3,
'min' => 1,
'max' => 100,
'step' => 1
),
'order_by' => array(
'type' => 'select',
'label' => __pl('posts_slider_order_by'),
'default' => 'date',
'list' => array(
'ID' => __pl('posts_slider_order_by_id'),
'date' => __pl('posts_slider_order_by_date'),
'author' => __pl('posts_slider_order_by_author'),
'modified' => __pl('posts_slider_order_by_modified'),
'rand' => __pl('posts_slider_order_by_random'),
'comment_count' => __pl('posts_slider_order_by_comment_count'),
'menu_order' => __pl('posts_slider_order_by_menu_order'),
),
),
'sort_order' => array(
'type' => 'radio',
'label' => __pl('posts_grid_sort_order'),
'default' => 'DESC',
'list' => array(
'ASC' => __pl('posts_grid_sort_order_ascending'),
'DESC' => __pl('posts_grid_sort_order_descending')
),
),
'title_tag' => array(
'type' => 'radio',
'label' => __pl('posts_grid_post_title_tag'),
'default' => 'h2',
'list' => array(
'h1' => 'H1',
'h2' => 'H2',
'h3' => 'H3',
'h4' => 'H4',
'h5' => 'H5',
'hide' => __pl('posts_grid_title_tag_none'),
)
),
'show_content' => array(
'type' => 'radio',
'label' => __pl('posts_grid_show_content'),
'default' => 'short',
'list' => array(
'short' => __pl('posts_grid_show_content_short'),
'full' => __pl('posts_grid_show_content_full'),
'excerpt' => __pl('posts_grid_show_content_excerpt'),
'hide' => __pl('posts_grid_show_content_none'),
),
),
'short_content_length' => array(
'type' => 'slider',
'label' => __pl('posts_grid_short_content_length'),
'default' => 200,
'min' => 0,
'max' => 1000,
'step' => 20,
'req' => array(
'show_content' => 'short'
),
),
'image_size' => array(
'type' => 'radio',
'label' => __pl('obj_image_size_label'),
'default' => 'thumbnail',
'list' => array(
'full' => __pl('full'),
'large' => __pl('large'),
'medium' => __pl('medium'),
'thumbnail' => __pl('thumbnail'),
'custom' => __pl('custom')
),
'req' => array(
'!layout' => 'title_text'
)
),
'custom_size' => array(
'type' => 'text',
'desc' => __pl('image_custom_size_label'),
'req' => array(
'image_size' => 'custom'
),
),
'layout' => array(
'type' => 'select',
'label' => __pl('service_box_layout_label'),
'default' => 'title_img_text_wrap',
'list' => array(
//'title_img_text' => __pl('posts_slider_layout_title_image_text'),
'img_title_text' => __pl('posts_slider_layout_image_title_text'),
//'title_img_inline' => __pl('posts_slider_layout_image_title_inline'),
'title_img_text_wrap' => __pl('posts_slider_layout_image_title_text_wrap'),
'title_text'=> __pl('posts_slider_layout_title_text')
),
),
'img_position' => array(
'type' => 'radio',
'label' => __pl('posts_slider_image_position'),
'default' => 'left',
'list' => array(
'left' => __pl('left'),
'right' => __pl('right'),
),
'req' => array(
'!layout' => 'title_text'
)
),
'post_link' => array(
'type' => 'select',
'label' => __pl('image_link_label'),
'default' => 'link_to_post',
'list' => array(
'link_to_post' => __pl('posts_slider_post_link'),
'custom_link' => __pl('posts_slider_open_custom_links'),
'no_link' => __pl('posts_slider_no_link'),
),
),
'custom_links' => array(
'type' => 'textarea',
'label' => __pl('posts_slider_open_custom_links'),
'default' => site_url(),
'desc' => __pl('posts_slider_custom_links_description'),
'req' => array(
'post_link' => 'custom_link'
),
),
'slideshow_speed' => array(
'type' => 'radio',
'label' => __pl('posts_slider_auto_rotate_label'),
'default' => '15000',
'list' => array(
'3000' => '3',
'5000' => '5',
'10000' => '10',
'15000' => '15',
'25000' => '25',
'disable' => __pl('disable'),
),
),
'animation' => array(
'type' => 'select',
'label' => __pl('image_slider_animation_label'),
'default' => 'fade',
'list' => array(
'horizontal' => __pl('image_slider_animation_slide'),
'fade' => __pl('image_slider_animation_fade'),
),
),
'smooth_height' => array(
'type' => 'checkbox',
'label' => __pl('image_slider_smooth_height_label'),
'default' => 'true',
'desc' => __pl('image_slider_smooth_height_desc'),
'req' => array(
'animation' => 'slide'
)
),
'show_nav' => array(
'type' => 'checkbox',
'label' => __pl('image_slider_control_nav_label'),
'default' => 'true',
),
'pause_on_hover' => array(
'type' => 'checkbox',
'label' => __pl('posts_slider_pause_on_hover_label'),
'default' => 'true',
),
)
)
);
// Pages
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_pages', array(
'name' => __pl('pages'),
'group' => 'wordpress',
'func' => 'pagelayer_sc_wp_pages',
'html' => '
',
'params' => array(
'title' => array(
'type' => 'text',
'label' => __pl('parameters_title'),
'default' => __pl('wp_pages'),
'desc' => __pl('wp_pages_description')
),
'sortby' => array(
'type' => 'select',
'label' => __pl('sort_by'),
'default' => 'menu_order',
'desc' => '',
'list' => array(
'post_title' => __pl('sort_by_page_title'),
'menu_order' => __pl('sort_by_page_order'),
'ID' => __pl('sort_by_page_id')
),
),
'exclude' => array(
'type' => 'text',
'label' => __pl('exclude'),
'default' => '',
'desc' => __pl('wp_pages_exclude_pages')
)
)
)
);
// Recent Posts
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_posts', array(
'name' => __pl('Recent Posts'),
'group' => 'wordpress',
'func' => 'pagelayer_sc_wp_posts',
'html' => '
',
'params' => array(
'title' => array(
'type' => 'text',
'label' => __pl('parameters_title'),
'default' => __pl('wp_recent_posts'),
'desc' => __pl('wp_recent_posts_description')
),
'number' => array(
'type' => 'text',
'label' => __pl('wp_recent_posts_number'),
'default' => '5',
'desc' => ''
),
'show_date' => array(
'type' => 'checkbox',
'label' => __pl('wp_recent_posts_display_date'),
'default' => '',
'desc' => ''
)
)
)
);
// Calendar
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_calendar', array(
'name' => __pl('calendar'),
'group' => 'wordpress',
'func' => 'pagelayer_sc_wp_calendar',
'html' => '
',
'params' => array(
'title' => array(
'type' => 'text',
'label' => __pl('parameters_title'),
'default' => __pl('wp_calendar'),
'desc' => __pl('wp_calendar_description')
)
)
)
);
// Recent Comments
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_comments', array(
'name' => __pl('Recent Comments'),
'group' => 'wordpress',
'func' => 'pagelayer_sc_wp_comments',
'html' => '',
'params' => array(
'title' => array(
'type' => 'text',
'label' => __pl('parameters_title'),
'default' => __pl('wp_recent_comments'),
'desc' => __pl('wp_recent_comments_description')
),
'number' => array(
'type' => 'text',
'label' => __pl('wp_recent_comments_number'),
'default' => '5',
'desc' => ''
)
)
)
);
// Categories
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_categories', array(
'name' => __pl('categories'),
'group' => 'wordpress',
'func' => 'pagelayer_sc_wp_categories',
'html' => '
',
'params' => array(
'title' => array(
'type' => 'text',
'label' => __pl('parameters_title'),
'default' => __pl('wp_categories'),
'desc' => __pl('wp_categories_description')
),
'dropdown' => array(
'type' => 'checkbox',
'label' => __pl('wp_display_as_drop_down'),
'default' => '',
'desc' => ''
),
'count' => array(
'type' => 'checkbox',
'label' => __pl('wp_show_post_counts'),
'default' => '',
'desc' => ''
),
'hierarchy' => array(
'type' => 'checkbox',
'label' => __pl('wp_categories_show_hierarchy'),
'default' => '',
'desc' => ''
)
)
)
);
// Archives
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_archives', array(
'name' => __pl('archives'),
'group' => 'wordpress',
'func' => 'pagelayer_sc_wp_archives',
'html' => '
',
'params' => array(
'title' => array(
'type' => 'text',
'label' => __pl('parameters_title'),
'default' => __pl('wp_archives'),
'desc' => __pl('wp_archives_description')
),
'dropdown' => array(
'type' => 'checkbox',
'label' => __pl('wp_display_as_drop_down'),
'default' => '',
'desc' => ''
),
'count' => array(
'type' => 'checkbox',
'label' => __pl('wp_show_post_counts'),
'default' => '',
'desc' => ''
)
)
)
);
// Tag Cloud
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_tags', array(
'name' => __pl('Tag Cloud'),
'group' => 'wordpress',
'func' => 'pagelayer_sc_wp_tags',
'html' => '
',
'params' => array(
'title' => array(
'type' => 'text',
'label' => __pl('parameters_title'),
'default' => __pl('wp_tags'),
'desc' => __pl('wp_tag_cloud_description')
),
'taxonomy' => array(
'type' => 'select',
'label' => __pl('wp_tag_cloud_taxonomy'),
'default' => 'post_tag',
'desc' => '',
'list' => array(
'post_tag' => __pl('wp_tags'),
'category' => __pl('wp_tag_cloud_categories'),
)
)
)
)
);
// Search
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_search', array(
'name' => __pl('search'),
'group' => 'wordpress',
'func' => 'pagelayer_sc_wp_search',
'html' => '
',
'params' => array(
'title' => array(
'type' => 'text',
'label' => __pl('parameters_title'),
'default' => __pl('wp_rsssearch'),
'desc' => __pl('wp_rsssearch_description')
)
)
)
);
// RSS
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_rss', array(
'name' => __pl('rss'),
'group' => 'wordpress',
'func' => 'pagelayer_sc_wp_rss',
'html' => '',
'params' => array(
'url' => array(
'type' => 'text',
'label' => __pl('wp_rssurl'),
'default' => 'http://www.getpagelayer.com/feed/',
'desc' => __pl('wp_rssurl_description')
),
'title' => array(
'type' => 'text',
'label' => __pl('wp_rssfeed_title'),
'default' => '',
'desc' => __pl('wp_rssfeed_title_description')
),
'items' => array(
'type' => 'select',
'label' => __pl('wp_rssquantity'),
'default' => 9,
'desc' => __pl('wp_rssquantity_description'),
'list' => array(
1 => 1,
2 => 2,
3 => 3,
4 => 4,
5 => 5,
6 => 6,
7 => 7,
8 => 8,
9 => 9,
10 => 10
),
),
'show_summary' => array(
'type' => 'checkbox',
'label' => __pl('wp_rssdisplay_content'),
'default' => '',
'desc' => ''
),
'show_author' => array(
'type' => 'checkbox',
'label' => __pl('wp_rssdisplay_author'),
'default' => '',
'desc' => ''
),
'show_date' => array(
'type' => 'checkbox',
'label' => __pl('wp_rssdisplay_date'),
'default' => '',
'desc' => ''
)
)
)
);
// Meta
pagelayer_add_shortcode(PAGELAYER_SC_PREFIX.'_wp_meta', array(
'name' => __pl('meta'),
'group' => 'wordpress',
'func' => 'pagelayer_sc_wp_meta',
'html' => '
',
'params' => array(
'title' => array(
'type' => 'text',
'label' => __pl('parameters_title'),
'default' => __pl('wp_meta'),
'desc' => __pl('wp_meta_description')
)
)
)
);
Recent Comments