文件操作 - news_6.php
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/jimbrandstatter/public_html/wp-content/themes/Total/cards/news/news_6.php
编辑文件内容
<?php defined( 'ABSPATH' ) || exit; $html = ''; $has_link = $this->has_link(); $card_class = 'wpex-card-inner wpex-flex wpex-flex-col wpex-flex-grow wpex-bordered wpex-p-25 wpex-rounded-md wpex-shadow-sm wpex-transition-all wpex-duration-300 wpex-hover-shadow-xl'; // Inner if ( $has_link ) { $html .= $this->get_link_open( array( 'class' => $card_class . ' wpex-no-underline wpex-inherit-color', ) ); } else { $html .= '<div class="' . esc_attr( $card_class ) . '">'; } // Title $html .= $this->get_title( array( 'link' => false, 'class' => 'wpex-heading wpex-text-lg wpex-font-bold', ) ); // Excerpt $html .= $this->get_excerpt( array( 'class' => 'wpex-my-20', 'length' => 20, 'link' => false, ) ); // Meta $html .= '<div class="wpex-card-meta wpex-flex wpex-items-center wpex-flex-wrap wpex-gap-10 wpex-mt-auto">'; // Avatar $html .= $this->get_avatar( array( 'size' => 30, 'class' => 'wpex-flex-shrink-0', 'image_class' => 'wpex-rounded-full wpex-align-middle', 'link' => false, ) ); // Author $html .= $this->get_author( array( 'class' => 'wpex-font-semibold', 'link' => false, ) ); // Date $html .= $this->get_date( array( 'type' => 'time_ago', 'class' => 'wpex-opacity-70', 'link' => false, ) ); $html .= '</div>'; $html .= $has_link ? '</a>' : '</div>'; return $html;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件