晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
|
Server : Apache System : Linux srv.rainic.com 4.18.0-553.47.1.el8_10.x86_64 #1 SMP Wed Apr 2 05:45:37 EDT 2025 x86_64 User : rainic ( 1014) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/rainic/public_html/oldTZh/wp-content/themes/betheme/includes/ |
Upload File : |
<?php
/**
* @package Betheme
* @author Muffin group
* @link https://muffingroup.com
*/
// class
$intro_class = "";
$parallax = false;
$intro_style = "";
$intro_options = get_post_meta(get_the_ID(), 'mfn-post-intro', true);
if (is_array($intro_options)) {
if (isset($intro_options['light'])) {
$intro_class .= 'light';
}
if (isset($intro_options['full-screen'])) {
$intro_class .= ' full-screen';
}
if (isset($intro_options['parallax'])) {
$intro_class .= ' parallax';
$parallax = true;
}
if (isset($intro_options['cover'])) {
$intro_style .= 'background-size:cover;';
}
}
// style
if ($bg_color = get_post_meta(get_the_ID(), 'mfn-post-bg', true)) {
$intro_style .= 'background-color:'. esc_attr($bg_color) .';';
}
if ($bg_image = get_post_meta(get_the_ID(), 'mfn-post-header-bg', true)) {
$intro_style .= 'background-image:url('. esc_url($bg_image) .');';
} else {
$parallax = false;
}
// padding
if ($intro_padding = mfn_opts_get('single-intro-padding')) {
$intro_padding = 'padding:'. $intro_padding;
}
// parallax
if ($parallax) {
$parallax = mfn_parallax_data();
if (mfn_parallax_plugin() == 'translate3d') {
if (wp_is_mobile()) {
$intro_style .= 'background-attachment:scroll;background-size:cover;-webkit-background-size:cover;';
} else {
$intro_style = false;
}
} else {
$intro_style .= 'background-repeat:no-repeat;background-attachment:fixed;background-size:cover;-webkit-background-size:cover;';
}
}
// IMPORTANT for post meta
while (have_posts()) {
the_post();
}
wp_reset_query();
?>
<div id="Intro" class="<?php echo esc_attr($intro_class); ?>" style="<?php echo esc_attr($intro_style); ?>" <?php echo wp_kses_data($parallax);?>>
<?php
// parallax | translate3d -------
if (! wp_is_mobile() && $parallax && mfn_parallax_plugin() == 'translate3d') {
echo '<img class="mfn-parallax" src="'. esc_url($bg_image) .'" alt="parallax background" style="opacity:0" />';
}
?>
<div class="intro-inner" style="<?php echo esc_attr($intro_padding); ?>">
<?php
$h = mfn_opts_get('title-heading', 1);
echo '<h'. esc_attr($h) .' class="intro-title">'. wp_kses(get_the_title(), mfn_allowed_html()) .'</h'. esc_attr($h) .'>';
?>
<?php
$show_meta = false;
$single_meta = mfn_opts_get('blog-meta');
if (get_post_type() == 'portfolio') {
$single_meta = mfn_opts_get('portfolio-meta');
}
if (is_array($single_meta)) {
if (isset($single_meta['author']) || isset($single_meta['date']) || isset($single_meta['categories'])) {
$show_meta = true;
}
}
?>
<?php if ($show_meta): ?>
<div class="intro-meta">
<?php if (isset($single_meta['author'])): ?>
<div class="author">
<i class="icon-user" aria-label="<?php _e('author','betheme'); ?>"></i>
<span><a href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>"><?php the_author_meta('display_name'); ?></a></span>
</div>
<?php endif; ?>
<?php if (isset($single_meta['date'])): ?>
<div class="date">
<i class="icon-clock" aria-label="<?php _e('published','betheme'); ?>"></i>
<span><?php echo esc_html(get_the_date()); ?></span>
</div>
<?php endif; ?>
<?php if (isset($single_meta['categories'])): ?>
<?php if ($categories = get_the_category()): ?>
<div class="categories">
<i class="icon-docs" aria-label="<?php _e('categories','betheme'); ?>"></i>
<?php
$string_cat = '';
foreach ($categories as $cat) {
$string_cat .= '<a href="'. esc_url(get_category_link($cat->term_id)) .'">'. esc_html($cat->name) .'</a>, ';
}
echo '<span>'. rtrim($string_cat, ", ") .'</span>';
?>
</div>
<?php endif; ?>
<?php
$terms = get_the_terms(false, 'portfolio-types');
if (is_array($terms)):
?>
<div class="categories">
<i class="icon-docs" aria-label="<?php _e('categories','betheme'); ?>"></i>
<?php
$string_term = '';
foreach ($terms as $term) {
$string_term .= '<a href="'. esc_url(get_term_link($term, 'post_tag')) .'">'. esc_html($term->name) .'</a>, ';
}
echo '<span>'. rtrim($string_term, ", ") .'</span>';
?>
</div>
<?php endif; ?>
<?php if ($terms = get_the_terms(false, 'post_tag')): ?>
<div class="tags">
<i class="icon-tag" aria-label="<?php _e('tags','betheme'); ?>"></i>
<?php
$string_term = '';
foreach ($terms as $term) {
$string_term .= '<a href="'. esc_url(get_term_link($term, 'post_tag')) .'">'. esc_html($term->name) .'</a>, ';
}
echo '<span>'. rtrim($string_term, ", ") .'</span>';
?>
</div>
<?php endif; ?>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
<div class="intro-next"><i class="icon-down-open-big" aria-label="<?php _e('scroll down icon','betheme'); ?>"></i></div>
</div>