Ejemplo n.º 1
0
<?php

/**
 * The template part for displaying the post content.
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package Rock
 */
$location_data = ctc_location_data();
$directions_url = $location_data['directions_url'];
$google_map = ctc_google_map(array('latitude' => $location_data['map_lat'], 'longitude' => $location_data['map_lng'], 'type' => $location_data['map_type'], 'zoom' => $location_data['map_zoom']));
if ($google_map) {
    ?>
	<div class="rock-event-full-map">
		<?php 
    echo $google_map;
    ?>
	</div>
<?php 
}
?>

<div class="entry-event-meta">

	<?php 
if ($directions_url) {
    ?>
		<div class="rock-event-full-direction">
			<a href="<?php 
    echo esc_url($directions_url);
Ejemplo n.º 2
0
    ?>
</a></h1>
			<ul class="ctc-widget-entry-meta ctc-clearfix">
				<?php 
    if ($instance['show_address'] && $address) {
        ?>
					<li class="ctc-locations-widget-entry-address">
						<?php 
        echo nl2br(esc_html($address));
        ?>
					</li>
				<?php 
    }
    ?>

				<?php 
    if ($instance['show_phone'] && $phone) {
        ?>
					<li class="ctc-locations-widget-entry-phone">
						<?php 
        echo esc_html($phone);
        ?>
					</li>
				<?php 
    }
    ?>

				<?php 
    if ($instance['show_times'] && $times) {
        ?>
					<li class="ctc-locations-widget-entry-times">