HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: 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,
Upload Files
File: /var/www/html/wpprm_old/wp-content/themes/ronneby/inc/custom_metabox/one-page.php
<?php
/**
 * Include and setup custom metaboxes and fields.
 *
 * @category Ronneby theme
 * @package  Metaboxes
 * @license  http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later)
 * @link     https://github.com/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress
 */
if ( ! defined( 'ABSPATH' ) ) { exit; }

add_filter( 'cmb_meta_boxes', 'dfd_one_page_metaboxes' );


function dfd_one_page_metaboxes( array $meta_boxes ) {
	$meta_boxes[] = array(
        'id'         => 'dfd-adaptive-header-options',
        'title'      => esc_html__('One page scroll settings', 'dfd'),
        'pages'      => array( 'page', ), // Post type
        'context'    => 'normal',
        'priority'   => 'default',
        'show_on' => array(
			'key' => 'page-template',
			'value' => array(
				'tmp-one-page-scroll.php',
			),
		),
        'show_names' => true, // Show field names on the left
        'fields'     => array(
			array(
				'name' => esc_html__('One page scroll page settings','dfd'),
				'id' => 'one_page_layout_heading',
				'type' => 'title',
			),
			array(
				'id'   => 'dfd_animation_style',
				'tooltip_text'	=> esc_html__('Allows to choose one of the preset scrolling animation styles', 'dfd'),
				'name' => esc_html__('Animation style', 'dfd'),
				'desc' => '',
				'type' => 'radio_inline_triple',
				'options' => array(
					array('name' => esc_html__('Simple','dfd'),'value' => 'none',),
					array('name' => esc_html__('Rotate','dfd'),'value' => 'dfd-3d-style-1',),
					array('name' => esc_html__('Scale','dfd'),'value' => 'dfd-3d-style-2',),
					array('name' => esc_html__('Slide','dfd'),'value' => 'dfd-3d-style-3',),
				),
				'std'  => 'none',
			),
			array(
				'id'   => 'dfd_enable_dots',
				'tooltip_text'	=> esc_html__('Allows to show or hide dots navigation on the right side of the page', 'dfd'),
				'name' => esc_html__('Dots navigation', 'dfd'),
				'std' => 'on',
				'options' => array(
					array('name' => esc_html__('On','dfd'),'value' => 'on',),
					array('name' => esc_html__('Off','dfd'),'value' => 'off',),
				),
				'type' => 'radio_inline_triple',
			),
            array(
                'id'   => 'dfd_auto_header_colors',
				'tooltip_text'	=> esc_html__('This option allows you to change the header elements\' color according to the color scheme set in row settings. It makes the elements always visible', 'dfd'),
                'name' => esc_html__('Smart header', 'dfd'),
				'type'	=> 'radio_inline_triple',
				'options' => array(
					array(
						'name' => esc_html__('Enable', 'dfd'),
						'value' => 'on',
					),
					array(
						'name' => esc_html__('Disable', 'dfd'),
						'value' => 'off',
					),
				),
            ),
		),
	);
	
    // Add other metaboxes as needed

    return $meta_boxes;
}