本文整理汇总了PHP中tribe_event_featured_image函数的典型用法代码示例。如果您正苦于以下问题:PHP tribe_event_featured_image函数的具体用法?PHP tribe_event_featured_image怎么用?PHP tribe_event_featured_image使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tribe_event_featured_image函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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');
示例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);
?>
">
示例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();
?>
示例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());
?>
示例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
}
?>
示例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>
示例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>
示例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 -->
示例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' )
?>
示例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();
示例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');
?>
示例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 -->
示例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');
示例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
}
示例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