| 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/wp-content/themes/context-blog/inc/customizer/layout/ |
Upload File : |
<?php $wp_customize->add_section( 'context_blog_blogpost_layout_settings', array( 'panel' => 'context_blog_layout_panel', 'title' => __( 'Blog post layout', 'context-blog' ), 'priority' => 2, 'description' => __( 'This number will change the width between Blog post section and sidebar. This setting will also effect on static homepage, archive, search, and detail pages.', 'context-blog' ), ) ); $wp_customize->add_setting( 'context_blog_mainblog_width', array( 'default' => 67, 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( 'context_blog_mainblog_width', array( 'section' => 'context_blog_blogpost_layout_settings', 'label' => __( 'Main blog width', 'context-blog' ), 'type' => 'number', 'input_attrs' => array( 'min' => '50', 'step' => '1', 'max' => '80', ), 'description' => __( 'Default 67, Minimum 50, Maximum 80', 'context-blog' ), ) ); $wp_customize->add_section( 'context_blog_detailpage_settings', array( 'panel' => 'context_blog_layout_panel', 'title' => __( 'Detail page layout', 'context-blog' ), 'priority' => 2, 'description' => __( 'This number will change the width of detail page.', 'context-blog' ), ) ); $wp_customize->add_setting( 'context_blog_singlepage_width', array( 'default' => 100, 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( 'context_blog_singlepage_width', array( 'section' => 'context_blog_detailpage_settings', 'label' => __( 'Detail page width', 'context-blog' ), 'type' => 'number', 'input_attrs' => array( 'min' => '55', 'step' => '1', 'max' => '100', ), 'description' => __( 'Default 100, Minimum 50, Maximum 100', 'context-blog' ), ) );