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:
23
viator-collector/templates/inclusions.php
Normal file
23
viator-collector/templates/inclusions.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
$post_id = isset( $post_id ) ? absint( $post_id ) : get_the_ID();
|
||||
$items = vc_json_decode_meta( get_post_meta( $post_id, '_vc_inclusions', true ), array() );
|
||||
$rows = array();
|
||||
foreach ( (array) $items as $item ) {
|
||||
$text = vc_feature_text( $item );
|
||||
if ( '' !== $text ) {
|
||||
$rows[] = $text;
|
||||
}
|
||||
}
|
||||
if ( empty( $rows ) ) {
|
||||
return;
|
||||
}
|
||||
?>
|
||||
<section class="vc-block vc-reveal vc-inclusions">
|
||||
<h2><?php echo esc_html__( "What's included", 'viator-collector' ); ?></h2>
|
||||
<ul class="vc-features">
|
||||
<?php foreach ( $rows as $row ) : ?>
|
||||
<li class="vc-feature vc-feature--inc"><span class="vc-feature__icon" aria-hidden="true"></span><span><?php echo esc_html( $row ); ?></span></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</section>
|
||||
Reference in New Issue
Block a user