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:
13
viator-collector/templates/duration.php
Normal file
13
viator-collector/templates/duration.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
$post_id = isset( $post_id ) ? absint( $post_id ) : get_the_ID();
|
||||
$text = get_post_meta( $post_id, '_vc_duration_text', true );
|
||||
$minutes = absint( get_post_meta( $post_id, '_vc_duration_minutes', true ) );
|
||||
if ( ! $text && ! $minutes ) {
|
||||
return;
|
||||
}
|
||||
if ( ! $text && $minutes ) {
|
||||
$text = sprintf( _n( '%d minute', '%d minutes', $minutes, 'viator-collector' ), $minutes );
|
||||
}
|
||||
?>
|
||||
<p class="vc-duration"><?php echo esc_html__( 'Duration: ', 'viator-collector' ) . esc_html( $text ); ?></p>
|
||||
Reference in New Issue
Block a user