晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
|
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/public_html/wp-content/plugins/wp-analytify/views/default/admin/ |
Upload File : |
<?php
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) { exit; }
/*
* View of Geographic Statistics
*/
function fetch_geographic_stats ( $current, $countries_stats, $cities_stats, $show_map = true, $report_url = '', $report_date_range = '' ) {
if ( isset( $countries_stats['rows'] ) && $countries_stats['rows'] > 0 ):
$code = '';
if ( true === $show_map) {
$higest_number = $countries_stats['rows'][0][1];
$_lowest_number = WPANALYTIFY_Utils::end( $countries_stats['rows'] );
$lowest_number = $_lowest_number[1]
?>
<script data-cfasync="false" >
jQuery(document).ready(function ($) {
// configure for module loader
require.config({
paths: {
echarts: 'js/dist/'
}
});
// use
require(
[
'echarts',
'echarts/chart/map', // require the specific chart type
],
function (ec) {
// Initialize after dom ready
var geographic_stats_graph = ec.init( document.getElementById('analytify_geographic_stats_graph' ) );
var geographic_stats_graph_option = {
tooltip : {
trigger: 'item',
formatter : function( params ) {
var value = (params.value + '').split('.');
// value = value[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g, '$1,')
// + '.' + value[1];
if ( value[0] != '-' ) {
value = value[0];
} else {
value = 0;
}
return '<?php _e( "Geographic Stats", "wp-analytify" ) ?>' + '<br/>' + params.name + ' : ' + value;
}
},
toolbox: {
show : false,
orient : 'horizontal',
x: 'right',
y: '10',
feature : {
restore : { show: true },
saveAsImage : { show: true }
}
},
roamController: {
show: true,
mapTypeControl: {
'world': true
},
x: 'right',
y: 'bottom'
},
dataRange: {
min: <?php echo $lowest_number ?>,
max: <?php echo $higest_number ?>,
text:['<?php _e( "High", "wp-analytify" ) ?>','<?php _e( "Low", "wp-analytify" ) ?>'],
realtime: true,
calculable : true,
color: ['#ff5252','#ffbc00','#448aff']
},
series : [
{
name: 'Geographic Stats',
type: 'map',
mapType: 'world',
roam: false,
scaleLimit :{
min: 1,
max: 10
},
mapLocation: {
y : 60
},
itemStyle:{
emphasis:{label:{show:true}}
},
data:[
<?php foreach ($countries_stats['rows'] as $country): ?>
{name : '<?php echo $country[0] == 'United States' ? 'United States of America' : $country[0] ?>', value : <?php echo $country[1] ?>},
<?php endforeach; ?>
]
}
]
};
// Load data into the ECharts instance
geographic_stats_graph.setOption(geographic_stats_graph_option);
window.onresize = function () {
geographic_stats_graph.resize();
}
}
);
});
</script>
<div class="analytify_txt_center analytify_graph_wraper">
<div id="analytify_geographic_stats_graph" style="height:600px"></div>
</div>
<?php } ?>
<div class="analytify_clearfix">
<table class="analytify_data_tables analytify_border_th_tp analytify_half analytify_pull_left">
<thead>
<tr>
<th class="analytify_txt_left analytify_vt_middle analytify_top_geographic_detials_wraper">
<?php esc_html_e( 'Top countries', 'wp-analytify' ); ?>
<?php $referral_url = 'https://analytics.google.com/analytics/web/#report/visitors-geo/' ; ?>
<a href="<?php echo $referral_url . $report_url . $report_date_range ?>" target="_blank" class="analytify_tooltip"><span class="analytify_tooltiptext"><?php _e( 'View All Top Countries', 'wp-analytify' ) ?></span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>
<?php do_action( 'analytify_after_top_country_text' ) ?>
</th>
<th class="analytify_value_row"><?php esc_html_e( 'Visitors', 'wp-analytify' ); ?></th>
</tr>
</thead>
<tbody>
<?php $counter = 0 ?>
<?php foreach ( $countries_stats['rows'] as $key => $country ): ?>
<?php $counter++ ?>
<tr>
<td><span class="<?php echo pretty_class( $country[0] ) ?> analytify_flages"></span> <?php echo $country[0] ?></td>
<td class="analytify_txt_center"> <?php echo WPANALYTIFY_Utils::pretty_numbers( $country[1] ) ?></td>
</tr>
<?php if( $counter > 4 ) break ?>
<?php endforeach; ?>
</tbody>
</table>
<table class="analytify_data_tables analytify_border_th_tp p analytify_half analytify_pull_left">
<thead>
<tr>
<th class="analytify_txt_left analytify_vt_middle analytify_top_geographic_detials_wraper analytify_brd_lft">
<?php esc_html_e( 'Top cities', 'wp-analytify' ); ?>
<?php $referral_url = 'https://analytics.google.com/analytics/web/#report/visitors-geo/' ; ?>
<a href="<?php echo $referral_url . $report_url . $report_date_range . '&geo-table.plotKeys=%5B%5D&geo-table.secSegmentId=analytics.country&geo-segmentExplorer.segmentId=analytics.city&geo-table-dataTable.sortColumnName=analytics.visits&geo-table-dataTable.sortDescending=true/' ?>" target="_blank" class="analytify_tooltip"><span class="analytify_tooltiptext"><?php _e( 'View All Top Cities', 'wp-analytify' ) ?></span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>
<?php do_action( 'analytify_after_top_city_text' ) ?>
</th>
<th class="analytify_value_row"><?php esc_html_e( 'Visitors', 'wp-analytify' ); ?></th>
</tr>
</thead>
<tbody>
<?php foreach ( $cities_stats['rows'] as $city ): ?>
<tr>
<td class="analytify_boder_left"><span class="analytify_<?php echo str_replace( ' ', '_', strtolower( $city[1] ) ) ?> analytify_flages"></span> <?php echo $city[0] ?></td>
<td class="analytify_txt_center"><?php echo WPANALYTIFY_Utils::pretty_numbers( $city[2] ) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<?php else:
echo $current->no_records();
endif;
} ?>