Merge pull request #4266 from gregory-p/wordpress

LAW-3617
This commit is contained in:
bivis
2020-09-18 15:00:06 +03:00
committed by GitHub

View File

@@ -14,14 +14,25 @@
<div class="blog-body">
<div class="cont">
<div class="blog-info">
<div class="blog-date">September 7, 2020</div>
<div class="blog-tags">Edtech, Online teaching, Education</div>
<div class="blog-date"><?=get_the_date(); ?></div>
<div class="blog-tags"><?php
$tags = get_the_tags();
$tag_links = [];
if($tags) {
foreach ($tags as $tag) {
$tag_link = get_tag_link($tag->term_id);
$tag_links[] = "<a href='{$tag_link}' title='{$tag->name}' class='{$tag->slug}'>{$tag->name}</a>";
}
}
?>
<?=implode(', ', $tag_links); ?>
</div>
</div>
<div class="blog-page-social">
<div class="left">
<a href="#" class="social twitter"></a>
<a href="#" class="social linkedin"></a>
<a href="#" class="social facebook"></a>
<a href="https://twitter.com/intent/tweet?text=<?php the_permalink(); ?>" class="social twitter" target="_blank"></a>
<a href="https://www.linkedin.com/sharing/share-offsite/?url=<?php the_permalink(); ?>" class="social linkedin" target="_blank"></a>
<a href="https://www.facebook.com/sharer/sharer.php?u=#url" class="social facebook" target="_blank"></a>
</div>
</div>
<?=get_the_content(null,false, $post); ?>
@@ -31,24 +42,23 @@
<div class="rn-head">What you may want to read next...</div>
<div class="rn-body">
<div class="cont">
<a class="rn-block">
<div class="text">
<span class="head">Develop an action plan</span>
Before starting, ask yourself a clear question: "What environment do I want to foster for my class?" Its important to communicate with your students to learn what makes things most ...
</div>
</a>
<a class="rn-block">
<div class="text">
<span class="head">Develop an action plan</span>
Before starting, ask yourself a clear question: "What environment do I want to foster for my class?" Its important to communicate with your students to learn what makes things most ...
</div>
</a>
<a class="rn-block">
<div class="text">
<span class="head">Develop an action plan</span>
Before starting, ask yourself a clear question: "What environment do I want to foster for my class?" Its important to communicate with your students to learn what makes things most ...
</div>
</a>
<?php
global $post;
$myposts = get_posts(['numberposts' => 3, 'orderby' => 'rand']);
if($myposts):
foreach ( $myposts as $post ) :
setup_postdata( $post ); ?>
<a class="rn-block" href="<?php the_permalink(); ?>">
<div class="text">
<span class="head"><?php the_title(); ?></span>
Before starting, ask yourself a clear question: "What environment do I want to foster for my class?" Its important to communicate with your students to learn what makes things most ...
</div>
</a>
<?php
endforeach;
endif;
wp_reset_postdata();
?>
</div>
</div>
</div>