👁 查看:metaboxes-testimonial.php
路径:/home/forge/kingkrunch.com/wp/wp-content/plugins/templatemela-metabox/inc/metaboxes-testimonial.php
大小:1.65 KB · 修改:2020-09-11 16:13:48 · 权限:0775 · 可写
<?php
/***********************************************************/
// Testimonial Template options
/***********************************************************/
$prefix = 'tm_testimonial_list_';
$TM_META_BOXES[] = array(
	'id'		=> 'tm_testimonial_list_columns',
	'title' 	=> esc_html__('TM - List Options', 'gloryshop'),
	'pages' 	=> array( 'page' ),
	'context' 	=> 'normal',
	'priority' 	=> 'high',
	'local_images' => true,
	'fields' 	=> array(	
		// Show number of posts per page
		array(
			'name'			=> esc_html__('Number of posts per page:', 'gloryshop'),
			'id'    		=> "{$prefix}posts_per_page",
			'type'  		=> 'text',
			'std'   		=> '5',
		),
	),
	'display_on'	=> array( 'template' => array(
		'page-templates/testimonial-list.php',
	) ),
);
$prefix = 'tm_testimonial_box_';
$TM_META_BOXES[] = array(
	'id'		=> 'tm_testimonial_box_columns',
	'title' 	=> esc_html__('TM - Box Options', 'gloryshop'),
	'pages' 	=> array( 'page' ),
	'context' 	=> 'normal',
	'priority' 	=> 'high',
	'local_images' => true,
	'fields' 	=> array(	
		// Show posts per column
		array(
			'name'    		=> esc_html__('Columns Options:', 'gloryshop'),
			'id'      		=> "{$prefix}columns",
			'type'    		=> 'radio',
			'std'			=> 'two',
			'options'		=> array(
				'two'		=> 'Two',
				'three'		=> 'Three',
				'four'		=> 'Four', 
			)
		),
		// Show number of posts per page
		array(
			'name'			=> esc_html__('Number of posts per page:', 'gloryshop'),
			'id'    		=> "{$prefix}posts_per_page",
			'type'  		=> 'text',
			'std'   		=> '5',
		),
	),
	'display_on'	=> array( 'template' => array(
		'page-templates/testimonial-box.php'
	) ),
);
?>