文件操作 - layout.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/themes/ms-lms-starter-theme/includes/customizer/layout.php
编辑文件内容
<?php function ms_lms_starter_customizer_register( $wp_customize ) { $wp_customize->add_panel( 'ms_lms_starter_layout_panel', array( 'title' => esc_html__( 'Layout', 'starter-text-domain' ), 'priority' => 28, ) ); $wp_customize->add_section( 'ms_lms_starter_layout_section', array( 'title' => esc_html__( 'Preloader', 'starter-text-domain' ), 'panel' => 'ms_lms_starter_layout_panel', 'priority' => 10, ) ); $wp_customize->add_setting( 'ms_lms_starter_preloader', array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( 'ms_lms_starter_preloader', array( 'label' => esc_html__( 'Enable Preloader', 'starter-text-domain' ), 'section' => 'ms_lms_starter_layout_section', 'settings' => 'ms_lms_starter_preloader', 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'ms_lms_loader_customizer_color_primary', array( 'default' => '#04bfbf', 'sanitize_callback' => 'sanitize_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'ms_lms_loader_customizer_color_primary', array( 'label' => esc_html__( 'Preloader Outline Color', 'starter-text-domain' ), 'section' => 'ms_lms_starter_layout_section', 'settings' => 'ms_lms_loader_customizer_color_primary', ) ) ); $wp_customize->add_setting( 'ms_lms_loader_customizer_color_secondary', array( 'default' => '#45ace0', 'sanitize_callback' => 'sanitize_color', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'ms_lms_loader_customizer_color_secondary', array( 'label' => esc_html__( 'Preloader Inline Color', 'starter-text-domain' ), 'section' => 'ms_lms_starter_layout_section', 'settings' => 'ms_lms_loader_customizer_color_secondary', ) ) ); $wp_customize->add_section( 'ms_lms_starter_container_section', array( 'title' => esc_html__( 'Container', 'starter-text-domain' ), 'panel' => 'ms_lms_starter_layout_panel', 'priority' => 10, ) ); $wp_customize->add_setting( 'ms_lms_starter_container_width', array( 'default' => '1200', 'transport' => 'refresh', 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( 'ms_lms_starter_container_width', array( 'label' => esc_html__( 'Width (px)', 'starter-text-domain' ), 'section' => 'ms_lms_starter_container_section', 'settings' => 'ms_lms_starter_container_width', 'type' => 'number', ) ); } add_action( 'customize_register', 'ms_lms_starter_customizer_register' );
修改文件时间
将文件时间修改为当前时间的前一年
删除文件