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

PHP tribe_is_upcoming函数代码示例

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

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



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

示例1: dt_the_events_calendar_template_config

/**
 * Theme basic config.
 *
 * @see https://gist.github.com/jo-snips/2415009
 */
function dt_the_events_calendar_template_config()
{
    // detect calendar pages
    if (tribe_is_month() && !is_tax() || tribe_is_month() && is_tax() || (tribe_is_past() || tribe_is_upcoming() && !is_tax()) || (tribe_is_past() || tribe_is_upcoming() && is_tax()) || tribe_is_day() && !is_tax() || tribe_is_day() && is_tax() || tribe_is_event() && is_single() || tribe_is_venue() || function_exists('tribe_is_week') && tribe_is_week() || function_exists('tribe_is_photo') && tribe_is_photo() || function_exists('tribe_is_map') && tribe_is_map() || get_post_type() == 'tribe_organizer' && is_single()) {
        // remove theme title controller
        remove_action('presscore_before_main_container', 'presscore_page_title_controller', 16);
    }
}
开发者ID:severnrescue,项目名称:web,代码行数:13,代码来源:mod-the-events-calendar.php


示例2: tribe_get_previous_events_link

 /**
  * Get a link to the previous events
  *
  * @return string
  */
 function tribe_get_previous_events_link()
 {
     $link = '';
     if (tribe_is_upcoming() && (!empty($_REQUEST['tribe_paged']) && $_REQUEST['tribe_paged'] > 1)) {
         // if we're more than one page into the future, the previous link will be in the future as well
         $link = tribe_get_upcoming_link();
     } else {
         $link = tribe_get_past_link();
     }
     return apply_filters('tribe_get_previous_events_link', $link);
 }
开发者ID:estrategasdigitales,项目名称:Golone,代码行数:16,代码来源:link.php


示例3: get_title

 /**
  * Get the title for list view
  * @param      $title
  * @param null $sep
  *
  * @return string
  */
 protected function get_title($original_title, $sep = null)
 {
     $new_title = parent::get_title($original_title, $sep);
     if (tribe_is_upcoming() && has_filter('tribe_upcoming_events_title')) {
         _deprecated_function("The 'tribe_upcoming_events_title' filter", '3.8', " the 'tribe_get_events_title' filter");
         $new_title = apply_filters('tribe_upcoming_events_title', $new_title, $sep);
     } elseif (has_filter('tribe_past_events_title')) {
         _deprecated_function("The 'tribe_past_events_title' filter", '3.8', " the 'tribe_get_events_title' filter");
         $new_title = apply_filters('tribe_past_events_title', $new_title, $sep);
     }
     return $new_title;
 }
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:19,代码来源:List.php


示例4: wpv_upcoming_events_title

function wpv_upcoming_events_title($title)
{
    $upcoming = wpv_get_option('tribe-events-upcoming-title');
    $past = wpv_get_option('tribe-events-past-title');
    $month = wpv_get_option('tribe-events-month-title');
    if (!empty($upcoming) && (tribe_is_upcoming() || function_exists('tribe_is_map') && tribe_is_map() || function_exists('tribe_is_photo') && tribe_is_photo())) {
        return $upcoming;
    } elseif (!empty($past) && tribe_is_past()) {
        return $past;
    } elseif (!empty($month) && tribe_is_month()) {
        return sprintf($month, date_i18n(tribe_get_option('monthAndYearFormat', 'F Y'), strtotime(tribe_get_month_view_date())));
    }
    return $title;
}
开发者ID:petrfaitl,项目名称:wordpress-event-theme,代码行数:14,代码来源:tribe-events-integration.php


示例5: filter_events_title

function filter_events_title($title)
{
    if (tribe_is_month() && !is_tax()) {
        // Month View Page
        $title = 'Events - Month view page | Czech and Slovak Club Tauranga';
    } elseif (tribe_is_month() && is_tax()) {
        // Month View Category Page
        $title = 'Events - Month view category page | Czech and Slovak Club Tauranga';
    } elseif (tribe_is_upcoming() && !is_tax()) {
        // List View Page: Upcoming Events
        $title = 'Events - Upcoming events page | Czech and Slovak Club Tauranga';
    } elseif (tribe_is_upcoming() && is_tax()) {
        // List View Category Page: Upcoming Events
        $title = 'Events - Upcoming events page | Czech and Slovak Club Tauranga';
    } elseif (tribe_is_past() && !is_tax()) {
        // List View Page: Past Events
        $title = 'Events - Past events page | Czech and Slovak Club Tauranga';
    } elseif (tribe_is_past() && is_tax()) {
        // List View Category Page: Past Events
        $title = 'Events - Category: Past events page | Czech and Slovak Club Tauranga';
    } elseif (tribe_is_week() && !is_tax()) {
        // Week View Page
        $title = 'Events - Week view page | Czech and Slovak Club Tauranga';
    } elseif (tribe_is_week() && is_tax()) {
        // Week View Category Page
        $title = 'Events - Week view category page | Czech and Slovak Club Tauranga';
    } elseif (tribe_is_day() && !is_tax()) {
        // Day View Page
        $title = 'Events - Day view page | Czech and Slovak Club Tauranga';
    } elseif (tribe_is_day() && is_tax()) {
        // Day View Category Page
        $title = 'Events - Day view category page | Czech and Slovak Club Tauranga';
    } elseif (tribe_is_map() && !is_tax()) {
        // Map View Page
        $title = 'Events - Map view page | Czech and Slovak Club Tauranga';
    } elseif (tribe_is_map() && is_tax()) {
        // Map View Category Page
        $title = 'Events - Map view category page | Czech and Slovak Club Tauranga';
    } elseif (tribe_is_photo() && !is_tax()) {
        // Photo View Page
        $title = 'Events - Photo view page | Czech and Slovak Club Tauranga';
    } elseif (tribe_is_photo() && is_tax()) {
        // Photo View Category Page
        $title = 'Events - Photo view category page | Czech and Slovak Club Tauranga';
    }
    return $title;
}
开发者ID:petrfaitl,项目名称:wordpress-event-theme,代码行数:47,代码来源:functions.php


示例6: tribe_events_the_header_attributes

 /**
  * Prints out data attributes used in the template header tags
  *
  * @param string|null $current_view
  * @return void
  * @since 3.0
  **/
 function tribe_events_the_header_attributes($current_view = null)
 {
     $attrs = array();
     $current_view = !empty($current_view) ? $current_view : basename(tribe_get_current_template());
     $attrs['data-title'] = wp_title('»', false);
     switch ($current_view) {
         case 'month.php':
             $attrs['data-view'] = 'month';
             $attrs['data-date'] = date('Y-m', strtotime(tribe_get_month_view_date()));
             $attrs['data-baseurl'] = tribe_get_gridview_link(false);
             break;
         case 'list.php':
             $attrs['data-view'] = 'list';
             if (tribe_is_upcoming()) {
                 $attrs['data-baseurl'] = tribe_get_listview_link(false);
             } elseif (tribe_is_past()) {
                 $attrs['data-view'] = 'past';
                 $attrs['data-baseurl'] = tribe_get_listview_past_link(false);
             }
             break;
     }
     $attrs = apply_filters('tribe_events_header_attributes', $attrs, $current_view);
     foreach ($attrs as $attr => $value) {
         echo " {$attr}=" . '"' . $value . '"';
     }
 }
开发者ID:paarthd,项目名称:gslvpa,代码行数:33,代码来源:general.php


示例7: is_events_archive

function is_events_archive()
{
    if (class_exists('Tribe__Events__Main')) {
        return tribe_is_month() || tribe_is_day() || tribe_is_past() || tribe_is_upcoming() || class_exists('Tribe__Events__Pro__Main') && (tribe_is_week() || tribe_is_photo() || tribe_is_map()) ? true : false;
    } else {
        return false;
    }
}
开发者ID:Bakerpedia,项目名称:Development_Site5,代码行数:8,代码来源:functions.php


示例8: sp_is_upcoming

 /**
  * @deprecated
  */
 function sp_is_upcoming()
 {
     _deprecated_function(__FUNCTION__, '2.0', 'tribe_is_upcoming()');
     return tribe_is_upcoming();
 }
开发者ID:brooklyntri,项目名称:btc-plugins,代码行数:8,代码来源:deprecated.php


示例9: elseif

    ?>
</span></a>
		<?php 
} elseif (tribe_is_past() && get_next_posts_link()) {
    ?>
			<?php 
    next_posts_link('<span>' . __('&laquo; Previous Events', 'tribe-events-calendar') . '</span>');
    ?>
		<?php 
}
?>
		</div>

		<div class="tribe-events-nav-next"><?php 
// Display Next Page Navigation
if (tribe_is_upcoming() && get_next_posts_link()) {
    ?>
			<?php 
    next_posts_link('<span>' . __('Next Events &raquo;', 'tribe-events-calendar') . '</span>');
    ?>
		<?php 
} elseif (tribe_is_past() && get_previous_posts_link()) {
    ?>
			<?php 
    previous_posts_link('<span>' . __('Next Events &raquo;', 'tribe-events-calendar') . '</span>');
    // a little confusing but in 'past view' to see newer events you want the previous page
    ?>
		<?php 
} elseif (tribe_is_past() && !get_previous_posts_link()) {
    ?>
			<a href='<?php 
开发者ID:sonijoy,项目名称:my_repo,代码行数:31,代码来源:list.php


示例10: display_sidebar

/**
 * Determine which pages should NOT display the sidebar
 */
function display_sidebar()
{
    static $display;
    isset($display) || ($display = !in_array(true, [is_404(), is_front_page(), is_page_template('template-custom.php'), is_page('about'), is_page('contact'), is_page('menu'), is_page('gallery'), is_page('thank-you'), is_single(), is_home(), tribe_is_month() && !is_tax(), tribe_is_past() || tribe_is_upcoming() && !is_tax(), tribe_is_past() || tribe_is_upcoming() && is_tax(), tribe_is_day() && !is_tax(), tribe_is_day() && is_tax(), tribe_is_event() && is_single(), tribe_is_month() && is_tax(), tribe_is_event() && is_single()]));
    return apply_filters('sage/display_sidebar', $display);
}
开发者ID:smpetrey,项目名称:acre-theme,代码行数:9,代码来源:setup.php


示例11: nothing_found_notice

 /**
  * Sets an appropriate no results found message. This may be overridden in child classes.
  */
 protected function nothing_found_notice()
 {
     list($search_term, $tax_term, $geographic_term) = $this->get_search_terms();
     if (!empty($search_term)) {
         TribeEvents::setNotice('event-search-no-results', sprintf(__('There were no results found for <strong>"%s"</strong>.', 'tribe-events-calendar'), esc_html($search_term)));
     } elseif (!empty($geographic_term)) {
         TribeEvents::setNotice('event-search-no-results', sprintf(__('No results were found for events in or near <strong>"%s"</strong>.', 'tribe-events-calendar'), esc_html($geographic_term)));
     } elseif (!empty($tax_term) && tribe_is_upcoming() && date('Y-m-d') === date('Y-m-d', strtotime($tribe->date))) {
         TribeEvents::setNotice('events-not-found', sprintf(__('No upcoming events listed under %s. Check out upcoming events for this category or view the full calendar.', 'tribe-events-calendar'), $tax_term));
     } elseif (!empty($tax_term) && tribe_is_upcoming()) {
         TribeEvents::setNotice('events-not-found', sprintf(__('No matching events listed under %s. Please try viewing the full calendar for a complete list of events.', 'tribe-events-calendar'), $tax_term));
     } elseif (!empty($tax_term) && tribe_is_past()) {
         TribeEvents::setNotice('events-past-not-found', __('No previous events ', 'tribe-events-calendar'));
     } elseif (!empty($tax_term)) {
         TribeEvents::setNotice('events-not-found', sprintf(__('No matching events listed under %s. Please try viewing the full calendar for a complete list of events.', 'tribe-events-calendar'), $tax_term));
     } else {
         TribeEvents::setNotice('event-search-no-results', __('There were no results found.', 'tribe-events-calendar'));
     }
 }
开发者ID:chicosilva,项目名称:olharambiental,代码行数:22,代码来源:tribe-template-factory.class.php


示例12: setReccuringEventDates

 public function setReccuringEventDates($post)
 {
     if (function_exists('tribe_is_recurring_event') && is_singular(self::POSTTYPE) && tribe_is_recurring_event() && !tribe_is_showing_all() && !tribe_is_upcoming() && !tribe_is_past() && !tribe_is_month() && !tribe_is_by_date()) {
         $startTime = get_post_meta($post->ID, '_EventStartDate', true);
         $startTime = TribeDateUtils::timeOnly($startTime);
         $post->EventStartDate = TribeDateUtils::addTimeToDate($this->date, $startTime);
         $post->EventEndDate = date(TribeDateUtils::DBDATETIMEFORMAT, strtotime($post->EventStartDate) + get_post_meta($post->ID, '_EventDuration', true));
     }
 }
开发者ID:kevinreilly,项目名称:redwood-city-chamber-wp,代码行数:9,代码来源:the-events-calendar.class.php


示例13: is_events_archive

function is_events_archive()
{
    if (class_exists('TribeEvents')) {
        if (tribe_is_month() || tribe_is_day() || tribe_is_past() || tribe_is_upcoming()) {
            return true;
        } else {
            return false;
        }
    } else {
        return false;
    }
}
开发者ID:ftopolovec,项目名称:proart,代码行数:12,代码来源:functions.php


示例14: nothing_found_notice

 /**
  * Sets an appropriate no results found message. This may be overridden in child classes.
  */
 protected function nothing_found_notice()
 {
     $events_label_plural = strtolower(tribe_get_event_label_plural());
     list($search_term, $tax_term, $geographic_term) = $this->get_search_terms();
     $tribe = Tribe__Events__Main::instance();
     if (!empty($search_term)) {
         Tribe__Events__Main::setNotice('event-search-no-results', sprintf(__('There were no results found for <strong>"%s"</strong>.', 'the-events-calendar'), esc_html($search_term)));
     } elseif (!empty($geographic_term)) {
         Tribe__Events__Main::setNotice('event-search-no-results', sprintf(__('No results were found for %1$s in or near <strong>"%2$s"</strong>.', 'the-events-calendar'), $events_label_plural, esc_html($geographic_term)));
     } elseif (!empty($tax_term) && tribe_is_upcoming() && date('Y-m-d') === date('Y-m-d', strtotime($tribe->date))) {
         Tribe__Events__Main::setNotice('events-not-found', sprintf(__('No upcoming %1$s listed under %2$s. Check out upcoming %3$s for this category or view the full calendar.', 'the-events-calendar'), $events_label_plural, $tax_term, $events_label_plural));
     } elseif (!empty($tax_term) && tribe_is_upcoming()) {
         Tribe__Events__Main::setNotice('events-not-found', sprintf(__('No matching %1$s listed under %2$s. Please try viewing the full calendar for a complete list of %3$s.', 'the-events-calendar'), $events_label_plural, $tax_term, $events_label_plural));
     } elseif (!empty($tax_term) && tribe_is_past()) {
         Tribe__Events__Main::setNotice('events-past-not-found', sprintf(__('No previous %s ', 'the-events-calendar'), $events_label_plural));
     } elseif (!empty($tax_term)) {
         Tribe__Events__Main::setNotice('events-not-found', sprintf(__('No matching %1$s listed under %2$s. Please try viewing the full calendar for a complete list of %3$s.', 'the-events-calendar'), $events_label_plural, $tax_term, $events_label_plural));
     } else {
         Tribe__Events__Main::setNotice('event-search-no-results', __('There were no results found.', 'the-events-calendar'));
     }
 }
开发者ID:awwong1,项目名称:esps-wpsite,代码行数:24,代码来源:Template_Factory.php


示例15: get_current_page_template

 public static function get_current_page_template()
 {
     $template = '';
     if (is_tax(TribeEvents::TAXONOMY)) {
         if (tribe_is_upcoming() || tribe_is_past()) {
             $template = TribeEventsTemplates::getTemplateHierarchy('list');
         } else {
             $template = TribeEventsTemplates::getTemplateHierarchy('gridview');
         }
     }
     // single event
     if (is_single() && !tribe_is_showing_all()) {
         $template = TribeEventsTemplates::getTemplateHierarchy('single');
     } elseif (tribe_is_upcoming() || tribe_is_past() || tribe_is_day() || is_single() && tribe_is_showing_all()) {
         $template = TribeEventsTemplates::getTemplateHierarchy('list');
     } else {
         $template = TribeEventsTemplates::getTemplateHierarchy('gridview');
     }
     return apply_filters('tribe_current_events_page_template', $template);
 }
开发者ID:mpaskew,项目名称:isc-dev,代码行数:20,代码来源:tribe-templates.class.php


示例16: avia_events_breadcrumb

 function avia_events_breadcrumb($trail)
 {
     global $avia_config;
     if (isset($avia_config['currently_viewing']) && $avia_config['currently_viewing'] == 'events' || tribe_is_month() || get_post_type() === TribeEvents::POSTTYPE || is_tax(TribeEvents::TAXONOMY)) {
         $events = __('Events', 'avia_framework');
         $events_link = '<a href="' . tribe_get_events_link() . '">' . $events . '</a>';
         if (is_tax(TribeEvents::TAXONOMY)) {
             $last = array_pop($trail);
             $trail[] = $events_link;
             $trail[] = $last;
         } else {
             if (tribe_is_month() || tribe_is_upcoming() && !is_singular()) {
                 $trail[] = $events_link;
             } else {
                 if (tribe_is_event()) {
                     $last = array_pop($trail);
                     $trail[] = $events_link;
                     $trail[] = $last;
                 }
             }
         }
         if (isset($avia_config['events_trail'])) {
             $trail = $avia_config['events_trail'];
         }
     }
     return $trail;
 }
开发者ID:erynet,项目名称:SUAWEBv2,代码行数:27,代码来源:config.php


示例17: get_header

<?php

/*
  Template Name: Full Width Page
*/
?>

<?php 
get_header();
the_post();
?>


<?php 
if (tribe_is_past() || tribe_is_upcoming() && !is_tax()) {
    ?>
	<div class="container-fluid">
				<?php 
    echo do_shortcode('[new_royalslider id="1"]');
    ?>
	</div> <!-- /.container -->	

	<hr class="m-y-2">	
<?php 
}
?>

<div class="container">

	<div class="row">
开发者ID:smartassdesign,项目名称:bestyle,代码行数:30,代码来源:page-full.php


示例18: fitclub_is_tribe_page

 function fitclub_is_tribe_page()
 {
     wp_reset_postdata();
     //reset custom query
     if (class_exists('TRIBE__EVENTS__MAIN')) {
         if (tribe_is_month() && !is_tax()) {
             // Month View Page
             return true;
         } elseif (tribe_is_month() && is_tax()) {
             // Month View Category Page
             return true;
         } elseif (tribe_is_past() || tribe_is_upcoming() && !is_tax()) {
             // List View Page
             return true;
         } elseif (tribe_is_past() || tribe_is_upcoming() && is_tax()) {
             // List View Category Page
             return true;
         } elseif (tribe_is_day() && !is_tax()) {
             // Day View Page
             return true;
         } elseif (tribe_is_day() && is_tax()) {
             // Day View Category Page
             return true;
         } elseif (tribe_is_event() && is_single()) {
             // Single Events
             return true;
         }
     }
     return false;
 }
开发者ID:themegrill,项目名称:fitclub,代码行数:30,代码来源:fitclub.php


示例19: tribe_right_navigation_classes

 /**
  * Determine classes to apply to right side nav links
  *
  * @param $side
  */
 function tribe_right_navigation_classes()
 {
     $classes = array();
     $tribe_paged = !empty($_REQUEST['tribe_paged']) ? $_REQUEST['tribe_paged'] : 1;
     $classes['direction'] = tribe_is_upcoming() ? 'tribe-events-nav-next' : 'tribe-events-nav-previous';
     $classes['side'] = 'tribe-events-nav-right';
     if (tribe_is_past() && $tribe_paged > 1) {
         $classes['past'] = 'tribe-events-past';
     }
     $classes = apply_filters('tribe_right_navigation_classes', $classes);
     return implode(' ', $classes);
 }
开发者ID:NallelyFlores89,项目名称:cronica-ambiental,代码行数:17,代码来源:loop.php


示例20: add_current_menu_item_class_to_events

 /**
  * Add a menu item class to the event
  *
  * @param array $items
  * @param array $args
  *
  * @return array
  */
 public function add_current_menu_item_class_to_events($items, $args)
 {
     foreach ($items as $item) {
         if ($item->url == $this->getLink()) {
             if (is_singular(self::POSTTYPE) || is_singular(self::VENUE_POST_TYPE) || is_tax(self::TAXONOMY) || (tribe_is_upcoming() || tribe_is_past() || tribe_is_month()) && isset($wp_query->query_vars['eventDisplay'])) {
                 $item->classes[] = 'current-menu-item current_page_item';
             }
             break;
         }
     }
     return $items;
 }
开发者ID:kevinaxu,项目名称:99boulders,代码行数:20,代码来源:Main.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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