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
10 lines
378 B
PHP
10 lines
378 B
PHP
<?php
|
|
defined( 'ABSPATH' ) || exit;
|
|
$post_id = isset( $post_id ) ? absint( $post_id ) : get_the_ID();
|
|
$url = get_post_meta( $post_id, '_vc_booking_url', true );
|
|
if ( ! $url ) {
|
|
return;
|
|
}
|
|
?>
|
|
<a class="vc-booking-button" href="<?php echo esc_url( $url ); ?>" target="_blank" rel="nofollow sponsored noopener"><?php echo esc_html__( 'Book this tour', 'viator-collector' ); ?></a>
|