本文整理汇总了PHP中tribe_get_map_link函数的典型用法代码示例。如果您正苦于以下问题:PHP tribe_get_map_link函数的具体用法?PHP tribe_get_map_link怎么用?PHP tribe_get_map_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tribe_get_map_link函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: block_tribe_event_output
//.........这里部分代码省略.........
</h2>
<!-- Event Image -->
<div class="tribe-events-event-image">
<?php
if (has_post_thumbnail($event_ID) && get_post(get_post_thumbnail_id($event_ID))) {
$post_thumbnail_src = wp_get_attachment_image_src(get_post_thumbnail_id($event_ID), 'full');
printf('<a href="%s" title="%s"><img src="%s" title="%s"/></a>', esc_url(tribe_get_event_link($event_ID)), esc_attr(get_the_title($event_ID)), esc_url($post_thumbnail_src[0]), esc_attr(get_the_title($event_ID)));
}
?>
</div>
<!-- Event Meta -->
<div class="tribe-events-event-meta vcard location">
<!-- Schedule & Recurrence Details -->
<div class="updated published time-details">
<?php
printf('<span class="date-start dtstart">%s</span>', esc_attr(tribe_get_start_date($event_ID)));
?>
</div>
<!-- Venue Display Info -->
<div class="tribe-events-venue-details">
<span class="author fn org"><?php
echo tribe_get_venue($event_ID);
?>
</span>,
<address class="tribe-events-address">
<span class="adr">
<span class="street-address"><?php
echo tribe_get_address($event_ID);
?>
</span>
<span class="delimiter">,</span>
<span class="locality"><?php
echo tribe_get_city($event_ID);
?>
</span>
<span class="delimiter">,</span>
<span class="postal-code"><?php
echo tribe_get_zip($event_ID);
?>
</span>
<span class="country-name"><?php
echo tribe_get_country($event_ID);
?>
</span>
</span>
</address>
<?php
printf('<a class="tribe-events-gmap" href="%s" title="Click to view a Google Map" target="_blank">- Google Map</a>', esc_url(tribe_get_map_link($event_ID)));
?>
</div> <!-- .tribe-events-venue-details -->
</div><!-- .tribe-events-event-meta -->
<!-- Event Content -->
<div class="tribe-events-list-event-description tribe-events-content description entry-summary">
<?php
$event_excerpt = !empty($event->post_excerpt) ? do_shortcode($event->post_excerpt) : mb_make_excerpt($event->post_content, $default_excerpt_length, true);
// excerpt
echo "<p>";
echo $event_excerpt;
echo "</p>";
// read more
printf('<a href="%s" class="tribe-events-read-more" rel="bookmark">%s »</a>', esc_url(tribe_get_event_link($event_ID)), esc_attr(__('Find out more', "loc_sport_core_plugin")));
?>
</div><!-- .tribe-events-list-event-description -->
</div>
</div>
<!-- end main-content -->
</div>
<!-- end main wrapper -->
</div>
<!-- end main-container -->
</div>
<!-- end outter-wrapper -->
<!-- END BLOCK -->
<?php
return true;
}
开发者ID:jameymcelveen,项目名称:com.flyingtigersrc.www,代码行数:101,代码来源:block_tribe_event_output.php
示例2: gmap_link
/**
* Get the venue map link
*
* @deprecated since 3.6 use tribe_get_map_link_html() instead
* @return string
*/
public static function gmap_link()
{
$link = sprintf('<a class="tribe-events-gmap" href="%s" title="%s" target="_blank">%s</a>', tribe_get_map_link(), __('Click to view a Google Map', 'tribe-events-calendar'), __('+ Google Map', 'tribe-events-calendar'));
return apply_filters('tribe_event_meta_gmap_link', $link);
}
开发者ID:jvcanote,项目名称:wp-the-events-calendar,代码行数:11,代码来源:meta.php
示例3: dt_sc_events
function dt_sc_events($atts, $content = null)
{
if (!function_exists('dt_events_list') && dttheme_is_plugin_active('the-events-calendar/the-events-calendar.php')) {
extract(shortcode_atts(array('limit' => '-1', 'carousel' => ''), $atts));
global $post;
$out = '';
$firstcnt = 2;
$post_thumbnail = 'blogcourse-three-column';
$tpl_default_settings = get_post_meta(get_the_ID(), '_tpl_default_settings', TRUE);
$tpl_default_settings = is_array($tpl_default_settings) ? $tpl_default_settings : array();
$page_layout = array_key_exists("layout", $tpl_default_settings) ? $tpl_default_settings['layout'] : "content-full-width";
if ($page_layout == 'with-left-sidebar' || $page_layout == 'with-right-sidebar') {
$post_thumbnail .= '-single-sidebar';
} elseif ($page_layout == 'both-sidebar') {
$post_thumbnail .= '-both-sidebar';
}
if ($carousel == 'true') {
$html_tag = 'li';
} else {
$html_tag = 'div';
}
$all_events = tribe_get_events(array('eventDisplay' => 'all', 'posts_per_page' => $limit));
$cnt = 0;
foreach ($all_events as $post) {
setup_postdata($post);
$temp_class = $firstcls = '';
if ($carousel != 'true') {
$no = $cnt + 1;
if ($no % $firstcnt == 1) {
$firstcls = ' first';
}
}
$out .= '<' . $html_tag . ' class="dt-sc-one-half column ' . $firstcls . '" id="post-' . get_the_ID() . '">';
$out .= '<div class="dt-sc-event-container">';
$out .= '<div class="dt-sc-event-thumb">';
$out .= '<a href="' . get_permalink() . '" title="' . get_the_title() . '">';
if (has_post_thumbnail()) {
$attr = array('title' => get_the_title());
$out .= get_the_post_thumbnail($post->ID, $post_thumbnail, $attr);
} else {
$out .= '<img src="http://placehold.it/1170x895&text=Image" alt="' . get_the_title() . '" />';
}
$out .= '</a>';
if (tribe_get_cost($post->ID) != '') {
$currency_symbol = tribe_get_event_meta($post->ID, '_EventCurrencySymbol', true);
if (!$currency_symbol) {
$currency_symbol = tribe_get_option('defaultCurrencySymbol', '$');
}
$currency_position = tribe_get_event_meta($post->ID, '_EventCurrencyPosition', true);
$out .= '<span class="event-price">';
if ($currency_position == 'suffix') {
$out .= tribe_get_cost($post->ID) . $currency_symbol;
} else {
$out .= $currency_symbol . tribe_get_cost($post->ID);
}
$out .= '</span>';
}
$out .= '</div>';
$out .= '<div class="dt-sc-event-content">';
$out .= '<h2><a href="' . get_permalink() . '">' . get_the_title() . '</a></h2>';
$out .= '<div class="dt-sc-event-meta">';
$out .= '<p> <i class="fa fa-calendar-o"> </i>' . tribe_get_start_date($post->ID, false, 'M Y @ h a') . ' - ' . tribe_get_end_date($post->ID, false, 'M Y @ h a') . ' </p>';
$venue_id = tribe_get_venue_id($post->ID);
if (isset($venue_id) && $venue_id > 0) {
$url = esc_url(get_permalink($venue_id));
$venue_name = tribe_get_venue($post->ID);
$out .= '<p> <i class="fa fa-map-marker"> </i>';
$out .= '<a href="' . $url . '">' . $venue_name . '</a>';
$out .= ', ' . tribe_get_country($post->ID);
if (tribe_get_map_link() != '') {
$out .= '<a href="' . tribe_get_map_link() . '" title="' . $venue_name . '" target="_blank">' . __(' + Google Map ', 'dt_themes') . '</a>';
}
$out .= '</p>';
}
$out .= '</div>';
$out .= '</div>';
$out .= '</div>';
$out .= '</' . $html_tag . '>';
$cnt++;
}
if ($carousel == 'true') {
return '<div class="dt-sc-events-carousel-wrapper"><ul class="dt-sc-events-carousel">' . $out . '</ul><div class="carousel-arrows"><a class="events-prev" href=""></a><a class="events-next" href=""></a></div></div>';
} else {
return $out;
}
} else {
return '';
}
}
开发者ID:enlacee,项目名称:anb.platicom.com.pe,代码行数:89,代码来源:shortcodes.php
示例4: tribe_get_full_address
<span style="color:#0a0a0e !important; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size:15px;"><?php
echo $venue_phone;
?>
</span>
</td>
</tr>
</table>
</div>
<?php
$venue_address = tribe_get_full_address();
?>
<div class="tribe-events-meta-group tribe-events-meta-group-details" id="tribe-events-inst-meta-bottom">
<?php
$map = "http://maps.googleapis.com/maps/api/staticmap?key=AIzaSyBWJnZ6_W8nuF4gTP0Q104-Ubo46uaJEZ4¢er=" . urlencode(strip_tags($venue_address)) . "&zoom=14&size=600x200&markers=color:red%7C" . urlencode(strip_tags($venue_address));
?>
<a href="<?php
tribe_get_map_link($post_id);
?>
" style="max-width: 100%;"><img src="<?php
echo $map;
?>
" alt="<?php
echo tribe_get_venue();
?>
" style="margin:auto; width:100%;"></a>
</div>
</div><!-- #tribe-events-content -->
开发者ID:csteines,项目名称:Complete-Training-Plugin,代码行数:27,代码来源:inst-notifications-body.php
示例5: _e
<?php
}
?>
<?php
if (tribe_address_exists(get_the_ID())) {
?>
<tr>
<td class="tribe-events-event-meta-desc"><?php
_e('Address:', 'tribe-events-calendar');
?>
<br />
<?php
if (get_post_meta(get_the_ID(), '_EventShowMapLink', true) == 'true') {
?>
<a class="gmap" itemprop="maps" href="<?php
echo tribe_get_map_link();
?>
" title="Click to view a Google Map" target="_blank"><?php
_e('Google Map', 'tribe-events-calendar');
?>
</a>
<?php
}
?>
</td>
<td class="tribe-events-event-meta-value"><?php
echo tribe_get_full_address(get_the_ID());
?>
</td>
</tr>
<?php
开发者ID:sonijoy,项目名称:my_repo,代码行数:31,代码来源:list.php
示例6: tribe_the_map_link
/**
* @deprecated
*/
function tribe_the_map_link($postId = null)
{
_deprecated_function(__FUNCTION__, '2.0.1', 'echo tribe_get_map_link()');
echo tribe_get_map_link($postId);
}
开发者ID:brooklyntri,项目名称:btc-plugins,代码行数:8,代码来源:deprecated.php
示例7: widget
//.........这里部分代码省略.........
</span>
</div>
<!-- Event Title -->
<h2 class="tribe-events-list-event-title summary">
<?php
printf('<a class="url" href="%s" title="%s" rel="bookmark">%s</a>', esc_url(tribe_get_event_link($event_ID)), esc_attr(get_the_title($event_ID)), esc_attr(get_the_title($event_ID)));
?>
</h2>
<!-- Event Image -->
<div class="tribe-events-event-image">
<?php
if (has_post_thumbnail($event_ID) && get_post(get_post_thumbnail_id($event_ID))) {
$post_thumbnail_src = wp_get_attachment_image_src(get_post_thumbnail_id($event_ID), 'full');
printf('<a href="%s" title="%s"><img src="%s" title="%s"/></a>', esc_url(tribe_get_event_link($event_ID)), esc_attr(get_the_title($event_ID)), esc_url($post_thumbnail_src[0]), esc_attr(get_the_title($event_ID)));
}
?>
</div>
<!-- Event Meta -->
<div class="tribe-events-event-meta vcard location">
<!-- Schedule & Recurrence Details -->
<div class="updated published time-details">
<?php
printf('<span class="date-start dtstart">%s</span>', esc_attr(tribe_get_start_date($event_ID)));
?>
</div>
<!-- Venue Display Info -->
<div class="tribe-events-venue-details">
<span class="author fn org"><?php
echo tribe_get_venue($event_ID);
?>
</span>,
<address class="tribe-events-address">
<span class="adr">
<span class="street-address"><?php
echo tribe_get_address($event_ID);
?>
</span>
<span class="delimiter">,</span>
<span class="locality"><?php
echo tribe_get_city($event_ID);
?>
</span>
<span class="delimiter">,</span>
<span class="postal-code"><?php
echo tribe_get_zip($event_ID);
?>
</span>
<span class="country-name"><?php
echo tribe_get_country($event_ID);
?>
</span>
</span>
</address>
<?php
printf('<a class="tribe-events-gmap" href="%s" title="Click to view a Google Map" target="_blank">- Google Map</a>', esc_url(tribe_get_map_link($event_ID)));
?>
</div> <!-- .tribe-events-venue-details -->
</div><!-- .tribe-events-event-meta -->
<!-- Event Content -->
<div class="tribe-events-list-event-description tribe-events-content description entry-summary">
<?php
$event_excerpt = !empty($event->post_excerpt) ? do_shortcode($event->post_excerpt) : mb_make_excerpt($event->post_content, $excerpt_length, true);
// excerpt
echo "<p>";
echo $event_excerpt;
echo "</p>";
// read more
printf('<a href="%s" class="tribe-events-read-more" rel="bookmark">%s »</a>', esc_url(tribe_get_event_link($event_ID)), esc_attr(__('Find out more', "loc_sport_widgets_plugin")));
?>
</div><!-- .tribe-events-list-event-description -->
</div>
<?php
echo $after_widget;
?>
<?php
}
开发者ID:jameymcelveen,项目名称:com.flyingtigersrc.www,代码行数:101,代码来源:widget_sport_single_event.php
示例8: tribe_get_map_link_html
/**
* Returns a formed HTML link to Google Maps for the given event.
*
* @category Events
*
* @param string $postId
*
* @return string A fully qualified link to http://maps.google.com/ for this event
*/
function tribe_get_map_link_html($postId = null)
{
$link = sprintf('<a class="tribe-events-gmap" href="%s" title="%s" target="_blank">%s</a>', esc_url(tribe_get_map_link($postId)), __('Click to view a Google Map', 'tribe-events-calendar'), __('+ Google Map', 'tribe-events-calendar'));
// @todo remove tribe_event_meta_gmap_link in 3.7
return apply_filters('tribe_get_map_link_html', apply_filters('tribe_event_meta_gmap_link', $link));
}
开发者ID:NallelyFlores89,项目名称:cronica-ambiental,代码行数:15,代码来源:google-map.php
示例9: tribe_get_full_address
<span style="color:#0a0a0e !important; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size:15px;"><?php
echo $venue_phone;
?>
</span>
</td>
</tr>
</table>
</div>
<?php
$venue_address = tribe_get_full_address($event_id);
?>
<div class="tribe-events-meta-group tribe-events-meta-group-details" id="tribe-events-inst-meta-bottom">
<?php
$map = "http://maps.googleapis.com/maps/api/staticmap?key=AIzaSyBWJnZ6_W8nuF4gTP0Q104-Ubo46uaJEZ4¢er=" . urlencode(strip_tags($venue_address)) . "&zoom=14&size=600x200&markers=color:red%7C" . urlencode(strip_tags($venue_address));
?>
<a href="<?php
tribe_get_map_link($event_id);
?>
" style="max-width: 100%;"><img src="<?php
echo $map;
?>
" alt="<?php
echo tribe_get_venue($event_id);
?>
" style="margin:auto; width:100%;"></a>
</div>
</div><!-- #tribe-events-content -->
开发者ID:csteines,项目名称:Complete-Training-Plugin,代码行数:27,代码来源:new-inst-notifications-body.php
示例10: tribe_events_event_schedule_details
<div class="tribe-event-schedule-details">
<?php
echo tribe_events_event_schedule_details();
?>
</div>
<?php
if ($venue_details) {
?>
<!-- Venue Display Info -->
<div class="tribe-events-venue-details">
<?php
echo implode(', ', $venue_details);
?>
<?php
if (tribe_get_map_link()) {
echo tribe_get_map_link_html();
}
?>
</div> <!-- .tribe-events-venue-details -->
<?php
}
?>
</div>
</div><!-- .tribe-events-event-meta -->
<?php
do_action('tribe_events_after_the_meta');
?>
<!-- Event Image -->
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:31,代码来源:single-event.php
示例11: the_title
?>
">
<td><?php
the_title();
?>
</td>
<td><?php
echo str_replace('http//', '//', str_replace(':', '', tribe_get_event_categories($postid, $catargs)));
?>
</td>
<td><?php
echo tribe_get_start_date($postid, true);
?>
</td>
<td><a href="<?php
echo tribe_get_map_link($postid);
?>
" target="_blank"><?php
echo tribe_get_venue($postid);
?>
<br/><?php
echo tribe_get_full_address($postid, false);
?>
</a></td>
<td>
<?php
echo ucwords($tribe_events_status);
if ($tribe_events_status != "cancelled") {
?>
<br>
<?php
开发者ID:csteines,项目名称:Complete-Training-Plugin,代码行数:31,代码来源:template-class-list.php
注:本文中的tribe_get_map_link函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论