title: $:/plugins/linonetwo/tw-calendar/tiddlywiki-ui/PageLayout/EventsCalendarLayout
name: <<lingo EventsCalendar/Caption $:/plugins/linonetwo/tw-calendar/language/>>
description: <<lingo EventsCalendar/Description $:/plugins/linonetwo/tw-calendar/language/>>
tags: $:/tags/Layout
icon: $:/plugins/linonetwo/tw-calendar/tiddlywiki-ui/Images/EventCalendar

\whitespace trim
\define containerClasses()
tc-page-container tc-language-$(languageTitle)$ tw-calendar-layout-container
\end
\import [subfilter{$:/core/config/GlobalImportFilter}]
\procedure redirected-navigate-actions()
  <$action-setfield $tiddler="$:/layout" text="" />
  <$action-navigate $to=<<event-navigateTo>> />
\end

<$vars
	tv-config-toolbar-icons={{$:/config/Toolbar/Icons}}
	tv-config-toolbar-text={{$:/config/Toolbar/Text}}
	tv-config-toolbar-class={{$:/config/Toolbar/ButtonClass}}
	tv-show-missing-links={{$:/config/MissingLinks}}
	storyviewTitle={{$:/view}}
	languageTitle={{{ [{$:/language}get[name]] }}}>
	<div class=<<containerClasses>>>
		<$navigator story="$:/StoryList" history="$:/HistoryList" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>
			<$messagecatcher $tm-navigate=<<redirected-navigate-actions>>>
				{{$:/plugins/linonetwo/tw-calendar/tiddlywiki-ui/ViewTemplate/EventCalendarSidebar}}
				{{$:/core/ui/CommandPaletteTemplate}}
				{{$:/plugins/BTC/SidebarSlider/ui/PageTemplate/show-sidebar}}
				{{$:/plugins/BTC/SidebarSlider/PageTemplate/sidebar-slider}}
				<main class="tw-calendar-layout-main-area">
					<div class="event-calendar-container">
						<$calendar
							height="100%"
							filter="[all[tiddlers]!is[system]field:calendarEntry[yes]]"
							initialView={{$:/state/Calendar/PageLayout/EventCalendar/initialParams!!initialView}}
							initialDate={{$:/state/Calendar/PageLayout/EventCalendar/initialParams!!initialDate}}
							draggableContainer=".event-calendar-sidebar.tc-sidebar-scrollable"
						/>
					</div>
				</main>
			</$messagecatcher>
		</$navigator>
	</div>
</$vars>