Event | Count |
0) {
$Total = 0;
$Other = 0;
$Rows = 0;
foreach ($CountData as $Id => $Count) {
if (Record::itemExists($Id)) {
$BlogPost = new Entry($Id);
$Total += $Count;
if ($Rows < 20) {
$Rows++;
?>
= $BlogPost->Get("Title"); ?>
|
= $Count; ?> |
0) {
print "Other | ".$Other." |
";
}
print "Total | ".$Total." |
";
} else {
?>(no = $Caption; ?> for this period) |
Period: "
.date("M j Y", strtotime($StartDate))." - " .date("M j Y")
." | ";
?>
addClass("mv-button-weekly mv-button-views mv-button-active");
$ViewsMonthButton = new HtmlButton("Month");
$ViewsMonthButton->addClass("mv-button-monthly mv-button-views");
$ViewsYearButton = new HtmlButton("Year");
$ViewsYearButton->addClass("mv-button-yearly mv-button-views");
$SharesWeekButton = new HtmlButton("Week");
$SharesWeekButton->addClass("mv-button-weekly mv-button-shares mv-button-active");
$SharesMonthButton = new HtmlButton("Month");
$SharesMonthButton->addClass("mv-button-monthly mv-button-shares");
$SharesYearButton = new HtmlButton("Year");
$SharesYearButton->addClass("mv-button-yearly mv-button-shares");
# ----- DISPLAY --------------------------------------------------------------
?>
Blog Usage Metrics
- = $ViewsWeekButton->getHtml(); ?>
- = $ViewsMonthButton->getHtml(); ?>
- = $ViewsYearButton->getHtml(); ?>
|
|
- = $SharesWeekButton->getHtml(); ?>
- = $SharesMonthButton->getHtml(); ?>
- = $SharesYearButton->getHtml(); ?>
|
Title("Blog Post Views
");
$H_ViewsPerDay->Display();
?>
Title("Blog Post Shares
");
$H_SharesPerDay->Display();
?>