Activity_Log::load_minimal_admin()


Source Source

File: src/core/admin/class-activity-log.php

	public function load_minimal_admin() {
		if ( ! automator_filter_has_var( 'minimal' ) ) {
			return;
		}
		ob_start();
		?>
		<style>
			.wrap.uap .uap-nav-tab-wrapper,
			.uap-logs .tablenav.top,
			#wpadminbar,
			#wpfooter,
			#uap-review-banner,
			#lity-container,
			.notice,
			.uap .uap-review-banner,
			div.uap-log-table-container div.error,
			#adminmenumain {
				display: none !important;
			}

			#wpcontent, #wpfooter {
				margin-left: 0 !important;
			}

			.lity-container {
				height: 80% !important;
			}

			.lity-content,
			.lity-iframe-container {
				height: 100% !important;
			}
		</style>
		<?php
		echo ob_get_clean();
	}