文件操作 - custom_dropdown.php
返回文件管理
返回主菜单
删除本文件
文件: /var/www/vec.uaysen.cl/html/wp-content/plugins/us-core/usof/templates/fields/custom_dropdown.php
编辑文件内容
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' ); /** * Theme Options Field: Custom Dropdown * * @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 List of key => option_html pairs * * @var $value array List of checked keys */ $output = '<div class="usof-custom-dropdown">'; $input_atts = array( 'type' => 'hidden', 'name' => $name, 'value' => $value, ); $output .= '<input' . us_implode_atts( $input_atts ) . '>'; $output .= '<div class="usof-custom-dropdown-list">'; foreach ( $field['options'] as $key => $option_html ) { $item_atts = array( 'class' => 'usof-custom-dropdown-item', 'data-value' => $key, ); if ( $key == $value ) { $item_atts['class'] .= ' current'; } $output .= '<div' . us_implode_atts( $item_atts ) . '>'; $output .= $option_html; $output .= '</div>'; } $output .= '</div>'; $output .= '</div>'; echo $output;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件