Advertisement
Guest User

Untitled

a guest
May 8th, 2018
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.27 KB | None | 0 0
  1. <?php
  2. /* ----------------------------------------------------- /
  3. / page Type Metaboxes
  4. /* ----------------------------------------------------- */
  5. $meta_boxes[] = array(
  6.     'id'      => 'home_page_type',
  7.     'title'   => 'Default Page Template Function',
  8.     'pages'   => array( 'page' ),
  9.     'context' => 'normal',
  10.     'fields' => array(
  11.         // SELECT BOX
  12.         array(
  13.             'name'        => __( 'Select', 'textdomain' ),
  14.             'id'          => $prefix . 'wr_pagetype',
  15.             'desc'        => __( '', 'textdomain' ),
  16.             'type'        => 'select_advanced',
  17.             // Array of 'value' => 'Label' pairs for select box
  18.             'options'     => array(
  19.                 'st1' => esc_attr__( 'Default', 'textdomain' ),
  20.                 'st2' => esc_attr__( 'One Page', 'textdomain' ),
  21.                 'st3' => esc_attr__( 'Left Sidebar', 'textdomain' ),
  22.                 'st4' => esc_attr__( 'Blank Page', 'textdomain' ),
  23.                 'st5' => esc_attr__( 'Right Sidebar', 'textdomain' ),
  24.             ),
  25.             // Select multiple values, optional. Default is false.
  26.             'multiple'    => false,
  27.             'std'         => 'st1',
  28.             'placeholder' => esc_attr__( 'Select an Option', 'textdomain' ),
  29.         ),
  30.     ),
  31. );
  32.  
  33. /* ----------------------------------------------------- /
  34. / page Type Metaboxes
  35. /* ----------------------------------------------------- */
  36. $meta_boxes[] = array(
  37.     'id'      => 'intro_type',
  38.     'title'   => 'One Page Intro Option',
  39.     'show'    => array(
  40.         // by metabox select
  41.         'input_value' => array(
  42.             '#rnr_wr_pagetype' => 'st2',
  43.         ),
  44.     ),
  45.     'pages'   => array( 'page' ),
  46.     'context' => 'normal',
  47.     'fields' => array(
  48.         // SELECT BOX
  49.         array(
  50.             'name'        => esc_attr__( 'One Page Intro Style', 'popuga' ),
  51.             'id'          => $prefix . 'wr_one_intro_opt',
  52.             'desc'        => esc_attr__( '', 'popuga' ),
  53.             'type'        => 'select_advanced',
  54.             // Array of 'value' => 'Label' pairs for select box
  55.             'options'     => array(
  56.                 'st0' => esc_attr__( 'Hidden', 'popuga' ),
  57.                 'st1' => esc_attr__( 'Image', 'popuga' ),
  58.                 'st2' => esc_attr__( 'Slider', 'popuga' ),
  59.                 'st3' => esc_attr__( 'Youtube Video', 'popuga' ),
  60.                 'st4' => esc_attr__( 'Revolution Slider', 'popuga' ),
  61.        
  62.             ),
  63.             // Select multiple values, optional. Default is false.
  64.             'multiple'    => false,
  65.             'std'         => 'st0',
  66.             'placeholder' => esc_attr__( 'Select an Option', 'popuga' ),
  67.         ),
  68.     ),
  69. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement