forked from NB-Public/jkb-childtheme
added files for said branch
This commit is contained in:
parent
1ca03fd14b
commit
13f6bc5203
8 changed files with 464 additions and 5 deletions
43
content-list-home-slider.php
Normal file
43
content-list-home-slider.php
Normal file
|
@ -0,0 +1,43 @@
|
|||
|
||||
<?php if ( has_post_thumbnail() ) {
|
||||
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );
|
||||
$url = $thumb['0']; ?>
|
||||
<div class="introbg background parallax-window fullpage" style="background-image:url(<?php echo $url ?>);" data-parallax="scroll" data-image-src="<?php echo $url ?>"></div>
|
||||
<div id="single-intro" style="background-image:url(<?php echo $url ?>);"></div>
|
||||
<?php } else { ?>
|
||||
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix inner'); ?> role="article">
|
||||
|
||||
|
||||
|
||||
|
||||
<header class="article-header">
|
||||
<?php $posttags = get_the_tags();
|
||||
$count=0;
|
||||
if ($posttags) {
|
||||
?><p class="subhead"><?php
|
||||
foreach($posttags as $tag) {
|
||||
$count++;
|
||||
if (1 == $count) {
|
||||
echo ''.$tag->name;
|
||||
}
|
||||
elseif ($count > 1) {
|
||||
echo ', '.$tag->name;
|
||||
}
|
||||
}
|
||||
?></p><?php
|
||||
}?>
|
||||
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
|
||||
</header>
|
||||
|
||||
|
||||
<section class="entry-content"><?php the_excerpt(); ?></section>
|
||||
|
||||
|
||||
</article>
|
||||
|
||||
|
Reference in a new issue