PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
webon-core
/
inc
/
blog
/
dashboard
/
meta-box
<?php if ( ! function_exists( 'webon_core_add_blog_single_meta_box' ) ) { /** * Function that add general options for this module */ function webon_core_add_blog_single_meta_box() { $qode_framework = qode_framework_get_framework_root(); $page = $qode_framework->add_options_page( array( 'scope' => array( 'post' ), 'type' => 'meta', 'slug' => 'blog-single', 'title' => esc_html__( 'Blog Single', 'webon-core' ) ) ); if ( $page ) { $page->add_field_element( array( 'field_type' => 'image', 'name' => 'qodef_blog_list_image', 'title' => esc_html__( 'Blog List Image', 'webon-core' ), 'description' => esc_html__( 'Upload image to be displayed on blog list instead of featured image', 'webon-core' ) ) ); $page->add_field_element( array( 'field_type' => 'select', 'name' => 'qodef_masonry_image_dimension_post', 'title' => esc_html__( 'Image Dimension', 'webon-core' ), 'description' => esc_html__( 'Choose an image layout for blog list. If you are using fixed image proportions on the list, choose an option other than default', 'webon-core' ), 'options' => webon_core_get_select_type_options_pool( 'masonry_image_dimension' ) ) ); // Hook to include additional options after module options do_action( 'webon_core_action_after_blog_single_meta_box_map', $page ); } } add_action( 'webon_core_action_default_meta_boxes_init', 'webon_core_add_blog_single_meta_box', 1 ); // Permission 1 is set in order to this module be at the first place }
[-] blog-single-meta-box.php
[edit]
[+]
..
[+]
post-format