文件操作 - switch.php
返回文件管理
返回主菜单
删除本文件
文件: /var/www/vec.uaysen.cl/html/wp-content/plugins/us-core/usof/templates/fields/switch.php
编辑文件内容
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' ); /** * Theme Options Field: Switch * * On-off switcher * * @var $name string Field name * @var $id string Field ID * @var $field array Field options * * @param $field ['title'] string Field title * @param $field ['description'] string Field title * @param $field ['options'] array Array of two key => title pairs * @param $field ['text'] array Additional text to show right near the switcher * * @var $value string Current value */ $input_atts = array( 'type' => 'checkbox', 'name' => $name, 'value' => (int) $value, ); if ( ! empty( $field['disabled'] ) ) { $input_atts['disabled'] = ''; } // For control in html output if ( ! empty( $input_atts['value'] ) ) { $input_atts['checked'] = 'checked'; } $output = '<div class="usof-switcher"><label>'; $output .= '<input' . us_implode_atts( $input_atts ) . checked( $input_atts['value'], 1, FALSE ) . '>'; $output .= '<span class="usof-switcher-box"><i></i></span>'; if ( ! empty( $field['switch_text'] ) ) { $output .= '<span class="usof-switcher-text">' . $field['switch_text'] . '</span>'; } $output .= '</label></div>'; echo $output;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件