trAvis - MANAGER
Edit File: map.php
<?php if ( ! function_exists('barista_edge_blog_options_map') ) { function barista_edge_blog_options_map() { barista_edge_add_admin_page( array( 'slug' => '_blog_page', 'title' => esc_html__('Blog','baristawp'), 'icon' => 'fa fa-files-o' ) ); /** * Blog Lists */ $custom_sidebars = barista_edge_get_custom_sidebars(); $panel_blog_lists = barista_edge_add_admin_panel( array( 'page' => '_blog_page', 'name' => 'panel_blog_lists', 'title' => esc_html__('Blog Lists','baristawp') ) ); barista_edge_add_admin_field(array( 'name' => 'blog_list_type', 'type' => 'select', 'label' => esc_html__('Blog Layout for Archive Pages','baristawp'), 'description' => esc_html__('Choose a default blog layout','baristawp'), 'default_value' => 'standard', 'parent' => $panel_blog_lists, 'options' => array( 'standard' => esc_html__('Blog: Standard','baristawp'), 'split-column' => esc_html__('Blog: Split Column','baristawp'), 'masonry' => esc_html__('Blog: Masonry','baristawp'), 'masonry-full-width' => esc_html__('Blog: Masonry Full Width','baristawp'), 'standard-whole-post' => esc_html__('Blog: Standard Whole Post','baristawp'), ) )); barista_edge_add_admin_field(array( 'name' => 'archive_sidebar_layout', 'type' => 'select', 'label' => esc_html__('Archive and Category Sidebar','baristawp'), 'description' => esc_html__('Choose a sidebar layout for archived Blog Post Lists and Category Blog Lists','baristawp'), 'parent' => $panel_blog_lists, 'options' => array( 'default' => esc_html__('No Sidebar','baristawp'), 'sidebar-33-right' => esc_html__('Sidebar 1/3 Right','baristawp'), 'sidebar-25-right' => esc_html__('Sidebar 1/4 Right','baristawp'), 'sidebar-33-left' => esc_html__('Sidebar 1/3 Left','baristawp'), 'sidebar-25-left' => esc_html__('Sidebar 1/4 Left','baristawp'), ) )); if(count($custom_sidebars) > 0) { barista_edge_add_admin_field(array( 'name' => 'blog_custom_sidebar', 'type' => 'selectblank', 'label' => esc_html__('Sidebar to Display','baristawp'), 'description' => esc_html__('Choose a sidebar to display on Blog Post Lists and Category Blog Lists. Default sidebar is "Sidebar Page"','baristawp'), 'parent' => $panel_blog_lists, 'options' => barista_edge_get_custom_sidebars() )); } barista_edge_add_admin_field( array( 'type' => 'yesno', 'name' => 'pagination', 'default_value' => 'yes', 'label' => esc_html__('Pagination','baristawp'), 'parent' => $panel_blog_lists, 'description' => esc_html__('Enabling this option will display pagination links on bottom of Blog Post List','baristawp'), 'args' => array( 'dependence' => true, 'dependence_hide_on_yes' => '', 'dependence_show_on_yes' => '#edgtf_edgtf_pagination_container' ) ) ); $pagination_container = barista_edge_add_admin_container( array( 'name' => 'edgtf_pagination_container', 'hidden_property' => 'pagination', 'hidden_value' => 'no', 'parent' => $panel_blog_lists, ) ); barista_edge_add_admin_field( array( 'parent' => $pagination_container, 'type' => 'text', 'name' => 'blog_page_range', 'default_value' => '', 'label' => esc_html__('Pagination Range limit','baristawp'), 'description' => esc_html__('Enter a number that will limit pagination to a certain range of links','baristawp'), 'args' => array( 'col_width' => 3 ) ) ); barista_edge_add_admin_field(array( 'name' => 'masonry_pagination', 'type' => 'select', 'label' => esc_html__('Pagination on Masonry','baristawp'), 'description' => esc_html__('Choose a pagination style for Masonry Blog List','baristawp'), 'parent' => $pagination_container, 'options' => array( 'standard' => esc_html__('Standard','baristawp'), 'load-more' => esc_html__('Load More','baristawp'), 'infinite-scroll' => esc_html__('Infinite Scroll','baristawp') ), )); barista_edge_add_admin_field( array( 'type' => 'yesno', 'name' => 'enable_load_more_pag', 'default_value' => 'no', 'label' => esc_html__('Load More Pagination on Other Lists','baristawp'), 'parent' => $pagination_container, 'description' => esc_html__('Enable Load More Pagination on other lists','baristawp'), 'args' => array( 'col_width' => 3 ) ) ); barista_edge_add_admin_field( array( 'type' => 'yesno', 'name' => 'masonry_filter', 'default_value' => 'no', 'label' => esc_html__('Masonry Filter','baristawp'), 'parent' => $panel_blog_lists, 'description' => esc_html__('Enabling this option will display category filter on Masonry and Masonry Full Width Templates','baristawp'), 'args' => array( 'col_width' => 3 ) ) ); barista_edge_add_admin_field( array( 'type' => 'text', 'name' => 'number_of_chars', 'default_value' => '', 'label' => esc_html__('Number of Words in Excerpt','baristawp'), 'parent' => $panel_blog_lists, 'description' => esc_html__('Enter a number of words in excerpt (article summary)','baristawp'), 'args' => array( 'col_width' => 3 ) ) ); barista_edge_add_admin_field( array( 'type' => 'text', 'name' => 'standard_number_of_chars', 'default_value' => '', 'label' => esc_html__('Standard Type Number of Words in Excerpt','baristawp'), 'parent' => $panel_blog_lists, 'description' => esc_html__('Enter a number of words in excerpt (article summary)','baristawp'), 'args' => array( 'col_width' => 3 ) ) ); barista_edge_add_admin_field( array( 'type' => 'text', 'name' => 'masonry_number_of_chars', 'default_value' => '', 'label' => esc_html__('Masonry Type Number of Words in Excerpt','baristawp'), 'parent' => $panel_blog_lists, 'description' => esc_html__('Enter a number of words in excerpt (article summary)','baristawp'), 'args' => array( 'col_width' => 3 ) ) ); barista_edge_add_admin_field( array( 'type' => 'text', 'name' => 'split_column_number_of_chars', 'default_value' => '', 'label' => esc_html__('Split Column Type Number of Words in Excerpt','baristawp'), 'parent' => $panel_blog_lists, 'description' => esc_html__('Enter a number of words in excerpt (article summary)','baristawp'), 'args' => array( 'col_width' => 3 ) ) ); /** * Blog Single */ $panel_blog_single = barista_edge_add_admin_panel( array( 'page' => '_blog_page', 'name' => 'panel_blog_single', 'title' => esc_html__('Blog Single','baristawp') ) ); barista_edge_add_admin_field(array( 'name' => 'blog_single_sidebar_layout', 'type' => 'select', 'label' => esc_html__('Sidebar Layout','baristawp'), 'description' => esc_html__('Choose a sidebar layout for Blog Single pages','baristawp'), 'parent' => $panel_blog_single, 'options' => array( 'default' => esc_html__('No Sidebar','baristawp'), 'sidebar-33-right' => esc_html__('Sidebar 1/3 Right','baristawp'), 'sidebar-25-right' => esc_html__('Sidebar 1/4 Right','baristawp'), 'sidebar-33-left' => esc_html__('Sidebar 1/3 Left','baristawp'), 'sidebar-25-left' => esc_html__('Sidebar 1/4 Left','baristawp'), ), 'default_value' => 'default' )); if(count($custom_sidebars) > 0) { barista_edge_add_admin_field(array( 'name' => 'blog_single_custom_sidebar', 'type' => 'selectblank', 'label' => esc_html__('Sidebar to Display','baristawp'), 'description' => esc_html__('Choose a sidebar to display on Blog Single pages. Default sidebar is "Sidebar"','baristawp'), 'parent' => $panel_blog_single, 'options' => barista_edge_get_custom_sidebars() )); } barista_edge_add_admin_field(array( 'name' => 'blog_single_title_in_title_area', 'type' => 'yesno', 'label' => esc_html__('Show Post Title in Title Area','baristawp'), 'description' => esc_html__('Enabling this option will show post title in title area on single post pages','baristawp'), 'parent' => $panel_blog_single, 'default_value' => 'no' )); barista_edge_add_admin_field(array( 'name' => 'blog_single_comments', 'type' => 'yesno', 'label' => esc_html__('Show Comments','baristawp'), 'description' => esc_html__('Enabling this option will show comments on your page.','baristawp'), 'parent' => $panel_blog_single, 'default_value' => 'yes' )); barista_edge_add_admin_field(array( 'name' => 'blog_single_related_posts', 'type' => 'yesno', 'label' => esc_html__('Show Related Posts','baristawp'), 'description' => esc_html__('Enabling this option will show related posts on your single post.','baristawp'), 'parent' => $panel_blog_single, 'default_value' => 'no' )); barista_edge_add_admin_field( array( 'type' => 'yesno', 'name' => 'blog_single_navigation', 'default_value' => 'no', 'label' => esc_html__('Enable Prev/Next Single Post Navigation Links','baristawp'), 'parent' => $panel_blog_single, 'description' => esc_html__('Enable navigation links through the blog posts (left and right arrows will appear)','baristawp'), 'args' => array( 'dependence' => true, 'dependence_hide_on_yes' => '', 'dependence_show_on_yes' => '#edgtf_edgtf_blog_single_navigation_container' ) ) ); $blog_single_navigation_container = barista_edge_add_admin_container( array( 'name' => 'edgtf_blog_single_navigation_container', 'hidden_property' => 'blog_single_navigation', 'hidden_value' => 'no', 'parent' => $panel_blog_single, ) ); barista_edge_add_admin_field( array( 'type' => 'yesno', 'name' => 'blog_navigation_through_same_category', 'default_value' => 'no', 'label' => esc_html__('Enable Navigation Only in Current Category','baristawp'), 'description' => esc_html__('Limit your navigation only through current category','baristawp'), 'parent' => $blog_single_navigation_container, 'args' => array( 'col_width' => 3 ) ) ); barista_edge_add_admin_field( array( 'type' => 'yesno', 'name' => 'blog_author_info', 'default_value' => 'no', 'label' => esc_html__('Show Author Info Box','baristawp'), 'parent' => $panel_blog_single, 'description' => esc_html__('Enabling this option will display author name and descriptions on Blog Single pages','baristawp'), 'args' => array( 'dependence' => true, 'dependence_hide_on_yes' => '', 'dependence_show_on_yes' => '#edgtf_edgtf_blog_single_author_info_container' ) ) ); $blog_single_author_info_container = barista_edge_add_admin_container( array( 'name' => 'edgtf_blog_single_author_info_container', 'hidden_property' => 'blog_author_info', 'hidden_value' => 'no', 'parent' => $panel_blog_single, ) ); barista_edge_add_admin_field( array( 'type' => 'yesno', 'name' => 'blog_author_info_email', 'default_value' => 'no', 'label' => esc_html__('Show Author Email','baristawp'), 'description' => esc_html__('Enabling this option will show author email','baristawp'), 'parent' => $blog_single_author_info_container, 'args' => array( 'col_width' => 3 ) ) ); } add_action( 'barista_edge_options_map', 'barista_edge_blog_options_map', 12); }