Domain: antoinekatan.com
Server Adress: 10.127.20.23
privdayz.com
<?php
if ( ! function_exists( 'quart_mikado_get_blog_list_types_options' ) ) {
function quart_mikado_get_blog_list_types_options() {
$blog_list_type_options = apply_filters( 'quart_mikado_filter_blog_list_type_global_option', $blog_list_type_options = array() );
return $blog_list_type_options;
}
}
if ( ! function_exists( 'quart_mikado_blog_options_map' ) ) {
function quart_mikado_blog_options_map() {
$blog_list_type_options = quart_mikado_get_blog_list_types_options();
quart_mikado_add_admin_page(
array(
'slug' => '_blog_page',
'title' => esc_html__( 'Blog', 'quart' ),
'icon' => 'fa fa-files-o'
)
);
/**
* Blog Lists
*/
$panel_blog_lists = quart_mikado_add_admin_panel(
array(
'page' => '_blog_page',
'name' => 'panel_blog_lists',
'title' => esc_html__( 'Blog Lists', 'quart' )
)
);
quart_mikado_add_admin_field(
array(
'name' => 'blog_list_grid_space',
'type' => 'select',
'label' => esc_html__( 'Grid Layout Space', 'quart' ),
'description' => esc_html__( 'Choose a space between content layout and sidebar layout for blog post lists. Default value is large', 'quart' ),
'options' => quart_mikado_get_space_between_items_array( true ),
'parent' => $panel_blog_lists
)
);
quart_mikado_add_admin_field(
array(
'name' => 'blog_list_type',
'type' => 'select',
'label' => esc_html__( 'Blog Layout for Archive Pages', 'quart' ),
'description' => esc_html__( 'Choose a default blog layout for archived blog post lists', 'quart' ),
'default_value' => 'standard',
'parent' => $panel_blog_lists,
'options' => $blog_list_type_options
)
);
quart_mikado_add_admin_field(
array(
'name' => 'archive_sidebar_layout',
'type' => 'select',
'label' => esc_html__( 'Sidebar Layout for Archive Pages', 'quart' ),
'description' => esc_html__( 'Choose a sidebar layout for archived blog post lists', 'quart' ),
'default_value' => 'sidebar-25-right',
'parent' => $panel_blog_lists,
'options' => quart_mikado_get_custom_sidebars_options(),
)
);
$quart_custom_sidebars = quart_mikado_get_custom_sidebars();
if ( is_array( $quart_custom_sidebars ) && count( $quart_custom_sidebars ) > 0 ) {
quart_mikado_add_admin_field(
array(
'name' => 'archive_custom_sidebar_area',
'type' => 'selectblank',
'label' => esc_html__( 'Sidebar to Display for Archive Pages', 'quart' ),
'description' => esc_html__( 'Choose a sidebar to display on archived blog post lists. Default sidebar is "Sidebar Page"', 'quart' ),
'parent' => $panel_blog_lists,
'options' => quart_mikado_get_custom_sidebars(),
'args' => array(
'select2' => true
)
)
);
}
quart_mikado_add_admin_field(
array(
'name' => 'blog_masonry_layout',
'type' => 'select',
'label' => esc_html__( 'Masonry - Layout', 'quart' ),
'default_value' => 'in-grid',
'description' => esc_html__( 'Set masonry layout. Default is in grid.', 'quart' ),
'parent' => $panel_blog_lists,
'options' => array(
'in-grid' => esc_html__( 'In Grid', 'quart' ),
'full-width' => esc_html__( 'Full Width', 'quart' )
)
)
);
quart_mikado_add_admin_field(
array(
'name' => 'blog_masonry_number_of_columns',
'type' => 'select',
'label' => esc_html__( 'Masonry - Number of Columns', 'quart' ),
'default_value' => 'three',
'description' => esc_html__( 'Set number of columns for your masonry blog lists. Default value is 4 columns', 'quart' ),
'parent' => $panel_blog_lists,
'options' => quart_mikado_get_number_of_columns_array( false, array( 'one', 'six' ) )
)
);
quart_mikado_add_admin_field(
array(
'name' => 'blog_masonry_space_between_items',
'type' => 'select',
'label' => esc_html__( 'Masonry - Space Between Items', 'quart' ),
'description' => esc_html__( 'Set space size between posts for your masonry blog lists. Default value is normal', 'quart' ),
'default_value' => 'normal',
'options' => quart_mikado_get_space_between_items_array(),
'parent' => $panel_blog_lists
)
);
quart_mikado_add_admin_field(
array(
'name' => 'blog_list_featured_image_proportion',
'type' => 'select',
'label' => esc_html__( 'Masonry - Featured Image Proportion', 'quart' ),
'default_value' => 'fixed',
'description' => esc_html__( 'Choose type of proportions you want to use for featured images on masonry blog lists', 'quart' ),
'parent' => $panel_blog_lists,
'options' => array(
'fixed' => esc_html__( 'Fixed', 'quart' ),
'original' => esc_html__( 'Original', 'quart' )
)
)
);
quart_mikado_add_admin_field(
array(
'name' => 'blog_pagination_type',
'type' => 'select',
'label' => esc_html__( 'Pagination Type', 'quart' ),
'description' => esc_html__( 'Choose a pagination layout for Blog Lists', 'quart' ),
'parent' => $panel_blog_lists,
'default_value' => 'standard',
'options' => array(
'standard' => esc_html__( 'Standard', 'quart' ),
'load-more' => esc_html__( 'Load More', 'quart' ),
'infinite-scroll' => esc_html__( 'Infinite Scroll', 'quart' ),
'no-pagination' => esc_html__( 'No Pagination', 'quart' )
)
)
);
quart_mikado_add_admin_field(
array(
'type' => 'text',
'name' => 'number_of_chars',
'default_value' => '40',
'label' => esc_html__( 'Number of Words in Excerpt', 'quart' ),
'description' => esc_html__( 'Enter a number of words in excerpt (article summary). Default value is 40', 'quart' ),
'parent' => $panel_blog_lists,
'args' => array(
'col_width' => 3
)
)
);
quart_mikado_add_admin_field(
array(
'type' => 'yesno',
'name' => 'show_tags_area_blog',
'default_value' => 'no',
'label' => esc_html__( 'Enable Blog Tags on Standard List', 'quart' ),
'description' => esc_html__( 'Enabling this option will show tags on standard blog list', 'quart' ),
'parent' => $panel_blog_lists
)
);
quart_mikado_add_admin_field(
array(
'type' => 'yesno',
'name' => 'show_date_area_blog',
'default_value' => 'no',
'label' => esc_html__( 'Enable Date on Standard List', 'quart' ),
'description' => esc_html__( 'Enabling this option will show date on standard blog list', 'quart' ),
'parent' => $panel_blog_lists
)
);
/**
* Blog Single
*/
$panel_blog_single = quart_mikado_add_admin_panel(
array(
'page' => '_blog_page',
'name' => 'panel_blog_single',
'title' => esc_html__( 'Blog Single', 'quart' )
)
);
quart_mikado_add_admin_field(
array(
'name' => 'blog_single_grid_space',
'type' => 'select',
'label' => esc_html__( 'Grid Layout Space', 'quart' ),
'description' => esc_html__( 'Choose a space between content layout and sidebar layout for Blog Single pages. Default value is large', 'quart' ),
'options' => quart_mikado_get_space_between_items_array( true ),
'parent' => $panel_blog_single
)
);
quart_mikado_add_admin_field(
array(
'name' => 'blog_single_sidebar_layout',
'type' => 'select',
'label' => esc_html__( 'Sidebar Layout', 'quart' ),
'description' => esc_html__( 'Choose a sidebar layout for Blog Single pages', 'quart' ),
'default_value' => 'sidebar-25-right',
'parent' => $panel_blog_single,
'options' => quart_mikado_get_custom_sidebars_options()
)
);
if ( is_array( $quart_custom_sidebars ) && count( $quart_custom_sidebars ) > 0 ) {
quart_mikado_add_admin_field(
array(
'name' => 'blog_single_custom_sidebar_area',
'type' => 'selectblank',
'label' => esc_html__( 'Sidebar to Display', 'quart' ),
'description' => esc_html__( 'Choose a sidebar to display on Blog Single pages. Default sidebar is "Sidebar"', 'quart' ),
'parent' => $panel_blog_single,
'options' => quart_mikado_get_custom_sidebars(),
'args' => array(
'select2' => true
)
)
);
}
quart_mikado_add_admin_field(
array(
'type' => 'select',
'name' => 'show_title_area_blog',
'default_value' => '',
'label' => esc_html__( 'Show Title Area', 'quart' ),
'description' => esc_html__( 'Enabling this option will show title area on single post pages', 'quart' ),
'parent' => $panel_blog_single,
'options' => quart_mikado_get_yes_no_select_array(),
'args' => array(
'col_width' => 3
)
)
);
quart_mikado_add_admin_field(
array(
'name' => 'blog_single_title_in_title_area',
'type' => 'yesno',
'default_value' => 'no',
'label' => esc_html__( 'Show Post Title in Title Area', 'quart' ),
'description' => esc_html__( 'Enabling this option will show post title in title area on single post pages', 'quart' ),
'parent' => $panel_blog_single,
'dependency' => array(
'hide' => array(
'show_title_area_blog' => 'no'
)
)
)
);
quart_mikado_add_admin_field(
array(
'name' => 'blog_single_related_posts',
'type' => 'yesno',
'label' => esc_html__( 'Show Related Posts', 'quart' ),
'description' => esc_html__( 'Enabling this option will show related posts on single post pages', 'quart' ),
'parent' => $panel_blog_single,
'default_value' => 'no'
)
);
quart_mikado_add_admin_field(
array(
'name' => 'blog_single_comments',
'type' => 'yesno',
'label' => esc_html__( 'Show Comments Form', 'quart' ),
'description' => esc_html__( 'Enabling this option will show comments form on single post pages', 'quart' ),
'parent' => $panel_blog_single,
'default_value' => 'yes'
)
);
quart_mikado_add_admin_field(
array(
'type' => 'yesno',
'name' => 'blog_single_navigation',
'default_value' => 'yes',
'label' => esc_html__( 'Enable Prev/Next Single Post Navigation Links', 'quart' ),
'description' => esc_html__( 'Enable navigation links through the blog posts (left and right arrows will appear)', 'quart' ),
'parent' => $panel_blog_single
)
);
$blog_single_navigation_container = quart_mikado_add_admin_container(
array(
'name' => 'mkdf_blog_single_navigation_container',
'parent' => $panel_blog_single,
'dependency' => array(
'show' => array(
'blog_single_navigation' => 'yes'
)
)
)
);
quart_mikado_add_admin_field(
array(
'type' => 'yesno',
'name' => 'blog_navigation_through_same_category',
'default_value' => 'no',
'label' => esc_html__( 'Enable Navigation Only in Current Category', 'quart' ),
'description' => esc_html__( 'Limit your navigation only through current category', 'quart' ),
'parent' => $blog_single_navigation_container,
'args' => array(
'col_width' => 3
)
)
);
quart_mikado_add_admin_field(
array(
'type' => 'yesno',
'name' => 'blog_author_info',
'default_value' => 'yes',
'label' => esc_html__( 'Show Author Info Box', 'quart' ),
'description' => esc_html__( 'Enabling this option will display author name and descriptions on single post pages. Author biographic info field in Users section must contain some data', 'quart' ),
'parent' => $panel_blog_single
)
);
$blog_single_author_info_container = quart_mikado_add_admin_container(
array(
'name' => 'mkdf_blog_single_author_info_container',
'parent' => $panel_blog_single,
'dependency' => array(
'show' => array(
'blog_author_info' => 'yes'
)
)
)
);
quart_mikado_add_admin_field(
array(
'type' => 'yesno',
'name' => 'blog_author_info_email',
'default_value' => 'no',
'label' => esc_html__( 'Show Author Email', 'quart' ),
'description' => esc_html__( 'Enabling this option will show author email', 'quart' ),
'parent' => $blog_single_author_info_container,
'args' => array(
'col_width' => 3
)
)
);
quart_mikado_add_admin_field(
array(
'type' => 'yesno',
'name' => 'blog_single_author_social',
'default_value' => 'yes',
'label' => esc_html__( 'Show Author Social Icons', 'quart' ),
'description' => esc_html__( 'Enabling this option will show author social icons on single post pages', 'quart' ),
'parent' => $blog_single_author_info_container,
'args' => array(
'col_width' => 3
)
)
);
do_action( 'quart_mikado_action_blog_single_options_map', $panel_blog_single );
}
add_action( 'quart_mikado_action_options_map', 'quart_mikado_blog_options_map', quart_mikado_set_options_map_position( 'blog' ) );
}
