文件操作 - csslink.php
返回文件管理
返回主菜单
删除本文件
文件: /home/moin/htdocs/www.moin.show/wp-content/plugins/oxygen/component-framework/csslink.php
编辑文件内容
<?php // Exit if accessed directly if ( !defined( 'ABSPATH' ) ) { exit; } // Need to output CSS for 404 page if ( is_404() ) { status_header( 200 ); } if ( !isset( $_REQUEST['xlink'] ) || stripslashes( $_REQUEST['xlink'] ) != 'css' ) { exit; } // Check if need to include CSS for classes, selectors, stylesheets, etc. if ( isset( $_REQUEST['nouniversal'] ) && stripslashes( $_REQUEST['nouniversal'] ) == 'true' ) { $nouniversal = true; } else { $nouniversal = false; } // Set the correct MIME type header("Content-type: text/css"); /** * Shortcodes and Classes */ $styles = false; $id = isset($_REQUEST['tid'])?intval($_REQUEST['tid']):false; if ( ! $styles ) { // start buffer again ob_start(); // Check if need to include templates CSS if ( isset( $_REQUEST['post_id'] ) ) { $json = oxy_get_post_meta($_REQUEST['post_id'],"ct_builder_json",true); if ( $json ) { global $oxygen_doing_oxygen_elements; $oxygen_doing_oxygen_elements = true; do_oxygen_elements( json_decode($json, true) ); } else { $shortcodes = oxy_get_post_meta($_REQUEST['post_id'],"ct_builder_shortcodes",true); do_shortcode($shortcodes); } } else { ct_template_output(); } // output shortcode styles do_action('ct_footer_styles'); // get shortcodes styles $styles = ob_get_clean(); $styles = oxygen_css_minify( $styles ); echo $styles; } /** * Stylesheets */ $styles = false; if ( !$styles && $nouniversal == false ) { $styles = oxygen_vsb_get_stylesheet_styles(); $styles = oxygen_css_minify( $styles ); echo $styles; } /** * Custom selectors */ if ( $nouniversal == false ) { $css = oxygen_vsb_get_custom_selectors_styles(); $css = oxygen_css_minify($css); echo $css; }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件