Files
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

25 lines
521 B
PHP

<?php
class SQ_Core_BlockStats extends SQ_Classes_BlockController {
var $stats = array();
function init() {
parent::init();
if(isset($this->stats) && isset($this->stats)) {
echo $this->getView('Blocks/Stats');
}
}
function hookGetContent() {
//get the stats from Dashboard
$this->stats = SQ_Classes_RemoteController::getStats();
if(is_wp_error($this->stats)){
$this->stats = array();
}
}
}