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

PHP tribe_event_featured_image函数代码示例

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

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



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

示例1: implode

				<?php 
    echo implode(', ', $venue_details);
    ?>
			</div> <!-- .tribe-events-venue-details -->
		<?php 
}
?>

	</div>
</div><!-- .tribe-events-event-meta -->
<?php 
do_action('tribe_events_after_the_meta');
?>

<!-- Event Image -->
<?php 
echo tribe_event_featured_image(null, 'medium');
?>

<!-- Event Content -->
<?php 
do_action('tribe_events_before_the_content');
?>
<div class="tribe-events-list-event-description tribe-events-content">
	<?php 
echo tribe_events_get_the_excerpt();
?>

</div><!-- .tribe-events-list-event-description -->
<?php 
do_action('tribe_events_after_the_content');
开发者ID:AC85,项目名称:musikschule-wp-theme,代码行数:31,代码来源:single-event.php


示例2: die

 * List View Single Event
 * This file contains one event in the list view
 *
 * Override this template in your own theme by creating a file at [your-theme]/tribe-events/list/single-event.php
 *
 * @package TribeEventsCalendar
 * @since  3.0
 * @author Modern Tribe Inc.
 *
 */
if (!defined('ABSPATH')) {
    die('-1');
}
global $post;
$postconfig = get_post_meta(get_the_ID(), 'wpo_postconfig', true);
$featured_image = tribe_event_featured_image(null, 'thumbnails-medium');
$start = strtotime($post->EventStartDate);
$image_url = wp_get_attachment_url(get_post_thumbnail_id($post->ID));
$style = 'background-image: url(\'' . $image_url . '\')';
?>

<div class="wpo-event-inner">
   <div class="height-group small-event-header clearfix <?php 
if (empty($featured_image)) {
    echo 'no-image';
}
?>
" style="<?php 
echo trim($style);
?>
">
开发者ID:morganloehr,项目名称:chris-verna,代码行数:31,代码来源:single-tab.php


示例3: implode

			<?php 
    echo implode(', ', $venue_details);
    ?>
		</div> <!-- .tribe-events-venue-details -->
	<?php 
}
?>

</div><!-- .tribe-events-event-meta -->
<?php 
do_action('tribe_events_after_the_meta');
?>

<!-- Event Image -->
<?php 
echo tribe_event_featured_image(null, 'gallery-threecol');
?>

<!-- Event Content -->
<?php 
do_action('tribe_events_before_the_content');
?>
<div class="tribe-events-list-event-description tribe-events-content description entry-summary">
	<?php 
echo tribe_events_get_the_excerpt();
?>
	<div class="dt-sc-hr-invisible-small"></div>
    <div class="dt-sc-clear"></div>
	<a href="<?php 
echo tribe_get_event_link();
?>
开发者ID:h3rodev,项目名称:sometheme,代码行数:31,代码来源:single-event.php


示例4: setup_postdata

        setup_postdata($post);
        ?>
			<li class="tribe-events-list-widget-events <?php 
        tribe_events_event_classes();
        ?>
 box-cate">

				<?php 
        do_action('tribe_events_list_widget_before_the_event_title');
        ?>
				<!-- Event Time -->
				<?php 
        do_action('tribe_events_list_widget_before_the_meta');
        ?>
				<?php 
        echo tribe_event_featured_image();
        ?>
				<div class="tribe-event-duration">
					<?php 
        echo tribe_events_event_schedule_details();
        ?>
				</div>

				<?php 
        do_action('tribe_events_list_widget_after_the_meta');
        ?>
				<!-- Event Title -->
				<h4 class="tribe-event-title a-black">
					<a href="<?php 
        echo esc_url(tribe_get_event_link());
        ?>
开发者ID:vanthanh1501,项目名称:OzDuhoc,代码行数:31,代码来源:list-widget.php


示例5: die

 * Override this template in your own theme by creating a file at [your-theme]/tribe-events/day/single-event.php
 *
 * @package TribeEventsCalendar
 *
 */
if (!defined('ABSPATH')) {
    die('-1');
}
$venue_details = tribe_get_venue_details();
// Venue microformats
$has_venue = $venue_details ? ' vcard' : '';
$has_venue_address = !empty($venue_details['address']) ? ' location' : '';
?>
<!-- Event Image -->
<?php 
echo tribe_event_featured_image(null, 'list-thumb');
?>

<!-- Event Cost -->
<?php 
if (tribe_get_cost()) {
    ?>
	<div class="tribe-events-event-cost">
		<span><?php 
    echo tribe_get_cost(null, true);
    ?>
</span>
	</div>
<?php 
}
?>
开发者ID:CityOfPrescott,项目名称:sandbox_tabula-rasa,代码行数:31,代码来源:single-event.php


示例6: tribe_events_event_classes

<?php $event_id = $event->ID; ?>
<div class="single-event-popup <?php echo tribe_events_event_classes( $event_id ); ?>">
    <div class="col-sm-4">
      <?php echo tribe_event_featured_image( $event_id, 'event-popup', false ); ?>
    </div>
    <div class="col-sm-8">
      
      <h2 class="event-title"><?php echo $event->post_title; ?></h2>
      <?php echo apply_filters( 'the_content', $event->post_content ); ?>

      <ul class="meta-info">
        <li><label>What:</label> <?php echo $event->post_title; ?></li>
        <li><label>When:</label> <?php echo tribe_events_event_schedule_details( $event_id ); ?></li>

        <?php if ( tribe_address_exists( $event_id ) ) : ?>
          <li><label>Where:</label> <?php echo tribe_get_full_address( $event_id ); ?></li>
        <?php endif; ?>

        <li><label>Cost:</label> <?php echo get_post_meta( $event_id, '_ecp_custom_2', true ); ?></li>
        
        <?php if ( tribe_has_organizer( $event_id ) ): ?>
          <li><label>Info:</label> <a href="mailto:<?php echo tribe_get_organizer_email( $event_id ); ?>"><?php echo tribe_get_organizer_email( $event_id ); ?></a></li>
        <?php endif; ?>
  
        <li><label>Register:</label> <?php echo get_post_meta( $event_id, '_ecp_custom_5', true ); ?></li>
      </ul>

      <?php echo bones_get_edit_link( $event_id ); ?>

    </div>
</div>
开发者ID:simple-beck,项目名称:project-gc,代码行数:31,代码来源:_partial-single-event.php


示例7: the_content

					<div class="col-md-6 col-md-push-6">
						<?php 
    the_content();
    ?>
					</div>

					<div class="col-md-6 col-md-pull-6 resume-to-apply">
						<?php 
    if ($eventos->have_posts()) {
        while ($eventos->have_posts()) {
            $eventos->the_post();
            ?>

						<figure>
							<?php 
            echo tribe_event_featured_image(null, 'thumbnail');
            ?>
							<figcaption>
								<h2><a href="<?php 
            echo tribe_get_event_link();
            ?>
" rel="bookmark"><?php 
            the_title();
            ?>
</a></h2>
								<p><?php 
            the_excerpt();
            ?>
</p>
							</figcaption>
						</figure>
开发者ID:WagnerMoreira,项目名称:womoz.mozillabrasil.org.br,代码行数:31,代码来源:front-page.php


示例8: while

<div id="grve-events-organizer-area">
<?php 
while (have_posts()) {
    the_post();
    ?>
	<div id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class('grve-single-post');
    ?>
>
		<div id="grve-single-media">
			<!-- Event featured image, but exclude link -->
			<?php 
    echo tribe_event_featured_image($organizer_id, 'grve-image-fullscreen', false);
    ?>
		</div>

		<div id="grve-post-content">
			<!-- Organizer Title -->
			<?php 
    do_action('tribe_events_single_organizer_before_title');
    ?>
			<?php 
    grve_print_event_organizer_simple_title();
    ?>
			<?php 
    do_action('tribe_events_single_organizer_after_title');
    ?>
			<!-- Organizer Content -->
开发者ID:poweronio,项目名称:mbsite,代码行数:31,代码来源:single-organizer.php


示例9: while

	<!-- #tribe-events-header -->

	<?php 
while (have_posts()) {
    the_post();
    ?>
		<div id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class();
    ?>
>
			<!-- Event featured image, but exclude link -->
			<?php 
    echo tribe_event_featured_image($event_id, 'thumb', false);
    ?>

			<!-- Event content -->
			<?php 
    do_action('tribe_events_single_event_before_the_content');
    ?>
			<div class="tribe-events-single-event-description tribe-events-content entry-content description">
				<?php 
    the_content();
    ?>
			</div>
			<!-- .tribe-events-single-event-description -->
			<?php 
    //do_action( 'tribe_events_single_event_after_the_content' )
    ?>
开发者ID:CityOfPrescott,项目名称:sandbox_tabula-rasa,代码行数:31,代码来源:single-event.php


示例10: tribe_get_cost

if (tribe_get_cost()) {
    ?>
	<div class="tribe-events-event-cost">
		<span><?php 
    echo tribe_get_cost(null, true);
    ?>
</span>
	</div>
<?php 
}
?>

<!-- Event Image -->
<?php 
if (has_post_thumbnail()) {
    echo tribe_event_featured_image(null, 'module-lowerx2');
} else {
    get_backup_images();
}
?>

<!-- Event Title -->
<?php 
do_action('tribe_events_before_the_event_title');
?>
<h2 class="tribe-events-list-event-title entry-title summary">
	<a class="url" href="<?php 
echo esc_url(tribe_get_event_link());
?>
" title="<?php 
the_title_attribute();
开发者ID:CityOfPrescott,项目名称:tabula-rasa_city-of-prescott,代码行数:31,代码来源:single-event.php


示例11: tribe_events_event_schedule_details

    ?>
]</strong>
				<?php 
}
?>
				<?php 
echo tribe_events_event_schedule_details();
?>
			</div>
		</div><!-- .tribe-events-event-meta -->
		<?php 
do_action('tribe_events_after_the_meta');
?>
        
        <?php 
echo tribe_event_featured_image(null, 'photo-thumb');
?>
        
		<!-- Event Content -->
		<?php 
do_action('tribe_events_before_the_content');
?>
		<div class="tribe-events-list-photo-description tribe-events-content entry-summary description">
			<?php 
echo tribe_events_get_the_excerpt();
?>
		</div>
		<?php 
do_action('tribe_events_after_the_content');
?>
        
开发者ID:CityOfPrescott,项目名称:sandbox_tabula-rasa,代码行数:30,代码来源:single-event.php


示例12: while

<div id="grve-events-venue-area">
	<?php 
while (have_posts()) {
    the_post();
    ?>
	<div id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class('grve-single-post');
    ?>
>
		<div id="grve-single-media">
			<!-- Event featured image, but exclude link -->
			<?php 
    echo tribe_event_featured_image($venue_id, 'grve-image-fullscreen', false);
    ?>
		</div>

		<div id="grve-post-content">
			<!-- Venue Title -->
			<?php 
    do_action('tribe_events_single_venue_before_title');
    ?>
			<?php 
    grve_print_event_venue_simple_title();
    ?>
			<?php 
    do_action('tribe_events_single_venue_after_title');
    ?>
			<!-- Organizer Content -->
开发者ID:poweronio,项目名称:mbsite,代码行数:31,代码来源:single-venue.php


示例13: do_action

if ($venue_details) {
    ?>
			<!-- Venue Display Info -->
			<div class="tribe-events-venue-details">
				<?php 
    ?>
			</div> <!-- .tribe-events-venue-details -->
		<?php 
}
?>

	</div><!-- .tribe-events-event-meta -->
	<?php 
do_action('tribe_events_after_the_meta');
?>
</div> <!-- .agenda-event-heading -->

<!-- Event Content -->
<?php 
do_action('tribe_events_before_the_content');
?>
<div class="tribe-agenda-event-description tribe-content">
	<?php 
echo tribe_event_featured_image(null, 'large');
?>
	<?php 
the_content();
?>
</div><!-- .tribe-agenda-event-description -->
<?php 
do_action('tribe_events_after_the_content');
开发者ID:Renddslow,项目名称:tribe-events-agenda-view,代码行数:31,代码来源:single-event.php


示例14: apply_filters

 * Rectangular images are shown above the title while square images
 * are shown next to the content.
 *
 * @since 4.4.0
 * @since 4.5.0 Added `$thumbnail_id` parameter.
 *
 * @param string $shape        Thumbnail image shape. Either 'rectangular' or 'square'.
 * @param int    $thumbnail_id Attachment ID.
 */
$shape = apply_filters('embed_thumbnail_image_shape', $shape, $thumbnail_id);
if ('rectangular' === $shape) {
    ?>
	<div class="wp-embed-featured-image rectangular">
		<?php 
    echo tribe_event_featured_image($event_id, 'large');
    ?>
	</div>
<?php 
}
?>

<?php 
if ('square' === $shape) {
    ?>
	<div class="wp-embed-featured-image square">
		<?php 
    echo tribe_event_featured_image($event_id, 'large');
    ?>
	</div>
<?php 
}
开发者ID:nullify005,项目名称:shcc-website,代码行数:31,代码来源:image.php


示例15: foreach

		<?php 
    // Setup the post data for each event.
    foreach ($posts as $post) {
        setup_postdata($post);
        ?>
			<li class="tribe-events-list-widget-events <?php 
        tribe_events_event_classes();
        ?>
">

				<?php 
        do_action('tribe_events_list_widget_before_the_event_title');
        ?>
				<!-- Event featured image -->
				<?php 
        echo tribe_event_featured_image($post->ID, 'thumbnail');
        ?>
				<!-- Event Title -->

				<h6 class="tribe-event-title">
					<a href="<?php 
        echo esc_url(tribe_get_event_link());
        ?>
" rel="bookmark"><?php 
        the_title();
        ?>
</a>
				</h6>

				<section class="resume-event">
					<?php 
开发者ID:aldelpech,项目名称:clea-2-Mairie,代码行数:31,代码来源:list-widget.php


示例16: tribe_get_cost

		<?php 
if (tribe_get_cost()) {
    ?>
			<span class="tribe-events-divider">|</span>
			<span class="tribe-events-cost"><?php 
    echo tribe_get_cost(null, true);
    ?>
</span>
		<?php 
}
?>
	</div>

	<!-- Event featured image, but exclude link -->
	<?php 
echo tribe_event_featured_image($event_id, 'wh-big', false);
?>

	<!-- Event header -->
	<div id="tribe-events-header" <?php 
tribe_events_the_header_attributes();
?>
>
		<!-- Navigation -->
		<h3 class="tribe-events-visuallyhidden"><?php 
_e('Event Navigation', 'tribe-events-calendar');
?>
</h3>
		<ul class="tribe-events-sub-nav">
			<li class="tribe-events-nav-previous"><?php 
tribe_the_prev_event_link('<span>&laquo;</span> %title%');
开发者ID:selinaross,项目名称:spring-ridge,代码行数:31,代码来源:single-event.php


示例17: while

while (have_posts()) {
    the_post();
    ?>
		<div id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class('vevent');
    ?>
>

		<div class="row">

		<div class="large-4 columns">
			<?php 
    echo tribe_event_featured_image($event_id, 'medium', false);
    ?>
		</div><!-- .large-4 -->

		<div class="large-8 columns">

	<div class="tribe-events-schedule updated published tribe-clearfix">
		<?php 
    if (tribe_get_cost()) {
        ?>
			<span class="tribe-events-divider"> </span>
			<span class="tribe-events-cost"><?php 
        echo tribe_get_cost(null, true);
        ?>
</span>
		<?php 
开发者ID:duongnguyen92,项目名称:tvd12v2,代码行数:31,代码来源:single-event.php


示例18: do_action

    if (!empty($cost)) {
        echo "<span class='tribe-events-event-cost'>&nbsp;&#8212;&nbsp;{$cost}</span>";
    }
    ?>
		<?php 
}
?>
	</a>
</h2>
<?php 
do_action('tribe_events_after_the_event_title');
?>

<!-- Event Image -->
<?php 
$image = tribe_event_featured_image();
$r = preg_match("/<img.*src=\"([^\"]+)/", $image, $matches);
$dims = cws_get_post_tmumbnail_dims("medium", null, null);
$url = isset($matches[1]) ? $matches[1] : "";
$bfi_url = bfi_thumb($url, array('width' => $dims['width'], 'height' => $dims['height']));
echo str_replace($url, $bfi_url, $image);
?>

<!-- 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:evinw,项目名称:project_gg_studios,代码行数:31,代码来源:single-event.php


示例19: die

/**
 * List View Single Event
 * This file contains one event in the list view
 *
 * Override this template in your own theme by creating a file at [your-theme]/tribe-events/list/single-event.php
 *
 * @package TribeEventsCalendar
 * @since  3.0
 * @author Modern Tribe Inc.
 *
 */
if (!defined('ABSPATH')) {
    die('-1');
}
global $post;
$featured_image = tribe_event_featured_image(null, 'post-small-2');
?>

<div class="small-event-header clearfix <?php 
if (empty($featured_image)) {
    echo 'no-image';
}
?>
">
	<div class="tribe-events-event-meta-wrapper">
		<?php 
do_action('tribe_events_before_the_meta');
?>
			<div class="tribe-events-event-meta">
				<?php 
$start = strtotime($post->EventStartDate);
开发者ID:petrfaitl,项目名称:wordpress-event-theme,代码行数:31,代码来源:single-event.php


示例20: tribe_get_cost

						<span class="tribe-events-cost"><?php 
        echo tribe_get_cost(null, true);
        ?>
</span>
					<?php 
    }
    ?>
				</div>
				
				<!-- Event content -->
				<?php 
    do_action('tribe_events_single_event_before_the_content');
    ?>
				<div class="tribe-events-single-event-description tribe-events-content entry-content description">
					<?php 
    echo tribe_event_featured_image($event_id, 'entry_with_sidebar', false);
    ?>
					<?php 
    the_content();
    ?>
				</div><!-- .tribe-events-single-event-description -->
				<?php 
    do_action('tribe_events_single_event_after_the_content');
    ?>
	
				<?php 
    if (get_post_type() == Tribe__Events__Main::POSTTYPE && tribe_get_option('showComments', false)) {
        comments_template();
    }
    ?>
			
开发者ID:erikdukker,项目名称:medisom,代码行数:30,代码来源:single-event.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP tribe_event_format_date函数代码示例发布时间:2022-05-23
下一篇:
PHP tribe_event_end_of_day函数代码示例发布时间: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