mirror of
https://github.com/KevinMidboe/rohnenedre.git
synced 2026-02-12 04:19:17 +00:00
Initial commit. State 04.2021.
This commit is contained in:
27
wp-content/themes/professional/content-grid2.php
Normal file
27
wp-content/themes/professional/content-grid2.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Professional
|
||||
*/
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class('col-md-6 col-sm-6 grid2'); ?>>
|
||||
|
||||
<div class="featured-thumb col-md-6">
|
||||
<?php if (has_post_thumbnail()) : ?>
|
||||
<a href="<?php the_permalink() ?>" title="<?php the_title() ?>"><?php the_post_thumbnail('grid2'); ?></a>
|
||||
<?php else: ?>
|
||||
<a href="<?php the_permalink() ?>" title="<?php the_title() ?>"><img src="<?php echo get_template_directory_uri()."/assets/images/placeholder2.jpg"; ?>"></a>
|
||||
<?php endif; ?>
|
||||
</div><!--.featured-thumb-->
|
||||
|
||||
<div class="out-thumb col-md-6">
|
||||
<header class="entry-header">
|
||||
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
|
||||
<div class="entry-excerpt"><?php echo substr(get_the_excerpt(),0,200)."..."; ?></div>
|
||||
<div class="readmore"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php _e('Read More...','professional') ?></a></div>
|
||||
</header><!-- .entry-header -->
|
||||
</div><!--.out-thumb-->
|
||||
|
||||
|
||||
|
||||
</article><!-- #post-## -->
|
||||
Reference in New Issue
Block a user