コード例 #1
0
ファイル: dashboard.php プロジェクト: hewu/blogwp
    $span = sprintf('<span class="handler %s" id="gdpt-hndl-%s" onclick="gdpt_dashboard_element(this, \'%s\', \'%s\', \'%s\')">[ %s ]</span>', $state ? "shown" : "hiden", $id, $tx_show, $tx_hide, PRESSTOOLS_URL . "ajax.php", $state ? $tx_hide : $tx_show);
    echo $span;
}
?>

<p class="sub">
    <?php 
gdpt_render_handler("info", $options["dashboard_handler_info"] == 1);
?>
    <?php 
_e("Additional Statistics Info", "gd-press-tools");
?>
    <?php 
$cnt_revisions = gd_count_revisions_total();
$cnt_spam = gd_count_spam_total();
$cnt_overhead = GDPTDB::get_tables_overhead();
?>
</p>
<div class="table" id="gdpt-table-info" style="<?php 
echo $options["dashboard_handler_info"] == 1 ? "" : "display: none";
?>
">
    <table><tbody>
        <tr class="first">
            <td class="first b"><?php 
echo $cnt_revisions;
?>
</td>
            <td class="t"><?php 
_e("Revisions for all published posts", "gd-press-tools");
?>