metabox-fields-general-advanced.php
5 years ago
metabox-fields-general-custom-logo.php
5 years ago
metabox-fields-general-footer-template-settings.php
6 years ago
metabox-fields-general-footer-template.php
6 years ago
metabox-fields-general-footer.php
5 years ago
metabox-fields-general-header-template-settings.php
5 years ago
metabox-fields-general-header-template.php
5 years ago
metabox-fields-general-header.php
5 years ago
metabox-fields-general-top-header.php
5 years ago
metabox-fields-page-template.php
5 years ago
metabox-fields-post-audio.php
5 years ago
metabox-fields-post-gallery.php
5 years ago
metabox-fields-post-quote.php
5 years ago
metabox-fields-post-video.php
5 years ago
metabox-fields-page-template.php
41 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Add page template setting meta box Model |
| 4 | * |
| 5 | * |
| 6 | * @package Auxin |
| 7 | * @license LICENSE.txt |
| 8 | * @author averta |
| 9 | * @link http://phlox.pro/ |
| 10 | * @copyright (c) 2010-2021 averta |
| 11 | */ |
| 12 | |
| 13 | function auxin_metabox_fields_page_template(){ |
| 14 | |
| 15 | $model = new Auxin_Metabox_Model(); |
| 16 | $model->id = 'page-template'; |
| 17 | $model->title = __('Page Template Setting', 'auxin-elements'); |
| 18 | $model->fields = array( |
| 19 | |
| 20 | array( |
| 21 | 'title' => __('Page content location', 'auxin-elements'), |
| 22 | 'description' => __('Specifies where the dynamic page content (page entry) should appear in comparison with the template content. Note: A page template from "Page Attributes > Template" should be selected for this page in order to use this option.', 'auxin-elements'), |
| 23 | 'id' => 'aux_page_template_content_location', |
| 24 | 'type' => 'select', |
| 25 | 'default' => 'above-in-frame', |
| 26 | 'choices' => array( |
| 27 | 'above-in-frame' => __( 'Before Content', 'auxin-elements' ), // Page builder content right before template content |
| 28 | 'above-full' => __( 'Above Content, FullWidth Layout', 'auxin-elements' ), // Page builder content on above of template with full width |
| 29 | 'above-boxed' => __( 'Above Content, Boxed Layout', 'auxin-elements' ), // Page builder content on above of template with boxed width |
| 30 | 'below-in-frame' => __( 'After Content', 'auxin-elements' ), // Page builder content right after template content |
| 31 | 'below-boxed' => __( 'Below Content, Boxed Layout', 'auxin-elements' ), // Page builder content below template content with boxed width |
| 32 | 'below-full' => __( 'Below Content, FullWidth Layout', 'auxin-elements' ), // Page builder content below template content with full width |
| 33 | 'none' => __( 'Hide it' ) // Skip Page builder content |
| 34 | ) |
| 35 | ) |
| 36 | |
| 37 | ); |
| 38 | |
| 39 | return $model; |
| 40 | } |
| 41 |