<div class="corner"> <h2><?php get_related_translation('Recent Researchs'); ?> </h2> <?php getCornerPosts('recent', 'Research', 2); ?> </div> <div class="corner"> <h2><?php get_related_translation('Recent Events'); ?> </h2> <?php getCornerPosts('recent', 'Events', 2); ?> </div> </div> <div class="col-center"> <?php if (have_posts()) { ?> <?php while (have_posts()) { the_post(); ?> <article class="item">
<div id="system"> <div class="cols"> <div class="col-left"> <div class="corner"> <h2><?php get_related_translation('Breaking News'); ?> </h2> <?php if (substr(get_the_archive_title(), 10) == the_related_translation('News')) { $cornerPosts = the_related_translation('Research'); } else { $cornerPosts = the_related_translation('News'); } getCornerPosts('recent', $cornerPosts, 4); //getCornerPosts('recent', get_the_category()->name, 4); ?> </div> </div> <div class="col-center"> <?php if (have_posts()) { ?> <?php if (is_category()) { ?> <?php /* <h1 class="page-title">Archive for the ‘<?php single_cat_title(); ?>’ Category</h1> */ ?> <?php
global $post; if (have_posts()) { ?> <?php while (have_posts()) { the_post(); ?> <div class="cols"> <div class="col-left"> <div class="corner"> <h2><?php get_related_translation('Related Posts'); ?> </h2> <?php getCornerPosts($post->ID, 'tags', 4); ?> </div> </div> <div class="col-center"> <?php //var_dump($post); // var_dump(wp_get_post_tags($post->ID)); ?> <?php //if(is_page('research') || is_page('hetazotutyun')) $categories = get_the_category($post->ID); if ($categories[0]->slug == 'research' || $categories[0]->slug == 'research-am') { ?>