HEX
Server: LiteSpeed
System: Linux premium221.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
User: madepabj (2566)
PHP: 8.3.26
Disabled: NONE
Upload Files
File: /home/madepabj/gamepointpk.com/wp-content/plugins/groovy-functions/metaboxes/page-default.php
<?php

$page_key = 'epcl_page';

CSF::createMetabox( $page_key, array(
    'title'          => 'General Information',
    'post_type'      => 'page',
    'page_templates' => 'default', // Spesific page templates
) );

CSF::createSection( $page_key, array(
    // 'title'  => 'Modules creator',
    // 'icon'   => 'fa fa-rocket',
    'fields' => array(
        array (
            'id' => 'enable_title',
            'title' => esc_html__('Enable Title', 'epcl_framework'),
            'desc' => esc_html__('Enable/Disable title for this page.', 'epcl_framework'),
            'type' => 'switcher',
            'default' => true,
        ),
        array (
            'id' => 'enable_sidebar',
            'title' => esc_html__('Enable Sidebar', 'epcl_framework'),
            'desc' => esc_html__('Enable/Disable sidebar for this post.', 'epcl_framework'),
            'type' => 'switcher',
            'default' => false,
        ),
        array (
            'id' => 'sidebar',
            'title' => esc_html__('Sidebar (optional)', 'epcl_framework'),
            'subtitle' => esc_html__('Default: Article Sidebar', 'epcl_framework'),
            'desc' => esc_html__('Use a different sidebar for this module.', 'epcl_framework'),       
            'type' => 'select',             
            'chosen' => false,
            'options' => 'sidebars',
            'default' => 'epcl_sidebar_default',  
            'dependency' => array('enable_sidebar', '==', true),      
        ),
    )
) );

$page_key = 'epcl_page_fullwidth';

CSF::createMetabox( $page_key, array(
    'title'          => 'General Information',
    'post_type'      => 'page',
    'page_templates' => 'page-templates/page-fullwidth.php', // Spesific page templates
) );

CSF::createSection( $page_key, array(
    // 'title'  => 'Modules creator',
    // 'icon'   => 'fa fa-rocket',
    'fields' => array(
        array (
            'id' => 'enable_title',
            'title' => esc_html__('Enable Title', 'epcl_framework'),
            'desc' => esc_html__('Enable/Disable title for this page.', 'epcl_framework'),
            'type' => 'switcher',
            'default' => true,
        ),
    )
) );