array(
'element1-4'=>'1/4',
'element1-3'=>'1/3',
'element1-2'=>'1/2',
'element2-3'=>'2/3',
'element3-4'=>'3/4',
'element1-1'=>'1/1'),
'Blog' => array(
'element1-4'=>'1/4',
'element1-3'=>'1/3',
'element1-2'=>'1/2',
'element2-3'=>'2/3',
'element3-4'=>'3/4',
'element1-1'=>'1/1'),
'Contact-Form' => array(
'element1-1'=>'1/1'
),
'Content' => array(
'element1-4'=>'1/4',
'element1-3'=>'1/3',
'element1-2'=>'1/2',
'element2-3'=>'2/3',
'element3-4'=>'3/4',
'element1-1'=>'1/1'
),
'Column' => array(
'element1-4'=>'1/4',
'element1-3'=>'1/3',
'element1-2'=>'1/2',
'element2-3'=>'2/3',
'element3-4'=>'3/4',
'element1-1'=>'1/1'),
'Divider' => array(
'element1-4'=>'1/4',
'element1-3'=>'1/3',
'element1-2'=>'1/2',
'element2-3'=>'2/3',
'element3-4'=>'3/4',
'element1-1'=>'1/1'),
'Gallery' => array(
'element1-4'=>'1/4',
'element1-3'=>'1/3',
'element1-2'=>'1/2',
'element2-3'=>'2/3',
'element3-4'=>'3/4',
'element1-1'=>'1/1'),
'Message-Box' => array(
'element1-4'=>'1/4',
'element1-3'=>'1/3',
'element1-2'=>'1/2',
'element2-3'=>'2/3',
'element3-4'=>'3/4',
'element1-1'=>'1/1'),
'Personnal' => array(
'element1-4'=>'1/4',
'element1-3'=>'1/3',
'element1-2'=>'1/2',
'element2-3'=>'2/3',
'element3-4'=>'3/4',
'element1-1'=>'1/1'),
'Page' => array(
'element1-4'=>'1/4',
'element1-3'=>'1/3',
'element1-2'=>'1/2',
'element2-3'=>'2/3',
'element3-4'=>'3/4',
'element1-1'=>'1/1'),
'Portfolio' => array(
'element1-4'=>'1/4',
'element1-3'=>'1/3',
'element1-2'=>'1/2',
'element2-3'=>'2/3',
'element3-4'=>'3/4',
'element1-1'=>'1/1'),
'Post-Slider' => array(
'element1-4'=>'1/4',
'element1-3'=>'1/3',
'element1-2'=>'1/2',
'element2-3'=>'2/3',
'element3-4'=>'3/4',
'element1-1'=>'1/1'),
'Price-Item' => array(
'element1-4'=>'1/4',
'element1-3'=>'1/3',
'element1-2'=>'1/2',
'element2-3'=>'2/3',
'element3-4'=>'3/4',
'element1-1'=>'1/1'),
'Slider' => array(
'element1-4'=>'1/4',
'element1-3'=>'1/3',
'element1-2'=>'1/2',
'element2-3'=>'2/3',
'element3-4'=>'3/4',
'element1-1'=>'1/1'),
'Stunning-Text' => array(
'element1-1'=>'1/1',
),
'Tab' => array(
'element1-4'=>'1/4',
'element1-3'=>'1/3',
'element1-2'=>'1/2',
'element2-3'=>'2/3',
'element3-4'=>'3/4',
'element1-1'=>'1/1'),
'Testimonial' => array(
'element1-4'=>'1/4',
'element1-3'=>'1/3',
'element1-2'=>'1/2',
'element2-3'=>'2/3',
'element3-4'=>'3/4',
'element1-1'=>'1/1'),
'Toggle-Box' => array(
'element1-4'=>'1/4',
'element1-3'=>'1/3',
'element1-2'=>'1/2',
'element2-3'=>'2/3',
'element3-4'=>'3/4',
'element1-1'=>'1/1'),
);
// the element in page options
$page_meta_boxes = array(
"Page Item" => array(
'item'=>'page-option-item-type' ,
'size'=>'page-option-item-size',
'xml'=>'page-option-item-xml',
'type'=>'page-option-item',
'name'=>array(
'Accordion' =>array(
'header'=>array(
'title'=> __('HEADER TITLE', 'gdl_back_office'),
'name'=> 'page-option-item-accordion-header-title',
'type'=> 'inputtext'),
'tab-item'=>array(
'tab-num'=>'page-option-item-accordion-num',
'title'=>'page-option-item-accordion-title',
'caption'=>'page-option-item-accordion-content',
'active'=>''),
'item-margin'=>array(
'title'=> __('BOTTOM MARGIN', 'gdl_back_office'),
'name'=> 'page-option-item-accordion-item-margin',
'default'=>'40',
'hr'=>'none',
'type'=> 'inputtext'),
),
'Blog'=>array(
'header'=>array(
'title'=> 'HEADER TITLE',
'name'=> 'page-option-item-blog-header-title',
'type'=> 'inputtext',
'hr'=>'none'),
'read-the-blog'=>array(
'title'=> 'READ THE BLOG PAGE',
'name'=> 'page-option-item-blog-view-all',
'type'=> 'combobox',
'description' => 'You can change Read The Blog text at the admin panel > translator > blog / portfolio'),
'item-size'=>array(
'title'=>'BLOG SIZE',
'name'=>'page-option-item-blog-size',
'options'=>array('0'=>'1/4 Blog Grid', '2'=>'1/3 Blog Grid', '3'=>'1/2 Blog Grid', '4'=>'1/1 Blog Grid', '5'=>'1/1 Blog List',
'6'=>'1/1 Blog Grid List', '7'=>'1/1 Medium Thumbnail'),
'type'=>'combobox',
'hr'=>'none',
'description'=>'This is the actual size of the blog thumbnail. Outside size is the size of wrapper. The full-blog will appear only when the wrapper size equals to 1/1/.'),
'category'=>array(
'title'=>'CHOOSE CATEGORY',
'name'=>'page-option-item-blog-category',
'options'=>array(),
'type'=>'combobox',
'description'=>'Choose the post category you want to fetch the post.',
'hr'=>'none'),
'num-fetch'=>array(
'title'=> 'BLOG NUM FETCH',
'name'=> 'page-option-item-blog-num-fetch',
'type'=> 'inputtext',
'default'=> 9,
'description'=>'This is the number of fetched item in one page.'),
'num-excerpt'=>array(
'title'=> 'LENGHT OF EXCERPT',
'name'=> 'page-option-item-blog-num-excerpt',
'type'=> 'inputtext',
'default'=> 285,
'description'=>'This is the number of thumbnail content character.'),
'show-full-blog-post'=>array(
'title'=> 'SHOW FULL BLOG CONTENT',
'name'=> 'page-option-item-show-full-blog',
'type'=> 'combobox',
'options'=> array('No','Yes'),
'description'=>'Select this to yes will fetch the full posts to show ( only use for the 1/1 full thumbnail blog size. ).'),
'pagination'=>array(
'title'=>'ENABLE PAGINATION',
'name'=>'page-option-item-blog-pagination',
'type'=> 'combobox',
'options'=>array('0'=>'Yes', '1'=>'No'),
'hr'=> 'none',
'description'=>'Pagination will only appear when the number of blog post is greater than the number of fetched item in one page.'),
'offset'=>array(
'title'=>'BLOG OFFSET',
'name'=>'page-option-item-blog-offset',
'type'=>'inputtext',
'description'=>'Choose the number of posts to skip from fetching, leave it blank to set it to 0.' .
'
**** Please noted that, offset option and pagination will not work well together ****'),
'orderby'=>array(
'title'=>'ORDER BY',
'options'=> array('date', 'title', 'rand', 'comment_count'),
'name'=>'page-option-item-blog-orderby',
'type'=>'combobox',
'hr'=>'none' ),
'order'=>array(
'title'=>'ORDER',
'options'=> array('asc', 'desc'),
'default'=> 'desc',
'name'=>'page-option-item-blog-order',
'type'=>'combobox',
'hr'=>'none'),
'item-margin'=>array(
'title'=> __('BOTTOM MARGIN', 'gdl_back_office'),
'name'=> 'page-option-item-blog-item-margin',
'default'=>'40',
'hr'=>'none',
'type'=> 'inputtext'),
),
'Contact-Form'=>array(
'email'=>array(
'title'=>'E-MAIL',
'name'=>'page-option-item-contat-email',
'type'=>'inputtext',
'description'=>'Place the destination of the email when user submit the contact form here.'),
'item-margin'=>array(
'title'=> __('BOTTOM MARGIN', 'gdl_back_office'),
'name'=> 'page-option-item-contact-item-margin',
'default'=>'45',
'hr'=>'none',
'type'=> 'inputtext'),
),
'Column'=>array(
'header'=>array(
'title'=> 'HEADER TITLE',
'name'=> 'page-option-item-column-header-title',
'type'=> 'inputtext'),
'column-text'=>array(
'title'=> 'Column Text',
'name'=> 'page-option-item-column-text',
'type'=> 'textarea'),
'item-margin'=>array(
'title'=> __('BOTTOM MARGIN', 'gdl_back_office'),
'name'=> 'page-option-item-column-item-margin',
'default'=>'45',
'hr'=>'none',
'type'=> 'inputtext'),
),
'Content' => array(
'header'=>array(
'title'=> 'HEADER TITLE',
'name'=> 'page-option-item-content-header-title',
'type'=> 'inputtext'),
'description'=>array(
'title'=> 'DESCRIPTION',
'name'=> 'no-name',
'type'=> 'description',
'description'=> 'This item will get the content in the editor(wordpress visual/html editor) to show as a page item. ' .
'Don\'t forget to hide the page content in page options, otherwise there will be a duplicated content in the page.',
),
'item-margin'=>array(
'title'=> __('BOTTOM MARGIN', 'gdl_back_office'),
'name'=> 'page-option-item-content-item-margin',
'default'=>'45',
'hr'=>'none',
'type'=> 'inputtext'),
),
'Divider' =>array(
'text'=>array(
'title'=> 'BACK TO TOP TEXT',
'name'=> 'page-option-item-divider-text',
'type'=> 'inputtext',
'description'=> "This text will appear at the top right of divider line. It helps user to scroll page to the top. Leave it blank if you don't want it to be shown."),
'item-margin'=>array(
'title'=> __('BOTTOM MARGIN', 'gdl_back_office'),
'name'=> 'page-option-item-divider-item-margin',
'default'=>'45',
'hr'=>'none',
'type'=> 'inputtext'),
),
'Gallery' =>array(
'header'=>array(
'title'=> 'HEADER TITLE',
'name'=> 'page-option-item-gallery-header-title',
'type'=> 'inputtext'),
'item-size'=>array(
'title'=> 'ITEM SIZE',
'name'=> 'page-option-item-gallery-item-size',
'type'=> 'combobox',
'options'=> array('1/4', '1/3', '1/2')
),
'page'=> array(
'title'=> 'CHOOSE GALLERY PAGE',
'name'=> 'page-option-item-gallery-page',
'type'=> 'combobox',
'options'=> array()
),
'item-margin'=>array(
'title'=> __('BOTTOM MARGIN', 'gdl_back_office'),
'name'=> 'page-option-item-gallery-item-margin',
'default'=>'45',
'hr'=>'none',
'type'=> 'inputtext'),
),
'Message-Box'=>array(
'color'=>array(
'title'=>'BOX COLOR',
'name'=>'page-option-item-message-color',
'options'=>array('0'=>'red', '1'=>'green', '2'=>'yellow', '3'=>'blue'),
'type'=>'combobox'),
'title'=>array(
'title'=> 'MESSAGE TITLE',
'name'=> 'page-option-item-message-title',
'type'=> 'inputtext'),
'content'=>array(
'title'=> 'MESSAGE CONTENT',
'name'=> 'page-option-item-message-content',
'type'=> 'textarea'),
'item-margin'=>array(
'title'=> __('BOTTOM MARGIN', 'gdl_back_office'),
'name'=> 'page-option-item-message-box-item-margin',
'default'=>'45',
'hr'=>'none',
'type'=> 'inputtext'),
),
'Personnal'=>array(
'header'=>array(
'title'=> 'HEADER TITLE',
'name'=> 'page-option-item-personnal-header-title',
'type'=> 'inputtext'),
'item-size'=>array(
'title'=> 'ITEM SIZE',
'name'=> 'page-option-item-personnal-item-size',
'type'=> 'combobox',
'options'=> array( '1/4','1/3','1/2' )),
'num-fetch'=>array(
'title'=> 'NUM FETCH',
'name'=> 'page-option-item-personnal-num-fetch',
'type'=> 'inputtext'),
'category'=>array(
'title'=> 'PERSONNAL CATEGORY',
'name'=> 'page-option-item-personnal-category',
'type'=> 'combobox',
'options'=> array()),
'item-margin'=>array(
'title'=> __('BOTTOM MARGIN', 'gdl_back_office'),
'name'=> 'page-option-item-personnal-item-margin',
'default'=>'45',
'hr'=>'none',
'type'=> 'inputtext'),
),
'Page'=>array(
'header'=>array(
'title'=> 'HEADER TITLE',
'name'=> 'page-option-item-page-header-title',
'type'=> 'inputtext',
'description'=>'This "Page Item" will fetch the child page of this page( instead of category like portfolio ).'),
'item-size'=>array(
'title'=>'PAGE ITEM SIZE',
'name'=>'page-option-item-page-size',
'options'=>array('0'=>'1/4', '1'=>'1/3', '2'=>'1/2'),
'type'=>'combobox',
'description'=>'This is the actual size of the page thumbnail. Outside size is the size of wrapper. If you choose the wrapper size to be 1/1 and item size to be 1/4, you will get up to 4 page thumbnails in one row.'),
'num-fetch'=>array(
'title'=> 'PAGE NUM FETCH',
'name'=> 'page-option-item-page-num-fetch',
'type'=> 'inputtext',
'default'=> 9,
'description'=>'This is the number of fetched item in one page.'),
'show-title'=>array(
'title'=>'SHOW TITLE',
'name'=>'page-option-item-page-show-header',
'type'=> 'combobox',
'options'=>array('0'=>'Yes', '1'=>'No'),
'description'=>'Enable to show the thumbnail title.'),
'show-excerpt'=>array(
'title'=>'SHOW EXCERPT',
'name'=>'page-option-item-page-show-excerpt',
'type'=> 'combobox',
'options'=>array('0'=>'Yes', '1'=>'No'),
'hr'=> 'none',
'description'=>'Enable to show the thumbnail excerpt.'),
'num-excerpt'=>array(
'title'=> 'LENGHT OF EXCERPT',
'name'=> 'page-option-item-page-num-excerpt',
'type'=> 'inputtext',
'default'=> 100,
'description'=>'The number of thumbnail content character.'),
'pagination'=>array(
'title'=>'ENABLE PAGINATION',
'name'=>'page-option-item-page-pagination',
'type'=> 'combobox',
'options'=>array('0'=>'Yes', '1'=>'No'),
'description'=>'Pagination will only appear when the number of selected page is greater than the number of fetched item in one page.'),
'item-margin'=>array(
'title'=> __('BOTTOM MARGIN', 'gdl_back_office'),
'name'=> 'page-option-item-page-item-margin',
'default'=>'40',
'hr'=>'none',
'type'=> 'inputtext'),
),
'Portfolio'=>array(
'header'=>array(
'title'=> 'HEADER TITLE',
'name'=> 'page-option-item-portfolio-header-title',
'type'=> 'inputtext'),
'view-all-portfolio'=>array(
'title'=> 'VIEW PORTFOLIO PAGE',
'name'=> 'page-option-item-portfolio-view-all',
'type'=> 'combobox',
'description' => 'You can change this text at the admin panel > translator > blog / portfolio'),
'item-size'=>array(
'title'=>'PORTFOLIO SIZE',
'name'=>'page-option-item-portfolio-size',
'options'=>array('0'=>'1/4', '1'=>'1/3', '2'=>'1/2'),
'type'=>'combobox',
'description'=>'This is the actual size of the portfolio thumbnail. Outside size is the size of wrapper. If you choose the wrapper size to be 1/1 and item size to be 1/4, you will get up to 4 portfolio thumbnails in one row.'),
'category'=>array(
'title'=>'CHOOSE CATEGORY',
'name'=>'page-option-item-portfolio-category',
'options'=>array(),
'type'=>'combobox',
'hr'=> 'none',
'description'=>'Choose the portfolio category you want the item to be fetched.'),
'portfolio-type'=>array(
'title'=>'PORTFOLIO TYPE',
'name'=>'page-option-item-portfolio-type',
'type'=> 'combobox',
'options'=>array('0'=>'Portfolio', '1'=>'Filter Portfolio', '2'=>'jQuery Filter Portfolio'),
'description'=>'jQuery filter can only filter portfolio item that show in the current page.',
'hr'=>'none'),
'num-fetch'=>array(
'title'=> 'PORTFOLIO NUM FETCH',
'name'=> 'page-option-item-portfolio-num-fetch',
'type'=> 'inputtext',
'default'=> 9,
'description'=> 'This is the number of portfolio thumbnail you want to fetch in one page.'),
'show-title'=>array(
'title'=>'SHOW TITLE',
'name'=>'page-option-item-portfolio-show-header',
'type'=> 'combobox',
'options'=>array('0'=>'Yes', '1'=>'No'),
'hr'=>'none'),
'show-tag'=>array(
'title'=>'SHOW TAG',
'name'=>'page-option-item-portfolio-show-tag',
'type'=> 'combobox',
'hr'=>'none',
'options'=>array('0'=>'Yes', '1'=>'No')),
'num-excerpt'=>array(
'title'=>'NUM EXCERPT',
'name'=>'page-option-item-portfolio-num-excerpt',
'type'=> 'inputtext',
'description'=> 'Set it to 0 or leave it blank to hide the excerpt out'),
'pagination'=>array(
'title'=>'ENABLE PAGINATION',
'name'=>'page-option-item-portfolio-pagination',
'type'=> 'combobox',
'options'=>array('0'=>'Yes', '1'=>'No'),
'description'=>'Pagination will only appear when the number of selected page is greater than the number of fetched item in one page.'),
'orderby'=>array(
'title'=>'ORDER BY',
'options'=> array('date', 'title', 'rand'),
'name'=>'page-option-item-portfolio-orderby',
'type'=>'combobox' ),
'order'=>array(
'title'=>'ORDER',
'options'=> array('asc', 'desc'),
'default'=> 'desc',
'name'=>'page-option-item-portfolio-order',
'type'=>'combobox' ),
'item-margin'=>array(
'title'=> __('BOTTOM MARGIN', 'gdl_back_office'),
'name'=> 'page-option-item-portfolio-item-margin',
'default'=>'40',
'hr'=>'none',
'type'=> 'inputtext'),
),
'Post-Slider' =>array(
'header'=>array(
'title'=> 'HEADER TITLE',
'name'=> 'page-option-item-post-slider-header-title',
'type'=> 'inputtext'),
'slider-type'=>array(
'title'=>'SLIDER TYPE',
'name'=>'page-option-item-post-slider-type',
'options'=>array('0'=>'Nivo Slider', '1'=>'Flex Slider', '2'=>'Carousel Slider'),
'type'=>'combobox',
'hr'=>'none',
'description' =>'When you use the carousel slider, please don\'t forget to fill the width and height to be smaller ( ex 160x90 )'),
'width'=>array(
'title'=>'SLIDER WIDTH',
'name'=>'page-option-item-post-slider-width',
'type'=>'inputtext',
'default'=>'940',
'hr'=>'none'),
'height'=>array(
'title'=>'SLIDER HEIGHT',
'name'=>'page-option-item-post-slider-height',
'type'=>'inputtext',
'default'=>'440',
'hr'=>'none'),
'category'=>array(
'title'=>'CHOOSE POST CATEGORY',
'name'=>'page-option-item-post-slider-category',
'options'=>array(),
'type'=>'combobox'),
'show-caption'=>array(
'title'=>'SHOW SLIDER CAPTION',
'name'=>'page-option-item-post-slider-caption',
'type'=>'combobox',
'options'=>array('Yes','No', 'Show Date'),
'hr'=>'none',
'description'=>'Date and caption will be ignored in the carousel format.'),
'num-excerpt'=>array(
'title'=>'EXCERPT NUMBER',
'name'=>'page-option-item-post-slider-excerpt',
'type'=>'inputtext',
'default'=>120,
'hr'=>'none'),
'num-fetch'=>array(
'title'=> 'POST NUM FETCH',
'name'=> 'page-option-item-post-slider-num-fetch',
'type'=> 'inputtext',
'default'=> 4,
'hr'=>'none'),
'item-margin'=>array(
'title'=> __('BOTTOM MARGIN', 'gdl_back_office'),
'name'=> 'page-option-item-post-slider-item-margin',
'default'=>'45',
'hr'=>'none',
'type'=> 'inputtext'),
),
'Price-Item'=>array(
'item-number'=>array(
'title'=>'Item Number',
'name'=>'page-option-item-price-item-size',
'options'=>array('0'=>'1', '1'=>'2', '2'=>'3', '3'=>'4', '4'=>'5', '5'=>'6'),
'type'=>'combobox',
'description'=>'The number of items you want to fetch from each price category'),
'category'=>array(
'title'=>'CHOOSE PRICE CATEGORY',
'name'=>'page-option-item-price-item-category',
'options'=>array(),
'type'=>'combobox',
'description'=>'Choose the category you want item to be fetched.'),
'item-margin'=>array(
'title'=> __('BOTTOM MARGIN', 'gdl_back_office'),
'name'=> 'page-option-item-price-table-item-margin',
'default'=>'45',
'hr'=>'none',
'type'=> 'inputtext'),
),
'Slider' =>array(
'slider-type'=>array(
'title'=>'SLIDER TYPE',
'name'=>'page-option-item-slider-type',
'options'=>array('0'=>'Nivo Slider', '1'=>'Flex Slider', '2'=>'Carousel Slider'),
'type'=>'combobox',
'hr'=>'none'),
'width'=>array(
'title'=>'SLIDER WIDTH',
'name'=>'page-option-item-slider-width',
'type'=>'inputtext',
'default'=>'940',
'hr'=>'none'),
'height'=>array(
'title'=>'SLIDER HEIGHT',
'name'=>'page-option-item-slider-height',
'type'=>'inputtext',
'default'=>'360',
'hr'=>'none'),
'slider-item'=>array(
'slider-num'=>'page-option-item-slider-num',
'image'=>'page-option-item-slider-image',
'title'=>'page-option-item-slider-title',
'link'=>'page-option-item-slider-link',
'caption'=>'page-optin-item-slider-caption',
'linktype'=>'page-option-item-slider-linktype'),
'item-margin'=>array(
'title'=> __('BOTTOM MARGIN', 'gdl_back_office'),
'name'=> 'page-option-item-slider-item-margin',
'default'=>'45',
'hr'=>'none',
'type'=> 'inputtext'),
),
'Stunning-Text'=>array(
'title'=>array(
'title'=> 'TITLE',
'name'=> 'page-option-item-stunning-text-title',
'type'=> 'inputtext'),
'caption'=>array(
'title'=> 'CAPTION',
'name'=> 'page-option-item-stunning-text-caption',
'type'=> 'textarea'),
'shadow'=>array(
'title'=> 'ENABLE SHADOW',
'name'=> 'page-option-item-stunning-text-shadow',
'options'=> array('Yes', 'No'),
'type'=> 'combobox'),
'item-margin'=>array(
'title'=> __('BOTTOM MARGIN', 'gdl_back_office'),
'name'=> 'page-option-item-stunning-text-item-margin',
'default'=>'45',
'hr'=>'none',
'type'=> 'inputtext'),
),
'Tab' =>array(
'header'=>array(
'title'=> 'HEADER TITLE',
'name'=> 'page-option-item-tab-header-title',
'type'=> 'inputtext'),
'tab-item'=>array(
'tab-num'=>'page-option-item-tab-num',
'title'=>'page-option-item-tab-title',
'caption'=>'page-option-item-tab-content',
'active'=>''),
'item-margin'=>array(
'title'=> __('BOTTOM MARGIN', 'gdl_back_office'),
'name'=> 'page-option-item-tab-item-margin',
'default'=>'45',
'hr'=>'none',
'type'=> 'inputtext'),
),
'Testimonial' =>array(
'header'=>array(
'title'=> 'HEADER TITLE',
'name'=> 'page-option-item-testimonial-header-title',
'type'=> 'inputtext'),
'display-type'=>array(
'title'=>'CHOOSE TESTIMONIAL DISPLAY TYPE',
'name'=>'page-option-item-testimonial-display-type',
'hr'=>'none',
'options'=>array('0'=>'Static Testimonial', '1'=>'Carousel Testimonial'),
'type'=>'combobox'),
'item-size'=>array(
'title'=>'TESTIMONIAL SIZE',
'name'=>'page-option-item-testimonial-size',
'options'=>array('0'=>'1/4', '1'=>'1/3', '2'=>'1/2', '3'=>'1/1'),
'meta_body'=>'testimonial-item-size-wrapper',
'type'=>'combobox',
'description'=>'This is the actual size of the testimonial. Outside size is the size of wrapper. If you choose the wrapper size to be 1/1 and item size to be 1/4, you will get up to 4 testimonial in one row.'),
'category'=>array(
'title'=>'CHOOSE CATEGORY',
'name'=>'page-option-item-testimonial-category',
'options'=>array(),
'type'=>'combobox',
'description'=>'Choose the category you want testimonial to be fetched. This theme will display testimonail using the jquery carousel.'),
'num-fetch'=>array(
'title'=>'NUM FETCH',
'name'=>'page-option-item-testimonial-num-fetch',
'type'=>'inputtext',
'default'=>'4'),
'orderby'=>array(
'title'=>'ORDER BY',
'options'=> array('date', 'title', 'rand'),
'name'=>'page-option-item-testimonial-orderby',
'type'=>'combobox' ),
'order'=>array(
'title'=>'ORDER',
'options'=> array('asc', 'desc'),
'default'=> 'desc',
'name'=>'page-option-item-testimonial-order',
'type'=>'combobox' ),
'item-margin'=>array(
'title'=> __('BOTTOM MARGIN', 'gdl_back_office'),
'name'=> 'page-option-item-testimonial-item-margin',
'default'=>'45',
'hr'=>'none',
'type'=> 'inputtext'),
),
'Toggle-Box' =>array(
'header'=>array(
'title'=> __('HEADER TITLE', 'gdl_back_office'),
'name'=> 'page-option-item-toggle-box-header-title',
'type'=> 'inputtext'),
'tab-item'=>array(
'tab-num'=>'page-option-item-toggle-box-num',
'title'=>'page-option-item-toggle-box-title',
'caption'=>'page-option-item-toggle-box-content',
'active'=>'page-option-item-toggle-box-active'),
'item-margin'=>array(
'title'=> __('BOTTOM MARGIN', 'gdl_back_office'),
'name'=> 'page-option-item-toggle-box-item-margin',
'default'=>'45',
'hr'=>'none',
'type'=> 'inputtext'),
),
)
),
"Page Sidebar Template" => array(
'title'=> __('SELECT LAYOUT', 'gdl_back_office'),
'name'=>'page-option-sidebar-template',
'type'=>'radioimage',
'default'=>'no-sidebar',
'hr'=>'none',
'options'=>array(
'1'=>array('value'=>'right-sidebar','image'=>'/include/images/right-sidebar.png'),
'2'=>array('value'=>'left-sidebar','image'=>'/include/images/left-sidebar.png'),
'3'=>array('value'=>'both-sidebar','image'=>'/include/images/both-sidebar-1.png'),
'4'=>array('value'=>'both-sidebar-reverse','image'=>'/include/images/both-sidebar-2.png'),
'5'=>array('value'=>'no-sidebar','image'=>'/include/images/no-sidebar.png','default'=>'selected')
)
),
"Choose Left Sidebar" => array(
'title'=> __('CHOOSE LEFT SIDEBAR', 'gdl_back_office'),
'name'=>'page-option-choose-left-sidebar',
'type'=>'combobox',
'hr'=>'none'
),
"Choose Right Sidebar" => array(
'title'=> __('CHOOSE RIGHT SIDEBAR', 'gdl_back_office'),
'name'=>'page-option-choose-right-sidebar',
'type'=>'combobox',
),
"Page Caption" => array(
'type'=>'textarea',
'name'=>'page-option-caption',
'title'=> __('PAGE CAPTION', 'gdl_back_office')
),
"Page Content" => array(
'type'=>'combobox',
'name'=>'page-option-show-content',
'options'=> array('Yes', 'No'),
'title'=> __('SHOW PAGE CONTENT', 'gdl_back_office'),
),
"Top Slider Type" => array(
'title'=> __('TOP SLIDER TYPE', 'gdl_back_office'),
'name'=>'page-option-top-slider-types',
'options'=>array('0'=>'Title', '1'=>'None', '2'=>'Nivo Slider', '3'=>'Flex Slider', '4'=>'Post Slider'),
'type'=>'combobox',
'hr'=>'none',
'description' => 'Top slider is the slider under the main navigation menu and above the page template( so it will always be full width ).'
),
"Post Slider Open" => array( 'type'=>'open', 'id'=>'gdl-layer-slider-wrapper'),
"Post Slider Category" => array(
'title'=> __('POST SLIDER CATEGORY', 'gdl_back_office'),
'name'=>'page-option-post-slider-category',
'type'=>'combobox',
'options'=> get_category_list( 'category' ),
'hr'=>'none'
),
"Post Slider Num Fetch" => array(
'title'=> __('POST SLIDER NUM FETCH', 'gdl_back_office'),
'name'=>'page-option-post-slider-num-fetch',
'type'=>'inputtext',
'default'=> '10',
'hr'=>'none'
),
"Post Slider Width" => array(
'title'=> __('POST SLIDER WIDTH', 'gdl_back_office'),
'name'=>'page-option-post-slider-width',
'type'=>'inputtext',
'default'=> '237',
'hr'=>'none'
),
"Post Slider Height" => array(
'title'=> __('POST SLIDER HEIGHT', 'gdl_back_office'),
'name'=>'page-option-post-slider-height',
'type'=>'inputtext',
'default'=> '150',
'hr'=>'none'
),
"Post Slider Close" => array( 'type'=>'close' ),
"Top Slider Open" => array( 'type'=>'open', 'id'=>'gdl-top-slider-wrapper'),
"Top Slider" => array(
'type'=>'imagepicker',
'title'=> __('SELECT IMAGES', 'gdl_back_office'),
'xml'=>'page-option-top-slider-xml',
'hr'=>'none',
'name'=>array(
'image'=>'page-option-top-slider-image',
'title'=>'page-option-top-slider-title',
'caption'=>'page-option-top-slider-caption',
'link'=>'page-option-top-slider-link',
'linktype'=>'page-option-top-slider-linktype'),
),
"Top Slider Close" => array( 'type'=>'close' ),
"Bottom Slider Open" => array( 'type'=>'open', 'id'=>'gdl-bottom-slider-wrapper'),
"Bottom Slider Close" => array( 'type'=>'close'),
);
// Page Excerpt
add_action( 'init', 'my_add_excerpts_to_pages' );
function my_add_excerpts_to_pages() {
add_post_type_support( 'page', 'excerpt' );
}
// create Page Option Meta
add_action('add_meta_boxes', 'add_page_option');
function add_page_option(){
add_meta_box('page-option', __('Page Option','gdl_back_office'), 'add_page_option_element',
'page', 'normal', 'high');
}
function add_page_option_element(){
global $post, $page_meta_boxes;
//init array
$page_meta_boxes['Page Item']['name']['Blog']['category']['options'] = get_category_list( 'category' );
$page_meta_boxes['Page Item']['name']['Blog']['read-the-blog']['options'] = array_merge( array('None'), get_post_slug_list('page'));
$page_meta_boxes['Page Item']['name']['Gallery']['page']['options'] = get_post_slug_list( 'gdl-gallery' );
$page_meta_boxes['Page Item']['name']['Personnal']['category']['options'] = get_category_list( 'personnal-category' );
$page_meta_boxes['Page Item']['name']['Portfolio']['category']['options'] = get_category_list( 'portfolio-category' );
$page_meta_boxes['Page Item']['name']['Portfolio']['view-all-portfolio']['options'] = array_merge( array('None'), get_post_slug_list('page'));
$page_meta_boxes['Page Item']['name']['Post-Slider']['category']['options'] = get_category_list( 'category' );
$page_meta_boxes['Page Item']['name']['Price-Item']['category']['options'] = get_category_list( 'price-table-category' );
$page_meta_boxes['Page Item']['name']['Testimonial']['category']['options'] = get_category_list( 'testimonial-category' );
$page_meta_boxes['Choose Left Sidebar']['options'] = get_sidebar_name();
$page_meta_boxes['Choose Right Sidebar']['options'] = $page_meta_boxes['Choose Left Sidebar']['options'];
echo '