mobile home and friends
This commit is contained in:
119
loop-inner.php
119
loop-inner.php
@@ -1,16 +1,16 @@
|
||||
<!-- post thumbnail -->
|
||||
<?php if (has_post_thumbnail()): // Check if thumbnail exists
|
||||
if ($relatedloop === true): ?>
|
||||
<a class="related_thumbnailwrapper" href="<?php the_permalink();?>" title="<?php the_title();?>">
|
||||
<?php the_post_thumbnail('home-square-thumbnail');?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<a class="related_thumbnailwrapper" href="<?php the_permalink();?>" title="<?php the_title();?>">
|
||||
<?php the_post_thumbnail('home-square-thumbnail');?>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<a class="thumbnailwrapper" href="<?php the_permalink();?>" title="<?php the_title();?>">
|
||||
<?php if (is_home() and $qc < 3): ; //first two posts are big
|
||||
the_post_thumbnail('home-big-thumbnail');
|
||||
else:
|
||||
the_post_thumbnail('home-square-thumbnail');
|
||||
endif;?>
|
||||
the_post_thumbnail('home-big-thumbnail');
|
||||
else:
|
||||
the_post_thumbnail('home-square-thumbnail');
|
||||
endif;?>
|
||||
</a>
|
||||
<?php endif;?>
|
||||
<?php endif;?>
|
||||
@@ -18,66 +18,71 @@ endif;?>
|
||||
|
||||
|
||||
<div class="metadata">
|
||||
<div class="categories">
|
||||
<div class="categories">
|
||||
<?php
|
||||
$echos = [];
|
||||
foreach ((get_the_category()) as $category) {
|
||||
$echos[] = $category->name;
|
||||
}
|
||||
print implode(' | ', $echos);
|
||||
?>
|
||||
$echos = [];
|
||||
foreach ((get_the_category()) as $category) {
|
||||
$echos[] = $category->name;
|
||||
}
|
||||
print implode(' | ', $echos);
|
||||
?>
|
||||
|
||||
<?php if (is_home() and $qc < 3): ; //first two posts format only ?>
|
||||
<?php //get the post format
|
||||
$terms = get_the_terms($post->ID, 'Format');
|
||||
if ($terms && !is_wp_error($terms)) {
|
||||
foreach ($terms as $term) {
|
||||
echo '| ';
|
||||
echo $term->name;
|
||||
}
|
||||
}?>
|
||||
<?php endif;?>
|
||||
<?php //get the post format
|
||||
$terms = get_the_terms($post->ID, 'Format');
|
||||
if ($terms && !is_wp_error($terms)) {
|
||||
foreach ($terms as $term) {
|
||||
echo '| ';
|
||||
echo $term->name;
|
||||
}
|
||||
}?>
|
||||
<?php endif;?>
|
||||
</div><!-- categories end-->
|
||||
|
||||
<?php if (is_home() and $qc < 3): ; //first two posts subtitle and excerpt ?>
|
||||
<!-- <div class="alcimWrapper"> -->
|
||||
|
||||
|
||||
<div class="alcim">
|
||||
<?php
|
||||
$dis_alcim_value = get_post_meta(get_the_ID(), 'dis-alcim', true);
|
||||
// Check if the custom field has a value.
|
||||
if (!empty($dis_alcim_value)) {
|
||||
echo $dis_alcim_value;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<!-- </div> -->
|
||||
<?php endif;?>
|
||||
<div class="alcimWrapper">
|
||||
<div class="alcim">
|
||||
<div class="alcimInner">
|
||||
<?php
|
||||
$dis_alcim_value = get_post_meta(get_the_ID(), 'dis-alcim', true);
|
||||
// Check if the custom field has a value.
|
||||
if (!empty($dis_alcim_value)) {
|
||||
echo $dis_alcim_value;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<div class="vr"></div>
|
||||
<div class="postedon">
|
||||
'<?php the_time('y.m.d.');?>
|
||||
</div>
|
||||
<?php if (is_home() and $qc < 3): ; //first two posts subtitle and excerpt ?>
|
||||
<div class="bevezeto">
|
||||
<?php
|
||||
$dis_bevezeto_value = get_post_meta(get_the_ID(), 'dis-bevezeto', true);
|
||||
// Check if the custom field has a value.
|
||||
if (!empty($dis_bevezeto_value)) {
|
||||
echo $dis_bevezeto_value;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="bevezetoWrapper">
|
||||
<div class="bevezeto">
|
||||
<div class="bevezetoInner">
|
||||
<?php
|
||||
$dis_bevezeto_value = get_post_meta(get_the_ID(), 'dis-bevezeto', true);
|
||||
// Check if the custom field has a value.
|
||||
if (!empty($dis_bevezeto_value)) {
|
||||
echo $dis_bevezeto_value;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
|
||||
<div class="filler"></div>
|
||||
|
||||
<?php endif;?>
|
||||
<div class="filler"></div>
|
||||
<?php if (is_home() and $qc == 1): ; //first post on home ?>
|
||||
<div class="curvyArrow">
|
||||
<object data="<?php echo get_template_directory_uri(); ?>/img/curvy_arrow.svg"
|
||||
type="image/svg+xml">
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/curvy_arrow.png" />
|
||||
</object>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<?php if (is_home() and $qc == 1): ; //first post on home ?>
|
||||
<div class="curvyArrow">
|
||||
<object data="<?php echo get_template_directory_uri(); ?>/img/curvy_arrow.svg" type="image/svg+xml">
|
||||
<img src="<?php echo get_template_directory_uri(); ?>/img/curvy_arrow.png" />
|
||||
</object>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</div> <!-- metadata end -->
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user