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-general-advanced.php
72 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Add custom code 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 | // no direct access allowed |
| 14 | if ( ! defined('ABSPATH') ) exit; |
| 15 | |
| 16 | |
| 17 | function auxin_metabox_fields_general_advanced(){ |
| 18 | |
| 19 | $model = new Auxin_Metabox_Model(); |
| 20 | $model->id = 'general-advanced'; |
| 21 | $model->title = __('Advanced Setting', 'auxin-elements'); |
| 22 | $model->fields = array( |
| 23 | |
| 24 | array( |
| 25 | 'title' => __('Custom CSS class name for body', 'auxin-elements'), |
| 26 | 'description' => __('You can define custom CSS class name for this page. It helpful for targeting this page by custom CSS code.', 'auxin-elements'), |
| 27 | 'id' => 'aux_custom_body_class', |
| 28 | 'type' => 'textbox', |
| 29 | 'default' => '' // default value |
| 30 | ), |
| 31 | |
| 32 | array( |
| 33 | 'title' => __('Custom CSS Code', 'auxin-elements'), |
| 34 | 'description' => __('Attention: The following custom CSS code will be applied ONLY to this page.', 'auxin-elements').'<br />'. |
| 35 | __('For defining global CSS roles, please use custom CSS field on option panel.', 'auxin-elements'), |
| 36 | 'id' => 'aux_page_custom_css', |
| 37 | 'type' => 'code', |
| 38 | 'mode' => 'css', |
| 39 | 'default' => '' |
| 40 | ), |
| 41 | |
| 42 | array( |
| 43 | 'title' => __('Custom JavaScript Code', 'auxin-elements'), |
| 44 | 'description' => __('Attention: The following custom JavaScript code will be applied ONLY to this page.', 'auxin-elements').'<br />'. |
| 45 | __('For defining global JavaScript roles, please use custom javaScript field on option panel.', 'auxin-elements' ), |
| 46 | 'id' => 'aux_page_custom_js', |
| 47 | 'type' => 'code', |
| 48 | 'mode' => 'javascript', |
| 49 | 'default' => '' |
| 50 | ), |
| 51 | |
| 52 | array( |
| 53 | 'title' => __( 'Extra Google Font1', 'auxin-elements' ), |
| 54 | 'description' => __( 'Load an extra Google font for this page.', 'auxin-elements' ), |
| 55 | 'id' => 'aux_page_custom_font1', |
| 56 | 'type' => 'googlefont', |
| 57 | 'default' => '' |
| 58 | ), |
| 59 | |
| 60 | array( |
| 61 | 'title' => __( 'Extra Google Font2', 'auxin-elements' ), |
| 62 | 'description' => __( 'Load an extra Google font for this page.', 'auxin-elements' ), |
| 63 | 'id' => 'aux_page_custom_font2', |
| 64 | 'type' => 'googlefont', |
| 65 | 'default' => '' |
| 66 | ) |
| 67 | |
| 68 | ); |
| 69 | |
| 70 | return $model; |
| 71 | } |
| 72 |