Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* ----------------------------------------------------- /
- / page Type Metaboxes
- /* ----------------------------------------------------- */
- $meta_boxes[] = array(
- 'id' => 'home_page_type',
- 'title' => 'Default Page Template Function',
- 'pages' => array( 'page' ),
- 'context' => 'normal',
- 'fields' => array(
- // SELECT BOX
- array(
- 'name' => __( 'Select', 'textdomain' ),
- 'id' => $prefix . 'wr_pagetype',
- 'desc' => __( '', 'textdomain' ),
- 'type' => 'select_advanced',
- // Array of 'value' => 'Label' pairs for select box
- 'options' => array(
- 'st1' => esc_attr__( 'Default', 'textdomain' ),
- 'st2' => esc_attr__( 'One Page', 'textdomain' ),
- 'st3' => esc_attr__( 'Left Sidebar', 'textdomain' ),
- 'st4' => esc_attr__( 'Blank Page', 'textdomain' ),
- 'st5' => esc_attr__( 'Right Sidebar', 'textdomain' ),
- ),
- // Select multiple values, optional. Default is false.
- 'multiple' => false,
- 'std' => 'st1',
- 'placeholder' => esc_attr__( 'Select an Option', 'textdomain' ),
- ),
- ),
- );
- /* ----------------------------------------------------- /
- / page Type Metaboxes
- /* ----------------------------------------------------- */
- $meta_boxes[] = array(
- 'id' => 'intro_type',
- 'title' => 'One Page Intro Option',
- 'show' => array(
- // by metabox select
- 'input_value' => array(
- '#rnr_wr_pagetype' => 'st2',
- ),
- ),
- 'pages' => array( 'page' ),
- 'context' => 'normal',
- 'fields' => array(
- // SELECT BOX
- array(
- 'name' => esc_attr__( 'One Page Intro Style', 'popuga' ),
- 'id' => $prefix . 'wr_one_intro_opt',
- 'desc' => esc_attr__( '', 'popuga' ),
- 'type' => 'select_advanced',
- // Array of 'value' => 'Label' pairs for select box
- 'options' => array(
- 'st0' => esc_attr__( 'Hidden', 'popuga' ),
- 'st1' => esc_attr__( 'Image', 'popuga' ),
- 'st2' => esc_attr__( 'Slider', 'popuga' ),
- 'st3' => esc_attr__( 'Youtube Video', 'popuga' ),
- 'st4' => esc_attr__( 'Revolution Slider', 'popuga' ),
- ),
- // Select multiple values, optional. Default is false.
- 'multiple' => false,
- 'std' => 'st0',
- 'placeholder' => esc_attr__( 'Select an Option', 'popuga' ),
- ),
- ),
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement