文件操作 - vc_column_text.php
返回文件管理
返回主菜单
删除本文件
文件: /var/www/vec.uaysen.cl/html/wp-content/plugins/us-core/config/elements/vc_column_text.php
编辑文件内容
<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' ); /** * Configuration for shortcode: vc_column_text */ /** * @return array */ return array( 'title' => us_translate( 'Text Block', 'js_composer' ), 'category' => __( 'Basic', 'us' ), 'icon' => 'fas fa-align-left', 'weight' => 390, // sets the SECOND position in "Add element" lists 'usb_preload' => TRUE, 'params' => us_set_params_weight( array( 'content' => array( 'std' => '<p>' . us_translate( 'I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'js_composer' ) . '</p>', 'type' => 'editor', 'holder' => 'div', // TODO maybe create JS function should it be used anywehre else 'usb_preview' => array( 'callback' => 'var youtubeRegex = /(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?/, vimeoRegex = /http(?:s)?:\/\/(?:.*?)\.?vimeo\.com\/(\d+)/; return ( value.indexOf( \'[\' ) !== -1 || value.match( youtubeRegex ) || value.match( vimeoRegex ) ) ? true :{ \'elm\': \'.wpb_wrapper\', \'attr\': \'html\'} ;', ), ), 'show_more_toggle' => array( 'switch_text' => __( 'Hide part of a content with the "Show More" link', 'us' ), 'type' => 'switch', 'std' => FALSE, 'group' => __( 'More Options', 'us' ), 'usb_preview' => TRUE, ), 'show_more_toggle_height' => array( 'title' => __( 'Height of visible content', 'us' ), 'type' => 'slider', 'options' => array( 'px' => array( 'min' => 50, 'max' => 300, 'step' => 10, ), ), 'std' => '200px', 'show_if' => array( 'show_more_toggle', '!=', FALSE ), 'group' => __( 'More Options', 'us' ), 'usb_preview' => TRUE, ), 'show_more_toggle_text_more' => array( 'title' => __( 'Text when content is hidden', 'us' ), 'type' => 'text', 'std' => __( 'Show More', 'us' ), 'show_if' => array( 'show_more_toggle', '!=', FALSE ), 'group' => __( 'More Options', 'us' ), 'usb_preview' => array( 'elm' => '.toggle-show-more', 'attr' => 'html', ), ), 'show_more_toggle_text_less' => array( 'title' => __( 'Text when content is shown', 'us' ), 'description' => __( 'Leave blank to prevent content from being hidden again.', 'us' ), 'type' => 'text', 'std' => __( 'Show Less', 'us' ), 'show_if' => array( 'show_more_toggle', '!=', FALSE ), 'group' => __( 'More Options', 'us' ), 'usb_preview' => array( 'elm' => '.toggle-show-less', 'attr' => 'html', ), ), 'show_more_toggle_alignment' => array( 'title' => us_translate( 'Alignment' ), 'type' => 'radio', 'labels_as_icons' => 'fas fa-align-*', 'options' => array( 'none' => us_translate( 'Default' ), 'left' => us_translate( 'Left' ), 'center' => us_translate( 'Center' ), 'right' => us_translate( 'Right' ), ), 'std' => 'none', 'show_if' => array( 'show_more_toggle', '!=', FALSE ), 'group' => __( 'More Options', 'us' ), 'usb_preview' => array( 'elm' => '.toggle-links', 'mod' => 'align', ), ), ), us_config( 'elements_design_options' ) ), // Default VC params which are not supported by the theme 'vc_remove_params' => array( 'css_animation', ), 'usb_init_js' => '$elm.filter( \'[data-toggle-height]\' ).usToggleMoreContent()', );
修改文件时间
将文件时间修改为当前时间的前一年
删除文件