コード例 #1
0
ファイル: design-about.php プロジェクト: gabzon/experiensa
 */
$show_textimage = array('type' => 'select', 'label' => __('Showcase TextImage', 'sage'), 'field' => 'show_textimage', 'columns' => 12, 'value' => 'FALSE', 'choices' => array('FALSE' => __('No TextImage', 'sage'), 'TRUE' => __('Show TextImage Options', 'sage')), 'conditions' => array(array('field' => 'about_section_options:content_settings:source_type', 'value' => 'showcase')));
$ti_html_title = array('type' => 'html', 'template' => 'field', 'columns' => 12, 'field' => 'ti_html_title', 'value' => '<h4>' . __('Textimage Options', 'sage') . '</h4><hr>', 'conditions' => array(array('field' => 'about_section_options:content_settings:source_type', 'value' => 'showcase'), array('field' => 'about_section_options:content_settings:show_textimage', 'value' => 'TRUE')));
$ti_display_title = array('type' => 'select', 'label' => __('Display Title?', 'sage'), 'field' => 'display_title', 'columns' => 4, 'value' => 'yes', 'choices' => array('yes' => __('Yes', 'sage'), 'no' => __('No', 'sage')), 'conditions' => array(array('field' => 'about_section_options:content_settings:source_type', 'value' => 'showcase'), array('field' => 'about_section_options:content_settings:show_textimage', 'value' => 'TRUE')));
$ti_display_subtitle = array('type' => 'select', 'label' => __('Display Subtitle?', 'sage'), 'field' => 'display_subtitle', 'columns' => 4, 'value' => 'yes', 'choices' => array('yes' => __('Yes', 'sage'), 'no' => __('No', 'sage')), 'conditions' => array(array('field' => 'about_section_options:content_settings:source_type', 'value' => 'showcase'), array('field' => 'about_section_options:content_settings:show_textimage', 'value' => 'TRUE')));
$ti_display_overlay = array('type' => 'select', 'label' => __('Display Overlay?', 'sage'), 'field' => 'display_overlay', 'columns' => 4, 'value' => 'yes', 'choices' => array('yes' => __('Yes', 'sage'), 'no' => __('No', 'sage')), 'conditions' => array(array('field' => 'about_section_options:content_settings:source_type', 'value' => 'showcase'), array('field' => 'about_section_options:content_settings:show_textimage', 'value' => 'TRUE')));
$ti_text_order = array('type' => 'select', 'label' => __('Text Order', 'sage'), 'field' => 'text_order', 'columns' => 4, 'value' => 'title_first', 'choices' => array('title_first' => __('Title First', 'sage'), 'subtitle_first' => __('Subtitle First', 'sage')), 'conditions' => array(array('field' => 'about_section_options:content_settings:source_type', 'value' => 'showcase'), array('field' => 'about_section_options:content_settings:show_textimage', 'value' => 'TRUE')));
$ti_text_position = array('type' => 'select', 'label' => __('Text Position', 'sage'), 'field' => 'text_position', 'columns' => 4, 'value' => 'center_middle', 'choices' => array('top_left' => __('Top & Left', 'sage'), 'center_left' => __('Center & Left', 'sage'), 'bottom_left' => __('Bottom & Left', 'sage'), 'top_middle' => __('Top & Middle', 'sage'), 'center_middle' => __('Center & Middle', 'sage'), 'bottom_middle' => __('Bottom & Middle', 'sage'), 'top_right' => __('Top & Right', 'sage'), 'center_right' => __('Center & Right', 'sage'), 'bottom_right' => __('Bottom & Right', 'sage')), 'conditions' => array(array('field' => 'about_section_options:content_settings:source_type', 'value' => 'showcase'), array('field' => 'about_section_options:content_settings:show_textimage', 'value' => 'TRUE')));
$ti_text_transformation = array('type' => 'select', 'label' => __('Text Transtransform', 'sage'), 'field' => 'text_transform', 'columns' => 4, 'value' => 'capitalize', 'choices' => array('uppercase' => __('Uppercase', 'sage'), 'lowercase' => __('Lowercase', 'sage'), 'capitalize' => __('Capitalize', 'sage')), 'conditions' => array(array('field' => 'about_section_options:content_settings:source_type', 'value' => 'showcase'), array('field' => 'about_section_options:content_settings:show_textimage', 'value' => 'TRUE')));
$ti_font_size = array('type' => 'text', 'label' => __('Text Size', 'sage'), 'help' => __('em font size type', 'sage'), 'field' => 'font_size', 'columns' => 3, 'value' => '1', 'conditions' => array(array('field' => 'about_section_options:content_settings:source_type', 'value' => 'showcase'), array('field' => 'about_section_options:content_settings:show_textimage', 'value' => 'TRUE')));
$ti_text_color = array('type' => 'colorpicker', 'field' => 'text_color', 'label' => __('Text Color', 'sage'), 'help' => __('Default font color is white (#FFFFFF)', 'sage'), 'default' => '#FFFFFF', 'columns' => 9, 'attributes' => array('class' => 'small-text'), 'conditions' => array(array('field' => 'about_section_options:content_settings:source_type', 'value' => 'showcase'), array('field' => 'about_section_options:content_settings:show_textimage', 'value' => 'TRUE')));
/**
 *  Showcase Options
 */
$showcase_html_title = array('type' => 'html', 'template' => 'field', 'columns' => 12, 'field' => 'showcase_html_title', 'value' => '<h4>' . __('Showcase Options', 'sage') . '</h4><hr>', 'conditions' => array(array('field' => 'about_section_options:content_settings:source_type', 'value' => 'showcase')));
$showcase_posttype = array('type' => 'select', 'field' => 'posttype', 'value' => 'none', 'label' => __('Post Type to Show', 'sage'), 'columns' => 4, 'choices' => \Experiensa\Modules\QueryBuilder::getPostTypes(), 'conditions' => array(array('field' => 'about_section_options:content_settings:source_type', 'value' => 'showcase')));
$showcase_categories = array('type' => 'select', 'field' => 'category', 'value' => 'location', 'label' => __('Category', 'sage'), 'columns' => 4, 'choices' => \Experiensa\Modules\QueryBuilder::getTaxonomies(), 'conditions' => array(array('field' => 'about_section_options:content_settings:source_type', 'value' => 'showcase')));
$showcase_component = array('type' => 'select', 'field' => 'component', 'label' => __('Component', 'sage'), 'columns' => 4, 'choices' => Helpers::getComponentList(), 'value' => 'carousel', 'conditions' => array(array('field' => 'about_section_options:content_settings:source_type', 'value' => 'showcase')));
/**
 *  Photo Slider Options
 */
$slider_html_title = array('type' => 'html', 'template' => 'field', 'columns' => 12, 'field' => 'slider_html_title', 'value' => '<h4>' . __('Photo Slider Options', 'sage') . '</h4><hr>', 'conditions' => array(array('field' => 'about_section_options:content_settings:source_type', 'value' => 'showcase'), array('field' => 'about_section_options:content_settings:component', 'value' => 'slider')));
$slider_type = array('type' => 'select', 'label' => __('Slider type', 'sage'), 'field' => 'slider_type', 'columns' => 4, 'choices' => array('message' => __('Message and categorized images', 'sage'), 'posts' => __('Posts', 'sage')), 'value' => 'posts', 'conditions' => array(array('field' => 'about_section_options:content_settings:source_type', 'value' => 'showcase'), array('field' => 'about_section_options:content_settings:component', 'value' => 'slider')));
$slider_message = array('type' => 'text', 'field' => 'message', 'label' => __('Slider Message', 'sage'), 'columns' => 7, 'attributes' => array('class' => 'regular-text', 'placeholder' => __('Enter your message here', 'sage')), 'conditions' => array(array('field' => 'about_section_options:content_settings:source_type', 'value' => 'showcase'), array('field' => 'about_section_options:content_settings:component', 'value' => 'slider'), array('field' => 'about_section_options:content_settings:slider_type', 'value' => 'message')));
$showcase_terms = array('type' => 'text', 'field' => 'terms', 'label' => __('Categories', 'sage'), 'columns' => 7, 'attributes' => array('class' => 'regular-text', 'placeholder' => __('You can enter here the categories separated by commas', 'sage')), 'conditions' => array(array('field' => 'about_section_options:content_settings:source_type', 'value' => 'showcase'), array('field' => 'about_section_options:content_settings:component', 'value' => 'slider'), array('field' => 'about_section_options:content_settings:slider_type', 'value' => 'posts')));
/**
 * Content Layout Options
 */
$layout_html_title = array('type' => 'html', 'template' => 'field', 'columns' => 12, 'field' => 'layout_html_title', 'value' => '<h4>' . __('Layout Options', 'sage') . '</h4><hr>', 'conditions' => array(array('field' => 'about_section_options:content_settings:source_type', 'value' => 'showcase'), array('field' => 'about_section_options:content_settings:show_layout', 'value' => 'TRUE')));
$segment_container = array('type' => 'select', 'label' => __('Container type', 'sage'), 'help' => __('The content can be set in a container or not', 'sage'), 'field' => 'container', 'columns' => 3, 'value' => '', 'choices' => array('' => __('Full width', 'sage'), 'container' => __('Container', 'sage')), 'conditions' => array(array('field' => 'about_section_options:content_settings:source_type', 'value' => 'showcase'), array('field' => 'about_section_options:content_settings:show_layout', 'value' => 'TRUE')));
$segment_content_color = array('type' => 'colorpicker', 'field' => 'content_color', 'label' => __('Content Color', 'sage'), 'help' => __('Default font color is white', 'sage'), 'default' => '#FFFFFF', 'columns' => 3, 'attributes' => array('class' => 'small-text'), 'conditions' => array(array('field' => 'about_section_options:content_settings:source_type', 'value' => 'showcase'), array('field' => 'about_section_options:content_settings:show_layout', 'value' => 'TRUE')));