Example #1
0
		
	</header>

<div class="entry">
<?php 
$content = get_the_content();
$content = strip_tags($content);
if ($categories[0]->cat_ID != 1) {
    if ($categories[0]->cat_ID != 8) {
        if ($categories[0]->cat_ID != 7) {
            echo substr($content, 0, 255);
        }
    }
}
?>
…<div style="float:right;"><a href="<?php 
the_permalink();
?>
" rel="bookmark" title="Permanent Link to <?php 
the_title_attribute();
?>
"><br>
<?php 
printf("%s %s", get_related_translation('Read More'), '...');
?>
</a></div>
</div>
</div>
	</div>
	<hr class="col-center-hr"/>
</article>
Example #2
0
} else {
    echo get_term_by('slug', 'contact-us', 'post_tag')->name;
}
?>
</div>
                <?php 
show_contact_sidebar();
?>
             </div>
        </div>
		<?php 
if (is_page('careers') || is_page('careers-am')) {
    ?>
			<div class="corner">
				<div class="empty-posts"><?php 
    get_related_translation('Vacancies');
    ?>
</div>
				<?php 
    getVacancies();
    ?>
			</div>
		<?php 
}
?>
    </div>
	<?php 
?>
<?php/* comments_template(); */?>

</div>
Example #3
0
<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 &#8216;<?php single_cat_title(); ?>&#8217; Category</h1> */
        ?>
			<?php 
Example #4
0
<div id="system">
<?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);