Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.16.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : metabox.config.php
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
// ===============================================================================================
// -----------------------------------------------------------------------------------------------
// METABOX OPTIONS
// -----------------------------------------------------------------------------------------------
// ===============================================================================================
$options      = array();

$dustrial_hf_option_enable = dustrial_get_option('dustrial_hf_option_enable');

if ( $dustrial_hf_option_enable == 1 ) {

// -----------------------------------------
// Page Header Metabox Options                    -
// -----------------------------------------
$options[]    = array(
  'id'        => '_custom_page_header_options',
  'title'     => __( 'Custom Page Header Options', 'dustrial-master' ),
  'post_type' => 'page',
  'context'   => 'normal',
  'priority'  => 'default',
  'sections'  => array(

    array(
      'name'   => 'page_setting',
      'fields' => array(
        // If selected color is "black or white"

        array(
          'type'    => 'subheading',
          'content' => __( 'Upload Custom Logo', 'dustrial-master' ),
        ),
        array(
          'id'          => 'page_custom_logo_switch',
          'type'        => 'switcher',
          'title'       => __( 'Upload Custom Logo?', 'dustrial-master' ),
        ),
        array(
          'id'          => 'page_custom_logo_upload',
          'type'        => 'image',
          'title'       => __( 'Upload Page Logo', 'dustrial-master' ),
        ),
        array(
          'id'          => 'page_custom_sticky_logo_upload',
          'type'        => 'image',
          'title'       => __( 'Upload Page Sticky Logo', 'dustrial-master' ),
        ),

      
        array(
          'type'    => 'subheading',
          'content' => __( 'Select your header style', 'dustrial-master' ),
        ),
      
        array(
          'id'          => 'top_header_layout',
          'type'        => 'image_select',
          'title'       => __( 'Header Top Layout Style', 'dustrial-master' ),
          'options'     => array(
            'style1'    => DUSTRIAL_PLG_URL. 'assets/imgs/top-part-one.jpg',
            'style2'    => DUSTRIAL_PLG_URL. 'assets/imgs/top-part-two.jpg',
            'style3'    => DUSTRIAL_PLG_URL. 'assets/imgs/top-part-three.jpg',
          ),
        ),
        array(
          'id'          => 'header_style',
          'type'        => 'image_select',
          'title'       => __( 'Header Style', 'dustrial-master' ),
          'options'     => array(
            'style1'    => DUSTRIAL_PLG_URL. 'assets/imgs/header1.jpg',
            'style2'    => DUSTRIAL_PLG_URL. 'assets/imgs/header2.jpg',
            'style3'    => DUSTRIAL_PLG_URL. 'assets/imgs/header3.jpg',
          ),
        ),
        array(
          'id'          => 'header_custom_style',
          'type'        => 'select',
          'title'       => __( 'Enable Custom Color Settings', 'dustrial-master' ),
          'options'     => array(
            'customcolor2'    => __( 'No', 'dustrial-master' ),
            'customcolor1'    => __( 'Yes', 'dustrial-master' ),
          ),
        ),
        array(
          'id'      => 'header_custom_bgcolor',
          'type'    => 'color_picker',
          'title'   => __( 'Menu Area Background Color', 'dustrial-master' ),
          'desc'    => __( 'Pick Color.', 'dustrial-master' ),
          'default' => '',
        ),
        array(
          'id'      => 'header_custom_menucolor',
          'type'    => 'color_picker',
          'title'   => __( 'Menu Text Color', 'dustrial-master' ),
          'desc'    => __( 'Pick Color.', 'dustrial-master' ),
          'default' => '',
        ),
        array(
          'id'      => 'header_custom_menu_hover_color',
          'type'    => 'color_picker',
          'title'   => __( 'Menu Text Hover Color', 'dustrial-master' ),
          'desc'    => __( 'Pick Color.', 'dustrial-master' ),
          'default' => '',
        ),
        array(
          'id'      => 'header_top_parts_bgcolor',
          'type'    => 'color_picker',
          'title'   => __( 'Top Part Background Color', 'dustrial-master' ),
          'desc'    => __( 'Pick Color.', 'dustrial-master' ),
          'default' => '',
        ),
        array(
          'id'      => 'header_top_parts_txtcolor',
          'type'    => 'color_picker',
          'title'   => __( 'Top Part Text Color', 'dustrial-master' ),
          'desc'    => __( 'Pick Color.', 'dustrial-master' ),
          'default' => '',
        ),

      ),
    ),
    // end: a section

  ),
);

// -----------------------------------------
// Page Footer Metabox Options                    -
// -----------------------------------------
$options[]    = array(
  'id'        => '_custom_page_footer_options',
  'title'     => __( 'Custom Page Footer Options', 'dustrial-master' ),
  'post_type' => 'page',
  'context'   => 'normal',
  'priority'  => 'default',
  'sections'  => array(

    array(
      'name'   => 'page_setting',
      'fields' => array(
        // If selected color is "black or white"
        array(
          'type'    => 'subheading',
          'content' => __( 'Select your footer style', 'dustrial-master' ),
        ),
      
        array(
          'id'           => 'footer_style',
          'type'         => 'image_select',
          'title'        =>  __( 'Footer Style', 'dustrial-master' ),
          'options'      => array(
            'style1'    => DUSTRIAL_PLG_URL. 'assets/imgs/footer-1.jpg',
            'style2'    => DUSTRIAL_PLG_URL. 'assets/imgs/footer-2.jpg',
          ),
        ),

      ),
    ),
    // end: a section
  ),
);

}

// -----------------------------------------
// Market Setting                          -
// -----------------------------------------
$options[]    = array(
  'id'        => '_dustrial_service',
  'title'     => __( 'Service Setting', 'dustrial-master' ),
  'post_type' => 'service',
  'context'   => 'normal',
  'priority'  => 'default',
  'sections'  => array(

    array(
      'name'   => 'dustrial_service',
      'fields' => array(

        array(
          'id'    => 'market_icon',
          'type'  => 'icon',
          'title' => __( 'Service icon', 'dustrial-master' ),
        ),

      ),
    ),

  ),
);

// -----------------------------------------
// Project Setting                         -
// -----------------------------------------
$options[]    = array(
  'id'        => '_dustrial_our_project',
  'title'     => __( 'Project Setting', 'dustrial-master' ),
  'post_type' => 'our_project',
  'context'   => 'normal',
  'priority'  => 'default',
  'sections'  => array(

    array(
      'name'   => 'dustrial_project',
      'fields' => array(

        array(
          'type'    => 'subheading',
          'content' => __( 'Project Information', 'dustrial-master' ),
        ),

        array(
          'id'    => 'project_client',
          'type'  => 'text',
          'title' => __( 'Project Client', 'dustrial-master' ),
        ),
        array(
          'id'    => 'project_location',
          'type'  => 'text',
          'title' => __( 'Project Location', 'dustrial-master' ),
        ),
        array(
          'id'    => 'project_date',
          'type'  => 'text',
          'title' => __( 'Project Date', 'dustrial-master' ),
        ),
        array(
          'id'    => 'project_website',
          'type'  => 'text',
          'title' => __( 'Project Website', 'dustrial-master' ),
        ),
        array(
          'id'              => 'project_socials',
          'type'            => 'group',
          'title'           => __( 'Social Button', 'dustrial-master' ),
          'button_title'    => __( 'Add New', 'dustrial-master' ),
          'accordion_title' => __( 'Add New Field', 'dustrial-master' ),
          'fields'          => array(

            array(
              'id'          => 'social_icon',
              'type'        => 'icon',
              'title'       => __( 'Social Icon', 'dustrial-master' ),
            ),
            array(
              'id'          => 'social_link',
              'type'        => 'text',
              'title'       => __( 'Link', 'dustrial-master' ),
            ),
          ),
        ), 

      ),
    ),

  ),
);

// -----------------------------------------
// Testimonial Setting                          -
// -----------------------------------------
$options[]    = array(
  'id'        => '_dustrial_testimonial',
  'title'     => __( 'Testimonial Setting', 'dustrial-master' ),
  'post_type' => 'testimonial',
  'context'   => 'normal',
  'priority'  => 'default',
  'sections'  => array(

    array(
      'name'   => 'picker_service',
      'fields' => array(
        array(
          'id'    => 'testimonial_name',
          'type'  => 'text',
          'title' => __( 'Enter Name', 'dustrial-master' ),
        ),
        array(
          'id'       => 'rewiew_setting',
          'type'     => 'select',
          'title'    => __( 'Select Rating', 'dustrial-master' ),
          'options'  => array(
            '1' => __( '1 Star', 'dustrial-master' ),
            '2' => __( '2 Star', 'dustrial-master' ),
            '3' => __( '3 Star', 'dustrial-master' ),
            '4' => __( '4 Star', 'dustrial-master' ),
            '5' => __( '5 Star', 'dustrial-master' ),
          ),
          'default'  => '5',
        ),

      ),
    ),

  ),
);

// -----------------------------------------
// Team Setting                         -
// -----------------------------------------
$options[]    = array(
  'id'        => '_dustrial_team',
  'title'     => __( 'Team Setting', 'dustrial-master' ),
  'post_type' => 'team',
  'context'   => 'normal',
  'priority'  => 'default',
  'sections'  => array(

    array(
      'name'   => 'dustrial_team',
      'fields' => array(

        array(
          'type'    => 'subheading',
          'content' => __( 'Team Information', 'dustrial-master' ),
        ),
        array(
          'id'    => 'team_designation',
          'type'  => 'text',
          'title' => __( 'Team Member Designation', 'dustrial-master' ),
        ),
        array(
          'id'              => 'team_socials',
          'type'            => 'group',
          'title'           => __( 'Member Social Icon', 'dustrial-master' ),
          'button_title'    => __( 'Add New Icon', 'dustrial-master' ),
          'accordion_title' => __( 'Add New Field', 'dustrial-master' ),
          'fields'          => array(

            array(
              'id'          => 'social_icon',
              'type'        => 'icon',
              'title'       => __( 'Social Icon', 'dustrial-master' ),
            ),
            array(
              'id'          => 'social_link',
              'type'        => 'text',
              'title'       => __( 'Link', 'dustrial-master' ),
            ),
          ),
        ), 

      ),
    ),

  ),
);


// -----------------------------------------
// Page Breadcrumb Options                 -
// -----------------------------------------
$options[]    = array(
  'id'        => '_custom_page_breadcrumb_options',
  'title'     => __( 'This Page Breadcrumb', 'dustrial-master' ),
  'post_type' => 'page',
  'context'   => 'normal',
  'priority'  => 'default',
  'sections'  => array(

    array(
      'name'   => 'page_setting',
      'fields' => array(
        // If selected color is "black or white"
        array(
          'type'    => 'subheading',
          'content' => __( 'This page breadcrumb settings', 'dustrial-master' ),
        ),
        array(
          'id'          => 'page_breadcrumb_bg_img',
          'type'        => 'image',
          'title'       => __( 'Breadcrumb background image', 'dustrial-master' ),
        ),
        array(
          'id'          => 'page_breadcrumb_title',
          'type'        => 'text',
          'title'       => __( 'Breadcrumb title', 'dustrial-master' ),
        ),

      ),
    ),
    // end: a section

  ),
);

DUSTRIALFramework_Metabox::instance( $options );
© 2025 XylotrechusZ