Edit File: header-4.php
<?php /** * orun Header Template #3 * @package orun */ $options = get_option('orun_opt'); // Options $full_width = $options['orun-opt-header-menu-fw'] == true ? 'container-fluid' : 'container'; $centered = $options['orun-opt-header-menu-center'] == true ? 'menu-centered' : ''; $hover = $options['orun-opt-menu-hover-design']; $button = $options['orun-opt-menu-button-design']; $header = $options['orun-opt-header-design']; ?> <script src="https://code.iconify.design/1/1.0.4/iconify.min.js"> </script> <?php if ($options['orun-opt-top-menu-show'] == true) { ?> <nav class="navbar-top"> <div class="<?= $full_width; ?>"> <div class="navbar-top-bg with-logo"> <?php if ($options['orun-opt-top-menu-social'] == true) { ?> <div class="navbar-top-social"> <ul> <?php if (!empty($options['orun-opt-social-facebook']) && $options['orun-opt-social-facebook-show'] == true) { ?> <li> <a rel="nofollow" href="<?php echo $options['orun-opt-social-facebook']; ?>"><i class="fab fa-facebook"></i></a> </li> <?php } ?> <?php if (!empty($options['orun-opt-social-twitter']) && $options['orun-opt-social-twitter-show'] == true) { ?> <li> <a rel="nofollow" href="<?php echo $options['orun-opt-social-twitter']; ?>"><i class="fab fa-twitter"></i></a> </li> <?php } ?> <?php if (!empty($options['orun-opt-social-instagram']) && $options['orun-opt-social-instagram-show'] == true) { ?> <li> <a rel="nofollow" href="<?php echo $options['orun-opt-social-instagram']; ?>"><i class="fab fa-instagram"></i></a> </li> <?php } ?> <?php if (!empty($options['orun-opt-social-pinterest']) && $options['orun-opt-social-pinterest-show'] == true) { ?> <li> <a rel="nofollow" href="<?php echo $options['orun-opt-social-pinterest']; ?>"><i class="fab fa-pinterest"></i></a> </li> <?php } ?> <?php if (!empty($options['orun-opt-social-youtube']) && $options['orun-opt-social-youtube-show'] == true) { ?> <li> <a rel="nofollow" href="<?php echo $options['orun-opt-social-youtube']; ?>"><i class="fab fa-youtube"></i></a> </li> <?php } ?> <?php if (!empty($options['orun-opt-social-linkedin']) && $options['orun-opt-social-linkedin-show'] == true) { ?> <li> <a rel="nofollow" href="<?php echo $options['orun-opt-social-linkedin']; ?>"><i class="fab fa-linkedin"></i></a> </li> <?php } ?> <?php if (!empty($options['orun-opt-social-tumblr']) && $options['orun-opt-social-tumblr-show'] == true) { ?> <li> <a rel="nofollow" href="<?php echo $options['orun-opt-social-tumblr']; ?>"><i class="fab fa-tumblr"></i></a> </li> <?php } ?> <?php if (!empty($options['orun-opt-social-tiktok']) && $options['orun-opt-social-tiktok-show'] == true) { ?> <li> <a rel="nofollow" href="<?php echo $options['orun-opt-social-tiktok']; ?>"><i class="fab fa-tiktok"></i></a> </li> <?php } ?> <?php if (!empty($options['orun-opt-social-telegram']) && $options['orun-opt-social-telegram-show'] == true) { ?> <li> <a rel="nofollow" href="<?php echo $options['orun-opt-social-telegram']; ?>"><i class="fab fa-telegram"></i></a> </li> <?php } ?> <?php if (!empty($options['orun-opt-social-whatsapp']) && $options['orun-opt-social-whatsapp-show'] == true) { ?> <li> <a rel="nofollow" href="<?php echo $options['orun-opt-social-whatsapp']; ?>"><i class="fab fa-whatsapp"></i></a> </li> <?php } ?> <?php if (!empty($options['orun-opt-social-snapchat']) && $options['orun-opt-social-snapchat-show'] == true) { ?> <li> <a rel="nofollow" href="<?php echo $options['orun-opt-social-snapchat']; ?>"><i class="fab fa-snapchat"></i></a> </li> <?php } ?> <?php if (!empty($options['orun-opt-social-twitch']) && $options['orun-opt-social-twitch-show'] == true) { ?> <li> <a rel="nofollow" href="<?php echo $options['orun-opt-social-twitch']; ?>"><i class="fab fa-twitch"></i></a> </li> <?php } ?> <?php if (!empty($options['orun-opt-social-medium']) && $options['orun-opt-social-medium-show'] == true) { ?> <li> <a rel="nofollow" href="<?php echo $options['orun-opt-social-medium']; ?>"><i class="fab fa-medium"></i></a> </li> <?php } ?> <?php if ($options['orun-opt-social-rss'] == true) { ?> <li> <a rel="nofollow" href="<?php if (!empty($options['orun-opt-social-rss-url'])) { echo $options['orun-opt-social-rss-url']; } else { bloginfo('rss_url'); } ?>"><i class="fa fa-rss"></i></a> </li> <?php } ?> </ul> </div> <?php } ?> <div class="logo"> <a class="logo-anchor" rel="nofollow" href="<?php echo esc_url(home_url('/')); ?>" title="<?php echo bloginfo('name'); ?>"> <?php if (!empty($options['orun-opt-logo']['url'])) { echo '<img style="max-height:65px;" class="orun-logo" src="' . esc_url($options['orun-opt-logo']['url']) . '" alt="' . $options['orun-opt-logo']['alt'] . '" title="' . $options['orun-opt-logo']['title'] . '" width="' . $options['orun-opt-logo-dim']['width'] . '" height="' . $options['orun-opt-logo-dim']['height'] . '">'; } else { bloginfo('name'); } if (!empty($options['orun-opt-dark-logo']['url'])) { echo '<img style="max-height:65px;" class="orun-dark-logo" src="' . esc_url($options['orun-opt-dark-logo']['url']) . '" alt="' . $options['orun-opt-dark-logo']['alt'] . '" title="' . $options['orun-opt-dark-logo']['title'] . '" width="' . $options['orun-opt-logo-dark-dim']['width'] . '" height="' . $options['orun-opt-logo-dark-dim']['height'] . '">'; } ?> </a> </div> <div class="navbar-top-nav"> <?php if (has_nav_menu('top-navbar-menu')) { wp_nav_menu( array( 'theme_location' => 'top-navbar-menu', 'container' => '', 'menu_class' => 'navbar-top-menu', 'walker' => new orun_Walker_Menu_Icon(), ) ); } if ($options['orun-opt-top-menu-date']) { ?> <i class="far fa-calendar-alt"></i> <span class="navbar-top-date"> <?php echo date_i18n('d F Y, l', false, false); ?> </span> <?php } ?> </div> </div> </div> </nav> <?php } ?> <div class="orun-main-navbar-wrapper"> <div class="<?= $full_width; ?>"> <div class="orun-main-navbar <?= $header . ' ' . $centered; ?>"> <?php if ($options['orun-opt-header-dark-button']): ?> <div class="orun-navbar-main-right"> <ul class="orun-navbar-buttons <?= $button; ?>"> <?php if ($options['orun-opt-header-dark-button']): ?> <div class="toggle-btn" id="theme-button"> <label> <input class='toggle-checkbox' type='checkbox'></input> <div class='toggle-slot' id="theme-button"> <div class='sun-icon-wrapper'> <div class="iconify sun-icon" data-icon="feather-sun" data-inline="false"></div> </div> <div class='toggle-button'></div> <div class='moon-icon-wrapper'> <div class="iconify moon-icon" data-icon="feather-moon" data-inline="false"></div> </div> </div> </label> </div> <?php endif; ?> </ul> </div> <?php endif; ?> <nav class="orun-navbar-main <?= $hover; ?>"> <?php if (has_nav_menu('main-navbar-menu')) { wp_nav_menu( array( 'theme_location' => 'main-navbar-menu', 'menu_class' => 'navbar-main-ul', 'container' => 'ul', 'walker' => new orun_Walker_Menu_Icon(), ) ); } ?> </nav> <?php if ($options['orun-opt-header-search-button'] || $options['orun-opt-header-dark-button'] || $options['orun-opt-header-mobile-menu-button']): ?> <div class="orun-navbar-main-right"> <ul class="orun-navbar-buttons <?= $button; ?>"> <?php if ($options['orun-opt-header-search-button']): ?> <li class="nav-button-item"> <i id="header-search-btn" class="fas fa-search"></i> <div id="navSearch"> <form action="<?php echo esc_url(home_url('/')); ?>" method="get"> <input class="search" type="text" size="40" name="s" id="s" placeholder="<?php _e('Arama yap...', 'orun'); ?>" value="<?php echo get_search_query(); ?>" /> <button type="submit" id="searchsubmit" value="<?php echo esc_attr('Search', 'orun'); ?>"><i class="fas fa-search"></i></button> </form> </div> </li> <?php if (function_exists('is_woocommerce')) { if ($options['orun-opt-header-user-button']) { ?> <a rel="nofollow" href="<?php echo get_permalink(get_option('woocommerce_myaccount_page_id')); ?>"> <li class="nav-button-item"> <i class="fas fa-user"></i> </li> </a> <?php } ?> <?php if ($options['orun-opt-header-cart-button']) { ?> <a rel="nofollow" href="<?php echo get_permalink(get_option('woocommerce_cart_page_id')); ?>"> <li class="nav-button-item"> <i class="fas fa-shopping-cart"></i> </li> </a> <?php } } ?> <?php endif; if ($options['orun-opt-header-mobile-menu-button']): ?> <li class="nav-button-item" onclick="mobileMenuFunction()"> <i class="fas fa-bars"></i> </li> <?php endif; ?> </ul> </div> <?php endif; ?> </div> </div> </div>