HEX
Server: Apache/2.4.29 (Ubuntu)
System: Linux bareserver 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
User: root (0)
PHP: 7.2.24-0ubuntu0.18.04.17
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: /var/www/html/site/newsite/wp-content/themes/ooze/template-parts/header/theme-topbar.php
<?php
/**
 * Displays the Topbar
 *
 * @package Ooze
 */

$hide_topbar_on_mobile = ooze_get_option('hide_topbar_on_mobile');

$enable_topbar_date = ooze_get_option('enable_topbar_date');
$enable_topbar_time = ooze_get_option('enable_topbar_time');

$enable_topbar_nav = ooze_get_option('enable_topbar_nav');
$enable_topbar_social_icons = ooze_get_option('enable_topbar_social_icons');

$header_style = ooze_get_option('header_style');
?>
<div id="theme-topbar"
    class="site-topbar theme-site-topbar <?php echo ($hide_topbar_on_mobile) ? 'hide-on-mobile' : ''; ?>">
    <div class="wrapper">
        <div class="site-topbar-wrapper">

            <?php if ($header_style = 'header_style_4') { ?>
                <div class="site-topbar-item site-topbar-left">
                   <?php
                    if ($enable_topbar_nav):
                        wp_nav_menu(
                            array(
                                'theme_location' => 'top-menu',
                                'container_class' => 'site-topbar-component topbar-component-top-navigation',
                                'fallback_cb' => false,
                                'depth' => 2,
                                'menu_class' => 'theme-top-navigation theme-menu theme-topbar-navigation',
                            )
                        );
                    endif;
                    ?>

                    <?php if ($enable_topbar_date):
                        $date_format = ooze_get_option('todays_date_format', 'l ,  j  F Y');
                        ?>
                        <div class="site-topbar-component topbar-component-date">
                            <div class="topbar-component-icon">
                                <?php ooze_theme_svg('calendar'); ?>
                            </div>
                            <div class="theme-display-date">
                                <?php echo date_i18n($date_format, current_time('timestamp')); ?>
                            </div>
                        </div>
                    <?php endif; ?>
                </div>
            <?php } ?>

            <?php if ($header_style != 'header_style_4') { ?>
                <div class="site-topbar-item site-topbar-left">
                    <?php if ($enable_topbar_date):
                        $date_format = ooze_get_option('todays_date_format', 'l ,  j  F Y');
                        ?>
                        <div class="site-topbar-component topbar-component-date">
                            <div class="topbar-component-icon">
                                <?php ooze_theme_svg('calendar'); ?>
                            </div>
                            <div class="theme-display-date">
                                <?php echo date_i18n($date_format, current_time('timestamp')); ?>
                            </div>
                        </div>
                    <?php endif; ?>
                    <?php if ($enable_topbar_time): ?>
                        <div class="site-topbar-component topbar-component-time">
                            <div class="topbar-component-icon">
                                <?php ooze_theme_svg('clock'); ?>
                            </div>
                            <div class="theme-display-clock"></div>
                        </div>
                    <?php endif; ?>
                </div>
            <?php } ?>
            <div class="site-topbar-item site-topbar-right">
                <?php
                if ($enable_topbar_social_icons):
                    wp_nav_menu(
                        array(
                            'theme_location' => 'social-menu',
                            'container_class' => 'site-topbar-component topbar-component-social-navigation',
                            'fallback_cb' => false,
                            'depth' => 1,
                            'menu_class' => 'theme-social-navigation theme-menu theme-topbar-navigation',
                            'link_before' => '<span class="screen-reader-text">',
                            'link_after' => '</span>',
                        )
                    );
                endif;
                ?>

                <?php if ($header_style != 'header_style_4') { ?>
                    <?php
                    if ($enable_topbar_nav):
                        wp_nav_menu(
                            array(
                                'theme_location' => 'top-menu',
                                'container_class' => 'site-topbar-component topbar-component-top-navigation',
                                'fallback_cb' => false,
                                'depth' => 2,
                                'menu_class' => 'theme-top-navigation theme-menu theme-topbar-navigation',
                            )
                        );
                    endif;
                    ?>
                <?php } ?>
            </div>
        </div>
    </div>
</div>