echo tribe_get_previous_month_link(); ?> '> ← <?php echo tribe_get_previous_month_text(); ?> </a> </span> <?php tribe_month_year_dropdowns("tribe-events-"); ?> <span class='tribe-events-next-month'> <a href='<?php echo tribe_get_next_month_link(); ?> '> <?php echo tribe_get_next_month_text(); ?> → </a> <img src="<?php echo esc_url(admin_url('images/wpspin_light.gif')); ?> " class="ajax-loading" id="ajax-loading" alt="" style='display: none'/> </span> </span> <span class='tribe-events-calendar-buttons'>
/** * @deprecated */ function sp_get_next_month_link() { _deprecated_function(__FUNCTION__, '2.0', 'tribe_get_next_month_link()'); return tribe_get_next_month_link(); }
$form = ob_get_clean(); $tribeOptions = get_option('tribe_events_calendar_options', array()); $eventsSlug = $tribeOptions['eventsSlug']; // works in localhost: // $needle = get_bloginfo('siteurl') . '/' . $eventsSlug; // $replacement = get_bloginfo('siteurl') . '/' . pll_current_language('slug') . '/' . $eventsSlug; // works online: $needle = substr(get_bloginfo('siteurl'), 0, strlen(get_bloginfo('siteurl')) - 3) . '/' . $eventsSlug; $replacement = get_bloginfo('siteurl') . '/' . $eventsSlug; $form = str_replace($needle, $replacement, $form); echo $form; } ?> <span class='tribe-events-next-month'> <a href='<?php echo kcsite_multilingualizeUrl(tribe_get_next_month_link()); ?> ' class="tribe-pjax tribe-month-navigator help-inline"> <?php //echo tribe_get_next_month_text(); ?> </a> <img src="<?php echo esc_url(admin_url('images/wpspin_light.gif')); ?> " class="ajax-loading" id="ajax-loading" alt="" style='display: none'/> </span> </span> <span class='tribe-events-calendar-buttons'> <a class='tribe-events-button-off' href='<?php
/** * Display an html link to the next month. Used in the month navigation. * * @return void * @uses tribe_get_next_month_text() **/ function tribe_events_the_next_month_link() { $html = ''; $url = tribe_get_next_month_link(); $text = tribe_get_next_month_text(); // Check if $url is populated (an empty string may indicate the date was out-of-bounds, ie on 32bit servers) if (!empty($url)) { $date = Tribe__Events__Main::instance()->nextMonth(tribe_get_month_view_date()); if ($date <= tribe_events_latest_date(Tribe__Events__Date_Utils::DBYEARMONTHTIMEFORMAT)) { $html = '<a data-month="' . $date . '" href="' . esc_url($url) . '" rel="next">' . $text . ' <span>»</span></a>'; } } echo apply_filters('tribe_events_the_next_month_link', $html); }
/** * Display an html link to the next month. Used in the month navigation. * * @return void * @author Jessica Yazbek * @uses tribe_get_next_month_text() * @since 3.0 **/ function tribe_events_the_next_month_link() { $url = tribe_get_next_month_link(); try { $date = TribeEvents::instance()->nextMonth(tribe_get_month_view_date()); $text = tribe_get_next_month_text(); $html = '<a data-month="' . $date . '" href="' . $url . '" rel="next">' . $text . ' <span>»</span></a>'; } catch (OverflowException $e) { $html = ''; } echo apply_filters('tribe_events_the_next_month_link', $html); }
/** * Display an html link to the next month. Used in the month navigation. * * @return void * @author Jessica Yazbek * @uses tribe_get_next_month_text() * @since 3.0 **/ function tribe_events_the_next_month_link() { $url = tribe_get_next_month_link(); $date = TribeEvents::instance()->nextMonth(tribe_get_month_view_date()); $text = tribe_get_next_month_text(); $html = '<a data-month="' . $date . '" href="' . $url . '" rel="pref">' . $text . ' »</a>'; echo apply_filters('tribe_events_the_next_month_link', $html); }