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
33 lines
961 B
PHP
33 lines
961 B
PHP
<?php
|
|
/**
|
|
* Shared archive for Viator destination / tag / category terms.
|
|
* Reuses the same listing UI (filters, sort, pagination) as the main archive.
|
|
*/
|
|
defined( 'ABSPATH' ) || exit;
|
|
get_header();
|
|
|
|
$vc_term = get_queried_object();
|
|
$vc_name = ( $vc_term && ! is_wp_error( $vc_term ) ) ? $vc_term->name : __( 'Tours', 'viator-collector' );
|
|
$vc_desc = term_description();
|
|
?>
|
|
<main class="vc-app vc-listing vc-listing--term">
|
|
<?php
|
|
echo vc_get_template( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
|
'listing.php',
|
|
array(
|
|
'vc_title' => $vc_name,
|
|
/* translators: %s: term name. */
|
|
'vc_subtitle' => $vc_desc ? wp_strip_all_tags( $vc_desc ) : sprintf( __( 'Explore the best tours in %s.', 'viator-collector' ), $vc_name ),
|
|
'vc_crumb' => array(
|
|
array(
|
|
'label' => __( 'Tours', 'viator-collector' ),
|
|
'url' => get_post_type_archive_link( 'viator_tour' ),
|
|
),
|
|
),
|
|
)
|
|
);
|
|
?>
|
|
</main>
|
|
<?php
|
|
get_footer();
|