Version 5.0.6
This commit is contained in:
1 parent
a3a4a9ccbd
commit
b89858b2ff
1214 files changed
+92828
-14859
No files matched your search
@@ -5,21 +5,41 @@ class class_calendar_front_overview extends \IPS\Theme\Template
|
||||
$return = '';
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<section class='ipsBox' data-controller="calendar.front.overview.eventList">
|
||||
<h2 class='ipsBox__header'>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "calendar/front/overview/byMonth", "main:before", [ $calendars,$date,$featured,$events,$thisCalendar,$months ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
<section class="ipsBox" data-controller="calendar.front.overview.eventList" data-ips-hook="main">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "calendar/front/overview/byMonth", "main:inside-start", [ $calendars,$date,$featured,$events,$thisCalendar,$months ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<h2 class="ipsBox__header">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'events_browse_by_month', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
$return .= <<<IPSCONTENT
|
||||
</h2>
|
||||
<div class='cEvents__monthNav' data-role='monthNav'>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "calendar/front/overview/byMonth", "navigation:before", [ $calendars,$date,$featured,$events,$thisCalendar,$months ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
<div class="cEvents__monthNav" data-role="monthNav" data-ips-hook="navigation">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "calendar/front/overview/byMonth", "navigation:inside-start", [ $calendars,$date,$featured,$events,$thisCalendar,$months ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
foreach ( $months as $monthObj ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<a class='cEvents__monthNav__monthItem
|
||||
<a class="cEvents__monthNav__monthItem
|
||||
IPSCONTENT;
|
||||
|
||||
if ( $monthObj->format( 'n' ) == $date->mon ):
|
||||
@@ -29,7 +49,7 @@ IPSCONTENT;
|
||||
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
' href="
|
||||
" href="
|
||||
IPSCONTENT;
|
||||
|
||||
if ( $thisCalendar ):
|
||||
@@ -54,22 +74,22 @@ IPSCONTENT;
|
||||
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
" rel='nofollow' data-action='changeMonth' data-month='
|
||||
" rel="nofollow" data-action="changeMonth" data-month="
|
||||
IPSCONTENT;
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( $monthObj->format( 'n' ), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
' data-year='
|
||||
" data-year="
|
||||
IPSCONTENT;
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( $monthObj->format( 'Y' ), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
'>
|
||||
<span class='cEvents__monthNav__month'>
|
||||
">
|
||||
<span class="cEvents__monthNav__month">
|
||||
IPSCONTENT;
|
||||
|
||||
$pluralize = array( $monthObj->format( 'n' ) ); $return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( '_date_month_short', ENT_DISALLOWED, 'UTF-8', FALSE ), FALSE, array( 'pluralize' => $pluralize ) );
|
||||
$return .= <<<IPSCONTENT
|
||||
</span>
|
||||
<span class='cEvents__monthNav__year'>
|
||||
<span class="cEvents__monthNav__year">
|
||||
IPSCONTENT;
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( $monthObj->format( 'Y' ), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
@@ -81,7 +101,17 @@ IPSCONTENT;
|
||||
endforeach;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
</div>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "calendar/front/overview/byMonth", "navigation:inside-end", [ $calendars,$date,$featured,$events,$thisCalendar,$months ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
</div>
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "calendar/front/overview/byMonth", "navigation:after", [ $calendars,$date,$featured,$events,$thisCalendar,$months ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
@@ -89,7 +119,17 @@ if ( \count($events) ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<i-data>
|
||||
<ul class='ipsEventList ipsData ipsData--grid ipsData--events-list' data-role='eventList'>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "calendar/front/overview/byMonth", "eventsList:before", [ $calendars,$date,$featured,$events,$thisCalendar,$months ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
<ul class="ipsEventList ipsData ipsData--grid ipsData--events-list" data-role="eventList" data-ips-hook="eventsList">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "calendar/front/overview/byMonth", "eventsList:inside-start", [ $calendars,$date,$featured,$events,$thisCalendar,$months ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
@@ -108,10 +148,20 @@ IPSCONTENT;
|
||||
endforeach;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
</ul>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "calendar/front/overview/byMonth", "eventsList:inside-end", [ $calendars,$date,$featured,$events,$thisCalendar,$months ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
</ul>
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "calendar/front/overview/byMonth", "eventsList:after", [ $calendars,$date,$featured,$events,$thisCalendar,$months ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
</i-data>
|
||||
<div class='i-padding_2 i-text-align_center i-border-top_3'>
|
||||
<button class='ipsButton ipsButton--secondary'
|
||||
<div class="i-padding_2 i-text-align_center i-border-top_3">
|
||||
<button class="ipsButton ipsButton--secondary"
|
||||
IPSCONTENT;
|
||||
|
||||
if ( \count( $events ) < 16 ):
|
||||
@@ -121,13 +171,13 @@ IPSCONTENT;
|
||||
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
data-action='loadMore'>
|
||||
data-action="loadMore">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'events_show_more', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
$return .= <<<IPSCONTENT
|
||||
</button>
|
||||
<p class='ipsEmptyMessage i-padding_0'
|
||||
<p class="ipsEmptyMessage i-padding_0"
|
||||
IPSCONTENT;
|
||||
|
||||
if ( \count( $events ) >= 16 ):
|
||||
@@ -137,7 +187,7 @@ IPSCONTENT;
|
||||
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
data-role='noMoreResults'>
|
||||
data-role="noMoreResults">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'events_no_more_this_month', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
@@ -151,7 +201,7 @@ else:
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<i-data>
|
||||
<ul class='ipsEventList ipsData ipsData--grid ipsData--events-list' data-role='eventList'>
|
||||
<ul class="ipsEventList ipsData ipsData--grid ipsData--events-list" data-role="eventList">
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
@@ -166,7 +216,17 @@ IPSCONTENT;
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "calendar/front/overview/byMonth", "main:inside-end", [ $calendars,$date,$featured,$events,$thisCalendar,$months ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
</section>
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "calendar/front/overview/byMonth", "main:after", [ $calendars,$date,$featured,$events,$thisCalendar,$months ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
return $return;
|
||||
|
||||
Reference in new issue
Block a user