コード例 #1
0
<?php

$options = array();
$options[] = array('id' => '_sh_tax_seo_settings', 'types' => array('category', 'post_tag'), 'title' => __('SEO Settings', SH_NAME), 'priority' => 'high', 'template' => array(array('type' => 'toggle', 'name' => 'seo_status', 'label' => __('Enable SEO', SH_NAME)), array('type' => 'textbox', 'name' => 'title', 'label' => __('Meta Title', SH_NAME)), array('type' => 'textarea', 'name' => 'description', 'label' => __('Meta Description', SH_NAME), 'default' => ''), array('type' => 'textarea', 'name' => 'keywords', 'label' => __('Meta Keywords', SH_NAME), 'default' => '')));
$options[] = array('id' => _WSH()->set_term_key('category'), 'types' => array('category', 'post_tag'), 'title' => __('Post Category Settings', SH_NAME), 'priority' => 'high', 'template' => array(array('type' => 'textbox', 'name' => 'header_title', 'label' => __('Header Title', SH_NAME)), array('type' => 'upload', 'name' => 'header_img', 'label' => __('Header image', SH_NAME)), array('type' => 'radioimage', 'name' => 'view', 'label' => __('Page View', SH_NAME), 'items' => array(array('value' => 'grid', 'label' => __('Grid View', SH_NAME), 'img' => get_template_directory_uri() . '/includes/vafpress/public/img/grid-alt.png'), array('value' => 'list', 'label' => __('List View', SH_NAME), 'img' => get_template_directory_uri() . '/includes/vafpress/public/img/list3.png'))), array('type' => 'radioimage', 'name' => 'layout', 'label' => __('Page Layout', SH_NAME), 'items' => array(array('value' => 'left', 'label' => __('Left Sidebar', SH_NAME), 'img' => get_template_directory_uri() . '/includes/vafpress/public/img/2cl.png'), array('value' => 'right', 'label' => __('Right Sidebar', SH_NAME), 'img' => get_template_directory_uri() . '/includes/vafpress/public/img/2cr.png'), array('value' => 'full', 'label' => __('Full Width', SH_NAME), 'img' => get_template_directory_uri() . '/includes/vafpress/public/img/1col.png'))), array('type' => 'select', 'name' => 'sidebar', 'label' => __('Sidebar', SH_NAME), 'default' => '', 'items' => sh_get_sidebars(true))));
$options[] = array('id' => _WSH()->set_term_key('category'), 'types' => array('product_cat', 'product_tag'), 'title' => __('Post Category Settings', SH_NAME), 'priority' => 'high', 'template' => array(array('type' => 'textbox', 'name' => 'header_title', 'label' => __('Header Title', SH_NAME)), array('type' => 'upload', 'name' => 'header_img', 'label' => __('Header image', SH_NAME)), array('type' => 'radioimage', 'name' => 'layout', 'label' => __('Page Layout', SH_NAME), 'items' => array(array('value' => 'left', 'label' => __('Left Sidebar', SH_NAME), 'img' => get_template_directory_uri() . '/includes/vafpress/public/img/2cl.png'), array('value' => 'right', 'label' => __('Right Sidebar', SH_NAME), 'img' => get_template_directory_uri() . '/includes/vafpress/public/img/2cr.png'), array('value' => 'full', 'label' => __('Full Width', SH_NAME), 'img' => get_template_directory_uri() . '/includes/vafpress/public/img/1col.png'))), array('type' => 'select', 'name' => 'sidebar', 'label' => __('Sidebar', SH_NAME), 'default' => '', 'items' => sh_get_sidebars(true))));
return $options;
/**
 * EOF
 */
コード例 #2
0
						'default' => '',
						'description' => __('Enter meta description', SH_NAME),
					),
					array(
						'type' => 'textarea',
						'name' => 'keywords',
						'label' => __('Meta Keywords', SH_NAME),
						'default' => '',
						'description' => __('Enter meta keywords', SH_NAME),
					),
				),
);*/
/** SEO fields for custom posts and pages */
/* Page options */
$options[] = array('id' => _WSH()->set_meta_key('page'), 'types' => array('page'), 'title' => __('Page Settings', SH_NAME), 'priority' => 'high', 'template' => array(array('type' => 'toggle', 'name' => 'is_onepage', 'label' => __('Either one page or not', SH_NAME), 'default' => '', 'description' => __('Enable or disable one page option, you must choose one page templat as well', SH_NAME)), array('type' => 'sorter', 'name' => 'single_pages', 'max_selection' => 10, 'label' => __('Choose Pages', SH_NAME), 'description' => __('Choose pages to show on Single page', SH_NAME), 'items' => array('data' => array(array('source' => 'function', 'value' => 'vp_get_pages'))), 'dependency' => array('field' => 'is_onepage', 'function' => 'vp_dep_boolean'))));
$options[] = array('id' => '_sh_layout_settings', 'types' => array('post', 'page', 'product'), 'title' => __('Layout Settings', SH_NAME), 'priority' => 'high', 'template' => array(array('type' => 'radioimage', 'name' => 'layout', 'label' => __('Page Layout', SH_NAME), 'description' => __('Choose the layout for blog pages', SH_NAME), 'items' => array(array('value' => 'left', 'label' => __('Left Sidebar', SH_NAME), 'img' => SH_TH_URL . '/includes/vafpress/public/img/2cl.png'), array('value' => 'right', 'label' => __('Right Sidebar', SH_NAME), 'img' => SH_TH_URL . '/includes/vafpress/public/img/2cr.png'), array('value' => 'full', 'label' => __('Full Width', SH_NAME), 'img' => SH_TH_URL . '/includes/vafpress/public/img/1col.png'))), array('type' => 'select', 'name' => 'sidebar', 'label' => __('Sidebar', SH_NAME), 'default' => '', 'items' => sh_get_sidebars(true))));
$options[] = array('id' => '_sh_header_settings', 'types' => array('post', 'page', 'product', 'sh_portfolio', 'sh_team'), 'title' => __('Header Settings', SH_NAME), 'priority' => 'high', 'template' => array(array('type' => 'upload', 'name' => 'bg_image', 'label' => __('Header Background Image', SH_NAME), 'description' => __('Choose the header background image', SH_NAME))));
$options[] = array('id' => _WSH()->set_meta_key('post'), 'types' => array('post'), 'title' => __('Post Settings', SH_NAME), 'priority' => 'high', 'template' => array(array('type' => 'toggle', 'name' => 'top_posts', 'label' => __('Show/Hide top posts', SH_NAME), 'description' => __('Enable / disable seo Top post', SH_NAME)), array('type' => 'group', 'repeating' => true, 'length' => 1, 'name' => 'sh_gallery_imgs', 'title' => __('Gallery images', SH_NAME), 'fields' => array(array('type' => 'upload', 'name' => 'gallery_image', 'label' => __('Gallery Image', SH_NAME), 'description' => __('Choose the Gallery images', SH_NAME)))), array('type' => 'textarea', 'name' => 'video', 'label' => __('Video Embed Code', SH_NAME), 'default' => '', 'description' => __('If post format is video then this embed code will be used in content', SH_NAME)), array('type' => 'textarea', 'name' => 'audio', 'label' => __('Audio Embed Code', SH_NAME), 'default' => '', 'description' => __('If post format is AUDIO then this embed code will be used in content', SH_NAME)), array('type' => 'textarea', 'name' => 'quote', 'label' => __('Quote', SH_NAME), 'default' => '', 'description' => __('If post format is quote then the content in this textarea will be displayed', SH_NAME))));
/** Team Options*/
$options[] = array('id' => _WSH()->set_meta_key('sh_team'), 'types' => array('sh_team'), 'title' => __('Team Options', SH_NAME), 'priority' => 'high', 'template' => array(array('type' => 'textbox', 'name' => 'designation', 'label' => __('Designation', SH_NAME), 'default' => ''), array('type' => 'textbox', 'name' => 'link', 'label' => __('Profile Link', SH_NAME), 'default' => ''), array('type' => 'group', 'repeating' => true, 'length' => 1, 'name' => 'sh_team_social', 'title' => __('Social Profile', SH_NAME), 'fields' => array(array('type' => 'fontawesome', 'name' => 'social_icon', 'label' => __('Social Icon', SH_NAME), 'default' => ''), array('type' => 'textbox', 'name' => 'social_link', 'label' => __('Link', SH_NAME), 'default' => '')))));
/** Testimonial Options*/
$options[] = array('id' => _WSH()->set_meta_key('sh_testimonials'), 'types' => array('sh_testimonials'), 'title' => __('Testimonials Options', SH_NAME), 'priority' => 'high', 'template' => array(array('type' => 'textbox', 'name' => 'company', 'label' => __('Company', SH_NAME), 'default' => 'Envato'), array('type' => 'textbox', 'name' => 'link', 'label' => __('View More Link', SH_NAME), 'default' => ''), array('type' => 'textbox', 'name' => 'designation', 'label' => __('Designation', SH_NAME), 'default' => '')));
/** Projects Options*/
$options[] = array('id' => _WSH()->set_meta_key('sh_portfolio'), 'types' => array('sh_portfolio'), 'title' => __('Projects Options', SH_NAME), 'priority' => 'high', 'template' => array(array('type' => 'textbox', 'name' => 'project_detail_title', 'label' => __('Project Detail Section Title', SH_NAME), 'default' => '', 'description' => __('Project Details', SH_NAME)), array('type' => 'textbox', 'name' => 'customer', 'label' => __('Customer', SH_NAME), 'default' => '', 'description' => __('Enter the name of the client', SH_NAME)), array('type' => 'textbox', 'name' => 'demo_link', 'label' => __('Demo URL', SH_NAME), 'default' => 'http://example.com', 'description' => __('Enter the demo url', SH_NAME)), array('type' => 'textbox', 'name' => 'skills', 'label' => __('Skills', SH_NAME), 'default' => '', 'description' => __('Enter comma separated skills', SH_NAME)), array('type' => 'date', 'name' => 'lanuch_date', 'label' => __('Release Date', SH_NAME), 'default' => '', 'description' => __('Enter project release date', SH_NAME)), array('type' => 'group', 'repeating' => true, 'sortable' => true, 'name' => 'extra_detail', 'title' => __('Extra Portfolio Details', SH_NAME), 'fields' => array(array('type' => 'textbox', 'name' => 'label', 'label' => __('Label', SH_NAME)), array('type' => 'textbox', 'name' => 'value', 'label' => __('Value', SH_NAME)))), array('type' => 'group', 'repeating' => true, 'sortable' => true, 'name' => 'portfolio_images', 'title' => __('Portfolio Images', SH_NAME), 'fields' => array(array('type' => 'upload', 'name' => 'image', 'label' => __('Image', SH_NAME)))), array('type' => 'textarea', 'name' => 'video', 'label' => __('Video Embed Code', SH_NAME), 'default' => '', 'description' => __('If Project Type is video then this embed code will be used in content', SH_NAME)), array('type' => 'textarea', 'name' => 'audio', 'label' => __('Audio Embed Code', SH_NAME), 'default' => '', 'description' => __('If Project Type is AUDIO then this embed code will be used in content', SH_NAME))));
$options[] = array('id' => _WSH()->set_meta_key('sh_gallery'), 'types' => array('sh_gallery'), 'title' => __('Image Gallery Settings', SH_NAME), 'priority' => 'high', 'template' => array(array('name' => 'use_image', 'label' => 'Use Image Gallery', 'type' => 'toggle'), array('type' => 'group', 'repeating' => true, 'sortable' => true, 'name' => 'column', 'title' => __('Images', SH_NAME), 'fields' => array(array('type' => 'textbox', 'name' => 'image_title', 'label' => __('Title', SH_NAME)), array('type' => 'upload', 'label' => __('Image', SH_NAME), 'name' => 'image', 'use_external_plugins' => 1, 'validation' => 'required'), array('type' => 'textarea', 'label' => __('Content', SH_NAME), 'name' => 'content', 'use_external_plugins' => 1, 'disabled_externals_plugins' => 'vp_sc_button', 'disabled_internals_plugins' => '', 'validation' => 'required')))));
$options[] = array('id' => _WSH()->set_meta_key('sh_gallery'), 'types' => array('sh_gallery'), 'title' => __('Video Gallery Settings', SH_NAME), 'priority' => 'high', 'template' => array(array('name' => 'use_video', 'label' => 'Use Videos', 'type' => 'toggle'), array('type' => 'group', 'repeating' => true, 'sortable' => true, 'name' => 'column', 'title' => __('Video', SH_NAME), 'fields' => array(array('type' => 'textbox', 'name' => 'video_title', 'label' => __('Title', SH_NAME)), array('type' => 'textbox', 'label' => __('Video Link', SH_NAME), 'name' => 'link', 'use_external_plugins' => 1, 'validation' => 'required'), array('type' => 'textarea', 'label' => __('Content', SH_NAME), 'name' => 'v_content', 'use_external_plugins' => 1, 'disabled_externals_plugins' => 'vp_sc_button', 'disabled_internals_plugins' => '', 'validation' => 'required')))));
$options[] = array('id' => _WSH()->set_meta_key('sh_services'), 'types' => array('sh_services'), 'title' => __('Services Settings', SH_NAME), 'priority' => 'high', 'template' => array(array('type' => 'fontawesome', 'name' => 'fontawesome', 'label' => __('Service Icon', SH_NAME), 'default' => ''), array('type' => 'textbox', 'name' => 'single_link', 'label' => __('Read More Link', SH_NAME), 'description' => __('Enter the URL to redirect user for further reading', SH_NAME))));
$options[] = array('id' => 'sh_form_settings', 'types' => array('sh_form'), 'title' => __('Form Settings', SH_NAME), 'priority' => 'high', 'template' => array(array('type' => 'radiobutton', 'name' => 'form_method', 'label' => __('Form Submit Method', SH_NAME), 'items' => array(array('value' => 'post', 'label' => __('POST', SH_NAME)), array('value' => 'get', 'label' => __('GET', SH_NAME))), 'default' => 'post'), array('type' => 'radiobutton', 'name' => 'form_submit_type', 'label' => __('Form Submit Type', SH_NAME), 'items' => array(array('value' => 'reload', 'label' => __('Page Reload', SH_NAME)), array('value' => 'ajax', 'label' => __('Ajax', SH_NAME)), array('value' => 'external', 'label' => __('External URL', SH_NAME))), 'default' => 'ajax'), array('type' => 'textbox', 'name' => 'form_action', 'label' => __('Form Action URL', SH_NAME), 'default' => home_url(), 'placeholder' => 'http://example.com'), array('type' => 'textbox', 'name' => 'form_email', 'label' => __('Reciever Email', SH_NAME), 'default' => '', 'description' => __('Enter the email address of receiver to send the form submission detail', SH_NAME)), array('type' => 'textarea', 'name' => 'form_success_msg', 'label' => __('Success Message', SH_NAME), 'default' => '', 'description' => __('Enter the message to show after successful submission of the form', SH_NAME)), array('type' => 'textarea', 'name' => 'form_container', 'label' => __('Form Markup', SH_NAME), 'default' => '
		<form id="contactform" action="{{form_action}}" method="{{form_method}}">
			<div class="row">
				{{form_fields}}
コード例 #3
0
<?php

//include(get_template_directory().'/includes/resource/awesom_icons.php');
$settings = array();
$settings['post']['sidebar'] = array('type' => 'select', 'id' => 'sidebar', 'title' => __('Sidebar', SH_NAME), 'desc' => __('Choose an sidebar for this deal', SH_NAME), 'options' => sh_get_sidebars(), 'attributes' => array('style' => 'width:40%'));
$settings['page']['sidebar'] = array('type' => 'select', 'id' => 'sidebar', 'title' => __('Sidebar', SH_NAME), 'desc' => __('Choose an sidebar for this deal', SH_NAME), 'options' => sh_get_sidebars(), 'attributes' => array('style' => 'width:40%'));
$settings['bistro_service']['font_awesome'] = array('type' => 'select', 'id' => 'font_awesome', 'title' => __('Choos Font Awesome Icon', SH_NAME), 'desc' => __('Choose an icon fron the font icons list', SH_NAME), 'options' => array_values(array_map(create_function('$v', 'return ucwords($v);'), $GLOBALS['_font_awesome'])), 'attributes' => array('style' => 'width:40%'));
$settings['bistro_service']['sidebar'] = array('type' => 'select', 'id' => 'sidebar', 'title' => __('Sidebar', SH_NAME), 'desc' => __('Choose an sidebar for this service', SH_NAME), 'options' => sh_get_sidebars(), 'attributes' => array('style' => 'width:40%'));
$settings['bistro_deal']['start_date'] = array('type' => 'date', 'id' => 'start_date', 'title' => __('Start Date', SH_NAME), 'desc' => __('Choose start date of the deal', SH_NAME), 'attributes' => array('style' => 'width:30%'));
$settings['bistro_deal']['end_date'] = array('type' => 'date', 'id' => 'end_date', 'title' => __('End Date', SH_NAME), 'desc' => __('Choose end date of the deal', SH_NAME), 'attributes' => array('style' => 'width:30%'));
$settings['bistro_deal']['products'] = array('type' => 'select', 'title' => __('Select Product', SH_NAME), 'id' => 'products', 'desc' => __('Choose the products for this deal', SH_NAME), 'options' => sh_get_posts_array('wpsc-product'), 'attributes' => array('style' => 'width:45%'));
$settings['bistro_deal']['sidebar'] = array('type' => 'select', 'id' => 'sidebar', 'title' => __('Sidebar', SH_NAME), 'desc' => __('Choose an sidebar for this deal', SH_NAME), 'options' => sh_get_sidebars(), 'attributes' => array('style' => 'width:40%'));
$settings['bistro_team']['designation'] = array('type' => 'text', 'title' => __('Designation', SH_NAME), 'id' => 'designation', 'desc' => __('Enter the designation of the member', SH_NAME), 'attributes' => array('style' => 'width:45%'));
$settings['bistro_team']['facebook'] = array('type' => 'text', 'title' => __('Facebook', SH_NAME), 'id' => 'facebook', 'desc' => __('Enter the facebook url', SH_NAME), 'attributes' => array('style' => 'width:45%'));
$settings['bistro_team']['twitter'] = array('type' => 'text', 'title' => __('Twitter', SH_NAME), 'id' => 'twitter', 'desc' => __('Enter the twitter url', SH_NAME), 'attributes' => array('style' => 'width:45%'));
$settings['bistro_team']['google_plus'] = array('type' => 'text', 'title' => __('Google Plus', SH_NAME), 'id' => 'google_plus', 'desc' => __('Enter the google Plus url', SH_NAME), 'attributes' => array('style' => 'width:45%'));
$settings['bistro_portfolio']['project_url'] = array('type' => 'text', 'title' => __('Project URL', SH_NAME), 'id' => 'project_url', 'desc' => __('Enter the project url', SH_NAME), 'attributes' => array('style' => 'width:45%'));
$settings['bistro_portfolio']['video_url'] = array('type' => 'multi_text', 'title' => __('Videos URL', SH_NAME), 'id' => 'video_url', 'attributes' => array('style' => 'width:45%'));
コード例 #4
0
<?php

$options = array();
/* Page options */
$options[] = array('id' => 'page_meta', 'types' => array('page'), 'title' => __('Page Settings', SH_NAME), 'priority' => 'high', 'template' => array(array('type' => 'toggle', 'name' => 'is_home', 'label' => __('Don\'t Show Breadcrumb banner area', SH_NAME), 'default' => '', 'description' => ''), array('type' => 'upload', 'label' => __('Top Image', SH_NAME), 'name' => 'image', 'default' => get_template_directory_uri() . '/images/resource/banner-1.jpg', 'description' => __('Uplaod Image', SH_NAME)), array('type' => 'select', 'label' => __('Sidebar', SH_NAME), 'name' => 'sidebar', 'default' => '', 'description' => __('Sidebar', SH_NAME), 'items' => sh_get_sidebars('multi' == true)), array('type' => 'toggle', 'name' => 'is_blog_page', 'label' => __('Show Posts', SH_NAME), 'default' => '', 'description' => __('Select if you want to show blog posts in this page.', SH_NAME)), array('type' => 'select', 'name' => 'column_number', 'label' => __('Column', SH_NAME), 'default' => '2', 'description' => __('Only for Blog and Gallery Pages.', SH_NAME), 'items' => array(array('value' => '1', 'label' => __('1 Column', SH_NAME)), array('value' => '2', 'label' => __('2 Column', SH_NAME)), array('value' => '3', 'label' => __('3 Column', SH_NAME)), array('value' => '4', 'label' => __('4 Column', SH_NAME))))));
/* Post options */
$options[] = array('id' => 'post_meta', 'types' => array('post'), 'title' => __('Post Settings', SH_NAME), 'priority' => 'high', 'template' => array(array('type' => 'upload', 'label' => __('Top Image', SH_NAME), 'name' => 'image', 'default' => '', 'description' => __('Uplaod Cover Photo', SH_NAME)), array('type' => 'select', 'label' => __('Sidebar', SH_NAME), 'name' => 'sidebar', 'default' => '', 'description' => __('Sidebar', SH_NAME), 'items' => sh_get_sidebars('multi' == true))));
/** Projects Options*/
$options[] = array('id' => 'projects_meta', 'types' => array('sh_projects'), 'title' => __('Projects Options', SH_NAME), 'priority' => 'high', 'template' => array(array('type' => 'date', 'name' => 'date', 'label' => __('Date', SH_NAME), 'default' => ''), array('type' => 'textbox', 'name' => 'terget', 'label' => __('Target Amount', SH_NAME), 'default' => ''), array('type' => 'textbox', 'name' => 'raised', 'label' => __('Raised Amount', SH_NAME), 'default' => ''), array('type' => 'textbox', 'name' => 'location', 'label' => __('Location', SH_NAME), 'default' => ''), array('type' => 'upload', 'label' => __('Top Image', SH_NAME), 'name' => 'image', 'default' => '', 'description' => __('Uplaod Cover Photo', SH_NAME)), array('type' => 'toggle', 'name' => 'checkbox', 'label' => __('Related Posts', SH_NAME), 'default' => '', 'description' => __('Check if you want to Show Related Posts', SH_NAME)), array('type' => 'select', 'label' => __('Sidebar', SH_NAME), 'name' => 'sidebar', 'default' => '', 'description' => __('Sidebar', SH_NAME), 'items' => sh_get_sidebars('multi' == true))));
/** Causes Options*/
$options[] = array('id' => 'causes_meta', 'types' => array('sh_causes'), 'title' => __('Causes Options', SH_NAME), 'priority' => 'high', 'template' => array(array('type' => 'textbox', 'name' => 'target', 'label' => __('Target Amount', SH_NAME), 'default' => ''), array('type' => 'textbox', 'name' => 'raised', 'label' => __('Raised Amount', SH_NAME), 'default' => ''), array('type' => 'textbox', 'name' => 'location', 'label' => __('Location', SH_NAME), 'default' => ''), array('type' => 'upload', 'label' => __('Top Image', SH_NAME), 'name' => 'image', 'default' => '', 'description' => __('Uplaod Cover Photo', SH_NAME)), array('type' => 'select', 'name' => 'donation_type', 'label' => __('Donation Type', SH_NAME), 'description' => __('Choose whether you want get donation via paypal or custom link', SH_NAME), 'items' => array(array('value' => 'paypal', 'label' => 'Paypay Link'), array('value' => 'custom', 'label' => 'Custom Link')), 'default' => 'paypal'), array('type' => 'textbox', 'name' => 'link', 'label' => __('Donation Custom Link', SH_NAME), 'default' => '', 'description' => __('Only required when you choose the Donation Type "custom"')), array('type' => 'toggle', 'name' => 'checkbox', 'label' => __('Related Posts', SH_NAME), 'default' => '', 'description' => __('Check if you want to Show Related Posts', SH_NAME)), array('type' => 'select', 'label' => __('Sidebar', SH_NAME), 'name' => 'sidebar', 'default' => '', 'description' => __('Sidebar', SH_NAME), 'items' => sh_get_sidebars('multi' == true))));
/** Events Options*/
$options[] = array('id' => 'events_meta', 'types' => array('sh_events'), 'title' => __('Events Options', SH_NAME), 'priority' => 'high', 'template' => array(array('type' => 'textbox', 'name' => 'target', 'label' => __('Target Amount', SH_NAME), 'default' => ''), array('type' => 'textbox', 'name' => 'raised', 'label' => __('Raised Amount', SH_NAME), 'default' => ''), array('type' => 'textbox', 'name' => 'location', 'label' => __('Location', SH_NAME), 'default' => ''), array('type' => 'date', 'name' => 'start_date', 'label' => __('Start Date', SH_NAME), 'default' => ''), array('type' => 'date', 'name' => 'end_date', 'label' => __('End Date', SH_NAME), 'default' => ''), array('type' => 'textbox', 'name' => 'start_time', 'label' => __('Start Time', SH_NAME), 'default' => '09:35:59', 'description' => __('Pattern must be H:M:S (24 Hours)', SH_NAME)), array('type' => 'textbox', 'name' => 'end_time', 'label' => __('End Time', SH_NAME), 'default' => '22:49:15', 'description' => __('Pattern must be H:M:S (24 Hours)', SH_NAME)), array('type' => 'upload', 'label' => __('Top Image', SH_NAME), 'name' => 'image', 'default' => '', 'description' => __('Uplaod Cover Photo', SH_NAME)), array('type' => 'toggle', 'name' => 'checkbox', 'label' => __('Related Posts', SH_NAME), 'default' => '', 'description' => __('Check if you want to Show Related Posts', SH_NAME)), array('type' => 'select', 'label' => __('Sidebar', SH_NAME), 'name' => 'sidebar', 'default' => '', 'description' => __('Sidebar', SH_NAME), 'items' => sh_get_sidebars('multi' == true))));
// Gallary Options for Image
$options[] = array('id' => 'gallery_meta', 'types' => array('sh_gallery'), 'title' => __('Image Gallery Settings', SH_NAME), 'priority' => 'high', 'template' => array(array('type' => 'group', 'repeating' => true, 'sortable' => true, 'name' => 'column', 'title' => __('Images', SH_NAME), 'fields' => array(array('type' => 'upload', 'label' => __('Image', SH_NAME), 'name' => 'image', 'use_external_plugins' => 1, 'validation' => 'required'))), array('type' => 'upload', 'label' => __('Top Image', SH_NAME), 'name' => 'image', 'default' => '', 'description' => __('Uplaod Cover Photo', SH_NAME)), array('type' => 'select', 'label' => __('Sidebar', SH_NAME), 'name' => 'sidebar', 'default' => '', 'description' => __('Sidebar', SH_NAME), 'items' => sh_get_sidebars('multi' == true))));
/** Testimonial Options*/
$options[] = array('id' => 'testimonials_meta', 'types' => array('sh_testimonials'), 'title' => __('Testimonials Options', SH_NAME), 'priority' => 'high', 'template' => array(array('type' => 'upload', 'label' => __('Top Image', SH_NAME), 'name' => 'image', 'default' => '', 'description' => __('Uplaod Cover Photo', SH_NAME)), array('type' => 'textbox', 'name' => 'designation', 'label' => __('Designation', SH_NAME), 'default' => ''), array('type' => 'textbox', 'name' => 'company', 'label' => __('Company Name', SH_NAME), 'default' => '')));
/** Donor Options*/
$options[] = array('id' => 'donor_meta', 'types' => array('sh_donors'), 'title' => __('Donor Options', SH_NAME), 'priority' => 'high', 'template' => array(array('type' => 'textbox', 'name' => 'designation', 'label' => __('Designation', SH_NAME), 'default' => ''), array('type' => 'group', 'repeating' => true, 'length' => 1, 'name' => 'sh_donor_social', 'title' => __('Social Profile', SH_NAME), 'fields' => array(array('type' => 'fontawesome', 'name' => 'social_icon', 'label' => __('Social Icon', SH_NAME), 'default' => ''), array('type' => 'textbox', 'name' => 'social_link', 'label' => __('Link', SH_NAME), 'default' => '')))));
/** Team Options*/
$options[] = array('id' => 'team_meta', 'types' => array('sh_team'), 'title' => __('Team Options', SH_NAME), 'priority' => 'high', 'template' => array(array('type' => 'textbox', 'name' => 'designation', 'label' => __('Designation', SH_NAME), 'default' => ''), array('type' => 'textarea', 'name' => 'tag_line', 'label' => __('Tag Line', SH_NAME), 'default' => ''), array('type' => 'textbox', 'name' => 'email', 'label' => __('Email', SH_NAME), 'default' => ''), array('type' => 'textbox', 'name' => 'phone', 'label' => __('Phone', SH_NAME), 'default' => ''), array('type' => 'textbox', 'name' => 'link', 'label' => __('Link', SH_NAME), 'default' => ''), array('type' => 'group', 'repeating' => true, 'length' => 1, 'name' => 'sh_team_social', 'title' => __('Social Profile', SH_NAME), 'fields' => array(array('type' => 'textbox', 'name' => 'social_title', 'label' => __('Title For Social Icon', SH_NAME), 'default' => ''), array('type' => 'fontawesome', 'name' => 'social_icon', 'label' => __('Social Icon', SH_NAME), 'default' => ''), array('type' => 'textbox', 'name' => 'social_link', 'label' => __('Link', SH_NAME), 'default' => ''))), array('type' => 'group', 'repeating' => true, 'length' => 1, 'name' => 'sh_team_skill', 'title' => __('Skills', SH_NAME), 'fields' => array(array('type' => 'fontawesome', 'name' => 'social_icon', 'label' => __('Social Icon', SH_NAME), 'default' => ''), array('type' => 'textbox', 'name' => 'skill_name', 'label' => __('Skill Name', SH_NAME), 'default' => ''), array('type' => 'slider', 'name' => 'skill_percent', 'label' => __('Skill  Percentage', SH_NAME), 'min' => '1', 'max' => '100', 'step' => '1', 'default' => '50'))), array('type' => 'group', 'repeating' => true, 'sortable' => true, 'name' => 'column', 'title' => __('Images', SH_NAME), 'fields' => array(array('type' => 'upload', 'label' => __('Image for Photo Slide', SH_NAME), 'name' => 'image', 'use_external_plugins' => 1, 'validation' => 'required'))), array('type' => 'upload', 'label' => __('Top Image', SH_NAME), 'name' => 'image', 'default' => '', 'description' => __('Uplaod Image', SH_NAME)), array('type' => 'toggle', 'name' => 'checkbox', 'label' => __('Check Box', SH_NAME), 'default' => '', 'description' => __('Check if you want to Show last box', SH_NAME)), array('type' => 'textbox', 'name' => 'small_text', 'label' => __('Small Text', SH_NAME), 'default' => ''), array('type' => 'textbox', 'name' => 'large_text', 'label' => __('Large Text', SH_NAME), 'default' => ''), array('type' => 'textbox', 'name' => 'button_box_link', 'label' => __('Button Link', SH_NAME), 'default' => '')));
/**
 * EOF
 */
return $options;