• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP tribe_set_the_meta_template函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: setup_meta

 /**
  * Setup meta display in this template
  *
  * @return void
  **/
 public function setup_meta()
 {
     // setup the template for the meta group
     tribe_set_the_meta_template('tribe_event_organizer', array('before' => '', 'after' => '', 'label_before' => '', 'label_after' => '', 'meta_before' => '<address class="organizer-address">', 'meta_after' => '</address>', 'meta_separator' => '<span class="tribe-events-divider">|</span>'), 'meta_group');
     // setup the template for the meta items
     tribe_set_the_meta_template(array('tribe_event_organizer_phone', 'tribe_event_organizer_email', 'tribe_event_organizer_website'), array('before' => '', 'after' => '', 'label_before' => '', 'label_after' => '', 'meta_before' => '<span class="%s">', 'meta_after' => '</span>'));
     // remove the title for the group & meta items
     tribe_set_meta_label('tribe_event_organizer', '', 'meta_group');
     tribe_set_meta_label(array('tribe_event_organizer_phone' => '', 'tribe_event_organizer_email' => '', 'tribe_event_organizer_website' => ''));
     // turn off the organizer name in the group
     tribe_set_the_meta_visibility('tribe_event_organizer_name', false);
 }
开发者ID:TravisSperry,项目名称:mpa_website,代码行数:17,代码来源:Single_Organizer.php


示例2: setup_meta

 /**
  * Setup meta display in this template
  *
  * @return void
  **/
 public function setup_meta()
 {
     parent::setup_meta();
     // setup the template for the meta group
     tribe_set_the_meta_template('tribe_event_venue', array('before' => '', 'after' => '', 'label_before' => '', 'label_after' => '', 'meta_before' => '<address class="venue-address">', 'meta_after' => '</address>'), 'meta_group');
     // setup the template for the meta items
     tribe_set_the_meta_template(array('tribe_event_venue_address', 'tribe_event_venue_phone', 'tribe_event_venue_website'), array('before' => '', 'after' => '', 'label_before' => '', 'label_after' => '', 'meta_before' => '<span class="%s">', 'meta_after' => '</span>'));
     // turn off the venue name in the group
     tribe_set_the_meta_visibility('tribe_event_venue_name', false);
     // remove the title for the group & meta items
     tribe_set_meta_label('tribe_event_venue', '', 'meta_group');
     tribe_set_meta_label(array('tribe_event_venue_address' => '', 'tribe_event_venue_phone' => '', 'tribe_event_venue_website' => ''));
     // set meta item priorities
     tribe_set_meta_priority(array('tribe_event_venue_address' => 10, 'tribe_event_venue_phone' => 20, 'tribe_event_venue_website' => 30));
     add_filter('tribe_event_meta_venue_address_gmap', '__return_false');
     // disable venue info from showing on list module (since it's duplicate of this view)
     tribe_set_the_meta_visibility('tribe_list_venue_name_address', false);
 }
开发者ID:TravisSperry,项目名称:mpa_website,代码行数:23,代码来源:Single_Venue.php


示例3: 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');
 }
开发者ID:partisan-collective,项目名称:partisan,代码行数:22,代码来源:Single_Event.php


示例4: setup_meta

 /**
  * Setup meta display in this template
  *
  * @return void
  * @since 3.0
  **/
 public function setup_meta()
 {
     // customize meta items
     tribe_set_the_meta_template('tribe_event_venue_name', array('before' => '', 'after' => '', 'label_before' => '', 'label_after' => '', 'meta_before' => '<span class="%s">', 'meta_after' => '</span>'));
     tribe_set_meta_label('tribe_event_venue_address', '');
     tribe_set_the_meta_template('tribe_event_venue_address', array('before' => '', 'after' => '', 'label_before' => '', 'label_after' => '', 'meta_before' => '', 'meta_after' => ''));
 }
开发者ID:TyRichards,项目名称:river_of_life,代码行数:13,代码来源:tribe-template-factory.class.php


示例5: tribe_set_the_meta_template

 /**
  * Set the template for the meta object.
  *
  * @param        $meta_id
  * @param array  $template
  * @param string $type
  *
  * @return bool
  */
 function tribe_set_the_meta_template($meta_id, $template = array(), $type = 'meta')
 {
     if (is_array($meta_id)) {
         foreach ($meta_id as $id) {
             tribe_set_the_meta_template($id, $template, $type);
         }
     } else {
         global $_tribe_meta_factory;
         // die silently if the requested meta group is not registered
         if (!Tribe__Events__Meta_Factory::check_exists($meta_id, $type)) {
             return false;
         }
         if (!empty($template)) {
             $_tribe_meta_factory->{$type}[$meta_id]['wrap'] = wp_parse_args($template, $_tribe_meta_factory->{$type}[$meta_id]['wrap']);
         }
     }
 }
开发者ID:TMBR,项目名称:johnjohn,代码行数:26,代码来源:meta.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP tribe_show_google_map_link函数代码示例发布时间:2022-05-23
下一篇:
PHP tribe_is_week函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap