Файловый менеджер - Редактировать - /home2/cocinasdalloway/public_html/tienda/wp-content/themes/negan/framework/configs/options/blog.php
Назад
<?php // Do not allow directly accessing this file. if ( ! defined( 'ABSPATH' ) ) { exit( 'Direct script access denied.' ); } /** * Blog settings * * @param array $sections An array of our sections. * @return array */ function negan_options_section_blog( $sections ) { $sections['blog'] = array( 'name' => 'blog_panel', 'title' => esc_html__('Blog', 'negan'), 'icon' => 'fa fa-newspaper-o', 'sections' => array( array( 'name' => 'blog_general_section', 'title' => esc_html__('General Blog', 'negan'), 'icon' => 'fa fa-check', 'fields' => array( array( 'id' => 'layout_blog', 'type' => 'image_select', 'title' => esc_html__('Blog Page Layout', 'negan'), 'desc' => esc_html__('Select main content and sidebar alignment. Choose between 1, 2 or 3 column layout.', 'negan'), 'default' => 'col-1c', 'radio' => true, 'options' => Negan_Options::get_config_main_layout_opts(true, true) ), array( 'id' => 'blog_small_layout', 'type' => 'radio', 'class' => 'la-radio-style', 'default' => 'off', 'title' => esc_html__('Enable Small Layout', 'negan'), 'dependency' => array('layout_blog_col-1c', '==', 'true'), 'options' => array( 'on' => esc_html__('On', 'negan'), 'off' => esc_html__('Off', 'negan') ) ), array( 'id' => 'page_title_bar_layout_blog_global', 'type' => 'radio', 'class' => 'la-radio-style', 'default' => 'off', 'title' => esc_html__('Page Title Bar', 'negan'), 'desc' => esc_html__('Turn on to show the page title bar for the assigned blog page in "settings > reading" or blog archive pages', 'negan'), 'options' => array( 'on' => esc_html__('On', 'negan'), 'off' => esc_html__('Off', 'negan') ) ), array( 'id' => 'blog_design', 'default' => 'list_1', 'title' => esc_html__('Blog Design', 'negan'), 'desc' => esc_html__('Controls the layout for the assigned blog page in "settings > reading" or blog archive pages', 'negan'), 'type' => 'select', 'options' => array( 'list_1' => esc_html__('List Style', 'negan'), 'list_2' => esc_html__('List Classic', 'negan'), 'grid_1' => esc_html__('Grid Style 01', 'negan'), 'grid_2' => esc_html__('Grid Style 02', 'negan'), 'grid_3' => esc_html__('Grid Style 03', 'negan') ) ), array( 'id' => 'blog_post_column', 'default' => array( 'xlg' => 2, 'lg' => 2, 'md' => 2, 'sm' => 1, 'xs' => 1, 'mb' => 1 ), 'title' => esc_html__('Blog Post Columns', 'negan'), 'desc' => esc_html__('Controls the amount of columns for the grid layout when using it for the assigned blog page in "settings > reading" or blog archive pages or search results page.', 'negan'), 'type' => 'column_responsive', 'dependency' => array('blog_design', 'any', 'grid_1,grid_2,grid_3'), ), array( 'id' => 'featured_images_blog', 'type' => 'radio', 'class' => 'la-radio-style', 'default' => 'on', 'title' => esc_html__('Featured Image on Blog Archive Page', 'negan'), 'desc' => esc_html__('Turn on to display featured images on the blog or archive pages.', 'negan'), 'options' => Negan_Options::get_config_radio_onoff(false) ), array( 'id' => 'blog_thumbnail_size', 'type' => 'text', 'default' => 'full', 'title' => esc_html__('Blog Image Size', 'negan'), 'dependency' => array('featured_images_blog_on', '==', 'true'), 'desc' => esc_html__('Enter image size (Example: "thumbnail", "medium", "large", "full" or other sizes defined by theme). Alternatively enter size in pixels (Example: 200x100 (Width x Height)).', 'negan') ), array( 'id' => 'format_content_blog', 'type' => 'radio', 'class' => 'la-radio-style', 'default' => 'off', 'title' => esc_html__('Format content on Blog Archive Page', 'negan'), 'desc' => esc_html__('Turn on to display format content on the blog or archive pages.', 'negan'), 'options' => Negan_Options::get_config_radio_onoff(false), 'dependency' => array('featured_images_blog_on', '==', 'true') ), array( 'id' => 'blog_content_display', 'type' => 'radio', 'class' => 'la-radio-style', 'default' => 'excerpt', 'title' => esc_html__('Blog Content Display', 'negan'), 'desc' => esc_html__('Controls if the blog content displays an excerpt or full content for the assigned blog page in "settings > reading" or blog archive pages.', 'negan'), 'options' => array( 'excerpt' => esc_html__('Excerpt', 'negan'), 'full' => esc_html__('Full Content', 'negan') ) ), array( 'id' => 'blog_excerpt_length', 'type' => 'slider', 'default' => 20, 'title' => esc_html__( 'Excerpt Length', 'negan' ), 'desc' => esc_html__('Controls the number of words in the post excerpts for the assigned blog page in "settings > reading" or blog archive pages.', 'negan'), 'options' => array( 'step' => 1, 'min' => 0, 'max' => 500, 'unit' => '' ), 'dependency' => array('blog_content_display_excerpt', '==', 'true') ), array( 'id' => 'blog_masonry', 'type' => 'radio', 'class' => 'la-radio-style', 'default' => 'off', 'title' => esc_html__('Enable Blog Masonry', 'negan'), 'options' => Negan_Options::get_config_radio_onoff(false), 'dependency' => array('blog_design', 'any', 'grid_1,grid_2,grid_3'), ), array( 'id' => 'blog_pagination_type', 'type' => 'radio', 'class' => 'la-radio-style', 'default' => 'pagination', 'title' => esc_html__('Pagination Type', 'negan'), 'desc' => esc_html__('Controls the pagination type for the assigned blog page in "settings > reading" or blog pages.', 'negan'), 'options' => array( 'pagination' => esc_html__('Pagination', 'negan'), 'infinite_scroll' => esc_html__('Infinite Scroll', 'negan'), 'load_more' => esc_html__('Load More Button', 'negan') ) ) ) ), array( 'name' => 'blog_single_section', 'title' => esc_html__('Blog Single Post', 'negan'), 'icon' => 'fa fa-check', 'fields' => array( array( 'id' => 'layout_single_post', 'type' => 'image_select', 'title' => esc_html__('Single Page Layout', 'negan'), 'desc' => esc_html__('Select main content and sidebar alignment. Choose between 1, 2 or 3 column layout.', 'negan'), 'default' => 'inherit', 'radio' => true, 'options' => Negan_Options::get_config_main_layout_opts(true, true) ), array( 'id' => 'single_small_layout', 'type' => 'radio', 'class' => 'la-radio-style', 'default' => 'off', 'title' => esc_html__('Enable Small Layout', 'negan'), 'dependency' => array('layout_single_post_col-1c', '==', 'true'), 'options' => array( 'on' => esc_html__('On', 'negan'), 'off' => esc_html__('Off', 'negan') ) ), array( 'id' => 'page_title_bar_layout_post_single_global', 'type' => 'radio', 'class' => 'la-radio-style', 'default' => 'off', 'title' => esc_html__('Page Title Bar', 'negan'), 'desc' => esc_html__('Turn on to show the page title bar for the single post', 'negan'), 'options' => array( 'on' => esc_html__('On', 'negan'), 'off' => esc_html__('Off', 'negan') ) ), array( 'id' => 'featured_images_single', 'type' => 'radio', 'class' => 'la-radio-style', 'default' => 'off', 'title' => esc_html__('Featured Image / Video on Single Blog Post', 'negan'), 'desc' => esc_html__('Turn on to display featured images and videos on single blog posts.', 'negan'), 'options' => Negan_Options::get_config_radio_onoff(false) ), array( 'id' => 'blog_pn_nav', 'type' => 'radio', 'class' => 'la-radio-style', 'default' => 'on', 'title' => esc_html__('Previous/Next Pagination', 'negan'), 'desc' => esc_html__('Turn on to display the previous/next post pagination for single blog posts.', 'negan'), 'options' => Negan_Options::get_config_radio_onoff(false) ), array( 'id' => 'blog_post_title', 'type' => 'radio', 'class' => 'la-radio-style', 'default' => 'below', 'title' => esc_html__('Post Title', 'negan'), 'desc' => esc_html__('Controls if the post title displays above or below the featured post image or is disabled.', 'negan'), 'options' => array( 'below' => esc_html__('Below', 'negan'), 'above' => esc_html__('Above', 'negan'), 'off' => esc_html__('Disabled', 'negan') ) ), array( 'id' => 'blog_author_info', 'type' => 'radio', 'class' => 'la-radio-style', 'default' => 'on', 'title' => esc_html__('Author Info Box', 'negan'), 'desc' => esc_html__('Turn on to display the author info box below posts.', 'negan'), 'options' => Negan_Options::get_config_radio_onoff(false) ), array( 'id' => 'blog_social_sharing_box', 'type' => 'radio', 'class' => 'la-radio-style', 'default' => 'on', 'title' => esc_html__('Social Sharing Box', 'negan'), 'desc' => esc_html__('Turn on to display the social sharing box.', 'negan'), 'options' => Negan_Options::get_config_radio_onoff(false) ), array( 'id' => 'blog_related_posts', 'type' => 'radio', 'class' => 'la-radio-style', 'default' => 'on', 'title' => esc_html__('Related Posts', 'negan'), 'desc' => esc_html__('Turn on to display related posts.', 'negan'), 'options' => Negan_Options::get_config_radio_onoff(false) ), array( 'id' => 'blog_related_design', 'default' => '1', 'title' => esc_html__('Related Design', 'negan'), 'type' => 'select', 'options' => array( '1' => esc_html__('Style 1', 'negan') ), 'dependency' => array('blog_related_posts_on', '==', 'true'), ), array( 'id' => 'blog_related_by', 'default' => 'random', 'title' => esc_html__('Related Posts By', 'negan'), 'type' => 'select', 'options' => array( 'category' => esc_html__('Category', 'negan'), 'tag' => esc_html__('Tag', 'negan'), 'both' => esc_html__('Category & Tag', 'negan'), 'random' => esc_html__('Random', 'negan') ), 'dependency' => array('blog_related_posts_on', '==', 'true'), ), array( 'id' => 'blog_related_max_post', 'type' => 'slider', 'default' => 1, 'title' => esc_html__( 'Maximum Related Posts', 'negan' ), 'options' => array( 'step' => 1, 'min' => 1, 'max' => 10, 'unit' => '' ), 'dependency' => array('blog_related_posts_on', '==', 'true') ), array( 'id' => 'blog_comments', 'type' => 'radio', 'class' => 'la-radio-style', 'default' => 'on', 'title' => esc_html__('Comments', 'negan'), 'desc' => esc_html__('Turn on to display comments.', 'negan'), 'options' => Negan_Options::get_config_radio_onoff(false) ) ) ) ) ); return $sections; }
| ver. 1.4 |
Github
|
.
| PHP 8.2.22 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка