Yuzu Theme
from meowapps.com
This commit is contained in:
28
components/article-cards/large-article-card.php
Normal file
28
components/article-cards/large-article-card.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<div class="article-card-container large">
|
||||
<div class="article-card">
|
||||
<?php $featured_image = get_the_post_thumbnail_url(get_the_ID(),'large'); ?>
|
||||
<a href="<?= get_the_permalink(); ?>" class="article-featured-image" style="background-image: url(<?= $featured_image; ?>)"></a>
|
||||
<div class="article-meta">
|
||||
<div class="article-categories">
|
||||
<?php
|
||||
$post_categories = wp_get_post_categories( get_the_ID() );
|
||||
foreach($post_categories as $c){
|
||||
$cat = get_category( $c );
|
||||
?>
|
||||
<a href="<?= get_term_link($c); ?>" class="article-category">
|
||||
<?= $cat->name; ?>
|
||||
</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<a href="<?= get_the_permalink(); ?>" class="article-title"><?= get_the_title(); ?></a>
|
||||
<div class="article-excerpt">
|
||||
<?= get_the_excerpt(); ?>
|
||||
</div>
|
||||
<a href="<?= get_the_permalink(); ?>" class="read-more-btn">
|
||||
<?php _e('Read More', 'yuzu'); ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
28
components/article-cards/medium-article-card.php
Normal file
28
components/article-cards/medium-article-card.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<div class="article-card-container medium">
|
||||
<div class="article-card">
|
||||
<?php $featured_image = get_the_post_thumbnail_url(get_the_ID(),'large'); ?>
|
||||
<a href="<?= get_the_permalink(); ?>" class="article-featured-image" style="background-image: url(<?= $featured_image; ?>)"></a>
|
||||
<div class="article-meta">
|
||||
<div class="article-categories">
|
||||
<?php
|
||||
$post_categories = wp_get_post_categories( get_the_ID() );
|
||||
foreach($post_categories as $c){
|
||||
$cat = get_category( $c );
|
||||
?>
|
||||
<a href="<?= get_term_link($c); ?>" class="article-category">
|
||||
<?= $cat->name; ?>
|
||||
</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<a href="<?= get_the_permalink(); ?>" class="article-title"><?= get_the_title(); ?></a>
|
||||
<div class="article-excerpt">
|
||||
<?= get_the_excerpt(); ?>
|
||||
</div>
|
||||
<a href="<?= get_the_permalink(); ?>" class="read-more-btn">
|
||||
<?php _e('Read More', 'yuzu'); ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
28
components/article-cards/small-article-card.php
Normal file
28
components/article-cards/small-article-card.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<div class="article-card-container small">
|
||||
<div class="article-card">
|
||||
<?php $featured_image = get_the_post_thumbnail_url(get_the_ID(),'large'); ?>
|
||||
<a href="<?= get_the_permalink(); ?>" class="article-featured-image" style="background-image: url(<?= $featured_image; ?>)"></a>
|
||||
<div class="article-meta">
|
||||
<div class="article-categories">
|
||||
<?php
|
||||
$post_categories = wp_get_post_categories( get_the_ID() );
|
||||
foreach($post_categories as $c){
|
||||
$cat = get_category( $c );
|
||||
?>
|
||||
<a href="<?= get_term_link($c); ?>" class="article-category">
|
||||
<?= $cat->name; ?>
|
||||
</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<a href="<?= get_the_permalink(); ?>" class="article-title"><?= get_the_title(); ?></a>
|
||||
<div class="article-excerpt">
|
||||
<?= get_the_excerpt(); ?>
|
||||
</div>
|
||||
<a href="<?= get_the_permalink(); ?>" class="read-more-btn">
|
||||
<?php _e('Read More', 'yuzu'); ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
17
components/collection-card.php
Normal file
17
components/collection-card.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<div class="collection-card-container">
|
||||
<a href="<?= get_the_permalink( $collection['id'] ); ?>"
|
||||
class="collection-card <?= get_theme_mod('collection-card-header-ratio', 'three-two'); ?>">
|
||||
|
||||
<div class="background" style="background-image: url('<?= get_the_post_thumbnail_url($collection['id'],'large'); ?>')"></div>
|
||||
<div class="content">
|
||||
<h3>
|
||||
<?= $collection['name']; ?>
|
||||
</h3>
|
||||
<div class="collection-meta">
|
||||
<?php get_template_part('assets/icons/inline', 'camera.svg'); ?>
|
||||
<?= $collection['photos']; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</a>
|
||||
</div>
|
||||
19
components/folder-card.php
Normal file
19
components/folder-card.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
$featured_image = wp_get_attachment_image_src($folder['thumbnail_id'], 'large')[0];
|
||||
$term_object = get_term($folder['id']);
|
||||
?>
|
||||
|
||||
<div class="folder-card-container">
|
||||
<div class="folder-card">
|
||||
<div class="card-header">
|
||||
<a href="<?= get_term_link($term_object); ?>" class="background three-two" style="background-image: url('<?= $featured_image; ?>')"></a>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h3><a href="<?= get_term_link($term_object); ?>"><?= $folder['name']; ?></a></h3>
|
||||
<div class="folder-meta">
|
||||
<?php $collections_count = $folder['collections']; ?>
|
||||
<?php printf( esc_html( _n( '%d Collection', '%d Collections', $collections_count, 'yuzu' ) ), $folder['collections'] ); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
5
components/opaque-featured-image.php
Normal file
5
components/opaque-featured-image.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php $opacity_level = get_theme_mod('header_background_opacity', 'normal-opaque'); ?>
|
||||
<div class="opaque-featured-image-container">
|
||||
<div class="featured-image" style="background-image: url('<?= $featured_image; ?>');"></div>
|
||||
<div class="filter <?= $opacity_level; ?>"></div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user