Exemplo n.º 1
0
function fs_custom_status_init($statuses)
{
    if (class_exists('Debug_Bar_Panel')) {
        if (FS_API__LOGGER_ON) {
            require_once dirname(__FILE__) . '/class-fs-debug-bar-panel.php';
            $statuses[] = array('fs_api_requests', __fs('Freemius API'), Freemius_Debug_Bar_Panel::requests_count() . ' ' . __fs('Requests') . ' (' . Freemius_Debug_Bar_Panel::total_time() . ')');
        }
    }
    return $statuses;
}
Exemplo n.º 2
0
}
$pretty_print = $show_body && defined('JSON_PRETTY_PRINT') && version_compare(phpversion(), '5.3', '>=');
$root_path_len = strlen(ABSPATH);
?>
<h1><?php 
_efs('API');
?>
</h1>

<h2><span>Total Time:</span><?php 
echo Freemius_Debug_Bar_Panel::total_time();
?>
</h2>

<h2><span>Total Requests:</span><?php 
echo Freemius_Debug_Bar_Panel::requests_count();
?>
</h2>
<?php 
foreach ($counters as $method => $count) {
    ?>
	<h2><span><?php 
    echo $method;
    ?>
:</span><?php 
    echo number_format($count);
    ?>
</h2>
<?php 
}
?>