当前位置: 首页>>代码示例>>PHP>>正文


PHP tribe_get_venue_link函数代码示例

本文整理汇总了PHP中tribe_get_venue_link函数的典型用法代码示例。如果您正苦于以下问题:PHP tribe_get_venue_link函数的具体用法?PHP tribe_get_venue_link怎么用?PHP tribe_get_venue_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了tribe_get_venue_link函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: venue_name

 /**
  * 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);
 }
开发者ID:pellio11,项目名称:ns-select-project,代码行数:19,代码来源:SingleEventMeta.php

示例2: tribe_get_cost

            ?>
				<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>
开发者ID:pellio11,项目名称:ns-select-project,代码行数:30,代码来源:venue-widget.php

示例3: tribe_get_cost

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>
开发者ID:donwea,项目名称:nhap.org,代码行数:30,代码来源:single-event.php

示例4: _e

						<?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'));
开发者ID:petrfaitl,项目名称:wordpress-event-theme,代码行数:31,代码来源:single-event-media.php

示例5: die

 *
 */
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 
开发者ID:TyRichards,项目名称:river_of_life,代码行数:31,代码来源:venue-widget.php

示例6: _e

        }
        ?>
</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);
        ?>
开发者ID:petrfaitl,项目名称:wordpress-event-theme,代码行数:31,代码来源:multiple.php

示例7: tribe_get_venue_permalink

 /**
  * @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);
 }
开发者ID:brooklyntri,项目名称:btc-plugins,代码行数:8,代码来源:deprecated.php

示例8: tribe_get_venue

					<?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 
        }
        ?>
开发者ID:sonijoy,项目名称:my_repo,代码行数:30,代码来源:list.php

示例9: tribe_get_cost

            ?>
						<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>
开发者ID:TravisSperry,项目名称:mpa_website,代码行数:30,代码来源:venue-widget.php

示例10: tribe_get_cost

		<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 
}
开发者ID:TravisSperry,项目名称:mpa_website,代码行数:31,代码来源:list-widget.php

示例11: process_the_events_calendar_tags

 /**
  * 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;
 }
开发者ID:aguidetta,项目名称:Enduris,代码行数:50,代码来源:slide.php

示例12: tribe_get_venue_single_line_address

 /**
  * 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);
 }
开发者ID:nullify005,项目名称:shcc-website,代码行数:44,代码来源:venue.php

示例13: esc_attr

<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>
开发者ID:acutedeveloper,项目名称:havering-intranet-development,代码行数:31,代码来源:single-event.php

示例14: tribe_get_venue_url

 /** @see $this->tribe_get_venue_link() */
 public function tribe_get_venue_url()
 {
     return tribe_get_venue_link(null, false);
 }
开发者ID:michael-pratt,项目名称:event-rocket,代码行数:5,代码来源:inline-templates-events.php


注:本文中的tribe_get_venue_link函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。