晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
|
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/stando/www/wp-content/plugins/js_composer/include/templates/shortcodes/ |
Upload File : |
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
/**
* Shortcode attributes
* @var $atts
* Shortcode class
* @var WPBakeryShortCode_Vc_TweetMeMe $this
*/
$atts = vc_map_get_attributes( $this->getShortcode(), $atts );
$tweet_btn_text = '';
$type = $atts['type'];
switch ( $type ) {
case 'follow':
$tweet_btn_text = esc_html__( 'Follow', 'js_composer' );
break;
case 'mention':
$tweet_btn_text = esc_html__( 'Tweet to', 'js_composer' );
break;
case 'share':
case 'hashtag':
$tweet_btn_text = esc_html__( 'Tweet', 'js_composer' );
break;
default:
$type = 'share';
$tweet_btn_text = esc_html__( 'Tweet', 'js_composer' );
break;
}
$data = array();
$classes = array();
$class_to_filter = 'vc_tweetmeme-element' . vc_shortcode_custom_css_class( $atts['css'], ' ' ) . $this->getCSSAnimation( $atts['css_animation'] ) . $this->getExtraClass( $atts['el_class'] );
$el_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->getShortcode(), $atts );
if ( ! empty( $atts['large_button'] ) ) {
$data['data-size'] = 'large';
}
$url = 'https://twitter.com/';
if ( 'share' === $type ) {
$url = 'https://twitter.com/share';
$classes[] = 'twitter-share-button';
if ( 'page_url' !== $atts['share_use_page_url'] ) {
$data['data-url'] = $atts['share_use_custom_url'];
}
if ( 'page_title' !== $atts['share_text_page_title'] ) {
$data['data-text'] = $atts['share_text_custom_text'];
}
if ( ! empty( $atts['share_via'] ) ) {
$data['data-via'] = $atts['share_via'];
}
if ( ! empty( $atts['share_recommend'] ) ) {
$data['data-related'] = $atts['share_recommend'];
}
if ( ! empty( $atts['share_hashtag'] ) ) {
$data['data-hashtags'] = $atts['share_hashtag'];
}
} elseif ( 'follow' === $type ) {
$url = 'https://twitter.com/';
$classes[] = 'twitter-follow-button';
if ( ! empty( $atts['follow_user'] ) ) {
$url .= esc_attr( $atts['follow_user'] );
$tweet_btn_text .= ' @' . esc_attr( $atts['follow_user'] );
}
if ( 'yes' !== $atts['follow_show_username'] ) {
$data['data-show-screen-name'] = 'false';
}
$data['data-show-count'] = ( ! ! $atts['show_followers_count'] ) ? 'true' : 'false';
} elseif ( 'hashtag' === $type ) {
$url = 'https://twitter.com/intent/tweet?';
$classes[] = 'twitter-hashtag-button';
$url_atts = array();
if ( ! empty( $atts['hashtag_hash'] ) ) {
$url_atts[] = 'button_hashtag=' . esc_attr( $atts['hashtag_hash'] );
$tweet_btn_text .= ' #' . esc_attr( $atts['hashtag_hash'] );
}
if ( 'yes' !== $atts['hashtag_no_default'] ) {
$url_atts[] = 'text=' . esc_attr( $atts['hashtag_custom_tweet_text'] );
}
$url .= implode( '&', $url_atts );
$rel = array();
if ( ! empty( $atts['hashtag_recommend_1'] ) ) {
$rel[] = $atts['hashtag_recommend_1'];
}
if ( ! empty( $atts['hashtag_recommend_1'] ) ) {
$rel[] = $atts['hashtag_recommend_2'];
}
if ( ! empty( $rel ) ) {
$data['data-related'] = implode( ',', $rel );
}
if ( 'yes' !== $atts['hashtag_no_url'] ) {
$data['data-url'] = $atts['hashtag_custom_tweet_url'];
}
} elseif ( 'mention' === $type ) {
$url = 'https://twitter.com/intent/tweet?';
$classes[] = 'twitter-mention-button';
$url_atts = array();
if ( ! empty( $atts['mention_tweet_to'] ) ) {
$url_atts[] = 'screen_name=' . esc_attr( $atts['mention_tweet_to'] );
$tweet_btn_text .= ' @' . esc_attr( $atts['mention_tweet_to'] );
}
if ( 'yes' !== $atts['mention_no_default'] ) {
$url_atts[] = 'text=' . esc_attr( $atts['mention_custom_tweet_text'] );
}
$url .= implode( '&', $url_atts );
$rel = array();
if ( ! empty( $atts['mention_recommend_1'] ) ) {
$rel[] = $atts['mention_recommend_1'];
}
if ( ! empty( $atts['mention_recommend_1'] ) ) {
$rel[] = $atts['mention_recommend_1'];
}
if ( ! empty( $rel ) ) {
$data['data-related'] = implode( ',', $rel );
}
}
if ( ! empty( $atts['lang'] ) ) {
$data['data-lang'] = $atts['lang'];
}
$data_imploded = array();
foreach ( $data as $k => $v ) {
$data_imploded[] = $k . '="' . esc_attr( $v ) . '"';
}
$wrapper_attributes = array();
if ( ! empty( $atts['el_id'] ) ) {
$wrapper_attributes[] = 'id="' . esc_attr( $atts['el_id'] ) . '"';
}
$wrapper = '<div ' . implode( ' ', $wrapper_attributes ) . ' class="' . esc_attr( $el_class ) . '">';
$template = '<a href="' . esc_url( $url ) . '" class="' . esc_attr( implode( ' ', $classes ) ) . '" ' . implode( ' ', $data_imploded ) . '>' . $tweet_btn_text . '</a>';
$custom_tag = 'script';
$template .= '<' . $custom_tag . '>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?\'http\':\'https\';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+\'://platform.twitter.com/widgets.js\';fjs.parentNode.insertBefore(js,fjs);}}(document, \'script\', \'twitter-wjs\');</' . $custom_tag . '>';
$wrapper .= $template;
$wrapper .= '</div>';
return $wrapper;