Add viator-collector plugin (Hop On Hop Off front-end reskin)
Consolidate the plugin into the TourWebsite repository (its separate nested git repo has been removed). Includes the full new-design reskin: scoped design stylesheet, SVG icon sprite, rebuilt listing/single/section templates, and homepage hero/FAQ/testimonials shortcodes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J4hNL1PSHxXbu94SCenpKj
This commit is contained in:
25
viator-collector/templates/card-activity.php
Normal file
25
viator-collector/templates/card-activity.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Activity row (Browse By Activity). Args: $term (WP_Term).
|
||||
*/
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
if ( empty( $term ) || ! is_object( $term ) ) {
|
||||
return;
|
||||
}
|
||||
$link = get_term_link( $term );
|
||||
$link = is_wp_error( $link ) ? '#' : $link;
|
||||
$image = vc_term_image_url( $term->term_id, $term->taxonomy );
|
||||
$count = vc_term_tour_count( $term );
|
||||
?>
|
||||
<a class="vc-activity vc-reveal" href="<?php echo esc_url( $link ); ?>">
|
||||
<span class="vc-activity__thumb">
|
||||
<?php if ( $image ) : ?>
|
||||
<img src="<?php echo esc_url( $image ); ?>" alt="<?php echo esc_attr( $term->name ); ?>" loading="lazy">
|
||||
<?php else : ?>
|
||||
<span class="vc-activity__thumb-ph" aria-hidden="true"></span>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
<span class="vc-activity__name"><?php echo esc_html( $term->name ); ?></span>
|
||||
<?php if ( $count ) : ?><span class="vc-activity__count"><?php echo esc_html( number_format_i18n( $count ) ); ?></span><?php endif; ?>
|
||||
<span class="vc-activity__arrow" aria-hidden="true">›</span>
|
||||
</a>
|
||||
Reference in New Issue
Block a user