本文整理汇总了PHP中wp_statistics_date_range_selector函数的典型用法代码示例。如果您正苦于以下问题:PHP wp_statistics_date_range_selector函数的具体用法?PHP wp_statistics_date_range_selector怎么用?PHP wp_statistics_date_range_selector使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wp_statistics_date_range_selector函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: list
}
list($daysToDisplay, $rangestart_utime, $rangeend_utime) = wp_statistics_date_range_calculator($daysToDisplay, $rangestart, $rangeend);
$rangestartdate = $WP_Statistics->real_current_date('Y-m-d', '-0', $rangestart_utime);
$rangeenddate = $WP_Statistics->real_current_date('Y-m-d', '-0', $rangeend_utime);
?>
<div class="wrap">
<?php
screen_icon('options-general');
?>
<h2><?php
_e('Browser Statistics', 'wp_statistics');
?>
</h2>
<div><?php
wp_statistics_date_range_selector(WP_STATISTICS_BROWSERS_PAGE, $daysToDisplay);
?>
</div>
<div class="postbox-container" style="width: 48%; float: left; margin-right:20px">
<div class="metabox-holder">
<div class="meta-box-sortables">
<div class="postbox">
<div class="handlediv" title="<?php
_e('Click to toggle', 'wp_statistics');
?>
"><br /></div>
<h3 class="hndle"><span><?php
_e('Browsers', 'wp_statistics');
?>
</span></h3>
示例2: list
} else {
$rangeend = '';
}
list($daysToDisplay, $rangestart_utime, $rangeend_utime) = wp_statistics_date_range_calculator($daysToDisplay, $rangestart, $rangeend);
?>
<div class="wrap">
<?php
screen_icon('options-general');
?>
<h2><?php
_e('Search Engine Referral Statistics', 'wp_statistics');
?>
</h2>
<?php
wp_statistics_date_range_selector(WP_STATISTICS_SEARCHES_PAGE, $daysToDisplay);
?>
<div class="postbox-container" style="width: 100%; float: left; margin-right:20px">
<div class="metabox-holder">
<div class="meta-box-sortables">
<div class="postbox">
<div class="handlediv" title="<?php
_e('Click to toggle', 'wp_statistics');
?>
"><br /></div>
<h3 class="hndle"><span><?php
_e('Search Engine Referral Statistics', 'wp_statistics');
?>
</span></h3>
<div class="inside">
示例3: list
} else {
$rangeend = '';
}
list($daysToDisplay, $rangestart_utime, $rangeend_utime) = wp_statistics_date_range_calculator($daysToDisplay, $rangestart, $rangeend);
?>
<div class="wrap">
<?php
screen_icon('options-general');
?>
<h2><?php
_e('Top Countries', 'wp_statistics');
?>
</h2>
<?php
wp_statistics_date_range_selector('wps_countries_menu', $daysToDisplay);
?>
<div class="postbox-container" id="last-log" style="width: 100%;">
<div class="metabox-holder">
<div class="meta-box-sortables">
<div class="postbox">
<div class="inside">
<div class="inside">
<table class="widefat table-stats" id="last-referrer" style="width: 100%;">
<tr>
<td><?php
_e('Rank', 'wp_statistics');
?>
</td>
<td><?php
示例4: screen_icon
$rangeend = $_GET['rangeend'];
} else {
$rangeend = '';
}
?>
<div class="wrap">
<?php
screen_icon('options-general');
?>
<h2><?php
echo __('Page Trend for Post ID', 'wp_statistics') . ' ' . $pageid . ' - ' . $title;
?>
</h2>
<?php
wp_statistics_date_range_selector(WP_STATISTICS_PAGES_PAGE, $daysToDisplay, null, null, $urlfields);
?>
<div class="postbox-container" id="last-log">
<div class="metabox-holder">
<div class="meta-box-sortables">
<div class="postbox">
<div class="handlediv" title="<?php
_e('Click to toggle', 'wp_statistics');
?>
"><br /></div>
<h3 class="hndle"><span><?php
_e('Page Trend', 'wp_statistics');
?>
</span></h3>
<div class="inside">
示例5: screen_icon
// If the chart totals is enabled, cheat a little and just add another reason category to the list so it get's generated later.
if ($total_stats == 1) {
$excluded_reasons[] = 'Total';
}
?>
<div class="wrap">
<?php
screen_icon('options-general');
?>
<h2><?php
_e('Exclusions Statistics', 'wp_statistics');
?>
</h2>
<?php
wp_statistics_date_range_selector(WP_STATISTICS_EXCLUSIONS_PAGE, $daysToDisplay);
?>
<div class="postbox-container" style="width: 100%; float: left; margin-right:20px">
<div class="metabox-holder">
<div class="meta-box-sortables">
<div class="postbox">
<div class="handlediv" title="<?php
_e('Click to toggle', 'wp_statistics');
?>
"><br /></div>
<h3 class="hndle"><span><?php
_e('Exclusions Statistical Chart', 'wp_statistics');
?>
</span></h3>
<div class="inside">
示例6: screen_icon
$rangeend = $_GET['rangeend'];
} else {
$rangeend = '';
}
?>
<div class="wrap">
<?php
screen_icon('options-general');
?>
<h2><?php
echo __('Page Trend for Post ID', 'wp_statistics') . ' ' . $pageid . ' - ' . $title;
?>
</h2>
<?php
wp_statistics_date_range_selector('wps_pages_menu', $daysToDisplay, null, null, $urlfields);
?>
<div class="postbox-container" id="last-log">
<div class="metabox-holder">
<div class="meta-box-sortables">
<div class="postbox">
<div class="handlediv" title="<?php
_e('Click to toggle', 'wp_statistics');
?>
"><br /></div>
<h3 class="hndle"><span><?php
_e('Page Trend', 'wp_statistics');
?>
</span></h3>
<div class="inside">
示例7: intval
$daysToDisplay = 20;
if (array_key_exists('hitdays', $_GET)) {
$daysToDisplay = intval($_GET['hitdays']);
}
if (array_key_exists('rangestart', $_GET)) {
$rangestart = $_GET['rangestart'];
} else {
$rangestart = '';
}
if (array_key_exists('rangeend', $_GET)) {
$rangeend = $_GET['rangeend'];
} else {
$rangeend = '';
}
list($daysToDisplay, $rangestart_utime, $rangeend_utime) = wp_statistics_date_range_calculator($daysToDisplay, $rangestart, $rangeend);
wp_statistics_date_range_selector('wps_hits_menu', $daysToDisplay);
?>
<div class="postbox-container" style="width: 100%; float: left; margin-right:20px">
<div class="metabox-holder">
<div class="meta-box-sortables">
<div class="postbox">
<div class="handlediv" title="<?php
_e('Click to toggle', 'wp_statistics');
?>
"><br /></div>
<h3 class="hndle"><span><?php
_e('Hits Statistics Chart', 'wp_statistics');
?>
</span></h3>
<div class="inside">
示例8: screen_icon
$excluded_reasons[] = 'Total';
}
?>
<div class="wrap">
<?php
screen_icon('options-general');
?>
<h2><?php
_e('Exclusions Statistics', 'wp_statistics');
?>
</h2>
<?php
wp_statistics_date_range_selector('wps_exclusions_menu', $daysToDisplay);
?>
<div class="postbox-container" style="width: 100%; float: left; margin-right:20px">
<div class="metabox-holder">
<div class="meta-box-sortables">
<div class="postbox">
<div class="handlediv" title="<?php
_e('Click to toggle', 'wp_statistics');
?>
"><br /></div>
<h3 class="hndle"><span><?php
_e('Exclusions Statistical Chart', 'wp_statistics');
?>
</span></h3>
示例9: array_count_values
}
$get_urls = array_count_values($urls);
$total = count($get_urls);
}
?>
<div class="wrap">
<?php
screen_icon('options-general');
?>
<h2><?php
_e('Top Referring Sites', 'wp_statistics');
?>
</h2>
<div><?php
wp_statistics_date_range_selector('wps_referrers_menu', $daysToDisplay);
?>
</div>
<div class="clear"/>
<ul class="subsubsub">
<?php
if ($referr) {
?>
<li class="all"><a <?php
if (!$referr) {
echo 'class="current"';
}
?>
href="?page=wps_referrers_menu"><?php