How to Create a Calendar on the Main Page that Shows All Events
Ning To Jamroom
That code can go in the CODE tab of the widget.
There will be no $month or $year in that location so you will need to put in the month/year you want it for.
So you could do it like this:
{if isset($_post.month) || isset($_post.year)}
{assign var="month" value=$_post.month}
{assign var="year" value=$_post.year}
{else}
{assign var="month" value=$smarty.now|jrCore_date_format:"%-m"}
{assign var="year" value=$smarty.now|jrCore_date_format:"%Y"}
{/if}
{jrEvent_calendar month=$month year=$year template="small_calendar.tpl" tpl_dir="jrEvent"}
That would give you the current month unless there was a month variable coming in from the url.
So if the url was:
your-site.com/our_events
it would show this months one, but if you put
your-site.com/our_events/month=02/year=2014
it would show the events for feb, 2014
