// SYSTEM PANEL //
[ROOT]
/
home
/
salvufkx
/
homedir
/
public_html
/
wp-content
/
plugins
/
gallery-images-ape
/
libs
/
metabox
[ PARENT ]
EDIT :: menu.php
<?php /* * Ape Gallery http://wpape.net * Version: 1.2.4 - 61253 * Author: Wp Ape (c) * Author URI: http://wpape.net * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt * Date: Thu, 08 Dec 2016 16:31:35 GMT */ $menu_metabox = new_cmb2_box( array( 'id' => WPAPE_GALLERY_NAMESPACE . 'button_metabox', 'title' => __( 'Menu', 'wpape_gallery' ), 'object_types' => array( WPAPE_GALLERY_POST ), 'show_names' => false, 'context' => 'normal', )); $menu_metabox->add_field( array( 'name' => __('Menu', 'wpape_gallery' ), 'id' => WPAPE_GALLERY_NAMESPACE . 'menu', 'type' => 'switch', 'level' => !WPAPE_GALLERY_PREMIUM, 'default' => wpApeGalleryHelperClass::defaultValue(1), 'showhide' => 1, 'depends' => '.wpape_menu_options', 'before_row' => ' <div class="wpape_block"><br/>', 'after_row' => ' <div class="wpape_menu_options">', )); $menu_metabox->add_field( array( 'name' => __('Output mode', 'wpape_gallery' ), 'id' => WPAPE_GALLERY_NAMESPACE . 'menuSelfImages', 'default' => wpApeGalleryHelperClass::defaultValue(1), 'type' => 'ape_select', 'options' => array( '0' => __( 'subcategory' , 'wpape_gallery' ), '1' => __( 'images + subcategory' , 'wpape_gallery' ), ), 'offText' => 'subcategory', 'desc' => 'when you enable this output mode gallery do not show images from current category', )); $menu_metabox->add_field( array( 'name' => __( 'Home button', 'wpape_gallery' ), 'id' => WPAPE_GALLERY_NAMESPACE . 'menuHome', 'type' => 'ape_select', 'show_option_none' => false, 'depends' => array( 'icon' => '.ape_menu_home_icon', 'label' => '.ape_menu_home_label', 'iconlabel' => '.ape_menu_home_label, .ape_menu_home_icon', ), 'default' => 'iconlabel', 'options' => array( 'hide' => __( 'Hide' , 'wpape_gallery' ), 'label' => __( 'Label' , 'wpape_gallery' ), 'icon' => __( 'Icon' , 'wpape_gallery' ), 'iconlabel' => __( 'Icon and Label' , 'wpape_gallery' ), ), 'after_row' => ' <div class="ape_menu_home_icon">', 'before_row' => ' <div class="alert alert-info" role="alert"> '.__('Home menu button settings', 'wpape_gallery' ) .'</div>', )); $menu_metabox->add_field( array( 'name' => __('Home icon','wpape_gallery'), 'default' => wpApeGalleryHelperClass::defaultValue('fa-home'), 'id' => WPAPE_GALLERY_NAMESPACE .'menuRootIcon', 'type' => 'apeicon', 'after_row' => ' </div> <div class="ape_menu_home_label">', )); $menu_metabox->add_field( array( 'name' => __('Home label','wpape_gallery'), 'default' => wpApeGalleryHelperClass::defaultValue('Home'), 'id' => WPAPE_GALLERY_NAMESPACE .'menuRootLabel', 'type' => 'wpapetext', 'after_row' => ' </div>', )); $menu_metabox->add_field( array( 'name' => __('Current button', 'wpape_gallery' ), 'id' => WPAPE_GALLERY_NAMESPACE . 'menuSelf', 'default' => wpApeGalleryHelperClass::defaultValue(1), 'type' => 'switch', 'depends' => '.ape_menu_category_icon', 'showhide' => 1, 'before_row' => ' <div class="alert alert-info" role="alert"> '.__("Category icon, for current gallery in top menu. Icon it's alternative for label on button.", 'wpape_gallery' ) .'</div>', 'after_row' => ' <div class="ape_menu_category_icon">', )); $menu_metabox->add_field( array( 'name' => __('Category icon','wpape_gallery'), 'default' => '', 'id' => WPAPE_GALLERY_NAMESPACE .'menuLabel', 'type' => 'apeicon', 'info' => __("here you can define icon for top categories menu. This icon replace title on button. <br/>If this icon do not defined then you'll have just gallery title on button", 'wpape_gallery'), )); $menu_metabox->add_field( array( 'name' => __('Category Label','wpape_gallery'), 'default' => '', 'id' => WPAPE_GALLERY_NAMESPACE .'menuLabelText', 'type' => 'wpapetext', 'info' => __("here you can define custom label for top categories menu. This label replace gallery title on button.<br />If this label do not defined then you'll have just gallery title on button by default", 'wpape_gallery'), 'after_row' => ' </div>', )); $menu_metabox->add_field( array( 'name' => __( 'Style', 'wpape_gallery' ), 'id' => WPAPE_GALLERY_NAMESPACE . 'buttonFill', 'type' => 'ape_radiobutton', 'show_option_none' => false, 'level' => !WPAPE_GALLERY_PREMIUM, 'default' => 'flat', 'options' => array( 'flat' => __( 'Flat' , 'wpape_gallery' ), '3d' => __( '3D' , 'wpape_gallery' ), 'border' => __( 'Border' , 'wpape_gallery' ), 'borderless' => __( 'Borderless','wpape_gallery' ), ), 'before_row' => ' <div class="alert alert-info" role="alert">'.__("Menu interface configuration options", 'wpape_gallery' ).'</div>', )); $menu_metabox->add_field( array( 'name' => __( 'Effect', 'wpape_gallery' ), 'id' => WPAPE_GALLERY_NAMESPACE . 'buttonEffect', 'type' => 'ape_radiobutton', 'show_option_none' => false, 'default' => '', 'options' => array( 'glow' => __( 'Glow' , 'wpape_gallery' ), 'raised' => __( 'Raised', 'wpape_gallery' ), '' => __( 'Off' , 'wpape_gallery' ), ), )); $menu_metabox->add_field( array( 'name' => __( 'Shadow', 'wpape_gallery' ), 'id' => WPAPE_GALLERY_NAMESPACE . 'buttonShadow', 'type' => 'ape_radiobutton', 'show_option_none' => false, 'default' => '', 'options' => array( '' => __( 'hide', 'wpape_gallery' ), 'longshadow-right' => __( 'Right' ,'wpape_gallery' ), 'longshadow-left' => __( 'Left', 'wpape_gallery' ), ), )); $menu_metabox->add_field( array( 'name' => __( 'Color', 'wpape_gallery' ), 'id' => WPAPE_GALLERY_NAMESPACE . 'buttonColor', 'type' => 'ape_select', 'show_option_none' => false, 'level' => !WPAPE_GALLERY_PREMIUM, 'default' => 'blue', 'options' => array( 'black' => __( 'Black' , 'wpape_gallery' ), 'dark' => __( 'Dark' , 'wpape_gallery' ), 'gray' => __( 'Gray' , 'wpape_gallery' ), 'blue' => __( 'Blue' , 'wpape_gallery' ), 'green' => __( 'Green' , 'wpape_gallery' ), 'orange' => __( 'Orange' , 'wpape_gallery' ), 'red' => __( 'Red' , 'wpape_gallery' ), ), )); $menu_metabox->add_field( array( 'name' => __( 'Rounds', 'wpape_gallery' ), 'id' => WPAPE_GALLERY_NAMESPACE . 'buttonType', 'type' => 'ape_select', 'show_option_none' => false, 'default' => 'normal', 'options' => array( 'normal' => __( 'Normal' , 'wpape_gallery' ), 'rounded' => __( 'Rounded' , 'wpape_gallery' ), 'pill' => __( 'Pill' , 'wpape_gallery' ), 'circle' => __( 'Circle ' , 'wpape_gallery' ), 'box' => __( 'Box ' , 'wpape_gallery' ), 'square' => __( 'Square ' , 'wpape_gallery' ), ), )); $menu_metabox->add_field( array( 'name' => __( 'Size', 'wpape_gallery' ), 'id' => WPAPE_GALLERY_NAMESPACE . 'buttonSize', 'type' => 'ape_select', 'show_option_none' => false, 'default' => 'normal', 'options' => array( 'giant' => __( 'Giant' , 'wpape_gallery' ), 'jumbo' => __( 'Jumbo' , 'wpape_gallery' ), 'large' => __( 'Large' , 'wpape_gallery' ), 'normal' => __( 'Normal' , 'wpape_gallery' ), 'small' => __( 'Small' , 'wpape_gallery' ), 'tiny' => __( 'Tiny ' , 'wpape_gallery' ), ), )); $menu_metabox->add_field( array( 'name' => __( 'Align', 'wpape_gallery' ), 'id' => WPAPE_GALLERY_NAMESPACE . 'buttonAlign', 'type' => 'ape_select', 'show_option_none' => false, 'default' => 'left', 'options' => array( 'left' => __( 'Left' , 'wpape_gallery' ), 'center'=> __( 'Center' , 'wpape_gallery' ), 'right' => __( 'Right' , 'wpape_gallery' ), ), )); $menu_metabox->add_field( array( 'name' => __('Spacing', 'wpape_gallery'), 'id' => WPAPE_GALLERY_NAMESPACE . 'paddingMenu', 'type' => 'space', 'default' => array( 'left'=> wpApeGalleryHelperClass::defaultValue(5), 'bottom'=>wpApeGalleryHelperClass::defaultValue(10) ), 'after_row' => ' </div> </div>' ));
SAVE
CANCEL