Advertisement
madhawaseeeee

thme options

Feb 13th, 2018
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.54 KB | None | 0 0
  1. $meta_boxes[] = array(
  2.         'title' => __('Right Box', 'x2-backend'),
  3.         'pages' => array('page'),
  4.         'context' => 'normal', // Where the meta box appear: normal (default), advanced, side. Optional.
  5.         'id' => 'ct_page_rightbox_options',
  6.         'show_on' => array( 'key' => 'page-template', 'value' => array('tpl-location.php') ),
  7.         'fields' => array(
  8.             array(
  9.                 'name' => __('Right box Title', 'x2-backend'),
  10.                 'id' => "{$prefix}rightbox_title",
  11.                 'type' => 'text',
  12.             ),
  13.             array(
  14.                 'name' => __('Right box Content', 'x2-backend'),
  15.                 'id' => "{$prefix}rightbox_content",
  16.                 'type'    => 'wysiwyg',
  17.                 'raw'     => false,
  18.                 'options' => array(
  19.                     'textarea_rows' => 4,
  20.                 ),
  21.             ),
  22.             array(
  23.                 'name' => __('Right box cta text', 'x2-backend'),
  24.                 'id' => "{$prefix}rightbox_cta_text",
  25.                 'type' => 'text',
  26.             ),
  27.             array(
  28.                 'name' => __('Right box cta link', 'x2-backend'),
  29.                 'id' => "{$prefix}rightbox_cta_link",
  30.                 'type' => 'text',
  31.             ),
  32.             array(
  33.                 'name' => __('Right box cta target', 'x2-backend'),
  34.                 'id' => "{$prefix}rightbox_cta_target",
  35.                 'type' => 'select',
  36.                 'options' => array(
  37.                     '_parent' => 'Parent',
  38.                     '_blank' => 'Blank',
  39.                 ),
  40.             ),
  41.         )
  42.     );
  43.  
  44.  
  45.         $meta_boxes[] = array(
  46.         'title' => __('Bottom Content', 'x2-backend'),
  47.         'pages' => array('page'),
  48.         'context' => 'normal', // Where the meta box appear: normal (default), advanced, side. Optional.
  49.         'id' => 'ct_page_btm_content_options',
  50.         'show_on' => array( 'key' => 'page-template', 'value' => array('tpl-location.php') ),
  51.         'fields' => array(
  52.             array(
  53.                 'name' => __('Right box Title', 'x5-backend'),
  54.                 'id' => "{$prefix}btm_content_title",
  55.                 'type' => 'text',
  56.             ),
  57.             array(
  58.                 'name' => __('Right box Content', 'x5-backend'),
  59.                 'id' => "{$prefix}btm_content_content",
  60.                 'type'    => 'wysiwyg',
  61.                 'raw'     => false,
  62.                 'options' => array(
  63.                     'textarea_rows' => 8,
  64.                 ),
  65.             ),
  66.         )
  67.     );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement