wordpress/wp-content/plugins/cms-tree-page-view/functions.php
/**
 * Add style etc to wp head to minimize flashing content
 */
Add style etc to wp head to minimize flashing content
Add style etc to wp head to minimize flashing content
function cmstpv_postoverview_head() {
	if ( isset($_GET["mode"]) && $_GET["mode"] === "tree" ) {
		?>
		<style>
			/* hide and position WP things */
			/* TODO: move this to wp head so we don't have time to see wps own stuff */
			.subsubsub, .tablenav.bottom, .tablenav .actions, .wp-list-table, .search-box, .tablenav .tablenav-pages { display: none !important; }
			.tablenav.top { float: right; }
			.view-switch { visibility: hidden; }
		</style>
		<?php
	} else {
		?>
		<style>
			.view-switch {
				padding-right: 23px;
			}
		</style>
		<?php
	}
}
function cmstpv_postoverview_head ( ) { if ( isset ( $ _GET [ " mode " ] ) && $ _GET [ " mode " ] === " tree " ) { ?> <style>
			/* hide and position WP things */
			/* TODO: move this to wp head so we don't have time to see wps own stuff */
			.subsubsub, .tablenav.bottom, .tablenav .actions, .wp-list-table, .search-box, .tablenav .tablenav-pages { display: none !important; }
			.tablenav.top { float: right; }
			.view-switch { visibility: hidden; }
		</style>
		 <?php } else { ?> <style>
			.view-switch {
				padding-right: 23px;
			}
		</style>
		 <?php } }
Add style etc to wp head to minimize flashing content
Add style etc to wp head to minimize flashing content
// post overview is enabled, but not active // make room for our icon directly so page does not look jerky while adding it