HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
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,pcntl_unshare,
Upload Files
File: /var/www/html/wpkoopkj/wp-content/themes/ohio/parts/headers/elements-bar.php
<?php

    if ( OhioSettings::is_coming_soon_page() ) return;

    $left_bar_list = [];
    $right_bar_list = [];

    // Scroll top
    ob_start();
    get_template_part( 'parts/elements/scroll_top' );
    $scroll_top_content = ob_get_clean();

    if ( !empty( $scroll_top_content ) ) {
        if ( OhioOptions::get_global( 'page_arrow_position', 'left' ) == 'left' ) {
            $left_bar_list[] = $scroll_top_content;
        } else {
            $right_bar_list[] = $scroll_top_content;
        }
    }

    // Social networks
    ob_start();
    get_template_part( 'parts/elements/social_bar' );
    $social_networks_content = ob_get_clean();

    if ( !empty( $social_networks_content ) ) {
        if ( OhioOptions::get_global( 'social_network_position', 'right' ) == 'left' ) {
            $left_bar_list[] = $social_networks_content;
        } else {
            $right_bar_list[] = $social_networks_content;
        }
    }

    // Color mode switcher
    ob_start();
    get_template_part( 'parts/elements/light_dark_switcher' );
    $color_switcher_content = ob_get_clean();

    if ( !empty( $color_switcher_content ) ) {
        if ( OhioOptions::get_global( 'page_dark_mode_switcher_position', 'left' ) == 'left' ) {
            $left_bar_list[] = $color_switcher_content;
        } else {
            $right_bar_list[] = $color_switcher_content;
        }
    }
?>

<?php if ( !empty( $left_bar_list ) ): ?>
    <ul class="elements-bar left -unlist">
        <?php foreach ( $left_bar_list as $item ): ?>
            <li><?php echo $item; ?></li>
        <?php endforeach; ?>
    </ul>
<?php endif; ?>

<?php if ( !empty( $right_bar_list ) ): ?>
    <ul class="elements-bar right -unlist">
        <?php foreach ( $right_bar_list as $item ): ?>
            <li><?php echo $item; ?></li>
        <?php endforeach; ?>
    </ul>
<?php endif; ?>