HEX
Server: LiteSpeed
System: Linux s1.hostssdserver.com 4.18.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User: dreamlan (1220)
PHP: 8.3.32
Disabled: exec,system,passthru,shell_exec,proc_open,popen,apache_child_terminate
Upload Files
File: /home/dreamlan/public_html/wp-content/themes/unos/template-parts/topbar.php
<?php
// Get Content
global $hoot_data;
hoot_set_data( 'topbar_left', is_active_sidebar( 'hoot-topbar-left' ) );
hoot_set_data( 'topbar_right', is_active_sidebar( 'hoot-topbar-right' ) );

// Template modification Hook
do_action( 'unos_before_topbar' );

// Display Topbar
$hoot_topbar_left = hoot_data()->topbar_left;
$hoot_topbar_right = hoot_data()->topbar_right;
if ( !empty( $hoot_topbar_left ) || !empty( $hoot_topbar_right ) ) :

	?>
	<div <?php hoot_attr( 'topbar', '', 'inline-nav js-search social-icons-invert hgrid-stretch' ); ?>>
		<div class="hgrid">
			<div class="hgrid-span-12">

				<div class="topbar-inner table<?php if ( !empty( $hoot_topbar_left ) && !empty( $hoot_topbar_right ) ) echo ' topbar-parts'; ?>">
					<?php if ( $hoot_topbar_left ): ?>
						<?php $topbarid = ( $hoot_topbar_right ) ? 'left' : 'center'; ?>
						<div id="topbar-<?php echo $topbarid; ?>" class="table-cell-mid topbar-part">
							<?php dynamic_sidebar( 'hoot-topbar-left' ); ?>
						</div>
					<?php endif; ?>

					<?php if ( $hoot_topbar_right ): ?>
						<?php $topbarid = ( $hoot_topbar_left ) ? 'right' : 'center'; ?>
						<div id="topbar-<?php echo $topbarid; ?>" class="table-cell-mid topbar-part">
							<?php dynamic_sidebar( 'hoot-topbar-right' ); ?>
						</div>
					<?php endif; ?>
				</div>

			</div>
		</div>
	</div>
	<?php

endif;

// Template modification Hook
do_action( 'unos_after_topbar' );