<?php if(!defined('ABSPATH')) exit; ?> <?php $metas = xoption("meta"); if(in_category(xoption("resmiilanCategory"))) $metas = ["resmiilandate", "fontsize"]; if( is_array($metas) ) : ?> <div class="metaBox"> <div class="safirMetas"> <div class="metas"> <?php foreach($metas as $meta) { switch ($meta) { case 'category': ?> <div class="meta category"><?php themeIcon("list") ?><?php safirCategoryMeta(); ?></div> <?php break; case 'resmiilandate': ?> <div class="meta date"> <?php themeIcon("calendar") ?> <?php the_time("d.m.Y H:i"); ?> </div> <?php break; case 'date': ?> <div class="meta date"> <?php themeIcon("calendar") ?> <?php the_time(get_option("date_format") . " " . get_option("time_format")); ?> <?php if(in_array("update", $metas) && get_the_modified_time() != get_the_time()) : ?> | <?php _e("Son Güncellenme", "anka") ?>: <?php the_modified_time(get_option("date_format") . " " . get_option("time_format")) ?> <?php endif; ?> </div> <?php break; case 'author': ?> <div class="meta author"><?php themeIcon("user") ?><?php echo the_author_posts_link() ?></div> <?php break; case 'hit': ?> <div class="meta hit" data-id="<?php echo get_the_ID() ?>"> <?php themeIcon("hit") ?> <span class="count" > <?php $postHit = get_post_meta(get_the_ID(), "hit", true); if ($postHit == NULL) { $postHit = 0; } echo number_format($postHit, 0, '', '.'); ?> </span> </div> <?php break; case 'comment': ?> <div class="meta comment"> <?php themeIcon("comment") ?> <a href="<?php the_permalink(); ?>#comments" rel="nofollow"> <?php comments_number("0", "1", "%"); ?></a> </div> <?php break; } } ?> </div> </div> <?php if(in_array("fontsize", $metas)) : ?> <div class="sizing-buttons"> <div class="sizing fontplus">A<sup>+</sup></div> <div class="sizing fontminus">A<sup>-</sup></div> </div> <?php endif; ?> </div> <?php endif; ?>