This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set event = craft.venti.getEventById(entry.id) %} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set segments = craft.request.segments %} | |
{% if segments|length == 3 %} | |
{% set eid = craft.request.lastSegment %} | |
{% set event = craft.venti.getEvent(eid) %} | |
{% else %} | |
{% set event = craft.venti.nextEvent(entry.id) %} | |
{% if event == null %} | |
{% set event = craft.venti.events().id(entry.id).first() %} | |
{% endif %} | |
{% endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set next = craft.venti.nextEvent(event.id) %} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# Getting the current month or year if no month or year are passed as url params #} | |
{% set currentMonth = craft.request.getParam('m') ? craft.request.getParam('m') : "now"|date('n') %} | |
{% set currentYear = craft.request.getParam('y') ? craft.request.getParam('y') : "now"|date('Y') %} | |
{# Getting the first day of the currentMonth & currentYear for point of refrence to obtain next month and next year #} | |
{% set cur = currentYear ~ "-" ~ currentMonth ~ "-1" %} | |
{% set prevMonth = cur|date_modify("last day of last month")|date('U') %} | |
{% set nextMonth = cur|date_modify("first day of next month")|date('U') %} | |
{# Obtaining the events for the calendar #} | |
{% set events = craft.venti.allEvents().startDate('and', '>= ' ~ prevMonth, '<= ' ~ nextMonth).find() %} | |
{% set cal = craft.venti.getCal(events,currentMonth,currentYear) %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set events = craft.venti.allEvents().isrepeat('and',null).find() %} | |
also | |
{% set events = craft.venti.events().isrepeat('and',null) %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set today = now %} | |
{% set total = craft.venti.allEvents().startDate('and', '>= ' ~ today).total() %} | |
{% set limit = 5 %} | |
{% set prev = 1 %} | |
{% set next = 2 %} | |
{% set pge = craft.request.getParam('pg') ? craft.request.getParam('pg') : 0 %} | |
{% set lastPage = "" %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set today = now %} | |
{% set nextMonth = now | date_modify('first day of next month') %} | |
{% set events = craft.venti.allEvents().startDate('and', '>= ' ~ now, '<= ' ~ nextMonth).find() %} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set events = craft.venti.allEvents().startDate('and', '>= ' ~ now).find() %} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% events = craft.venti.allEvents().startDate('and', '>= ' ~ now).relatedTo({targetElement:category.id}).find() %} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tm.Search.init = function () { | |
if (!$("body").hasClass('search-page')) { | |
var inputs = [ | |
"st-input-access", | |
"st-input-header", | |
"st-input-header-stick", | |
"st-input-mobile" | |
]; | |
for (var i = inputs.length - 1; i >= 0; i--) { |