本文整理汇总了PHP中Tribe__Events__Template_Factory::setup_meta方法的典型用法代码示例。如果您正苦于以下问题:PHP Tribe__Events__Template_Factory::setup_meta方法的具体用法?PHP Tribe__Events__Template_Factory::setup_meta怎么用?PHP Tribe__Events__Template_Factory::setup_meta使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tribe__Events__Template_Factory
的用法示例。
在下文中一共展示了Tribe__Events__Template_Factory::setup_meta方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setup_meta
/**
* Setup meta display in this template
*
**/
public function setup_meta()
{
parent::setup_meta();
/**
* Setup default meta templates
* @var array
*/
$meta_template_keys = apply_filters('tribe_events_single_event_meta_template_keys', array('tribe_event_date', 'tribe_event_cost', 'tribe_event_category', 'tribe_event_tag', 'tribe_event_website', 'tribe_event_origin', 'tribe_event_venue_name', 'tribe_event_venue_phone', 'tribe_event_venue_address', 'tribe_event_venue_website', 'tribe_event_organizer_name', 'tribe_event_organizer_phone', 'tribe_event_organizer_email', 'tribe_event_organizer_website', 'tribe_event_custom_meta'));
$meta_templates = apply_filters('tribe_events_single_event_meta_templates', array('before' => '', 'after' => '', 'label_before' => '<dt>', 'label_after' => '</dt>', 'meta_before' => '<dd class="%s">', 'meta_after' => '</dd>'));
tribe_set_the_meta_template($meta_template_keys, $meta_templates);
/**
* Setup default meta group templates
* @var array
*/
$meta_group_template_keys = apply_filters('tribe_events_single_event_meta_group_template_keys', array('tribe_event_details', 'tribe_event_venue', 'tribe_event_organizer'));
$meta_group_templates = apply_filters('tribe_events_single_event_meta_group_templates', array('before' => '<div class="%s">', 'after' => '</div>', 'label_before' => '<h3 class="%s">', 'label_after' => '</h3>', 'meta_before' => '<dl>', 'meta_after' => '</dl>'));
tribe_set_the_meta_template($meta_group_template_keys, $meta_group_templates, 'meta_group');
}