Файловый менеджер - Редактировать - /home/neurocs/www/wp-content/themes/mediclinic/framework/modules/blog/admin/options-map/blog-map.php
Назад
<?php if ( ! function_exists('mediclinic_mikado_blog_options_map') ) { function mediclinic_mikado_blog_options_map() { mediclinic_mikado_add_admin_page( array( 'slug' => '_blog_page', 'title' => esc_html__('Blog', 'mediclinic'), 'icon' => 'fa fa-files-o' ) ); /** * Blog Lists */ $panel_blog_lists = mediclinic_mikado_add_admin_panel( array( 'page' => '_blog_page', 'name' => 'panel_blog_lists', 'title' => esc_html__('Blog Lists', 'mediclinic') ) ); mediclinic_mikado_add_admin_field(array( 'name' => 'archive_sidebar_layout', 'type' => 'select', 'label' => esc_html__('Sidebar Layout for Archive Pages', 'mediclinic'), 'description' => esc_html__('Choose a sidebar layout for archived blog post lists', 'mediclinic'), 'default_value' => '', 'parent' => $panel_blog_lists, 'options' => array( '' => esc_html__('Default', 'mediclinic'), 'no-sidebar' => esc_html__('No Sidebar', 'mediclinic'), 'sidebar-33-right' => esc_html__('Sidebar 1/3 Right', 'mediclinic'), 'sidebar-25-right' => esc_html__('Sidebar 1/4 Right', 'mediclinic'), 'sidebar-33-left' => esc_html__('Sidebar 1/3 Left', 'mediclinic'), 'sidebar-25-left' => esc_html__('Sidebar 1/4 Left', 'mediclinic') ) )); $mediclinic_custom_sidebars = mediclinic_mikado_get_custom_sidebars(); if(count($mediclinic_custom_sidebars) > 0) { mediclinic_mikado_add_admin_field(array( 'name' => 'archive_custom_sidebar_area', 'type' => 'selectblank', 'label' => esc_html__('Sidebar to Display for Archive Pages', 'mediclinic'), 'description' => esc_html__('Choose a sidebar to display on archived blog post lists. Default sidebar is "Sidebar Page"', 'mediclinic'), 'parent' => $panel_blog_lists, 'options' => mediclinic_mikado_get_custom_sidebars(), 'args' => array( 'select2' => true ) )); } mediclinic_mikado_add_admin_field(array( 'name' => 'blog_pagination_type', 'type' => 'select', 'label' => esc_html__('Pagination Type', 'mediclinic'), 'description' => esc_html__('Choose a pagination layout for Blog Lists', 'mediclinic'), 'parent' => $panel_blog_lists, 'default_value' => 'standard', 'options' => array( 'standard' => esc_html__('Standard', 'mediclinic'), 'load-more' => esc_html__('Load More', 'mediclinic'), 'infinite-scroll' => esc_html__('Infinite Scroll', 'mediclinic'), 'no-pagination' => esc_html__('No Pagination', 'mediclinic') ) )); mediclinic_mikado_add_admin_field( array( 'type' => 'text', 'name' => 'number_of_chars', 'default_value' => '40', 'label' => esc_html__('Number of Words in Excerpt', 'mediclinic'), 'description' => esc_html__('Enter a number of words in excerpt (article summary). Default value is 40', 'mediclinic'), 'parent' => $panel_blog_lists, 'args' => array( 'col_width' => 3 ) ) ); /** * Blog Single */ $panel_blog_single = mediclinic_mikado_add_admin_panel( array( 'page' => '_blog_page', 'name' => 'panel_blog_single', 'title' => esc_html__('Blog Single', 'mediclinic') ) ); mediclinic_mikado_add_admin_field(array( 'name' => 'blog_single_sidebar_layout', 'type' => 'select', 'label' => esc_html__('Sidebar Layout', 'mediclinic'), 'description' => esc_html__('Choose a sidebar layout for Blog Single pages', 'mediclinic'), 'default_value' => '', 'parent' => $panel_blog_single, 'options' => array( '' => esc_html__('Default', 'mediclinic'), 'no-sidebar' => esc_html__('No Sidebar', 'mediclinic'), 'sidebar-33-right' => esc_html__('Sidebar 1/3 Right', 'mediclinic'), 'sidebar-25-right' => esc_html__('Sidebar 1/4 Right', 'mediclinic'), 'sidebar-33-left' => esc_html__('Sidebar 1/3 Left', 'mediclinic'), 'sidebar-25-left' => esc_html__('Sidebar 1/4 Left', 'mediclinic') ) )); if(count($mediclinic_custom_sidebars) > 0) { mediclinic_mikado_add_admin_field(array( 'name' => 'blog_single_custom_sidebar_area', 'type' => 'selectblank', 'label' => esc_html__('Sidebar to Display', 'mediclinic'), 'description' => esc_html__('Choose a sidebar to display on Blog Single pages. Default sidebar is "Sidebar"', 'mediclinic'), 'parent' => $panel_blog_single, 'options' => mediclinic_mikado_get_custom_sidebars(), 'args' => array( 'select2' => true ) )); } mediclinic_mikado_add_admin_field( array( 'type' => 'select', 'name' => 'show_title_area_blog', 'default_value' => '', 'label' => esc_html__('Show Title Area', 'mediclinic'), 'description' => esc_html__('Enabling this option will show title area on single post pages', 'mediclinic'), 'parent' => $panel_blog_single, 'options' => mediclinic_mikado_get_yes_no_select_array(), 'args' => array( 'col_width' => 3 ) ) ); mediclinic_mikado_add_admin_field(array( 'name' => 'blog_single_title_in_title_area', 'type' => 'yesno', 'label' => esc_html__('Show Post Title in Title Area', 'mediclinic'), 'description' => esc_html__('Enabling this option will show post title in title area on single post pages', 'mediclinic'), 'parent' => $panel_blog_single, 'default_value' => 'no' )); mediclinic_mikado_add_admin_field(array( 'name' => 'blog_single_related_posts', 'type' => 'yesno', 'label' => esc_html__('Show Related Posts', 'mediclinic'), 'description' => esc_html__('Enabling this option will show related posts on single post pages', 'mediclinic'), 'parent' => $panel_blog_single, 'default_value' => 'yes' )); mediclinic_mikado_add_admin_field(array( 'name' => 'blog_single_comments', 'type' => 'yesno', 'label' => esc_html__('Show Comments Form', 'mediclinic'), 'description' => esc_html__('Enabling this option will show comments form on single post pages', 'mediclinic'), 'parent' => $panel_blog_single, 'default_value' => 'yes' )); mediclinic_mikado_add_admin_field( array( 'type' => 'yesno', 'name' => 'blog_single_navigation', 'default_value' => 'no', 'label' => esc_html__('Enable Prev/Next Single Post Navigation Links', 'mediclinic'), 'description' => esc_html__('Enable navigation links through the blog posts (left and right arrows will appear)', 'mediclinic'), 'parent' => $panel_blog_single, 'args' => array( 'dependence' => true, 'dependence_hide_on_yes' => '', 'dependence_show_on_yes' => '#mkdf_mkdf_blog_single_navigation_container' ) ) ); $blog_single_navigation_container = mediclinic_mikado_add_admin_container( array( 'name' => 'mkdf_blog_single_navigation_container', 'hidden_property' => 'blog_single_navigation', 'hidden_value' => 'no', 'parent' => $panel_blog_single, ) ); mediclinic_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', 'mediclinic'), 'description' => esc_html__('Limit your navigation only through current category', 'mediclinic'), 'parent' => $blog_single_navigation_container, 'args' => array( 'col_width' => 3 ) ) ); mediclinic_mikado_add_admin_field( array( 'type' => 'yesno', 'name' => 'blog_author_info', 'default_value' => 'yes', 'label' => esc_html__('Show Author Info Box', 'mediclinic'), 'description' => esc_html__('Enabling this option will display author name and descriptions on single post pages', 'mediclinic'), 'parent' => $panel_blog_single, 'args' => array( 'dependence' => true, 'dependence_hide_on_yes' => '', 'dependence_show_on_yes' => '#mkdf_mkdf_blog_single_author_info_container' ) ) ); $blog_single_author_info_container = mediclinic_mikado_add_admin_container( array( 'name' => 'mkdf_blog_single_author_info_container', 'hidden_property' => 'blog_author_info', 'hidden_value' => 'no', 'parent' => $panel_blog_single, ) ); mediclinic_mikado_add_admin_field( array( 'type' => 'yesno', 'name' => 'blog_author_info_email', 'default_value' => 'no', 'label' => esc_html__('Show Author Email', 'mediclinic'), 'description' => esc_html__('Enabling this option will show author email', 'mediclinic'), 'parent' => $blog_single_author_info_container, 'args' => array( 'col_width' => 3 ) ) ); mediclinic_mikado_add_admin_field( array( 'type' => 'yesno', 'name' => 'blog_single_author_social', 'default_value' => 'yes', 'label' => esc_html__('Show Author Social Icons', 'mediclinic'), 'description' => esc_html__('Enabling this option will show author social icons on single post pages', 'mediclinic'), 'parent' => $blog_single_author_info_container, 'args' => array( 'col_width' => 3 ) ) ); } add_action( 'mediclinic_mikado_options_map', 'mediclinic_mikado_blog_options_map', 13); }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка