As the sun rises and the forest mist clears, and the clouds return and the caves darken, these changes of light and shadow are the morning and evening in the mountains. Wildflowers bloom with their subtle fragrance, fine trees flourish with their dense shade, the wind and frost are pure and clean, and the water recedes to reveal the rocks—these are the four seasons in the mountains. Going out in the morning and returning in the evening, the scenery of the four seasons is different, and the joy is endless.至于负者歌于途,行者休于树,前者呼,后者应,伛偻提携,往来而不绝者,滁人游也。临溪而渔,溪深而鱼肥,酿泉为酒,泉香而酒洌,山肴野蔌,杂然而前陈者,太守宴也。宴酣之乐,非丝非竹,射者中,弈者胜,觥筹交错,起坐而喧哗者,众宾欢也。苍颜白发,颓然乎其间者,太守醉也。
<?php
get_header();
$is_page_builder_used = et_pb_is_pagebuilder_used( get_the_ID() );
$show_navigation = get_post_meta( get_the_ID(), '_et_pb_project_nav', true );
?>
<div id="main-content">
<?php if ( ! $is_page_builder_used ) : ?>
<div class="container">
<div id="content-area" class="clearfix">
<div id="left-area">
<?php endif; ?>
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( ! $is_page_builder_used ) : ?>
<div class="et_main_title">
<h1 class="entry-title"><?php the_title(); ?></h1>
<span class="et_project_categories"><?php echo get_the_term_list( get_the_ID(), 'project_category', '', ', ' ); ?></span>
</div>
<?php
$thumb = '';
$width = (int) apply_filters( 'et_pb_portfolio_single_image_width', 1080 );
$height = (int) apply_filters( 'et_pb_portfolio_single_image_height', 9999 );
$classtext = 'et_featured_image';
$titletext = get_the_title();
$alttext = get_post_meta( get_post_thumbnail_id(), '_wp_attachment_image_alt', true );
$thumbnail = get_thumbnail( $width, $height, $classtext, $alttext, $titletext, false, 'Projectimage' );
$thumb = $thumbnail["thumb"];
$page_layout = get_post_meta( get_the_ID(), '_et_pb_page_layout', true );
if ( '' !== $thumb )
print_thumbnail( $thumb, $thumbnail["use_timthumb"], $alttext, $width, $height );
?>
<?php endif; ?>
<div class="entry-content">
<?php
the_content();
if ( ! $is_page_builder_used )
wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'Divi' ), 'after' => '</div>' ) );
?>
</div>
<?php if ( ! $is_page_builder_used ) : ?>
<?php
if ( ! in_array( $page_layout, array( 'et_full_width_page', 'et_no_sidebar' ) ) ) {
et_pb_portfolio_meta_box();
}
?>
<?php endif; ?>
<?php if ( ! $is_page_builder_used || ( $is_page_builder_used && 'on' === $show_navigation ) ) : ?>
<div class="nav-single clearfix">
<span class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . et_get_safe_localization( _x( '←', 'Previous post link', 'Divi' ) ) . '</span> %title' ); ?></span>
<span class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . et_get_safe_localization( _x( '→', 'Next post link', 'Divi' ) ) . '</span>' ); ?></span>
</div>
<?php endif; ?>
</article>
<?php
if ( ! $is_page_builder_used && comments_open() && 'on' === et_get_option( 'divi_show_postcomments', 'on' ) )
comments_template( '', true );
?>
<?php endwhile; ?>
<?php if ( ! $is_page_builder_used ) : ?>
</div>
<?php
if ( in_array( $page_layout, array( 'et_full_width_page', 'et_no_sidebar' ) ) ) {
et_pb_portfolio_meta_box();
}
?>
<?php get_sidebar(); ?>
</div>
</div>
<?php endif; ?>
</div>
<?php
get_footer();