2023-07-02 01:26:59 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Partial: Bookmark Template
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Fictioneer
|
|
|
|
* @since 5.4.5
|
2024-05-15 11:35:14 +02:00
|
|
|
* @since 5.18.0 - Added 'seamless' and 'thumbnail' params.
|
2023-07-02 01:26:59 +02:00
|
|
|
*/
|
|
|
|
|
2023-08-20 20:21:48 +02:00
|
|
|
|
|
|
|
// No direct access!
|
|
|
|
defined( 'ABSPATH' ) OR exit;
|
|
|
|
|
2024-05-14 18:40:52 +02:00
|
|
|
// Setup
|
|
|
|
$card_image_style = get_theme_mod( 'card_image_style', 'default' );
|
|
|
|
|
|
|
|
// Extra classes
|
|
|
|
$card_classes = [];
|
|
|
|
|
|
|
|
if ( $card_image_style !== 'default' ) {
|
|
|
|
$card_classes[] = '_' . $card_image_style;
|
|
|
|
}
|
|
|
|
|
2024-05-15 11:35:14 +02:00
|
|
|
if ( $args['seamless'] ?? 0 ) {
|
|
|
|
$card_classes[] = '_seamless';
|
|
|
|
}
|
|
|
|
|
2023-08-20 20:21:48 +02:00
|
|
|
?>
|
|
|
|
|
2023-07-02 01:26:59 +02:00
|
|
|
<template class="bookmark-small-card-template">
|
2024-05-14 18:40:52 +02:00
|
|
|
<li class="card _small bookmark-card _no-footer <?php echo implode( ' ', $card_classes ); ?>" data-color>
|
2023-07-02 01:26:59 +02:00
|
|
|
<div class="card__body polygon">
|
|
|
|
<div class="bookmark-card__progress"></div>
|
|
|
|
<div class="card__main _grid _small _relative-z1">
|
2024-05-15 11:35:14 +02:00
|
|
|
<?php if ( $args['thumbnail'] ?? 1 ) : ?>
|
2024-05-14 18:40:52 +02:00
|
|
|
<a href="" class="card__image cell-img bookmark-card__image" <?php echo fictioneer_get_lightbox_attribute(); ?>><img src="" class="no-auto-lightbox"></a>
|
|
|
|
<?php endif; ?>
|
2023-07-02 01:26:59 +02:00
|
|
|
<h3 class="card__title _with-delete _small cell-title bookmark-card__title"><a href="" class="truncate _1-1"></a></h3>
|
|
|
|
<div class="card__content bookmark-card__meta _small cell-meta">
|
|
|
|
<i class="fa-solid fa-bookmark"></i>
|
|
|
|
<span class="bookmark-card__percentage"></span>
|
|
|
|
<i class="fa-solid fa-calendar-days"></i>
|
|
|
|
<time></time>
|
|
|
|
</div>
|
2024-01-19 22:24:08 +01:00
|
|
|
<div class="card__content _small cell-desc bookmark-card__excerpt truncate _cq-2-3"></div>
|
2023-07-02 01:26:59 +02:00
|
|
|
</div>
|
2024-12-06 17:38:32 +01:00
|
|
|
<button class="card__delete button-delete-bookmark" data-action="click->fictioneer-bookmarks#remove"><i class="fa-solid fa-trash-can"></i></button>
|
2023-07-02 01:26:59 +02:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</template>
|