Example #1
0
/**
 * Show the server settings
 * 
 * @return void
 */
function ngg_overview_server()
{
    ?>
<div id="dashboard_server_settings" class="dashboard-widget-holder wp_dashboard_empty">
	<div class="ngg-dashboard-widget">
	  <?php 
    if (IS_WPMU) {
        if (wpmu_enable_function('wpmuQuotaCheck')) {
            echo ngg_SpaceManager::details();
        } else {
            //TODO:WPMU message in WP2.5 style
            echo ngg_SpaceManager::details();
        }
    } else {
        ?>
	  	<div class="dashboard-widget-content">
      		<ul class="settings">
      		<?php 
        ngg_get_serverinfo();
        ?>
	   		</ul>
		</div>
	  <?php 
    }
    ?>
    </div>
</div>
<?php 
}
Example #2
0
/**
 * Show the server settings in a dashboard widget
 * 
 * @return void
 */
function ngg_overview_server()
{
    ?>
<div id="dashboard_server_settings" class="dashboard-widget-holder wp_dashboard_empty">
	<div class="ngg-dashboard-widget">
	  	<div class="dashboard-widget-content">
      		<ul class="settings">
      		<?php 
    ngg_get_serverinfo();
    ?>
            </ul>
            <p><strong><?php 
    _e('Graphic Library', 'nggallery');
    ?>
</strong></p>
            <ul class="settings">
            <?php 
    ngg_gd_info();
    ?>
	   		</ul>
		</div>
    </div>
</div>
<?php 
}