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-post-gallery.php
40 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Add gallery Option meta box for gallery post format |
| 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 | /*======================================================================*/ |
| 18 | |
| 19 | // @TODO: attachment type is not working and it should check later. |
| 20 | function auxin_metabox_fields_post_gallery(){ |
| 21 | |
| 22 | $model = new Auxin_Metabox_Model(); |
| 23 | $model->id = 'post-gallery'; |
| 24 | $model->title = __('Gallery Post options', 'auxin-elements'); |
| 25 | $model->css_class = 'aux-format-tab'; |
| 26 | $model->fields = array( |
| 27 | |
| 28 | array( |
| 29 | 'title' => __('The Gallery Images', 'auxin-elements'), |
| 30 | 'description' => '', |
| 31 | 'id' => '_format_gallery_type', |
| 32 | 'type' => 'images', |
| 33 | 'default' => '' |
| 34 | ) |
| 35 | |
| 36 | ); |
| 37 | |
| 38 | return $model; |
| 39 | } |
| 40 |