Theme’s Page Builder on Events Calendar

Home Forums Calendar Products Events Calendar PRO Theme’s Page Builder on Events Calendar

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #54713
    mikeburroughs1
    Participant

    Hi. I currently use a Goodlayers theme, and it, like many premium themes, has a “page builder” on it’s page and post editors. This functionality exists on pages, but not on events. Is there a way to add it into the Events Calendar admin panel? 90% of the flexibility of the site comes from that functionality.

    #54950
    Leah
    Member

    Hi there,

    I’m sorry we haven’t been in touch with a reply here. We’ve been inundated with support requests as more people update to 3.0, so we are a little behind our usual 24-hour window for responses. We do not do support over the weekend, but we will be in touch here with a more substantial reply as soon as possible.

    In the meantime, some of these tips might be helpful:
    * Double check your Plugin page for updates. We’ve just released our latest maintenance release. As of 7/12, the most current versions are The Events Calendar 3.0.1 and Events Calendar PRO 3.0.2.
    * If you’re experiencing a problem with links, try resetting and resaving your permalinks.
    * If the issue is with settings, try resaving your settings page- even if you haven’t changed anything.
    * Having trouble with a customization done in 2.x? Be sure to check out our Themer’s Guide and documentation.

    You might also search the forums to see if someone else has a similar issue and has found a solution. Finally, if the problem you’re experiencing is a serious problem, you may choose to downgrade back to 2.0.11.

    Thank you for your patience and support.

    Best,
    Leah
    and the Modern Tribe Support Team

    #55296
    Neill
    Member

    Hi Mike,

    Thanks for your question.
    For you to get that functionality I believe you would have to work with the events template. I wouldn’t be able to give you specifics on this type of customization as it would require getting into the finer details of the theme that you are working with. If you have experience with theme design and development I’d suggest taking a look at the themer guide here: https://theeventscalendar.com/support/documentation/events-calendar-themers-guide/ This has all the information you’ll need to get started.

    I hope this points you in the right direction and feel free to start a new thread with any specific areas you come across.

    Neill

    #56413
    mikeburroughs1
    Participant

    Still trying to get this to work. Is there a certain post type that I should use?

    #56416
    mikeburroughs1
    Participant

    Ok. I’m just going to start over. In the WordPress Pages post editor, it has a meta box called Page Options. I found the file it lives in. It is /wp-content/themes/[my theme]/include/page-option.php.

    In it is as follows:
    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’),

    ‘Feature-Media’ => array(
    ‘element1-4’=>’1/4’,
    ‘element1-3’=>’1/3’,
    ‘element1-2’=>’1/2’,
    ‘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’),

    ‘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’),

    ‘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’),

    ‘Twitter’ => 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’),
    ‘header-icon’=>array(
    ‘title’=> __(‘HEADER ICON’, ‘gdl_back_office’),
    ‘name’=> ‘page-option-item-accordion-header-icon’,
    ‘type’=> ‘upload’),
    ‘tab-item’=>array(
    ‘tab-num’=>’page-option-item-accordion-num’,
    ‘title’=>’page-option-item-accordion-title’,
    ‘caption’=>’page-option-item-accordion-content’,
    ‘active’=>”,
    ‘hr’=>’none’)
    ),

    ‘Blog’=>array(
    ‘header’=>array(
    ‘title’=> __(‘HEADER TITLE’, ‘gdl_back_office’),
    ‘name’=> ‘page-option-item-blog-header-title’,
    ‘type’=> ‘inputtext’),
    ‘header-icon’=>array(
    ‘title’=> __(‘HEADER ICON’, ‘gdl_back_office’),
    ‘name’=> ‘page-option-item-blog-header-icon’,
    ‘type’=> ‘upload’),
    ‘item-size’=>array(
    ‘title’=>’BLOG SIZE’,
    ‘name’=>’page-option-item-blog-size’,
    ‘options’=>array(‘0’=>’Widget Style’, ‘1’=>’1/1 Medium Thumbnail’, ‘2’=>’1/1 Full Thumbnail’),
    ‘type’=>’combobox’,
    ‘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.’),
    ‘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.’),
    ),

    ‘Contact-Form’=>array(
    ’email’=>array(
    ‘title’=>’E-MAIL’,
    ‘name’=>’page-option-item-contat-email’,
    ‘type’=>’inputtext’,
    ‘hr’=>’none’,
    ‘description’=>’Place the destination of the email when user submit the contact form here.’)
    ),

    ‘Column’=>array(
    ‘header’=>array(
    ‘title’=> __(‘HEADER TITLE’, ‘gdl_back_office’),
    ‘name’=> ‘page-option-item-column-header-title’,
    ‘type’=> ‘inputtext’),
    ‘header-icon’=>array(
    ‘title’=> __(‘HEADER ICON’, ‘gdl_back_office’),
    ‘name’=> ‘page-option-item-column-header-icon’,
    ‘type’=> ‘upload’),
    ‘column-text’=>array(
    ‘title’=> ‘Column Text’,
    ‘name’=> ‘page-option-item-column-text’,
    ‘type’=> ‘textarea’,
    ‘hr’=> ‘none’)
    ),

    ‘Content’ => array(
    ‘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.’,
    ‘hr’=> ‘none’
    ),
    ),

    ‘Divider’ =>array(
    ‘text’=>array(
    ‘title’=> ‘BACK TO TOP TEXT’,
    ‘name’=> ‘page-option-item-divider-text’,
    ‘type’=> ‘inputtext’,
    ‘hr’=> ‘none’,
    ‘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.”),
    ),

    ‘Feature-Media’ =>array(
    ‘type’=>array(
    ‘title’=>’MEDIA TYPE’,
    ‘name’=>’page-option-item-feature-media-type’,
    ‘type’=>’combobox’,
    ‘options’=>array(‘Image’,’Video’),
    ‘hr’=>’none’),
    ‘image’=>array(
    ‘title’=>’IMAGE’,
    ‘name’=>’page-option-item-feature-media-image’,
    ‘type’=>’upload’,
    ‘hr’=>’none’),
    ‘video’=>array(
    ‘title’=>’VIDEO’,
    ‘name’=>’page-option-item-feature-media-video’,
    ‘type’=>’inputtext’),
    ‘title’=>array(
    ‘title’=> __(‘HEADER TITLE’, ‘gdl_back_office’),
    ‘name’=>’page-option-item-feature-media-title’,
    ‘type’=>’inputtext’),
    ‘icon’=>array(
    ‘title’=> __(‘HEADER ICON’, ‘gdl_back_office’),
    ‘name’=>’page-option-item-feature-media-icon’,
    ‘type’=>’upload’),
    ‘caption’=>array(
    ‘title’=>’HEADER CAPTION’,
    ‘name’=>’page-option-item-feature-media-caption’,
    ‘type’=>’textarea’),
    ‘content’=>array(
    ‘title’=>’FEATURE CONTENT’,
    ‘name’=>’page-option-item-feature-media-content’,
    ‘type’=>’textarea’),
    ‘button’=>array(
    ‘title’=>’FEATURE MEDIA BUTTON TEXT’,
    ‘name’=>’page-option-item-feature-media-button’,
    ‘type’=>’inputtext’,
    ‘default’=>’Contribute Now’),
    ‘button-link’=>array(
    ‘title’=>’FEATURE MEDIA BUTTON LINK’,
    ‘name’=>’page-option-item-feature-media-button-link’,
    ‘type’=>’inputtext’,
    ‘hr’=>’none’),
    ),

    ‘Gallery’ =>array(
    ‘header’=>array(
    ‘title’=> __(‘HEADER TITLE’, ‘gdl_back_office’),
    ‘name’=> ‘page-option-item-gallery-header-title’,
    ‘type’=> ‘inputtext’),
    ‘header-icon’=>array(
    ‘title’=> __(‘HEADER ICON’, ‘gdl_back_office’),
    ‘name’=> ‘page-option-item-gallery-header-icon’,
    ‘type’=> ‘upload’),
    ‘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(),
    ‘hr’=>’none’
    ),
    ),

    ‘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’,
    ‘hr’=> ‘none’),
    ),

    ‘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 ).’),
    ‘header-icon’=>array(
    ‘title’=> __(‘HEADER ICON’, ‘gdl_back_office’),
    ‘name’=> ‘page-option-item-page-header-icon’,
    ‘type’=> ‘upload’),
    ‘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.’),
    ‘read-more’=>array(
    ‘title’=>’SHOW READ MORE BUTTON’,
    ‘name’=> ‘page-option-item-page-read-more’,
    ‘type’=> ‘combobox’,
    ‘options’=>array(‘0’=>’Yes’, ‘1’=>’No’),
    ‘description’=>’Show the read more button below the thumbnail content.’),
    ‘pagination’=>array(
    ‘title’=>’ENABLE PAGINATION’,
    ‘name’=>’page-option-item-page-pagination’,
    ‘type’=> ‘combobox’,
    ‘options’=>array(‘0’=>’Yes’, ‘1’=>’No’),
    ‘hr’=> ‘none’,
    ‘description’=>’Pagination will only appear when the number of selected page is greater than the number of fetched item in one page.’),
    ),

    ‘Portfolio’=>array(
    ‘header’=>array(
    ‘title’=> ‘HEADER TITLE’,
    ‘name’=> ‘page-option-item-portfolio-header-title’,
    ‘type’=> ‘inputtext’),
    ‘header-icon’=>array(
    ‘title’=> __(‘HEADER ICON’, ‘gdl_back_office’),
    ‘name’=> ‘page-option-item-portfolio-header-icon’,
    ‘type’=> ‘upload’),
    ‘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.’),
    ‘filterable’=>array(
    ‘title’=>’ENABLE FILTERABLE’,
    ‘name’=>’page-option-item-portfolio-filterable’,
    ‘type’=> ‘combobox’,
    ‘options’=>array(‘0’=>’Yes’, ‘1’=>’No’),
    ‘description’=>’This option enable the JQuery filterable plugin that helps you filter the portfolio in each category.’),
    ‘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’),
    ‘description’=>’Disable this option to hide the portfolio thumbnail title.’),
    ‘show-excerpt’=>array(
    ‘title’=>’SHOW EXCERPT’,
    ‘name’=>’page-option-item-portfolio-show-excerpt’,
    ‘type’=> ‘combobox’,
    ‘options’=>array(‘0’=>’Yes’, ‘1’=>’No’),
    ‘hr’=> ‘none’,
    ‘description’=>’Enable to show the portfolio thumbnail excerpt’),
    ‘num-excerpt’=>array(
    ‘title’=> ‘LENGHT OF EXCERPT’,
    ‘name’=> ‘page-option-item-portfolio-num-excerpt’,
    ‘type’=> ‘inputtext’,
    ‘default’=> 100,
    ‘description’=>’Set the portfolio thumbnail content character length.’),
    ‘read-more’=>array(
    ‘title’=>’SHOW READ MORE BUTTON’,
    ‘name’=> ‘page-option-item-portfolio-read-more’,
    ‘type’=> ‘combobox’,
    ‘options’=>array(‘0’=>’Yes’, ‘1’=>’No’),
    ‘description’=>’Show the read more button below the content.’),
    ‘visit-website’=>array(
    ‘title’=>’SHOW VISIT WEBSITE BUTTON’,
    ‘name’=> ‘page-option-item-portfolio-visit-website’,
    ‘type’=> ‘combobox’,
    ‘options’=>array(‘0’=>’Yes’, ‘1’=>’No’),
    ‘description’=>’Show the visit website button if the website url field in portfolio options it not empty.’),
    ‘pagination’=>array(
    ‘title’=>’ENABLE PAGINATION’,
    ‘name’=>’page-option-item-portfolio-pagination’,
    ‘type’=> ‘combobox’,
    ‘options’=>array(‘0’=>’Yes’, ‘1’=>’No’),
    ‘hr’=> ‘none’,
    ‘description’=>’Pagination will only appear when the number of selected page is greater than the number of fetched item in one page.’),
    ),

    ‘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’,
    ‘hr’=> ‘none’,
    ‘description’=>’Choose the category you want item to be fetched.’),
    ),

    ‘Slider’ =>array(
    ‘slider-type’=>array(
    ‘title’=>’SLIDER TYPE’,
    ‘name’=>’page-option-item-slider-type’,
    ‘options’=>array(‘0’=>’Nivo Slider’, ‘1’=>’Flex Slider’, ‘2’=>’Anything Slider’),
    ‘type’=>’combobox’,
    ‘hr’=>’none’,
    ‘description’=> ‘Anything slider is the only one that support the video, but it will’ .
    ‘not support the responsive option.’),
    ‘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’,
    ‘hr’=>’none’)
    ),

    ‘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’,
    ‘hr’=> ‘none’),
    ),

    ‘Tab’ =>array(
    ‘header’=>array(
    ‘title’=> ‘HEADER TITLE’,
    ‘name’=> ‘page-option-item-tab-header-title’,
    ‘type’=> ‘inputtext’),
    ‘header-icon’=>array(
    ‘title’=> ‘HEADER ICON’,
    ‘name’=> ‘page-option-item-tab-header-icon’,
    ‘type’=> ‘upload’),
    ‘tab-item’=>array(
    ‘tab-num’=>’page-option-item-tab-num’,
    ‘title’=>’page-option-item-tab-title’,
    ‘caption’=>’page-option-item-tab-content’,
    ‘active’=>”,
    ‘hr’=>’none’)
    ),

    ‘Testimonial’ =>array(
    ‘header’=>array(
    ‘title’=> __(‘HEADER TITLE’, ‘gdl_back_office’),
    ‘name’=> ‘page-option-item-testimonial-header-title’,
    ‘type’=> ‘inputtext’),
    ‘header-icon’=>array(
    ‘title’=> __(‘HEADER ICON’, ‘gdl_back_office’),
    ‘name’=> ‘page-option-item-testimonial-header-icon’,
    ‘type’=> ‘upload’),
    ‘item-size’=>array(
    ‘title’=>’TESTIMONIAL SIZE’,
    ‘name’=>’page-option-item-testimonial-size’,
    ‘options’=>array(‘0’=>’1/4’, ‘1’=>’1/3′, ‘2’=>’1/2′, ‘3’=>’2/3′, ‘4’=>’3/4′, ‘5’=>’1/1′),
    ‘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.’),
    ‘display-type’=>array(
    ‘title’=>’CHOOSE THE DISPLAY TYPE’,
    ‘name’=>’page-option-item-testimonial-display-type’,
    ‘options’=>array(‘0’=>’Testimonial Widget’, ‘1’=>’Testimonial Category’, ‘2’=>’Specific Testimonial’),
    ‘type’=>’combobox’),
    ‘category’=>array(
    ‘title’=>’CHOOSE CATEGORY’,
    ‘name’=>’page-option-item-testimonial-category’,
    ‘options’=>array(),
    ‘type’=>’combobox’,
    ‘hr’=>’none’,
    ‘description’=>’Choose the category you want testimonial to be fetched. This theme will display testimonail using the jquery carousel.’),
    ‘specific’=>array(
    ‘title’=>’SPECIFIC TESTIMONIAL’,
    ‘name’=>’page-option-item-testimonial-specific’,
    ‘options’=>array(),
    ‘type’=>’combobox’,
    ‘hr’=>’none’,
    ‘description’ => ‘If you choose Specific Testimonial option, it will ignores the testimonial size above and’ .
    ‘ use the wrapper size ( outside ) instead.’),

    ),

    ‘Toggle-Box’ =>array(
    ‘header’=>array(
    ‘title’=> __(‘HEADER TITLE’, ‘gdl_back_office’),
    ‘name’=> ‘page-option-item-toggle-box-header-title’,
    ‘type’=> ‘inputtext’),
    ‘header-icon’=>array(
    ‘title’=> __(‘HEADER ICON’, ‘gdl_back_office’),
    ‘name’=> ‘page-option-item-toggle-box-header-icon’,
    ‘type’=> ‘upload’),
    ‘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’,
    ‘hr’=>’none’)
    ),

    ‘Twitter’ =>array(
    ‘header’=>array(
    ‘title’=> __(‘HEADER TITLE’, ‘gdl_back_office’),
    ‘name’=> ‘page-option-item-twiiter-header-title’,
    ‘type’=> ‘inputtext’),
    ‘header-icon’=>array(
    ‘title’=> __(‘HEADER ICON’, ‘gdl_back_office’),
    ‘name’=> ‘page-option-item-twiiter-header-icon’,
    ‘type’=> ‘upload’),
    ‘name’=>array(
    ‘title’=> __(‘TWITTER NAME’, ‘gdl_back_office’),
    ‘name’=> ‘page-option-item-twiiter-name’,
    ‘type’=> ‘inputtext’,
    ‘description’=>’Follow this http://support.goodlayers.com/fixing-using-twitter-widget to see how to get the twitter authentication information’),
    ‘consumer-key’=>array(
    ‘title’=> __(‘CONSUMER KEY’, ‘gdl_back_office’),
    ‘name’=> ‘page-option-item-twiiter-consumer-key’,
    ‘type’=> ‘inputtext’),
    ‘consumer-secret’=>array(
    ‘title’=> __(‘CONSUMER SECRET’, ‘gdl_back_office’),
    ‘name’=> ‘page-option-item-twiiter-consumer-secret’,
    ‘type’=> ‘inputtext’),
    ‘access-token’=>array(
    ‘title’=> __(‘ACCESS TOKEN’, ‘gdl_back_office’),
    ‘name’=> ‘page-option-item-twiiter-access-token’,
    ‘type’=> ‘inputtext’),
    ‘access-token-secret’=>array(
    ‘title’=> __(‘ACCESS TOKEN SECRET’, ‘gdl_back_office’),
    ‘name’=> ‘page-option-item-twiiter-access-token-secret’,
    ‘type’=> ‘inputtext’),
    ‘num-fetch’=>array(
    ‘title’=> __(‘NUM FETCH’, ‘gdl_back_office’),
    ‘name’=> ‘page-option-item-twiiter-num-fetch’,
    ‘type’=> ‘inputtext’,
    ‘hr’=> ‘none’),
    ‘cache-time’=>array(
    ‘title’=> __(‘CACHE TIME (HOURS)’, ‘gdl_back_office’),
    ‘name’=> ‘page-option-item-twiiter-cache-time’,
    ‘type’=> ‘inputtext’,
    ‘hr’=> ‘none’),
    ),

    )
    ),

    “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.png’,’default’=>’selected’),
    ‘4’=>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’,
    ),

    “Header Background” => array(
    ‘type’=>’upload’,
    ‘name’=>’page-option-header-background’,
    ‘options’=> array(‘Yes’, ‘No’),
    ‘title’=> __(‘PAGE HEADER BACKGROUND’, ‘gdl_back_office’)
    ),

    “Page Caption” => array(
    ‘title’=> __(‘PAGE CAPTION’, ‘gdl_back_office’),
    ‘name’=>’page-option-page-caption’,
    ‘type’=>’textarea’),

    “Header Min Height” => array(
    ‘type’=>’inputtext’,
    ‘name’=>’page-option-header-min-height’,
    ‘title’=> __(‘HEADER ( AND CUSTOM SLIDER) MIN HEIGHT’, ‘gdl_back_office’),
    ‘default’=>’170’
    ),

    “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’=>’No Slider’, ‘1’=>’Nivo Slider’, ‘2’=>’Flex Slider’, ‘3’=>’Anything Slider’, ‘4’=>’Custom 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 ).’
    ),

    “Top Slider Height” => array(
    ‘title’=> __(‘TOP SLIDER HEIGHT’, ‘gdl_back_office’),
    ‘name’=>’page-option-top-slider-height’,
    ‘type’=>’inputtext’,
    ‘default’=> ‘360’,
    ‘description’=>’This value will be ignored when you selct the Custom Slider. ( The HEADER MIN HEIGHT will be used instead )’,
    ‘hr’=>’none’
    ),

    “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’),
    ),

    “Enable Bottom Slider” => array(
    ‘title’=> __(‘ENABLE UNDER SLIDER AREA’, ‘gdl_back_office’),
    ‘name’=>’page-option-enable-bottom-slider’,
    ‘type’=>’combobox’,
    ‘options’=>array(‘No’,’Yes’),
    ‘hr’=>’none’
    ),

    “Bottom Slider Open” => array( ‘type’=>’open’, ‘id’=>’bottom-slider-option’, ‘hr’=>’none’ ),

    “Bottom Slider 1” => array(
    ‘title’=> __(‘UNDER SLIDER 1’, ‘gdl_back_office’),
    ‘name’=>’page-option-bottom-slider-1’,
    ‘type’=>’textarea’,
    ‘hr’=>’none’
    ),

    “Bottom Slider 2” => array(
    ‘title’=> __(‘UNDER SLIDER 2’, ‘gdl_back_office’),
    ‘name’=>’page-option-bottom-slider-2’,
    ‘type’=>’textarea’,
    ‘hr’=>’none’
    ),

    “Bottom Slider 3” => array(
    ‘title’=> __(‘UNDER SLIDER 3’, ‘gdl_back_office’),
    ‘name’=>’page-option-bottom-slider-3’,
    ‘type’=>’textarea’,
    ‘hr’=>’none’
    ),

    “Bottom Slider Close” => array( ‘type’=>’close’, ‘hr’=>’none’ ),

    );

    // 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’][‘Gallery’][‘page’][‘options’] = get_title_list( ‘gallery’ );
    $page_meta_boxes[‘Page Item’][‘name’][‘Portfolio’][‘category’][‘options’] = get_category_list( ‘portfolio-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[‘Page Item’][‘name’][‘Testimonial’][‘specific’][‘options’] = get_title_list( ‘testimonial’ );
    $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 ”;
    echo ”;

    set_nonce();

    //get value
    foreach( $page_meta_boxes as $page_meta_box ){

    if( $page_meta_box[‘type’] == ‘page-option-item’ ){

    $page_meta_box[‘value’] = get_post_meta($post->ID, $page_meta_box[‘xml’], true);
    print_page_default_elements($page_meta_box);
    print_page_selected_elements($page_meta_box);

    }else if( $page_meta_box[‘type’] == ‘imagepicker’ ){

    $slider_xml_string = get_post_meta($post->ID, $page_meta_box[‘xml’], true);
    if(!empty($slider_xml_string)){

    $slider_xml_val = new DOMDocument();
    $slider_xml_val->loadXML( $slider_xml_string );
    $page_meta_box[‘value’] = $slider_xml_val->documentElement;

    }
    print_meta( $page_meta_box );

    }else{

    if( empty( $page_meta_box[‘name’] ) ){ $page_meta_box[‘name’] = ”; }
    $page_meta_box[‘value’] = get_post_meta($post->ID, $page_meta_box[‘name’], true);
    print_meta( $page_meta_box );

    }
    echo “”;
    echo empty($page_meta_box[‘hr’])? ”: ”;

    }

    echo ”;
    echo ”;

    }

    // call when update page with save_post action
    function save_page_option_meta($post_id){

    global $page_meta_boxes;
    $edit_meta_boxes = $page_meta_boxes;

    foreach ($edit_meta_boxes as $edit_meta_box){

    if( $edit_meta_box[‘type’] == ‘page-option-item’ ){

    if(isset($_POST[$edit_meta_box[‘size’]])){

    $num = sizeof($_POST[$edit_meta_box[‘size’]]);

    }else{

    $num = 0;

    }

    $item_xml = ”;
    $item_content_num = array();

    for($i=0; $i<$num; $i++){

    $item_type_new = $_POST[$edit_meta_box['item']][$i];
    $item_xml = $item_xml . '’;
    $item_size_new = $_POST[$edit_meta_box[‘size’]][$i];
    $item_xml = $item_xml . create_xml_tag(‘size’,$item_size_new);
    $item_content = $edit_meta_box[‘name’][$item_type_new];

    if(!isset($item_content_num[$item_type_new])){

    $item_content_num[$item_type_new] = 1 ;

    if($item_type_new == ‘Slider’){

    $item_content_num[‘slider-item’] = 0;

    }else if($item_type_new == ‘Accordion’){

    $item_content_num[‘accordion-item’] = 0;

    }else if($item_type_new == ‘Tab’){

    $item_content_num[‘tab-item’] = 0;

    }else if($item_type_new == ‘Toggle-Box’){

    $item_content_num[‘toggle-box-item’] = 0;

    }
    }

    foreach($item_content as $key => $value){

    if($key == ‘slider-item’){

    $item_xml = $item_xml . ”;
    $slider_num = $_POST[$value[‘slider-num’]][$item_content_num[$item_type_new]];

    for($j=0; $j<$slider_num; $j++){

    $item_xml = $item_xml . '’;
    $temp = isset( $_POST[$value[‘image’]][$item_content_num[‘slider-item’]] )? $_POST[$value[‘image’]][$item_content_num[‘slider-item’]] : ”;
    $item_xml = $item_xml . create_xml_tag(‘image’, $temp);
    $temp = isset( $_POST[$value[‘title’]][$item_content_num[‘slider-item’]] )? htmlspecialchars($_POST[$value[‘title’]][$item_content_num[‘slider-item’]]) : ”;
    $item_xml = $item_xml . create_xml_tag(‘title’, $temp);
    $temp = isset( $_POST[$value[‘linktype’]][$item_content_num[‘slider-item’]] )? $_POST[$value[‘linktype’]][$item_content_num[‘slider-item’]] : ”;
    $item_xml = $item_xml . create_xml_tag(‘linktype’, $temp);
    $temp = isset( $_POST[$value[‘link’]][$item_content_num[‘slider-item’]] )? htmlspecialchars($_POST[$value[‘link’]][$item_content_num[‘slider-item’]]) : ”;
    $item_xml = $item_xml . create_xml_tag(‘link’, $temp);
    $temp = isset( $_POST[$value[‘caption’]][$item_content_num[‘slider-item’]] )? htmlspecialchars($_POST[$value[‘caption’]][$item_content_num[‘slider-item’]]) : ”;
    $item_xml = $item_xml . create_xml_tag(‘caption’, $temp);
    $item_xml = $item_xml . ”;
    $item_content_num[‘slider-item’]++;

    }

    $item_xml = $item_xml . ”;

    }else if($key == “tab-item”){

    $item_xml = $item_xml . ”;

    if($item_type_new == “Accordion”){
    $tab_type = ‘accordion-item’;
    }else if($item_type_new == “Toggle-Box”){
    $tab_type = ‘toggle-box-item’;
    }else{
    $tab_type = ‘tab-item’;
    }

    $tab_num = $_POST[$value[‘tab-num’]][$item_content_num[$item_type_new]];

    for($j=0; $j<$tab_num; $j++){
    $item_xml = $item_xml . '’;
    $temp = isset( $_POST[$value[‘title’]][$item_content_num[$tab_type]] )? htmlspecialchars($_POST[$value[‘title’]][$item_content_num[$tab_type]]) : ”;
    $item_xml = $item_xml . create_xml_tag(‘title’, $temp);
    $temp = isset( $_POST[$value[‘caption’]][$item_content_num[$tab_type]] )? htmlspecialchars($_POST[$value[‘caption’]][$item_content_num[$tab_type]]) : ”;
    $item_xml = $item_xml . create_xml_tag(‘caption’, $temp);
    $temp = isset( $_POST[$value[‘active’]][$item_content_num[$tab_type]] )? $_POST[$value[‘active’]][$item_content_num[$tab_type]] : ”;
    $item_xml = $item_xml . create_xml_tag(‘active’, $temp);
    $item_xml = $item_xml . ”;
    $item_content_num[$tab_type]++;
    }

    $item_xml = $item_xml . ”;

    }else{

    if(isset($_POST[$value[‘name’]][$item_content_num[$item_type_new]])){

    $item_value = htmlspecialchars($_POST[$value[‘name’]][$item_content_num[$item_type_new]]);
    $item_xml = $item_xml . create_xml_tag($key, $item_value);

    }else{

    $item_xml = $item_xml . create_xml_tag($key, ”);

    }

    }

    }

    $item_xml = $item_xml . ”;
    $item_content_num[$item_type_new]++;

    }

    $item_xml = $item_xml . ”;
    $item_xml_old = get_post_meta($post_id, $edit_meta_box[‘xml’], true);
    save_meta_data($post_id, $item_xml, $item_xml_old, $edit_meta_box[‘xml’]);

    }else if( $edit_meta_box[‘type’] == ‘imagepicker’ ){

    if(isset($_POST[$edit_meta_box[‘name’][‘image’]])){

    $num = sizeof($_POST[$edit_meta_box[‘name’][‘image’]]) – 1;

    }else{

    $num = -1;

    }

    $slider_xml_old = get_post_meta($post_id,$edit_meta_box[‘xml’],true);
    $slider_xml = “”;

    for($i=0; $i<=$num; $i++){

    $slider_xml = $slider_xml. "”;
    $image_new = stripslashes($_POST[$edit_meta_box[‘name’][‘image’]][$i]);
    $slider_xml = $slider_xml. create_xml_tag(‘image’,$image_new);
    $title_new = stripslashes(htmlspecialchars($_POST[$edit_meta_box[‘name’][‘title’]][$i]));
    $slider_xml = $slider_xml. create_xml_tag(‘title’,$title_new);
    $caption_new = stripslashes(htmlspecialchars($_POST[$edit_meta_box[‘name’][‘caption’]][$i]));
    $slider_xml = $slider_xml. create_xml_tag(‘caption’,$caption_new);
    $linktype_new = stripslashes($_POST[$edit_meta_box[‘name’][‘linktype’]][$i]);
    $slider_xml = $slider_xml. create_xml_tag(‘linktype’,$linktype_new);
    $link_new = stripslashes(htmlspecialchars($_POST[$edit_meta_box[‘name’][‘link’]][$i]));
    $slider_xml = $slider_xml. create_xml_tag(‘link’,$link_new);
    $slider_xml = $slider_xml . “”;

    }

    $slider_xml = $slider_xml . “”;
    save_meta_data($post_id, $slider_xml, $slider_xml_old, $edit_meta_box[‘xml’]);

    }else if($edit_meta_box[‘type’] == ‘open’ || $edit_meta_box[‘type’] == ‘close’){

    }else{

    if(isset($_POST[$edit_meta_box[‘name’]])){

    $new_data = stripslashes($_POST[$edit_meta_box[‘name’]]);

    }else{

    $new_data = ”;

    }

    $old_data = get_post_meta($post_id, $edit_meta_box[‘name’],true);
    save_meta_data($post_id, $new_data, $old_data, $edit_meta_box[‘name’]);
    }
    }
    }

    // print all elements that can be added to selected elements
    function print_page_default_elements($args){

    extract($args);

    ?>

    Please select item

    $value ){

    echo ” . $key . ”;

    }

    ?>

    $value ){

    print_page_elements($args, ”, $key);

    }

    ?>

    loadXML($value);

    foreach($xml->documentElement->childNodes as $item){

    print_page_elements($args, $item, $item->nodeName);

    }

    }

    ?>

    $item,’size’=>$size,’itemname’=>”,’sizename’=>”);

    }else{

    $head_size = find_xml_value($xml_val, ‘size’);
    $head_name = array(‘item’=>$item,’size’=>$size,’itemname’=>$item.'[]’,’sizename’=>$size.'[]’);

    }

    print_page_item_identical($head_name, $head_size, $head_type);

    ?>

    $input_value ){

    if( $input_key == ‘slider-item’ ){

    $slider_value = find_xml_node($xml_val, ‘slider-item’);
    print_image_picker( array(‘name’=>$input_value, ‘value’=>$slider_value ) );

    }else if( $input_key == ‘tab-item’ ){

    print_box_tab($input_value, find_xml_node($xml_val, ‘tab-item’));

    }else{

    $input_value[‘value’] = find_xml_value($xml_val, $input_key);
    $input_value[‘name’] = $input_value[‘name’] . ‘[]’;
    print_meta( $input_value );

    }

    if( ( $input_key!= ‘open’ && $input_key != ‘close’) ){

    echo ( empty($input_value[‘hr’]) )? ”: ”;

    }
    }

    ?>

    $val ){

    $size = $key;
    break;

    }

    }

    ?>

    <div class="page-element ” id=”page-element” rel=””>

    <input type="hidden" id="” class=”” value=”” name=””>
    <input type="hidden" id="” class=”” value=”” name=””>


    ADD MORE TABS

    <input type='hidden' class="tab-num" id="tab-num" name='[]’ value=childNodes->length;

    ?> />

    TABS TITLE<input type="text" id='’ />
    TABS TEXT<textarea id='’ >

    Tabs Active

    <select id='’ >
    Yes
    No

    childNodes as $tab){

    ?>

    TABS TITLE<input type="text" name='[]’ id=” value=”” />
    TABS TEXT<textarea name='[]’ id=” >

    Tabs Active

    <select id='’ name='[]’ >
    <option >Yes
    <option >No

    Everything I try to do to get this to show up in the post editor for Events Calendar fails. Copy/Paste doesn’t work, adding it as an include doesn’t work. Any thoughts?

    #56418
    mikeburroughs1
    Participant

    Ok, that didn’t post correctly

    #56610
    Neill
    Member

    Hey Mike

    Try using Pastebin and copy the URL here. Then we’ll be able to see the code in all its formatted glory! (Sorry, these forums aren’t the best for posting code)

    Also, what aspects of the page builder are you trying to use on the events pages? Although providing you with a customized reply is outside of the scope of what we do here, we would like top make sure we’re giving you some clue as to what to do. So let us know what the page builder part of the theme does and maybe I can talk with a developer and see if its possible. For example is it used for layout and formatting, or does it create widget areas? That kind of info will be great!

    Neill

    #56623
    mikeburroughs1
    Participant

    Basically, the page builder (as seen in builderss.png) contains the tools to add a slider or specific background image at the top (cpctopss.png). The code that makes it happen is in the pastebin. I tried added it the same way the themers guide said to, but I guess the admin views aren’t themeable.

    http://burroughsid.com/wp-content/themes/conservant/images/cpctopss.png
    http://burroughsid.com/wp-content/themes/conservant/images/builderss.png
    http://pastebin.com/BRfS4hVm

    #58172
    Neill
    Member

    Hi Mike,

    Unfortunately this outside of the scope of what we can do as support here on these forums. I’ve looked at the functionality of the screenshot you sent and it would seem that it’ll be a little more then copy and pasting code from one file to the template file of a page. I would recommend may talking to the Theme builders to see if they can either point you in the right direction with their documentation or suggest a developer that could build this solution for you.

    Sorry there’s not really an easy solution to this. We try our best to have this plugin work with as many different WP builds as possibles, but as that is a large scope there are inevitably exceptions especially when the admin is as customized as the solution you have.

    Please let us know if there is anything else we can help with or if you have any specific questions.
    Neill

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Theme’s Page Builder on Events Calendar’ is closed to new replies.