Submit
Path:
~
/
home
/
getwphos
/
www
/
ccma
/
wp-content
/
themes
/
curly
/
framework
/
modules
/
blog
/
admin
/
options-map
/
File Content:
blog-map.php
<?php if (!function_exists('curly_mkdf_get_blog_list_types_options')) { function curly_mkdf_get_blog_list_types_options() { $blog_list_type_options = apply_filters('curly_mkdf_blog_list_type_global_option', $blog_list_type_options = array()); return $blog_list_type_options; } } if (!function_exists('curly_mkdf_blog_options_map')) { function curly_mkdf_blog_options_map() { $blog_list_type_options = curly_mkdf_get_blog_list_types_options(); curly_mkdf_add_admin_page( array( 'slug' => '_blog_page', 'title' => esc_html__('Blog', 'curly'), 'icon' => 'fa fa-files-o' ) ); /** * Blog Lists */ $panel_blog_lists = curly_mkdf_add_admin_panel( array( 'page' => '_blog_page', 'name' => 'panel_blog_lists', 'title' => esc_html__('Blog Lists', 'curly') ) ); curly_mkdf_add_admin_field( array( 'name' => 'blog_list_type', 'type' => 'select', 'label' => esc_html__('Blog Layout for Archive Pages', 'curly'), 'description' => esc_html__('Choose a default blog layout for archived blog post lists', 'curly'), 'default_value' => 'standard', 'parent' => $panel_blog_lists, 'options' => $blog_list_type_options ) ); curly_mkdf_add_admin_field( array( 'name' => 'archive_sidebar_layout', 'type' => 'select', 'label' => esc_html__('Sidebar Layout for Archive Pages', 'curly'), 'description' => esc_html__('Choose a sidebar layout for archived blog post lists', 'curly'), 'default_value' => '', 'parent' => $panel_blog_lists, 'options' => curly_mkdf_get_custom_sidebars_options(), ) ); $curly_custom_sidebars = curly_mkdf_get_custom_sidebars(); if (count($curly_custom_sidebars) > 0) { curly_mkdf_add_admin_field( array( 'name' => 'archive_custom_sidebar_area', 'type' => 'selectblank', 'label' => esc_html__('Sidebar to Display for Archive Pages', 'curly'), 'description' => esc_html__('Choose a sidebar to display on archived blog post lists. Default sidebar is "Sidebar Page"', 'curly'), 'parent' => $panel_blog_lists, 'options' => curly_mkdf_get_custom_sidebars(), 'args' => array( 'select2' => true ) ) ); } curly_mkdf_add_admin_field( array( 'name' => 'blog_masonry_layout', 'type' => 'select', 'label' => esc_html__('Masonry - Layout', 'curly'), 'default_value' => 'in-grid', 'description' => esc_html__('Set masonry layout. Default is in grid.', 'curly'), 'parent' => $panel_blog_lists, 'options' => array( 'in-grid' => esc_html__('In Grid', 'curly'), 'full-width' => esc_html__('Full Width', 'curly') ) ) ); curly_mkdf_add_admin_field( array( 'name' => 'blog_masonry_number_of_columns', 'type' => 'select', 'label' => esc_html__('Masonry - Number of Columns', 'curly'), 'default_value' => 'three', 'description' => esc_html__('Set number of columns for your masonry blog lists. Default value is 4 columns', 'curly'), 'parent' => $panel_blog_lists, 'options' => array( 'two' => esc_html__('2 Columns', 'curly'), 'three' => esc_html__('3 Columns', 'curly'), 'four' => esc_html__('4 Columns', 'curly'), 'five' => esc_html__('5 Columns', 'curly') ) ) ); curly_mkdf_add_admin_field( array( 'name' => 'blog_masonry_space_between_items', 'type' => 'select', 'label' => esc_html__('Masonry - Space Between Items', 'curly'), 'description' => esc_html__('Set space size between posts for your masonry blog lists. Default value is normal', 'curly'), 'default_value' => 'normal', 'options' => curly_mkdf_get_space_between_items_array(), 'parent' => $panel_blog_lists ) ); curly_mkdf_add_admin_field( array( 'name' => 'blog_list_featured_image_proportion', 'type' => 'select', 'label' => esc_html__('Masonry - Featured Image Proportion', 'curly'), 'default_value' => 'fixed', 'description' => esc_html__('Choose type of proportions you want to use for featured images on masonry blog lists', 'curly'), 'parent' => $panel_blog_lists, 'options' => array( 'fixed' => esc_html__('Fixed', 'curly'), 'original' => esc_html__('Original', 'curly') ) ) ); curly_mkdf_add_admin_field( array( 'name' => 'blog_pagination_type', 'type' => 'select', 'label' => esc_html__('Pagination Type', 'curly'), 'description' => esc_html__('Choose a pagination layout for Blog Lists', 'curly'), 'parent' => $panel_blog_lists, 'default_value' => 'standard', 'options' => array( 'standard' => esc_html__('Standard', 'curly'), 'load-more' => esc_html__('Load More', 'curly'), 'infinite-scroll' => esc_html__('Infinite Scroll', 'curly'), 'no-pagination' => esc_html__('No Pagination', 'curly') ) ) ); curly_mkdf_add_admin_field( array( 'type' => 'text', 'name' => 'number_of_chars', 'default_value' => '40', 'label' => esc_html__('Number of Words in Excerpt', 'curly'), 'description' => esc_html__('Enter a number of words in excerpt (article summary). Default value is 40', 'curly'), 'parent' => $panel_blog_lists, 'args' => array( 'col_width' => 3 ) ) ); curly_mkdf_add_admin_field( array( 'type' => 'yesno', 'name' => 'show_tags_area_blog', 'default_value' => 'no', 'label' => esc_html__('Enable Blog Tags on Standard List', 'curly'), 'description' => esc_html__('Enabling this option will show tags on standard blog list', 'curly'), 'parent' => $panel_blog_lists ) ); /** * Blog Single */ $panel_blog_single = curly_mkdf_add_admin_panel( array( 'page' => '_blog_page', 'name' => 'panel_blog_single', 'title' => esc_html__('Blog Single', 'curly') ) ); curly_mkdf_add_admin_field( array( 'name' => 'blog_single_sidebar_layout', 'type' => 'select', 'label' => esc_html__('Sidebar Layout', 'curly'), 'description' => esc_html__('Choose a sidebar layout for Blog Single pages', 'curly'), 'default_value' => '', 'parent' => $panel_blog_single, 'options' => curly_mkdf_get_custom_sidebars_options() ) ); if (count($curly_custom_sidebars) > 0) { curly_mkdf_add_admin_field( array( 'name' => 'blog_single_custom_sidebar_area', 'type' => 'selectblank', 'label' => esc_html__('Sidebar to Display', 'curly'), 'description' => esc_html__('Choose a sidebar to display on Blog Single pages. Default sidebar is "Sidebar"', 'curly'), 'parent' => $panel_blog_single, 'options' => curly_mkdf_get_custom_sidebars(), 'args' => array( 'select2' => true ) ) ); } curly_mkdf_add_admin_field( array( 'type' => 'select', 'name' => 'show_title_area_blog', 'default_value' => '', 'label' => esc_html__('Show Title Area', 'curly'), 'description' => esc_html__('Enabling this option will show title area on single post pages', 'curly'), 'parent' => $panel_blog_single, 'options' => curly_mkdf_get_yes_no_select_array(), 'args' => array( 'col_width' => 3 ) ) ); curly_mkdf_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', 'curly'), 'description' => esc_html__('Enabling this option will show post title in title area on single post pages', 'curly'), 'parent' => $panel_blog_single, 'dependency' => array( 'hide' => array( 'show_title_area_blog' => 'no' ) ) ) ); curly_mkdf_add_admin_field( array( 'name' => 'blog_single_related_posts', 'type' => 'yesno', 'label' => esc_html__('Show Related Posts', 'curly'), 'description' => esc_html__('Enabling this option will show related posts on single post pages', 'curly'), 'parent' => $panel_blog_single, 'default_value' => 'yes' ) ); curly_mkdf_add_admin_field( array( 'name' => 'blog_single_comments', 'type' => 'yesno', 'label' => esc_html__('Show Comments Form', 'curly'), 'description' => esc_html__('Enabling this option will show comments form on single post pages', 'curly'), 'parent' => $panel_blog_single, 'default_value' => 'yes' ) ); curly_mkdf_add_admin_field( array( 'type' => 'yesno', 'name' => 'blog_single_navigation', 'default_value' => 'no', 'label' => esc_html__('Enable Prev/Next Single Post Navigation Links', 'curly'), 'description' => esc_html__('Enable navigation links through the blog posts (left and right arrows will appear)', 'curly'), 'parent' => $panel_blog_single ) ); $blog_single_navigation_container = curly_mkdf_add_admin_container( array( 'name' => 'mkdf_blog_single_navigation_container', 'parent' => $panel_blog_single, 'dependency' => array( 'show' => array( 'blog_single_navigation' => 'yes' ) ) ) ); curly_mkdf_add_admin_field( array( 'type' => 'yesno', 'name' => 'blog_navigation_through_same_category', 'default_value' => 'no', 'label' => esc_html__('Enable Navigation Only in Current Category', 'curly'), 'description' => esc_html__('Limit your navigation only through current category', 'curly'), 'parent' => $blog_single_navigation_container, 'args' => array( 'col_width' => 3 ) ) ); curly_mkdf_add_admin_field( array( 'type' => 'yesno', 'name' => 'blog_author_info', 'default_value' => 'yes', 'label' => esc_html__('Show Author Info Box', 'curly'), 'description' => esc_html__('Enabling this option will display author name and descriptions on single post pages', 'curly'), 'parent' => $panel_blog_single ) ); $blog_single_author_info_container = curly_mkdf_add_admin_container( array( 'name' => 'mkdf_blog_single_author_info_container', 'parent' => $panel_blog_single, 'dependency' => array( 'show' => array( 'blog_author_info' => 'yes' ) ) ) ); curly_mkdf_add_admin_field( array( 'type' => 'yesno', 'name' => 'blog_author_info_email', 'default_value' => 'no', 'label' => esc_html__('Show Author Email', 'curly'), 'description' => esc_html__('Enabling this option will show author email', 'curly'), 'parent' => $blog_single_author_info_container, 'args' => array( 'col_width' => 3 ) ) ); curly_mkdf_add_admin_field( array( 'type' => 'yesno', 'name' => 'blog_single_author_social', 'default_value' => 'yes', 'label' => esc_html__('Show Author Social Icons', 'curly'), 'description' => esc_html__('Enabling this option will show author social icons on single post pages', 'curly'), 'parent' => $blog_single_author_info_container, 'args' => array( 'col_width' => 3 ) ) ); do_action('curly_mkdf_blog_single_options_map', $panel_blog_single); } add_action('curly_mkdf_options_map', 'curly_mkdf_blog_options_map', 13); }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
blog-map.php
14492 bytes
0644
N4ST4R_ID | Naxtarrr