upcomingevents

Most of the heavy lifting done in iCalendarReader class.


Usage

  1. // basic usage 
  2. echo do_shortcode('[upcomingevents]'); 
  1. // variable usage 
  2. $result = do_shortcode('[upcomingevents]'); 
  3. echo $result;  

Defined (1)

The shortcode is defined in the following location(s).

/modules/shortcodes/upcoming-events.php  
  1. /* Most of the heavy lifting done in iCalendarReader class 
  2. */ 
  3. class Upcoming_Events_Shortcode { 
  4.  
  5. public static function init() { 
  6. add_shortcode( 'upcomingevents', array( __CLASS__, 'shortcode' ) ); 
  7.  
  8. public static function shortcode( $atts = array() ) { 
  9. jetpack_require_lib( 'icalendar-reader' ); 
  10. $atts = shortcode_atts( array( 'url' => '', 'number' => 0 ), $atts, 'upcomingevents' );