文件操作 - news_1.php
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/jimbrandstatter/public_html/wp-content/themes/Total/cards/news/news_1.php
编辑文件内容
<?php defined( 'ABSPATH' ) || exit; $html = ''; if ( empty( $this->args['breakpoint'] ) ) { $this->args['breakpoint'] = 'sm'; } // Get card breakpoint. $bk = $this->get_breakpoint(); if ( $bk ) { $bk = '-' . $bk; $flex_class = 'wpex-flex wpex-flex-col'; } else { $flex_class = 'wpex-flex'; } // Set flex row class. if ( $this->has_flex_direction_reverse() ) { $flex_row_class = 'wpex' . $bk . '-flex-row-reverse'; } else { $flex_row_class = 'wpex' . $bk . '-flex-row'; } // Begin card output. $html .= '<div class="wpex-card-inner ' . $flex_class . ' ' . $flex_row_class . ' wpex-gap-20">'; // Thumbnail $html .= $this->get_thumbnail( array( 'class' => 'wpex' . $bk . '-w-30 wpex-flex-shrink-0', 'image_class' => 'wpex-w-100', ) ); // Details $html .= '<div class="wpex-card-details wpex-flex-grow">'; // Title $html .= $this->get_title( array( 'link' => true, 'class' => 'wpex-heading wpex-text-lg', ) ); // Meta $html .= '<div class="wpex-card-meta wpex-flex wpex-flex-wrap wpex-gap-5 wpex-mb-15 wpex-child-inherit-color wpex-opacity-60 wpex-text-sm">'; // Date $html .= $this->get_date( array( 'format' => 'F j, Y g:ia', ) ); // Author $html .= $this->get_author( array( 'prefix' => esc_html__( 'by', 'total' ) . ' ', 'link_class' => 'wpex-hover-underline', ) ); $html .= '</div>'; // Excerpt $html .= $this->get_excerpt( array( 'class' => 'wpex-my-15', 'length' => 40, ) ); // Footer $html .= '<div class="wpex-card-footer wpex-text-sm">'; // Read more $html .= $this->get_more_link( array( 'html_tag' => 'span', 'link_class' => 'wpex-hover-underline', 'text' => esc_html__( 'Read Full Article', 'total' ), ) ); // Comment count $html .= $this->get_comment_count( array( 'html_tag' => 'span', 'link_class' => 'wpex-hover-underline', 'before' => ' • ' ) ); $html .= '</div>'; $html .= '</div>'; $html .= '</div>'; return $html;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件