| Server IP : 10.19.1.101 / Your IP : 216.73.216.158 Web Server : Apache System : Linux web1f13.kinghost.net 5.4.282-1.el8.elrepo.x86_64 #1 SMP Mon Aug 19 18:33:22 EDT 2024 x86_64 User : schererimoveisrs ( 170628) PHP Version : 7.4.33 Disable Function : apache_child_terminate,c99_buff_prepare,c99_sess_put,dl,exec,leak,link,myshellexec,openlog,passthru,pclose,pcntl_exec,php_check_syntax,php_strip_whitespace,popen,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,symlink,system,socket_listen,socket_create_listen,putenv MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/schererimoveisrs/www/pre backup/wp-content/themes/sauron/inc/admin/ |
Upload File : |
<?php
class WDWT_general_settings_page_class{
public $options;
function __construct(){
$this->options = array(
'fix_menu' => array(
'name' => 'fix_menu',
'title' => __( 'Fixed menu', "sauron" ),
'type' => 'checkbox',
'description' => __( 'Check the box to fix menu.', "sauron" ),
'section' => 'general_main',
'tab' => 'general',
'default' => true,
'customizer' => array()
),
'custom_css_enable' => array(
'name' => 'custom_css_enable',
'title' => __( 'Custom CSS', "sauron" ),
'type' => 'checkbox_open',
'description' => __( 'Custom CSS will change the visual style of the website. The CSS code provided here can be applied to any page or post.', "sauron" ),
'show' => array('custom_css_text'),
'hide' => array(),
'section' => 'general_main',
'tab' => 'general',
'default' => false,
'customizer' => array()
),
'custom_css_text' => array(
'name' => 'custom_css_text',
'title' => '',
'type' => 'textarea',
'sanitize_type' => 'css',
'description' => __( 'Provide the custom CSS code below.', "sauron" ),
'section' => 'general_main',
'tab' => 'general',
'default' => '',
'customizer' => array()
),
'logo_type' => array(
"name" => "logo_type",
"title" => "Logo type",
'type' => 'radio_open',
"description" => "",
'valid_options' => array(
'none' => __('None', "sauron"),
'image' => __('Image', "sauron"),
'text' => __('Text', "sauron"),
),
'show' => array('image'=>'logo_img', 'text' => 'logo_text'),
'hide' => array(),
'section' => 'general_main',
'tab' => 'general',
'default' => 'image',
'customizer' => array()
),
'logo_img' => array(
'name' => 'logo_img',
'title' => __( 'Logo', "sauron" ),
"sanitize_type" => "esc_url_raw",
'type' => 'upload_single',
'description' => __( 'Upload custom logo image.', "sauron" ),
'section' => 'general_main',
'tab' => 'general',
'default' => WDWT_IMG.'logo.png',
'customizer' => array()
),
'logo_text' => array(
"name" => "logo_text",
"title" => "Logo Text",
'type' => 'textarea',
"sanitize_type" => "sanitize_text_field",
"description" => __( "Provide with a custom text ","sauron" ),
'section' => 'general_main',
'tab' => 'general',
'default' => '',
'customizer' => array()
),
'blog_style' => array(
'name' => 'blog_style',
'title' => __( 'Blog Style post format', "sauron" ),
'type' => 'checkbox',
'description' => __( 'Check the box to have short previews for the homepage/index posts.', "sauron" ),
'section' => 'general_main',
'tab' => 'general',
'default' => true,
'customizer' => array()
),
'grab_image' => array(
'name' => 'grab_image',
'title' => __( 'Grab the first post image', "sauron" ),
'type' => 'checkbox',
'description' => __( 'Enable this option if you want to use the images that are already in your post to create a thumbnail without using custom fields. In this case thumbnail images will be generated automatically using the first image of the post. Note that the image needs to be hosted on your own server.', "sauron" ),
'section' => 'general_main',
'tab' => 'general',
'default' => false,
'customizer' => array()
),
'date_enable' => array(
"name" => "date_enable",
"title" => "Display post meta information",
'type' => 'checkbox',
"description" => __("Choose whether to display the post meta information such as date, author and etc.", "sauron"),
'section' => 'general_main',
'tab' => 'general',
'default' => true,
'customizer' => array()
),
'footer_text_enable' => array(
"name" => "footer_text_enable",
"title" => "Information in the Footer",
'type' => 'checkbox_open',
"description" => __("Check the box to display custom HTML for the footer.", "sauron"),
'section' => 'general_main',
'show' => array('footer_text'),
'hide' => array(),
'tab' => 'general',
'default' => true,
'customizer' => array()
),
'footer_text' => array(
"name" => "footer_text",
"title" => "Information in the Footer",
'type' => 'textarea',
"sanitize_type" => "sanitize_html_field",
'width' => '450',
'height' => '200',
"description" => "Here you can provide the HTML code to be inserted in the footer of your web site.",
'section' => 'general_main',
'tab' => 'general',
'default' => '<div class="container" style="width: 1280px;"><span id="copyright"><span id="copyright">WordPress Themes by <a href="'.WDWT_HOMEPAGE.'" target="_blank" title="Web-Dorado">Web-Dorado</a></span></span></div>',
'customizer' => array()
),
);
if ( ! function_exists( 'has_site_icon' ) || ! has_site_icon() ) {
$this->options['favicon_enable'] = array(
'name' => 'favicon_enable',
'title' => __( 'Show Favicon', "sauron" ),
'type' => 'checkbox_open',
'description' => '',
'section' => 'general_main',
'show' => array('favicon_img'),
'hide' => array(),
'tab' => 'general',
'default' => false,
'customizer' => array()
);
$this->options['favicon_img'] = array(
'name' => 'favicon_img',
'title' => '',
'type' => 'upload_single',
"sanitize_type" => "esc_url_raw",
'description' => __( 'Click on the Upload Image button to upload the favicon image.', "sauron" ),
'section' => 'general_main',
'tab' => 'general',
'default' => '',
'customizer' => array()
);
}
}
}