View difference between Paste ID: 4GJdMv60 and AefEXpEP
SHOW: | | - or go back to the newest paste.
1-
<?php
1+
// Create new meta box slider in child functions.php 
2-
/* Option */
2+
3-
$optlayout = array(
3+
4-
	'default' => 'Default',
4+
5-
	'one-col' => 'One Column',
5+
        'id' => 'postlayout-option-meta-box',
6-
	'two-col-left' => 'Two Column Left',
6+
        'title' => __('Post Options','klasik'),
7-
	'two-col-right' => 'Two Column Right'
7+
	// 'page' => 'post'changed
8-
);
8+
        'page' => 'slug-custom-field',
9-
9+
        'showbox' => 'meta_option_show_box',
10-
$optarrange = array(
10+
        'context' => 'normal',
11-
	'ASC' => 'Ascending',
11+
        'priority' => 'high',
12-
	'DESC' => 'Descending'
12+
        'fields' => array(
13-
);
13+
                array(
14-
14+
                        'name' => __('Layout','klasik'),
15-
$imagepath =  get_template_directory_uri() . '/images/';
15+
                        'desc' => '<em>'.__('Select the layout you want on this specific post/page. Overrides default site layout.','klasik').'</em>',
16-
$optlayoutimg = array(
16+
                        'options' => $optlayoutimg,
17-
	'default' => $imagepath.'mb-default.png',
17+
                        'id' => 'klasik_layout',
18-
	'one-col' => $imagepath.'mb-1c.png',
18+
                        'type' => 'selectimage',
19-
	'two-col-left' => $imagepath.'mb-2cl.png',
19+
                        'std' => ''
20-
	'two-col-right' => $imagepath.'mb-2cr.png'
20+
                ),
21-
);
21+
                array(
22-
// Create meta box slider
22+
                        'name' => __('Feature on Homepage Slider','klasik'),
23
                        'desc' => '<em>'.__('Checked this checkbox if you want to show this post as Homepage Slider.','klasik').'</em>',
24-
24+
                        'id' => 'klasik_slider_post',
25
                        'type' => 'checkbox',
26-
	'id' => 'postlayout-option-meta-box',
26+
                        'std' => ''
27-
	'title' => __('Post Options','klasik'),
27+
                ),
28-
	'page' => 'post',
28+
                array(
29-
	'showbox' => 'meta_option_show_box',
29+
                        'name' => __('Disable Blog Info on Single','klasik'),
30-
	'context' => 'normal',
30+
                        'desc' => '<em>'.__('Checked this checkbox if you want to disable the meta and author information on single page (date, author, categories, etc).','klasik').'</em>',
31-
	'priority' => 'high',
31+
                        'id' => 'klasik_disable_meta',
32-
	'fields' => array(
32+
                        'type' => 'checkbox',
33-
		array(
33+
                        'std' => ''
34-
			'name' => __('Layout','klasik'),
34+
                )
35-
			'desc' => '<em>'.__('Select the layout you want on this specific post/page. Overrides default site layout.','klasik').'</em>',
35+
        )
36-
			'options' => $optlayoutimg,
36+
);