Yuzu Theme

from meowapps.com
This commit is contained in:
2022-05-03 09:37:05 +02:00
commit 523ccac38e
75 changed files with 15482 additions and 0 deletions

View 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>

View 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>

View 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>

View 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>

View 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>

View 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>