Removes cards view mode from theme as it will be a component given by plugin
This commit is contained in:
parent
ec6e4a325b
commit
3bc41f8a59
|
@ -1,51 +0,0 @@
|
|||
.tainacan-cards-container {
|
||||
min-height: 200px;
|
||||
padding: 30px 4.166666667%;
|
||||
|
||||
.tainacan-card {
|
||||
padding: 12px 44px 24px 44px;
|
||||
|
||||
img {
|
||||
width: 130px;
|
||||
height: auto;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.metadata-title {
|
||||
flex-shrink: 0;
|
||||
font-size: 0.875rem;
|
||||
margin-bottom: 0.875rem;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
.media {
|
||||
.media-body {
|
||||
flex: 1;
|
||||
font-size: 0.6875rem;
|
||||
color: gray;
|
||||
overflow: hidden;
|
||||
|
||||
.metadata-label {
|
||||
font-size: 0.75rem;
|
||||
line-height: 1.0;
|
||||
margin-bottom: 0.2rem;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.metadata-value {
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -201,8 +201,6 @@ form{
|
|||
|
||||
@import "_footer";
|
||||
|
||||
@import "_view-mode-cards.scss";
|
||||
|
||||
@import "_view-mode-grid.scss";
|
||||
|
||||
@import "_view-mode-mosaic.scss";
|
||||
|
|
|
@ -54,12 +54,6 @@ if(!function_exists('tainacan_setup')) {
|
|||
add_theme_support( 'custom-logo', $logo_args );
|
||||
|
||||
if (function_exists('tainacan_register_view_mode')) {
|
||||
tainacan_register_view_mode('cards', [
|
||||
'label' => 'Cards view',
|
||||
'description' => 'A cards view, flexible for metadata',
|
||||
'icon' => '<span class="icon"><i class="mdi mdi-view-list mdi-24px"></i></span>',
|
||||
'dynamic_metadata' => true,
|
||||
]);
|
||||
tainacan_register_view_mode('grid', [
|
||||
'label' => 'Grid view',
|
||||
'description' => 'A grid view',
|
||||
|
|
|
@ -1,41 +0,0 @@
|
|||
<?php if (have_posts()): ?>
|
||||
|
||||
<div class="tainacan-cards-container">
|
||||
|
||||
<div class="row no-gutters">
|
||||
<?php while (have_posts()): the_post(); ?>
|
||||
<div class="col col-md-12 col-lg-6 col-xl-4">
|
||||
<div class="tainacan-card">
|
||||
|
||||
<?php if ( tainacan_current_view_displays('title') ): ?>
|
||||
<p class="metadata-title">
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
<?php the_title(); ?>
|
||||
</a>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="media">
|
||||
|
||||
<?php if ( tainacan_current_view_displays('thumbnail') ): ?>
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
<?php the_post_thumbnail('medium_large', array('class' => 'mr-4')); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="list-metadata media-body">
|
||||
<?php tainacan_the_metadata(array('metadata__in' => $displayed_metadata, 'exclude_title' => true, 'before_title' => '<h3 class="metadata-label">', 'before_value' => '<p class="metadata-value">')); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endwhile; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php else: ?>
|
||||
<div class="tainacan-cards-container">
|
||||
Nenhum item encontrado
|
||||
</div>
|
||||
<?php endif; ?>
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
<?php if ( tainacan_current_view_displays('thumbnail') ): ?>
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
<?php the_post_thumbnail('medium', array('class' => 'mr-4')); ?>
|
||||
<?php the_post_thumbnail('thumbnail', array('class' => 'mr-4')); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue