File "header.php"
Full Path: /home/ozbarhaber/public_html/19052025___siteeee/wp-content/themes/anka/parts/header.php
File size: 2.54 KB
MIME-type: text/x-php
Charset: utf-8
<?php if(!defined('ABSPATH')) exit; ?>
<div id="header-cont">
<div class="innerContainer visible pad">
<div id="mobileHeader">
<div id="logo">
<?php if(is_home()) : $tag = "h1"; else : $tag = "span"; endif;?>
<?php echo "<$tag>"; ?>
<?php if(is_home()) echo '<span style="display:none">'.get_bloginfo("name").'</span>'; ?>
<?php safirLogo() ?>
<?php echo "</$tag>"; ?>
<div class="mobileButtons">
<?php if(safirShowElement("showLoginButton")) : $counter++; ?>
<?php if(is_user_logged_in()) : ?>
<div class="button loginButton">
<?php themeIcon("user") ?>
<?php themeIcon("close") ?>
</div>
<?php else : ?>
<a href="<?php echo get_page_link(xoption("membershipPage")) ?>" class="button loginButton"><?php themeIcon("user") ?></a>
<?php endif; ?>
<?php endif; ?>
<?php if(safirShowElement("showSearchButton")) : $counter++; ?>
<div class="button searchButton">
<?php themeIcon("search") ?>
</div>
<?php endif; ?>
<div class="button toggleMenu">
<?php themeIcon("list") ?>
</div>
</div>
<?php
if(safirShowElement("showLoginButton")):
include(get_template_directory() . "/parts/login-menu.php");
endif;
?>
<?php if(safirShowElement("showSearchButton")): ?>
<div class="mobileSearch">
<form method="get" class="safir-searchform" action="<?php bloginfo('url'); ?>">
<input type="text" autocomplete="off" name="s" value="<?php echo get_search_query() ? get_search_query() : _e("Arama yap...", "anka") ?>" onblur="if(this.value=='') this.value=this.defaultValue;" onfocus="if(this.value==this.defaultValue) this.value='';" />
<button type="submit"><?php themeIcon("search") ?></button>
</form>
<?php if($x = nl2br(xoption("searchTerms"))) : ?>
<div class="searchTerms">
<?php
$x = explode("<br />", $x);
$counter = 0;
if(is_array($x)) :
foreach($x as $item) {
$counter++;
?><span><?php echo $item ?></span><?php
}
endif;
?>
</div>
<?php endif; ?>
<div class="close"><?php themeIcon("close") ?></div>
</div>
<?php endif; ?>
</div>
<div class="rightGroup">
<?php if( safirShowElement("showCurrency") ) : ?>
<?php include(get_template_directory() . '/lib/safirtema/currency.php'); ?>
<?php endif;?>
<?php if( safirShowElement("showWeather") ) : ?>
<?php include(get_template_directory() . '/lib/safirtema/weather.php'); ?>
<?php endif;?>
</div>
</div>
</div>
</div>