예제 #1
0
/**
 * nggallery_admin_overview()
 *
 * Add the admin overview the dashboard style 
 * @return mixed content
 */
function nggallery_admin_overview()
{
    ?>
	<div class="wrap ngg-wrap">
		<h2><?php 
    _e('NextGEN Gallery Overview', 'nggallery');
    ?>
</h2>
        <?php 
    if (version_compare(PHP_VERSION, '5.0.0', '<')) {
        ngg_check_for_PHP5();
    }
    ?>
		<div id="dashboard-widgets-wrap" class="ngg-overview">
		    <div id="dashboard-widgets" class="metabox-holder">
				<div id="post-body">
					<div id="dashboard-widgets-main-content">
						<div class="postbox-container" style="width:49%;">
							<?php 
    do_meta_boxes('ngg_overview', 'left', '');
    ?>
						</div>
			    		<div class="postbox-container" style="width:49%;">
							<?php 
    do_meta_boxes('ngg_overview', 'right', '');
    ?>
						</div>						
					</div>
				</div>
		    </div>
		</div>
	</div>
	<script type="text/javascript">
		//<![CDATA[
		jQuery(document).ready( function($) {
			// postboxes setup
			postboxes.add_postbox_toggles('ngg-overview');
		});
		//]]>
	</script>
	<?php 
}
예제 #2
0
/**
 * nggallery_admin_overview()
 *
 * Add the admin overview the dashboard style 
 * @return mixed content
 */
function nggallery_admin_overview()
{
    ?>
	<div class="wrap ngg-wrap">
        <?php 
    screen_icon('nextgen-gallery');
    ?>
		<h2><?php 
    _e('NextGEN Gallery Overview', 'nggallery');
    ?>
</h2>
        <?php 
    if (version_compare(PHP_VERSION, '5.0.0', '<')) {
        ngg_check_for_PHP5();
    }
    ?>
		<div id="dashboard-widgets-wrap" class="ngg-overview">
		    <div id="dashboard-widgets" class="metabox-holder">
				<div id="post-body">
					<div id="dashboard-widgets-main-content">
						<div class="postbox-container" style="width:75%;">
							<?php 
    do_meta_boxes('ngg_overview', 'left', '');
    ?>
						</div>
			    		<div class="postbox-container" style="width:24%;">
							<?php 
    do_meta_boxes('ngg_overview', 'right', '');
    ?>
						</div>						
					</div>
				</div>
		    </div>
		</div>
	</div>
	<script type="text/javascript">
		//<![CDATA[
        var ajaxWidgets, ajaxPopulateWidgets;
        
        jQuery(document).ready( function($) {
        	// These widgets are sometimes populated via ajax
        	ajaxWidgets = [
        		'ngg_lastdonators',
        		'dashboard_primary',
        		'ngg_locale',
        		'dashboard_plugins'
        	];
        
        	ajaxPopulateWidgets = function(el) {
        		show = function(id, i) {
        			var p, e = $('#' + id + ' div.inside:visible').find('.widget-loading');
        			if ( e.length ) {
        				p = e.parent();
        				setTimeout( function(){
        					p.load('admin-ajax.php?action=ngg_dashboard&jax=' + id, '', function() {
        						p.hide().slideDown('normal', function(){
        							$(this).css('display', '');
        							if ( 'dashboard_plugins' == id && $.isFunction(tb_init) )
        								tb_init('#dashboard_plugins a.thickbox');
        						});
        					});
        				}, i * 500 );
        			}
        		}
        		if ( el ) {
        			el = el.toString();
        			if ( $.inArray(el, ajaxWidgets) != -1 )
        				show(el, 0);
        		} else {
        			$.each( ajaxWidgets, function(i) {
        				show(this, i);
        			});
        		}
        	};
        	ajaxPopulateWidgets();
        } );

		jQuery(document).ready( function($) {
			// postboxes setup
			postboxes.add_postbox_toggles('ngg-overview');
		});
		//]]>
	</script>
	<?php 
}
예제 #3
0
    function render()
    {
        $this->meta_boxes();
        ?>

	    <div class="fox_dashboard_header">

		<div class="fox_dashboard_header_wrap">
		    <span class="fox_dashboard_version">
			<div class="bpa-admin-ver-title">Version: </div> <span class="bpa-admin-ver-text"><?php 
        echo FOX_DISPLAY_VERSION;
        ?>
</span><br/>
			<div class="bpa-admin-build-title">Build Date: </div> <span class="bpa-admin-build-text"><?php 
        echo FOX_DISPLAY_DATE;
        ?>
</span><br/>
			<div class="bpa-admin-build-title">Using PHP: </div> <span class="bpa-admin-build-text"><?php 
        echo phpversion();
        ?>
</span>
		    </span>
		</div>

		<div class="fox_dashboard_header_wrap">
		    <div class="fox_release_warning">
			<b><u>DO NOT INSTALL THIS SOFTWARE ON A LIVE WEBSITE</u></b> - Nightly builds are unfinished, untested releases automatically generated
			by our GitHub repository. They give the community a live view of our progress, like
			watching a construction site. For more info, see the <a href="https://github.com/FoxFireissues/list">Nightly Builds</a>
			wiki page.
		    </div>
		</div>

	    </div>


	    <div class="fox_dashboard_body">

	    <?php 
        if (version_compare(PHP_VERSION, '5.0.0', '<')) {
            ngg_check_for_PHP5();
        }
        ?>
		    <div id="dashboard-widgets-wrap">
			<div id="dashboard-widgets" class="metabox-holder">
				    <div id="post-body">
					    <div id="dashboard-widgets-main-content">
						    <div class="postbox-container" style="width:49%;">
							    <?php 
        do_meta_boxes('bpa_overview', 'left', '');
        ?>
						    </div>
					    <div class="postbox-container" style="width:49%;">
							    <?php 
        do_meta_boxes('bpa_overview', 'right', '');
        ?>
						    </div>
					    </div>
				    </div>
			</div>
		    </div>
	    </div>

	    <div class="fox_footer"></div>

	    <script type="text/javascript">
		    //<![CDATA[
	    var ajaxWidgets, ajaxPopulateWidgets;

	    jQuery(document).ready( function($) {
		    // These widgets are sometimes populated via ajax
		    ajaxWidgets = [
			    'dashboard_primary',
			    'dashboard_plugins'
		    ];

		    ajaxPopulateWidgets = function(el) {
			    show = function(id, i) {
				    var p, e = $('#' + id + ' div.inside:visible').find('.widget-loading');
				    if ( e.length ) {
					    p = e.parent();
					    setTimeout( function(){
						    p.load('admin-ajax.php?action=bpa_dashboard&jax=' + id, '', function() {
							    p.hide().slideDown('normal', function(){
								    $(this).css('display', '');
								    if ( 'dashboard_plugins' == id && $.isFunction(tb_init) )
									    tb_init('#dashboard_plugins a.thickbox');
							    });
						    });
					    }, i * 500 );
				    }
			    }
			    if ( el ) {
				    el = el.toString();
				    if ( $.inArray(el, ajaxWidgets) != -1 )
					    show(el, 0);
			    } else {
				    $.each( ajaxWidgets, function(i) {
					    show(this, i);
				    });
			    }
		    };
		    ajaxPopulateWidgets();
	    } );

		    jQuery(document).ready( function($) {
			    // postboxes setup
			    postboxes.add_postbox_toggles('bpa-overview');
		    });
		    //]]>
	    </script>
	    <?php 
    }