File "aside.php"
Full Path: /home/ozbarhaber/public_html/wp-content/themes/anka/profile/aside.php
File size: 2.28 KB
MIME-type: text/x-php
Charset: utf-8
<?php if(!defined('ABSPATH')) exit; ?>
<?php
global $widgetPlace;
global $activeMenu;
$widgetPlace = "sidebar";
$current_user = wp_get_current_user();
$authorID = $current_user->ID;
$authorName = get_the_author_meta( 'first_name', $authorID ) . ' ' . get_the_author_meta( 'last_name', $authorID );
if(!$authorName) $authorName = get_the_author_meta( 'display_name', $authorID );
$authorMail = get_the_author_meta( 'user_email', $authorID );
$authorLogin = get_the_author_meta( 'user_login', $authorID );
$authorSite = get_the_author_meta( 'user_url', $authorID );
global $wpdb;
$image = safir_get_author_image($authorID);
if($image == "") {
$image = get_template_directory_uri() . "/images/noauthor.png";
}
?>
<aside id="aside" class="profile">
<div class="thumb avatar">
<div class="image">
<a href="<?php echo get_permalink(xoption('profilePage')) ?>">
<div class="safirthumb square">
<div class="center">
<img src="<?php echo $image; ?>" width="150" height="150" />
</div>
</div>
</a>
</div>
<div class="name"><?php echo $authorName; ?></div>
</div>
<div class="userMenu">
<ul>
<li>
<a href="<?php echo get_permalink(xoption('profilePage')) ?>">
<?php themeIcon("user") ?>
<div class="title"><?php _e("Profilimi Düzenle", "anka"); ?></div>
</a>
</li>
<li>
<?php if(xoption('postsPage')) : ?>
<a href="<?php echo get_permalink(xoption('postsPage')) ?>">
<?php themeIcon("list") ?>
<div class="title"><?php _e("İçerik Yönetimi", "anka"); ?></div>
</a>
<?php endif; ?>
</li>
<li>
<?php if(xoption('addPostsPage')) : ?>
<a href="<?php echo get_permalink(xoption('addPostsPage')) ?>">
<?php themeIcon("addnew") ?>
<div class="title"><?php _e("İçerik Ekle", "anka"); ?></div>
</a>
<?php endif; ?>
</li>
<li>
<a href="<?php echo get_author_posts_url($authorID) ?>">
<?php themeIcon("pen") ?>
<div class="title"><?php _e("Yazar Sayfam", "anka"); ?></div>
</a>
</li>
<li>
<a class="logout" href="<?php echo wp_logout_url(home_url()) ?>">
<?php themeIcon("logout") ?>
<div class="title"><?php _e("Güvenli Çıkış Yap", "anka"); ?></div>
</a>
</li>
</ul>
</div>
</aside>