Example #1
0
 /**
  * Render the name of the organizer (with the link).
  *
  * @param string $html The current organizer name.
  * @param string $meta_id The meta group this is in.
  * @return string The modified/linked organizer name.
  * @author Timothy Wood
  * @since 3.0
  */
 public static function organizer_name($html, $meta_id)
 {
     global $_tribe_meta_factory;
     $post_id = get_the_ID();
     $name = tribe_get_organizer_link($post_id, true, false);
     $html = empty($name) ? $html : Tribe_Meta_Factory::template($_tribe_meta_factory->meta[$meta_id]['label'], $name, $meta_id);
     return apply_filters('tribe_event_pro_meta_organizer_name', $html, $meta_id);
 }
Example #2
0
 /**
  * @deprecated
  */
 function tribe_get_organizer_website($postId = null)
 {
     _deprecated_function(__FUNCTION__, '2.0.1', 'echo tribe_get_organizer_link($postId,false)');
     $output = tribe_get_organizer_link($postId, false);
     return apply_filters('tribe_get_organizer_website', $output);
 }
Example #3
0
}
?>

		<?php 
tribe_meta_event_cats('Topic');
?>
		
		<?php 
if (tribe_get_organizer_link(get_the_ID(), false, false)) {
    ?>
			<dt class="event-label event-label-organizer"><?php 
    _e('Organizer:', 'tribe-events-calendar');
    ?>
</dt>
			<dd class="vcard author event-meta event-meta-author"><span class="fn url"><?php 
    echo tribe_get_organizer_link();
    ?>
</span></dd>
		<?php 
} elseif (tribe_get_organizer()) {
    ?>
			<dt class="event-label event-label-organizer"><?php 
    _e('Organizer:', 'tribe-events-calendar');
    ?>
</dt>
			<dd class="vcard author event-meta event-meta-author"><span class="fn url"><?php 
    echo tribe_get_organizer();
    ?>
</span></dd>
		<?php 
}
</h3>
	<dl>
		<?php 
do_action('tribe_events_single_meta_organizer_section_start');
foreach ($organizer_ids as $organizer) {
    if (!$organizer) {
        continue;
    }
    ?>
			<dt style="display:none;"><?php 
    // This element is just to make sure we have a valid HTML
    ?>
</dt>
			<dd class="tribe-organizer">
				<?php 
    echo tribe_get_organizer_link($organizer);
    ?>
			</dd>
			<?php 
}
if (!$multiple) {
    // only show organizer details if there is one
    if (!empty($phone)) {
        ?>
				<dt>
					<?php 
        esc_html_e('Phone:', 'the-events-calendar');
        ?>
				</dt>
				<dd class="tribe-organizer-tel">
					<?php 
 public function tribe_get_organizer_url()
 {
     return tribe_get_organizer_link(null, false, false);
 }
			<?php 
if (isset($organizer) && $organizer && !empty($organizer_ids)) {
    ?>
				<span class="tribe-events-organizer">
					<?php 
    echo tribe_get_organizer_label(!$multiple_organizers);
    ?>
:
					<?php 
    $organizer_links = array();
    foreach ($organizer_ids as $organizer_id) {
        if (!$organizer_id) {
            continue;
        }
        $organizer_links[] = tribe_get_organizer_link($organizer_id, true);
    }
    // end foreach
    $and = _x('and', 'list separator for final two elements', 'tribe-events-calendar-pro');
    if (1 == count($organizer_links)) {
        echo $organizer_links[0];
    } elseif (2 == count($organizer_links)) {
        echo $organizer_links[0] . ' ' . esc_html($and) . ' ' . $organizer_links[1];
    } else {
        $last_organizer = array_pop($organizer_links);
        echo implode(', ', $organizer_links);
        echo esc_html(', ' . $and . ' ');
        echo $last_organizer;
    }
    // end else
    ?>