/**
  * Render the name of the venue (with the link).
  *
  * @deprecated since 3.6
  * @param string $html The current venue name.
  * @param string $meta_id The meta group this is in.
  * @return string The modified/linked venue name.
  * @author Timothy Wood
  * @since 3.0
  */
 public static function venue_name($html, $meta_id)
 {
     global $_tribe_meta_factory;
     $post_id = get_the_ID();
     $name = tribe_get_venue($post_id);
     $link = !empty($name) ? '<a href="' . tribe_get_venue_link($post_id, false) . '">' . $name . '</a>' : '';
     $html = empty($link) ? $html : Tribe_Meta_Factory::template($_tribe_meta_factory->meta[$meta_id]['label'], $link, $meta_id);
     return apply_filters('tribe_event_pro_meta_venue_name', $html, $meta_id);
 }
Exemplo n.º 2
0
            ?>
				<span class="tribe-events-divider">|</span>
					<span class="tribe-events-event-cost">
						<?php 
            echo tribe_get_cost(get_the_ID(), true);
            ?>
					</span>
				<?php 
        }
        ?>
			</li>
	<?php 
    }
    ?>
	</ul>
	<?php 
    do_action('tribe_events_venue_widget_after_the_list');
    ?>
	<?php 
}
?>
	
	<a href="<?php 
echo tribe_get_venue_link($venue_ID, false);
?>
"><?php 
_e('View All Events at this Venue', 'tribe-events-calendar');
?>
</a>
</div>
Exemplo n.º 3
0
echo $post->post_title;
?>
</a></h2>
		<?php 
if (tribe_get_cost()) {
    ?>
			<span class="tribe-mini-calendar-event-cost"><?php 
    echo tribe_get_cost(null, true);
    ?>
</span>
			<div class="tribe-events-divider ">|</div>
		<?php 
}
?>
		<?php 
echo tribe_events_event_schedule_details();
?>
		<?php 
if (tribe_get_venue()) {
    ?>
			<div class="tribe-mini-calendar-event-venue">
				<?php 
    echo tribe_get_venue_link($post->ID);
    ?>
			</div>
		<?php 
}
?>
	</div>
</div>
						<?php 
    } else {
        ?>
							<div class="time"><?php 
        _e('All Day', 'church-event');
        ?>
</div>
						<?php 
    }
    ?>
					<?php 
}
?>
					<?php 
if (class_exists('Tribe__Events__Pro__Templates__Single_Venue')) {
    tribe_get_venue_link($post->ID, true);
} else {
    echo tribe_get_venue($post->ID);
}
?>
					<br>
					<?php 
echo Tribe__Events__Main::instance()->fullAddress();
?>
				</div>
				<?php 
if (tribe_get_cost()) {
    ?>
					<div class="wpv-single-event-schedule-block cost">
						<?php 
    echo wpv_shortcode_icon(array('name' => 'exit3'));
Exemplo n.º 5
0
 *
 */
if (!defined('ABSPATH')) {
    die('-1');
}
?>

<h3 class="tribe_widget-title"><?php 
echo $title;
?>
</h3>
<div class="tribe-venue-widget-wrapper">
	<div class="tribe-venue-widget-venue">
		<div class="tribe-venue-widget-venue-name">
			<?php 
echo tribe_get_venue_link($venue_ID);
?>
		</div>
		<?php 
if (has_post_thumbnail($venue_ID)) {
    ?>
			<div class="tribe-venue-widget-thumbnail">
				<?php 
    echo get_the_post_thumbnail($venue_ID, 'related-event-thumbnail');
    ?>
			</div>
		<?php 
}
?>
		<div class="tribe-venue-widget-address">
			<?php 
Exemplo n.º 6
0
        }
        ?>
</div>
					<?php 
    } else {
        ?>
						<div><?php 
        _e('All Day', 'church-event');
        ?>
</div>
					<?php 
    }
    ?>
					<div>@ <?php 
    if (class_exists('Tribe__Events__Pro__Templates__Single_Venue')) {
        tribe_get_venue_link($event->ID, true);
    } else {
        echo tribe_get_venue($event->ID);
    }
    ?>
					</div>
				</div>
				<?php 
    if (!empty($read_more_text)) {
        ?>
					<a href="<?php 
        tribe_event_link($event);
        ?>
" title="<?php 
        esc_attr($read_more_text);
        ?>
Exemplo n.º 7
0
 /**
  * @deprecated
  */
 function tribe_get_venue_permalink($postId = null)
 {
     _deprecated_function(__FUNCTION__, '2.0.1', 'echo tribe_get_venue_link($postId,false)');
     return tribe_get_venue_link($postId, false);
 }
Exemplo n.º 8
0
					<?php 
        $venue = tribe_get_venue();
        if (!empty($venue)) {
            ?>
					<tr>
						<td class="tribe-events-event-meta-desc"><?php 
            _e('Venue:', 'tribe-events-calendar');
            ?>
</td>
						<td class="tribe-events-event-meta-value" itemprop="name">
							<?php 
            if (class_exists('TribeEventsPro')) {
                ?>
								<?php 
                tribe_get_venue_link(get_the_ID(), class_exists('TribeEventsPro'));
                ?>
							<?php 
            } else {
                ?>
								<?php 
                echo tribe_get_venue(get_the_ID());
                ?>
							<?php 
            }
            ?>
						</td>
					</tr>
					<?php 
        }
        ?>
Exemplo n.º 9
0
            ?>
						<span class="tribe-events-divider">|</span>
						<span class="tribe-events-event-cost">
						<?php 
            echo tribe_get_cost(get_the_ID(), true);
            ?>
					</span>
					<?php 
        }
        ?>
				</li>
			<?php 
    }
    ?>
		</ul>
		<?php 
    do_action('tribe_events_venue_widget_after_the_list');
    ?>
	<?php 
}
?>

	<a href="<?php 
echo esc_url(tribe_get_venue_link($venue_ID, false));
?>
"><?php 
printf(__('View all %1$s at this %2$s', 'tribe-events-calendar'), $events_label_plural, tribe_get_venue_label_singular());
?>
</a>
</div>
Exemplo n.º 10
0
		<div class="tribe-events-event-cost">
			<?php 
    echo tribe_get_cost(null, true);
    ?>
		</div>
	<?php 
}
?>
			
	<div class="vcard adr location">	

		<?php 
if ($venue && tribe_get_venue() != '') {
    ?>
			<span class="fn org tribe-venue"><?php 
    echo tribe_get_venue_link();
    ?>
</span> 
		<?php 
}
?>

		<?php 
if ($address && tribe_get_address() != '') {
    ?>
			<span class="street-address"><?php 
    echo tribe_get_address();
    ?>
</span>
		<?php 
}
Exemplo n.º 11
0
 /**
  * Process event calendar tags
  */
 private function process_the_events_calendar_tags($content)
 {
     if (!function_exists('tribe_get_start_date')) {
         return $content;
     }
     // The Events Calendar
     $event_date_format = get_option('date_format');
     $event_time_format = get_option('time_format');
     $event_all_day = get_post_meta(get_the_ID(), '_EventAllDay', true);
     $event_start_date = tribe_get_start_date(get_the_ID(), false, $event_date_format);
     $event_start_time = tribe_get_start_date(get_the_ID(), false, $event_time_format);
     $event_end_date = tribe_get_end_date(get_the_ID(), false, $event_date_format);
     $event_end_time = tribe_get_end_date(get_the_ID(), false, $event_time_format);
     $separator = apply_filters("metaslider_tribe_separator", " - ");
     if ($event_all_day) {
         if ($event_start_date == $event_end_date) {
             $event_string = $event_start_date;
         } else {
             $event_string = $event_start_date . $separator . $event_end_date;
         }
     } else {
         if ($event_start_date == $event_end_date) {
             $event_string = $event_start_date . " " . $event_start_time . $separator . $event_end_time;
         } else {
             $event_string = $event_start_date . $separator . $event_end_date;
         }
     }
     $content = str_replace("{event_date}", $event_string, $content);
     $content = str_replace("{event_start_date}", $event_start_date, $content);
     $content = str_replace("{event_start_time}", $event_start_time, $content);
     $content = str_replace("{event_end_time}", $event_end_time, $content);
     $content = str_replace("{event_end_date}", $event_end_date, $content);
     $content = str_replace("{event_address}", tribe_get_address(get_the_ID()), $content);
     $content = str_replace("{event_city}", tribe_get_city(get_the_ID()), $content);
     $content = str_replace("{event_country}", tribe_get_country(get_the_ID()), $content);
     $content = str_replace("{event_full_address}", tribe_get_full_address(get_the_ID()), $content);
     $content = str_replace("{event_phone}", tribe_get_phone(get_the_ID()), $content);
     $content = str_replace("{event_province}", tribe_get_province(get_the_ID()), $content);
     $content = str_replace("{event_region}", tribe_get_region(get_the_ID()), $content);
     $content = str_replace("{event_state}", tribe_get_state(get_the_ID()), $content);
     $content = str_replace("{event_stateprovince}", tribe_get_stateprovince(get_the_ID()), $content);
     $content = str_replace("{event_venue}", tribe_get_venue(get_the_ID()), $content);
     $content = str_replace("{event_venue_id}", tribe_get_venue_id(get_the_ID()), $content);
     $content = str_replace("{event_venue_link}", tribe_get_venue_link(get_the_ID(), false), $content);
     $content = str_replace("{event_zip}", tribe_get_zip(get_the_ID()), $content);
     return $content;
 }
Exemplo n.º 12
0
 /**
  * Gets the venue name and address on a single line
  *
  * @param int $event_id Event ID
  * @param boolean $link Whether or not to wrap the text in a venue link
  *
  * @return string
  */
 function tribe_get_venue_single_line_address($event_id, $link = true)
 {
     $venue = null;
     if (tribe_has_venue($event_id)) {
         $venue_id = tribe_get_venue_id($event_id);
         $venue_name = tribe_get_venue($event_id);
         $venue_url = tribe_get_venue_link($event_id, false);
         $venue_address = array('city' => tribe_get_city($event_id), 'stateprovince' => tribe_get_stateprovince($event_id), 'zip' => tribe_get_zip($event_id));
         /**
          * Filters the parts of a venue address
          *
          * @var array Array of address parts
          * @var int Event ID
          */
         $venue_address = apply_filters('tribe_events_venue_single_line_address_parts', $venue_address, $event_id);
         // get rid of blank elements
         $venue_address = array_filter($venue_address);
         $venue = $venue_name;
         $separator = _x(', ', 'Address separator', 'the-events-calendar');
         if ($venue_address) {
             $venue .= $separator . implode($separator, $venue_address);
         }
         if ($link && $venue_url) {
             $attr_title = the_title_attribute(array('post' => $venue_id, 'echo' => false));
             $venue = '<a href="' . esc_url($venue_url) . '" title="' . $attr_title . '">' . $venue . '</a>';
         }
     }
     /**
      * Filters the venue single-line address
      *
      * @var string Venue address line
      * @var int Event ID
      * @var boolean Whether or not the venue should be linked
      */
     return apply_filters('tribe_events_get_venue_single_line_address', $venue, $event_id, $link);
 }
<div id="tribe-events-event-<?php 
echo esc_attr($event->ID);
?>
" class="<?php 
tribe_events_event_classes($event->ID);
?>
 tribe-this-week-event" >

	<h2 class="entry-title summary">
		<a href="<?php 
echo esc_url(tribe_get_event_link($event->ID));
?>
" rel="bookmark"><?php 
echo esc_html($event->post_title);
?>
</a>
	</h2>

	<div class="duration">
	<?php 
echo tribe_events_event_schedule_details($event->ID);
?>

	</div>
	<div class="fn org tribe-venue">
		<?php 
echo tribe_get_venue_link($event->ID);
?>
	</div>

</div>
 /** @see $this->tribe_get_venue_link() */
 public function tribe_get_venue_url()
 {
     return tribe_get_venue_link(null, false);
 }