| Server IP : 38.190.208.107 / Your IP : 216.73.217.13 Web Server : nginx/1.28.1 System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64 User : root ( 0) PHP Version : 8.2.28 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/wp.12/wp-content/themes/dt-the7/inc/admin/theme-options/ |
Upload File : |
<?php
/**
* Advanced theme options.
*
* @package The7
*/
defined( 'ABSPATH' ) || exit;
$options[] = array(
'name' => _x( 'Advanced Settings', 'theme-options', 'the7mk2' ),
'type' => 'heading',
'id' => 'advanced-settings',
);
$options[] = array( 'name' => _x( 'Responsiveness', 'theme-options', 'the7mk2' ), 'type' => 'block' );
$options['general-responsive'] = array(
'name' => _x( 'Responsive layout', 'theme-options', 'the7mk2' ),
'id' => 'general-responsive',
'std' => '1',
'type' => 'radio',
'options' => array(
'1' => _x( 'Enabled', 'theme-options', 'the7mk2' ),
'0' => _x( 'Disabled', 'theme-options', 'the7mk2' ),
),
);
$options[] = array( 'name' => _x( 'Performance', 'theme-options', 'the7mk2' ), 'type' => 'block' );
$options['general-images_lazy_loading'] = array(
'id' => 'general-images_lazy_loading',
'name' => _x( 'Images lazy loading', 'theme-options', 'the7mk2' ),
'desc' => _x( 'Can dramatically reduce page loading speed. Recommended.', 'theme-options', 'the7mk2' ),
'std' => '1',
'type' => 'radio',
'options' => array(
'1' => _x( 'Enabled', 'theme-options', 'the7mk2' ),
'0' => _x( 'Disabled', 'theme-options', 'the7mk2' ),
),
);
$options['general-smooth_scroll'] = array(
'name' => _x( 'Enable "scroll-behaviour: smooth" for next gen browsers', 'theme-options', 'the7mk2' ),
'id' => 'general-smooth_scroll',
'std' => 'on',
'type' => 'radio',
'options' => array(
'on' => _x( 'Yes', 'theme-options', 'the7mk2' ),
'off' => _x( 'No', 'theme-options', 'the7mk2' ),
'on_parallax' => _x( 'On only on pages with parallax', 'theme-options', 'the7mk2' ),
),
);
$options['advanced-speed_img_resize'] = array(
'id' => 'advanced-speed_img_resize',
'name' => _x( 'Images fast resize', 'theme-options', 'the7mk2' ),
'desc' => _x( 'Can slightly reduce page load time.', 'theme-options', 'the7mk2' ),
'std' => '1',
'type' => 'radio',
'options' => array(
'1' => _x( 'Enabled', 'theme-options', 'the7mk2' ),
'0' => _x( 'Disabled', 'theme-options', 'the7mk2' ),
),
);
$options['general-user_scalable'] = array(
'id' => 'general-user_scalable',
'name' => _x( 'Accessibility: User Scalable', 'theme-options', 'the7mk2' ),
'std' => '0',
'type' => 'radio',
'options' => array(
'1' => _x( 'Enabled', 'theme-options', 'the7mk2' ),
'0' => _x( 'Disabled', 'theme-options', 'the7mk2' ),
),
);
$options[] = array( 'type' => 'divider' );
$options['advanced-fvm_enable_integration'] = array(
'id' => 'advanced-fvm_enable_integration',
'name' => sprintf(
_x(
'Enable <a href="%1$s" target="_blank">Fast Velocity Minify</a> plugin integration',
'theme-options',
'the7mk2'
),
'https://wordpress.org/plugins/fast-velocity-minify/'
),
'std' => '1',
'type' => 'radio',
'options' => array(
'1' => _x( 'Enabled', 'theme-options', 'the7mk2' ),
'0' => _x( 'Disabled', 'theme-options', 'the7mk2' ),
),
'show_hide' => array(
'1' => 'show-fvm-options',
),
);
$options[] = array(
'type' => 'js_hide_begin',
'class' => 'advanced-fvm_enable_integration show-fvm-options',
);
$options['advanced-fvm_script_timeout'] = array(
'id' => 'advanced-fvm_script_timeout',
'name' => _x( 'Delay loading of merged scripts', 'theme-options', 'the7mk2' ),
'std' => '50',
'type' => 'number',
'units' => 'ms',
);
$beautiful_loading_url = add_query_arg( 'page', 'options-framework', admin_url( 'admin.php', 'relative' ) );
$beautiful_loading_url .= '#section-general-beautiful_loading';
$options[] = array(
'id' => 'test',
'type' => 'info',
'desc' => sprintf(
_x(
'- 50ms can significantly improve google page speed score
- 1000ms and beyond is aggressive setting for particularly heavy sites
- for best visual results use in combination with <a href="%1$s">beautiful loading</a>',
'theme-options',
'the7mk2'
),
esc_url_raw( $beautiful_loading_url )
),
);
$options[] = array( 'type' => 'js_hide_end' );
$options[] = array( 'name' => _x( 'SEO', 'theme-options', 'the7mk2' ), 'type' => 'block' );
$options['the7_opengraph_tags'] = array(
'id' => 'the7_opengraph_tags',
'name' => _x( 'The7 OpenGraph tags', 'theme-options', 'the7mk2' ),
'desc' => _x( 'It can be safely disabled if any SEO plugin is used.', 'theme-options', 'the7mk2' ),
'std' => '1',
'type' => 'radio',
'options' => array(
'1' => _x( 'Enabled', 'theme-options', 'the7mk2' ),
'0' => _x( 'Disabled', 'theme-options', 'the7mk2' ),
),
);
$options[] = array(
'name' => _x( 'Custom CSS', 'theme-options', 'the7mk2' ),
'type' => 'heading',
'id' => 'custom-css',
);
$options[] = array( 'name' => _x( 'Custom CSS', 'theme-options', 'the7mk2' ), 'type' => 'block' );
$options['general-custom_css'] = array(
'settings' => array( 'rows' => 64, 'code_style' => 'text/css' ),
'id' => 'general-custom_css',
'std' => false,
'type' => 'code_editor',
'sanitize' => 'without_sanitize',
'class' => 'section-code_editor-long',
);
$options[] = array(
'name' => _x( 'Custom JavaScript', 'theme-options', 'the7mk2' ),
'type' => 'heading',
'id' => 'custom-javascript',
);
$options[] = array(
'name' => _x( 'Tracking code (e.g. Google analytics) or arbitrary JavaScript', 'theme-options', 'the7mk2' ),
'type' => 'block',
);
$options['general-tracking_code'] = array(
'settings' => array( 'rows' => 32, 'code_style' => 'htmlmixed' ),
'id' => 'general-tracking_code',
'std' => '',
'type' => 'code_editor',
'sanitize' => 'without_sanitize',
'class' => 'section-code_editor-long',
);