本文整理汇总了PHP中tribe_get_event_categories函数的典型用法代码示例。如果您正苦于以下问题:PHP tribe_get_event_categories函数的具体用法?PHP tribe_get_event_categories怎么用?PHP tribe_get_event_categories使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tribe_get_event_categories函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: event_category
/**
* Get event categories
*
* @param int $meta_id
* @return array
*/
public static function event_category($meta_id)
{
global $_tribe_meta_factory;
$post_id = get_the_ID();
// setup classes in the template
$template = Tribe_Meta_Factory::embed_classes($_tribe_meta_factory->meta[$meta_id]['wrap'], $_tribe_meta_factory->meta[$meta_id]['classes']);
$args = array('before' => '', 'sep' => ', ', 'after' => '', 'label' => $_tribe_meta_factory->meta[$meta_id]['label'], 'label_before' => $template['label_before'], 'label_after' => $template['label_after'], 'wrap_before' => $template['meta_before'], 'wrap_after' => $template['meta_after']);
// Event categories
return apply_filters('tribe_event_meta_event_category', tribe_get_event_categories($post_id, $args));
}
开发者ID:jvcanote,项目名称:wp-the-events-calendar,代码行数:16,代码来源:meta.php
示例2: esc_html_e
?>
<dt> <?php
esc_html_e('Cost:', 'the-events-calendar');
?>
</dt>
<dd class="tribe-events-event-cost"> <?php
esc_html_e($cost);
?>
</dd>
<?php
}
?>
<?php
echo tribe_get_event_categories(get_the_id(), array('before' => '', 'sep' => ', ', 'after' => '', 'label' => null, 'label_before' => '<dt>', 'label_after' => '</dt>', 'wrap_before' => '<dd class="tribe-events-event-categories">', 'wrap_after' => '</dd>'));
?>
<?php
echo tribe_meta_event_tags(sprintf(__('%s Tags:', 'the-events-calendar'), tribe_get_event_label_singular()), ', ', false);
?>
<?php
// Event Website
if (!empty($website)) {
?>
<dt> <?php
esc_html_e('Website:', 'the-events-calendar');
?>
</dt>
开发者ID:mattholsen,项目名称:caseylab,代码行数:31,代码来源:details.php
示例3: _e
<div class="event-details-item">
<span class="icon-info"><?php
_e('Cost:', 'vh');
?>
</span>
<div class="tribe-events-abbr tribe-events-event-cost"> <?php
esc_html_e(tribe_get_formatted_cost());
?>
</div>
</div>
<?php
}
?>
<?php
echo tribe_get_event_categories(get_the_id(), array('before' => '', 'sep' => ', ', 'after' => '', 'label' => null, 'label_before' => '<div class="event-details-item"><span class="icon-info">', 'label_after' => '</span>', 'wrap_before' => '<div class="tribe-events-abbr tribe-events-event-categories">', 'wrap_after' => '</div></div>'));
?>
<?php
$list = get_the_term_list(get_the_ID(), 'post_tag', '<div class="event-details-item"><span class="icon-info">' . __('Event tags:', 'vh') . '</span><div class="tribe-events-abbr tribe-event-tags">', ', ', '</div></div>');
$label = $separator = '';
$echo = true;
$list = apply_filters('tribe_meta_event_tags', $list, $label, $separator, $echo);
echo $list;
?>
<?php
$website = tribe_get_event_website_link();
if (!empty($website)) {
?>
<div class="event-details-item">
开发者ID:chicosilva,项目名称:olharambiental,代码行数:31,代码来源:details+(1).php
示例4: tribe_meta_event_cats
/**
* @deprecated
*/
function tribe_meta_event_cats($label = null, $separator = null)
{
_deprecated_function(__FUNCTION__, '3.0', 'tribe_get_event_categories( $post_id, $args )');
$args = array('before' => '<dd class="tribe-event-categories">', 'sep' => ', ', 'after' => '</dd>', 'label' => __('Category', 'tribe-events-calendar'), 'label_before' => '<dt>', 'label_after' => '</dt>', 'wrap_before' => '', 'wrap_after' => '');
echo apply_filters('tribe_meta_event_cats', tribe_get_event_categories(get_the_ID(), $args));
}
开发者ID:brooklyntri,项目名称:btc-plugins,代码行数:9,代码来源:deprecated.php
示例5: _e
<li>
<span> <?php
_e('Cost:', GRVE_THEME_TRANSLATE);
?>
</span>
<div class="grve-tribe-events-event-cost"> <?php
esc_html_e(tribe_get_formatted_cost());
?>
</div>
</li>
<?php
}
?>
<?php
echo tribe_get_event_categories(get_the_id(), array('before' => '', 'sep' => ', ', 'after' => '', 'label' => null, 'label_before' => '<li><span>', 'label_after' => '</span>', 'wrap_before' => '<div class="grve-tribe-events-event-categories">', 'wrap_after' => '</div></li>'));
?>
<?php
echo grve_tribe_meta_event_tags(__('Event Tags:', GRVE_THEME_TRANSLATE), ', ', false);
?>
<?php
$website = tribe_get_event_website_link();
if (!empty($website)) {
?>
<li>
<span> <?php
_e('Website:', GRVE_THEME_TRANSLATE);
?>
</span>
开发者ID:poweronio,项目名称:mbsite,代码行数:31,代码来源:details.php
示例6: esc_attr
?>
<div class="tribe-events-event-meta vcard">
<div class="author <?php
echo esc_attr($has_venue_address);
?>
">
<!-- Schedule & Recurrence Details -->
<div class="updated published time-details">
<?php
echo tribe_events_event_schedule_details();
?>
</div>
</div>
<?php
$cats = tribe_get_event_categories(get_the_id(), array('before' => '', 'sep' => '<i class="fa fa-folder-open"></i>', 'after' => '', 'label' => '', 'label_before' => '', 'label_after' => '', 'wrap_before' => '<div class="tribe-events-list-categories ' . $cat_slug . '"> | <i class="fa fa-folder-open"></i>', 'wrap_after' => '</div>'));
echo str_replace(':', '', $cats);
?>
</div><!-- .tribe-events-event-meta -->
<?php
do_action('tribe_events_after_the_meta');
?>
<!-- Event Content -->
<?php
do_action('tribe_events_before_the_content');
?>
<div class="tribe-events-list-event-description tribe-events-content description entry-summary">
<?php
the_excerpt();
开发者ID:CityOfPrescott,项目名称:sandbox_tabula-rasa,代码行数:31,代码来源:single-event.php
示例7: foreach
<div class="bar">
<p><i class="icon-star"></i> DENOTES CLUB RACE</p>
</div>
<fieldset class="info-form">
<legend class="hidden">roster form</legend>
<ul class="info-list">
<?php
$form_set = false;
foreach ($get_posts as $post) {
setup_postdata($post);
$registrants = get_btc_participants(1, $post->ID);
$btcers = count($registrants);
// count_btc_registrants(1, $post->ID);
$event_link = tribe_get_event_website_link();
$categories = tribe_get_event_categories($post->ID);
$categories = strip_tags($categories, '<a><li>');
$categories = explode('<li>', $categories);
unset($categories[0]);
?>
<li><!-- class="active" -->
<?php
/* <input type="checkbox" title="checkbox" checked> */
?>
<a class="opener" href="#">
<div class="col">
<h2><?php
echo is_club_race($categories) ? '<i class="icon-star"></i>' : '';
?>
<?php
开发者ID:rpavlovic,项目名称:btc-site,代码行数:31,代码来源:content-roster.php
示例8: the_title
if ($curuser->ID == $tribe_events_inst3) {
$my_status = $tribe_events_inst3_stat;
}
}
}
?>
<tr class="list-<?php
echo $tribe_events_status;
?>
">
<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);
?>
开发者ID:csteines,项目名称:Complete-Training-Plugin,代码行数:31,代码来源:template-class-list.php
注:本文中的tribe_get_event_categories函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论