WordPress

Briefly unavailable for scheduled maintenance.
Check back in a some hours.
403WebShell
403Webshell
Server IP : 38.242.244.58  /  Your IP : 216.73.216.240
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1486879.contaboserver.net 5.4.0-166-generic #183-Ubuntu SMP Mon Oct 2 11:28:33 UTC 2023 x86_64
User : root ( 0)
PHP Version : 7.4.3-4ubuntu2.19
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/tribe_david/wp-content/themes/tribe-of-david/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/tribe_david/wp-content/themes/tribe-of-david/inc/metabox.php
<?php
function banners_metaboxes($metabox){
    $prefix = "tribe_of_david_";
    $metabox[] = array(
        'id' => 'extra-details',
        'title' => esc_html__( 'Extra Details', 'tribe_of_david' ),
        'post_types' => array('banners' ),
        'context' => 'normal',
        'priority' => 'default',
        'autosave' => 'false',
        'fields' => array(
            array(
                'id' => $prefix . 'banner_highlight_content',
                'type' => 'textarea',
                'name' => esc_html__( 'Banner Highlight', 'tribe_of_david' ),
            ),

            array(
                'name'        => 'Select the page in which the banner should appear',
                'id'          => 'page',
                'type'        => 'post',
                'post_type'   => 'page',
                'field_type'  => 'select_advanced',
                'placeholder' => 'Select a page',
                'query_args'  => array(
                    'post_status'    => 'publish',
                    'posts_per_page' => - 1,
                ),
            ),

            array(
                'id' => $prefix . 'banner_video_url',
                'type' => 'text',
                'placeholder' => 'Enter the banner video url',
                'name' => esc_html__( 'Banner Video Url', 'tribe_of_david' ),
            ),


            array(
                'id' => $prefix . 'linked_page',
                'type' => 'post',
                'post_type'   => 'page',
                'field_type'  => 'select_advanced',
                'placeholder' => 'Select Linked Page',
                'name' => esc_html__( 'CTA link', 'tribe_of_david' ),
            ),

        ),
    );

    return $metabox;
}
add_filter("rwmb_meta_boxes", "banners_metaboxes");


function work_metaboxes($metabox){
    $prefix = "tribe_of_david_";
    $metabox[] = array(
        'id' => 'extra-details',
        'title' => esc_html__( 'Extra Details', 'tribe_of_david' ),
        'post_types' => array('work' ),
        'context' => 'normal',
        'priority' => 'default',
        'autosave' => 'false',
        'fields' => array(

            array(
                'name'        => 'Select the Work Category',
                'id'          => $prefix .'work_category',
                'type'        => 'post',
                'post_type'   => 'work_categories',
                'field_type'  => 'select_advanced',
                'placeholder' => 'Select a category',
                'query_args'  => array(
                    'post_status'    => 'publish',
                    'posts_per_page' => - 1,
                ),
            ),
            array(
                'id' => $prefix . 'work_client',
                'type' => 'text',
                'placeholder' => 'Enter the name',
                'name' => esc_html__( 'Client', 'tribe_of_david' ),
            ),
            array(
                'id' => $prefix . 'block_1_featured_image',
                'type' => 'image_advanced',
                'placeholder' => 'Block 1 featured image',
                'name' => esc_html__( 'Block 1 featured image', 'tribe_of_david' ),
                'max_file_uploads' => '1',
            ),
            array(
                'id' => $prefix . 'block_2_highlight_content',
                'type' => 'textarea',
                'placeholder' => 'Block 2 Highlight Content',
                'name' => esc_html__( 'Block 2 Highlight Content', 'tribe_of_david' ),
            ),

            array(
                'id' => $prefix . 'block_2_featured_image',
                'type' => 'image_advanced',
                'placeholder' => 'Block 2 Featured Image',
                'name' => esc_html__( 'Block 2 Featured Image', 'tribe_of_david' ),
                'max_file_uploads' => '1',
            ),

            array(
                'id' => $prefix . 'block_3_featured_image',
                'type' => 'image_advanced',
                'placeholder' => 'Block 3 Featured Image',
                'name' => esc_html__( 'Block 3 Featured Image', 'tribe_of_david' ),
                'max_file_uploads' => '1',
            ),

            array(
                'id' => $prefix . 'block_3_featured_video_url',
                'type' => 'text',
                'placeholder' => 'Block 3 Featured Video Url',
                'name' => esc_html__( 'Block 3 Featured Video Url', 'tribe_of_david' ),
            ),
        ),
    );

    return $metabox;
}
add_filter("rwmb_meta_boxes", "work_metaboxes");


function contact_metaboxes($metabox){
    $prefix = "tribe_of_david_";
    $metabox[] = array(
        'id' => 'extra-details',
        'title' => esc_html__( 'Extra Details', 'tribe_of_david' ),
        'post_types' => array('contact_us_messages' ),
        'context' => 'normal',
        'priority' => 'default',
        'autosave' => 'false',
        'fields' => array(
            array(
                'id' => $prefix . 'contact_email',
                'type' => 'text',
                'placeholder' => 'Enter the contact email address',
                'name' => esc_html__( 'Email', 'tribe_of_david' ),
            ),

            array(
                'id' => $prefix . 'contact_phone',
                'type' => 'text',
                'placeholder' => 'Enter the contact phone number',
                'name' => esc_html__( 'Phone', 'tribe_of_david' ),
            ),
        ),
    );

    return $metabox;
}
add_filter("rwmb_meta_boxes", "contact_metaboxes");

Youez - 2016 - github.com/yon3zu
LinuXploit