Sid Gifari File Manager
🏠 Root
/
home
/
ailwtbdh
/
lynchestinegroup.com
/
wp-content
/
plugins
/
koncrete-core_2
/
inc
/
Editing: post-meta.php
<?php /** * @author RadiusTheme * @since 1.0 * @version 1.0 */ namespace radiustheme\Koncrete_Core; use radiustheme\Koncrete\Helper; use \RT_Postmeta; if ( ! defined( 'ABSPATH' ) ) exit; if ( !class_exists( 'RT_Postmeta' ) ) { return; } $Postmeta = RT_Postmeta::getInstance(); $prefix = Constants::$theme_prefix; /*------------------------------------- #. Layout Settings # Note: It should compliances with redux config ---------------------------------------*/ $nav_menus = wp_get_nav_menus( array( 'fields' => 'id=>name' ) ); $nav_menus = array( 'default' => __( 'Default', 'koncrete-core' ) ) + $nav_menus; $sidebars = array( 'default' => __( 'Default', 'koncrete-core' ) ) + Helper::custom_sidebar_fields(); $Postmeta->add_meta_box( "{$prefix}_page_settings", __( 'Layout Settings', 'koncrete-core' ), array( 'page', 'post', $prefix . '_team', $prefix . '_project', $prefix . '_service' ), '', '', 'high', array( 'fields' => array( "{$prefix}_layout_settings" => array( 'label' => __( 'Layouts', 'koncrete-core' ), 'type' => 'group', 'value' => array( 'layout' => array( 'label' => __( 'Layout', 'koncrete-core' ), 'type' => 'select', 'options' => array( 'default' => __( 'Default', 'koncrete-core' ), 'full-width' => __( 'Full Width', 'koncrete-core' ), 'left-sidebar' => __( 'Left Sidebar', 'koncrete-core' ), 'right-sidebar' => __( 'Right Sidebar', 'koncrete-core' ), ), 'default' => 'default', ), 'sidebar' => array( 'label' => __( 'Custom Sidebar', 'koncrete-core' ), 'type' => 'select', 'options' => $sidebars, 'default' => 'default', ), "page_menu" => array( 'label' => __( 'Main Menu', 'koncrete-core' ), 'type' => 'select', 'options' => $nav_menus, 'default' => 'default', ), 'top_bar' => array( 'label' => __( 'Top Bar', 'koncrete-core' ), 'type' => 'select', 'options' => array( 'default' => __( 'Default', 'koncrete-core' ), 'on' => __( 'Enable', 'koncrete-core' ), 'off' => __( 'Disable', 'koncrete-core' ), ), 'default' => 'default', ), 'transparent_header' => array( 'label' => __( 'Transparent Header', 'koncrete-core' ), 'type' => 'select', 'options' => array( 'default' => __( 'Default', 'koncrete-core' ), 'on' => __( 'Enable', 'koncrete-core' ), 'off' => __( 'Disable', 'koncrete-core' ), ), 'default' => 'default', ), 'menu_button' => array( 'label' => __( 'Menu Button', 'koncrete-core' ), 'type' => 'select', 'options' => array( 'default' => __( 'Default', 'koncrete-core' ), 'on' => __( 'Enable', 'koncrete-core' ), 'off' => __( 'Disable', 'koncrete-core' ), ), 'default' => 'default', ), 'top_bar_style' => array( 'label' => __( 'Top Bar Layout', 'koncrete-core' ), 'type' => 'select', 'options' => array( 'default' => __( 'Default', 'koncrete-core' ), '1' => __( 'Layout 1', 'koncrete-core' ), '2' => __( 'Layout 2', 'koncrete-core' ), '3' => __( 'Layout 3', 'koncrete-core' ), '4' => __( 'Layout 4', 'koncrete-core' ), ), 'default' => 'default', ), 'header_style' => array( 'label' => __( 'Header Layout', 'koncrete-core' ), 'type' => 'select', 'options' => array( 'default' => __( 'Default', 'koncrete-core' ), '1' => __( 'Layout 1', 'koncrete-core' ), '2' => __( 'Layout 2', 'koncrete-core' ), '3' => __( 'Layout 3', 'koncrete-core' ), '4' => __( 'Layout 4 (dark)', 'koncrete-core' ), ), 'default' => 'default', ), "content_top_padding" => array( 'label' => esc_html__( 'Content Padding Top', 'koncrete-core' ), 'type' => 'text', 'default' => 'default', ), "content_bottom_padding" => array( 'label' => esc_html__( 'Content Padding Bottom', 'koncrete-core' ), 'type' => 'text', 'default' => 'default', ), 'banner' => array( 'label' => __( 'Banner', 'koncrete-core' ), 'type' => 'select', 'options' => array( 'default' => __( 'Default', 'koncrete-core' ), 'on' => __( 'Enable', 'koncrete-core' ), 'off' => __( 'Disable', 'koncrete-core' ), ), 'default' => 'default', ), 'breadcrumb' => array( 'label' => __( 'Breadcrumb', 'koncrete-core' ), 'type' => 'select', 'options' => array( 'default' => __( 'Default', 'koncrete-core' ), 'on' => __( 'Enable', 'koncrete-core' ), 'off' => __( 'Disable', 'koncrete-core' ), ), 'default' => 'default', ), 'bgtype' => array( 'label' => __( 'Banner Background Type', 'koncrete-core' ), 'type' => 'select', 'options' => array( 'default' => __( 'Default', 'koncrete-core' ), 'bgimg' => __( 'Background Image', 'koncrete-core' ), 'bgcolor' => __( 'Background Color', 'koncrete-core' ), ), 'default' => 'default', ), 'bgimg' => array( 'label' => __( 'Banner Background Image', 'koncrete-core' ), 'type' => 'image', 'desc' => __( 'If not selected, default will be used', 'koncrete-core' ), ), 'bgcolor' => array( 'label' => __( 'Banner Background Color', 'koncrete-core' ), 'type' => 'color_picker', 'desc' => __( 'If not selected, default will be used', 'koncrete-core' ), ), ) ) ) ) ); /*------------------------------------- #. Team ---------------------------------------*/ $Postmeta->add_meta_box( "{$prefix}_team_settings", __( 'Team Member Settings', 'koncrete-core' ), array( "{$prefix}_team" ), '', '', 'high', array( 'fields' => array( "{$prefix}_team_designation" => array( 'label' => __( 'Designation', 'koncrete-core' ), 'type' => 'text', ), "{$prefix}_team_socials_header" => array( 'label' => __( 'Socials', 'koncrete-core' ), 'type' => 'header', 'desc' => __( 'Enter your social links here', 'koncrete-core' ), ), "{$prefix}_team_socials" => array( 'type' => 'group', 'value' => Helper::team_socials() ), ) ) ); /*------------------------------------- #. Project ---------------------------------------*/ // project gallery $Postmeta->add_meta_box( "{$prefix}_project_gallery", __( 'Project Info', 'koncrete-core' ), array( "{$prefix}_project" ), '', '', 'high', array( 'fields' => array( "{$prefix}_project_header_2" => array( 'label' => 'Project Gallery', 'type' => 'header', 'desc' => __( "for creating image gallery", 'koncrete-core' ), ), "{$prefix}_project_gallery" => array( 'label'=> 'Gallery Images', 'desc' => 'This is the gallery images on the single Project page.', 'type' => 'gallery' ), ) )); // project info repeater $Postmeta->add_meta_box( "{$prefix}_project_info", __( 'Project Info', 'koncrete-core' ), array( "{$prefix}_project" ), '', '', 'high', array( 'fields' => array( "{$prefix}_project_header_1" => array( 'label' => 'Custom Fields', 'type' => 'header', 'desc' => __( "Click on 'Add New Field' button to create new field", 'koncrete-core' ), ), "{$prefix}_project_type" => array( 'label' => 'Project Type', 'type' => 'text', 'default' => 'Building', 'desc' => __( "Project type. e.g - Building, University", 'koncrete-core' ), ), "{$prefix}_project_fields" => array( 'type' => 'repeater', 'button' => __( 'Add New Field', 'koncrete-core' ), 'value' => array( 'project_label' => array( 'label' => __( 'Field Name', 'koncrete-core' ), 'type' => 'text', ), 'project_value' => array( 'label' => __( 'Field Value', 'koncrete-core' ), 'type' => 'textarea', ), ) ), ), ) ); /*------------------------------------- #. Testimonial ---------------------------------------*/ $Postmeta->add_meta_box( "{$prefix}_testimonial_info", __( 'Testimonial Info', 'koncrete-core' ), array( "{$prefix}_testimony" ), '', '', 'high', array( 'fields' => array( "{$prefix}_tes_designation" => array( 'label' => __( 'Designation', 'koncrete-core' ), 'type' => 'text', ), "{$prefix}_rating" => array( 'label' => __( 'No Of Star', 'koncrete-core' ), 'type' => 'select', 'options' => array( '1' => __( '1 Star', 'koncrete-core' ), '2' => __( '2 Stars', 'koncrete-core' ), '3' => __( '3 Stars', 'koncrete-core' ), '4' => __( '4 Stars', 'koncrete-core' ), '5' => __( '5 Stars', 'koncrete-core' ), ), 'default' => '5', ), ) ) ); /*------------------------------------- #. Services #. It should be first appeared before #. general. ---------------------------------------*/ $Postmeta->add_meta_box( "{$prefix}_service_icon", __( 'Service Icon image', 'koncrete-core' ), array( "{$prefix}_service" ), '', 'side', 'default', array( 'fields' => array( "{$prefix}_service_icon" => array( 'label' => __( 'Service Icon', 'koncrete-core' ), 'type' => 'icon_select', 'desc' => __( "Choose a Icon for your service", 'koncrete-core' ), 'options' => Helper::get_icons(), ), "{$prefix}_service_image" => array( 'label' => __( 'Service Image', 'koncrete-core' ), 'type' => 'image', 'desc' => __( "Upload service image in case of icon not selected", 'koncrete-core' ), ), "{$prefix}_service_image_hover" => array( 'label' => __( 'Service Image (Hover State)', 'koncrete-core' ), 'type' => 'image', 'desc' => __( "Upload service image hover state image", 'koncrete-core' ), ), ) ) );
Save
Cancel