Agenda
Now you can create events for your wordpress. Whit this plugin you can create and manipulate events like you do on Google Calendar. Generate events on the fly creating an agenda of events. The agenda suports a realy code for repeat events for your satisfaction. Using the_agenda_loop() you generates
Now you can create events for your wordpress. Whit this plugin you can create and manipulate events like you do on Google Calendar. Generate events on the fly creating an agenda of events. The agenda suports a realy code for repeat events for your satisfaction.
Using the_agenda_loop() you generates a $the_event object that have all atributes about the event Use it in combination to Agenda::next_events() or Agenda::events_on()
You can also use function agenda_compromissos() , agenda_list() and agenda_events() on your templates. These functions generate html codes to be used on your tamplate.
Agenda list
Generates a list of next events marked in your agenda Pass your params as wp_string or assigned array:
agenda_list('next=5&only_destak=1')
is the same as:
agenda_list(array('next'=>5,'only_destak'=>true))
Params:
- 01(int) next : Number of next events to show (default: 5)
- 02(bool) only_destak : If true, show only highlighted events (default: true)
- 03(bool) show_date : If true, show the date of each event (default: true)
- 04(string) before : Put it before each event (default: <li> )
- 05(string) after : Put it after each event (default: </li> )
- 06(bool) print : Prints the output (default: true)
By default, the function prints the generated string, but you can silencity it and manipulate the same string. It is returned.
So for use the agenda_list () prints a list contain the next 5 events. While agenda_list (‘print=0’) does not print, but returns the generated string to your manual manipulation
Agenda compromissos
agenda_compromissos()` can be used on your tamplate’s page. It generates a events list separated by date.
Params: agenda_compromissos ($next, $title_tag, $print) :
- 07$next Number of events that must be showed.default: 25
- 08$title_tag show date tag’s name . defaut: h3
- 09$print if matched as true prints the result, if it is not matched only returns the string for future manipulations.