From c0a42ccc0fab91da3ef60cb2e5b45cfee10d48a3 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 10 Jul 2018 14:08:45 -0400 Subject: [PATCH] adding overridden view files for agenda, searchForm and detail adding custom view files to theme so they can be removed from the events plugin --- .../views/front/events/agenda.html | 260 ++++++++++++++++++ .../views/front/events/detail.html | 173 ++++++++++++ .../views/front/events/searchForm.html | 88 ++++++ header.php | 2 +- style.css | 2 +- 5 files changed, 523 insertions(+), 2 deletions(-) create mode 100644 glm-member-db-events/views/front/events/agenda.html create mode 100644 glm-member-db-events/views/front/events/detail.html create mode 100644 glm-member-db-events/views/front/events/searchForm.html diff --git a/glm-member-db-events/views/front/events/agenda.html b/glm-member-db-events/views/front/events/agenda.html new file mode 100644 index 0000000..c7590e1 --- /dev/null +++ b/glm-member-db-events/views/front/events/agenda.html @@ -0,0 +1,260 @@ +
+
+ {include file='front/events/searchFormBeerweek.html'} +
+
+
+ {foreach $eventsByDate as $date => $key} +
+
+
+
{$date|date_format:"%b"}
+
+ {$date|date_format:"%e"} + {$date|date_format:"%a"} +
+
+
+ +
+ {foreach $key as $events} + + {foreach $events as $event} +
+
+

{$event.name}

+
+ ( Occurring {$event.recurrences.0.from_date.date} + {if $event.recurrences.0.from_date.date != $event.recurrences.0.to_date.date} + - {$event.recurrences.0.to_date.date} + {else if $event.recurrences.0.specific_dates} + - {$event.recurrences.0.specific_dates|@end|date_format:"%m/%d/%Y"} + {/if} + + + {if $event.recurrences.0.day_of_week.names|@count < 7 && $event.recurrences.0.day_of_week.names|@count > 0 } + + on + {foreach $event.recurrences.0.day_of_week.names as $day} + {if $day == "Thursday"} + {$day|substr:0:4} + {else} + {$day|substr:0:3} + {/if} + {/foreach} + + {/if} + ) +
+
+ {if !$event.all_day} + {if $event.starting_date|date_format:"%l:%M %P" == $event.ending_date|date_format:"%l:%M %P"} +
{$event.starting_date|date_format:"%l:%M %P"}
+ {else} +
{$event.starting_date|date_format:"%l:%M %P"} - {$event.ending_date|date_format:"%l:%M %P"}
+ {/if} + {/if} +
+
+
+ + + {if !empty($event.amenities)} + {$settings.term_event_amenities_plural}: + {foreach from=$event.amenities key=key item=beer name=array} + {$beer.name} {if not $smarty.foreach.array.last} , {/if} + {/foreach} + {/if} + +
+
+ + {if !empty($event.categories)} + Event Type: + {foreach from=$event.categories key=key item=type name=array} + {$type.name} {if not $smarty.foreach.array.last} , {/if} + {/foreach} + {/if} + +
+
+ + + {if $event.use_member_location.value === '1'} + Event Venue: {$event.ref_dest} + {else if $event.other_ref_dest} + Event Venue: {$event.other_ref_dest} + {/if} + +
+ {if $event.image}{/if} + {$event.intro} +
+ Read More +
+
+
+
+ {/foreach} + {/foreach} +
+
+ {/foreach} + +
+
+ +
+
+
+
+
+
+ + + + diff --git a/glm-member-db-events/views/front/events/detail.html b/glm-member-db-events/views/front/events/detail.html new file mode 100644 index 0000000..76e1825 --- /dev/null +++ b/glm-member-db-events/views/front/events/detail.html @@ -0,0 +1,173 @@ +
+ Back To Search +
+
+
+ {include file='front/events/searchFormBeerweek.html'} +
+
+
+ {if $event} +
+
+ + Share +
+
+

{$event.name}

+
+ {if $event.image} +
+ +
+ {/if} +
+
+ {if $event.locations} +
+ {if $event.locations.lat} +
+
map...
+
Loading...
+
+
+
+
+ + + + +
+ {/if} +
+ {elseif $event.member && ($event.use_member_location.value || $event.other_ref_dest) } +
+ {if $event.member.lat} +
+
map...
+
Loading...
+
+
+
+
+ + + + +
+ {/if} +
+ {/if} +
+
+
{$event.dates}{if $expired} (Expired){/if}
+ {if !$event.all_day} + {if $event.starting_date|date_format:"%l:%M %P" == $event.ending_date|date_format:"%l:%M %P"} + {$event.starting_date|date_format:"%l:%M %P"} + {else} + {$event.starting_date|date_format:"%l:%M %P"} - {$event.ending_date|date_format:"%l:%M %P"} + {/if} + {/if} +
+ {if $event.hide_address.name == 'No'} + {if !$event.use_member_location.value && ($event.locations.name || $event.locations.address)} +
+ {if $event.locations.name}{$event.locations.name}
{/if} + {if $event.locations.address} {$event.locations.address}
{/if} + {if $event.locations.city.name}{$event.locations.city.name}{/if}{if $event.locations.state.value}, {$event.locations.state.value} {/if} + {if $event.locations.zip} {$event.locations.zip} {/if} + {if $event.locations.phone} {$event.locations.phone} {/if} +
+ {elseif $event.use_member_location.value || $event.other_ref_dest} +
+ {if $event.member.member} {$event.member.member}
{/if} + {if $event.member.addr1} {$event.member.addr1}
{/if} + {if $event.member.city}{$event.member.city}{/if}{if $event.member.state.value}, {$event.member.state.value}{/if} + {if $event.member.zip} {$event.member.zip} {/if} + {if $event.member.phone} {$event.member.phone} {/if} +
+ {/if} + {/if} + {if $event.cost && !$event.free.value} +
Cost: {$event.cost}
+ {/if} + {if $event.free.value} +
Cost: FREE
+ {/if} + {if $event.ticket_url} + + {/if} + {if $event.registration_url} + + {/if} + +
Contact & More Info
+ {if $event.url}{$event.url}
{/if} + {if $event.contact_name}Contact: {$event.contact_name}
{/if} + {if $event.contact_email}Email: {$event.contact_email}
{/if} + {if $event.contact_phone}Phone: {$event.contact_phone}
{/if} + {if $event.file1} + + {/if} + {if $event.file2} + + {/if} + {if $event.file3} + + {/if} +
+ +
+
+
+
+
+

+ {if !empty($event.amenities)} + {$settings.term_event_amenities_plural}: + {foreach from=$event.amenities key=key item=beer name=array} + {$beer.name} {if not $smarty.foreach.array.last} , {/if} + {/foreach} + {/if} + {if !empty($event.categories)}
+ Event Type: + {foreach from=$event.categories key=key item=type name=array} + {$type.name} {if not $smarty.foreach.array.last} , {/if} + {/foreach} + {/if} + {if $event.use_member_location.value === '1'}
+ Event Venue: {$event.ref_dest} + {else if $event.other_ref_dest}
+ Event Venue: {$event.other_ref_dest} + {/if} +

+
+
+
+

{$event.descr}

+
+
+
+
+ {else} +
Sorry, No results.
+ {/if} +
+ + diff --git a/glm-member-db-events/views/front/events/searchForm.html b/glm-member-db-events/views/front/events/searchForm.html new file mode 100644 index 0000000..8fe9e5f --- /dev/null +++ b/glm-member-db-events/views/front/events/searchForm.html @@ -0,0 +1,88 @@ + +
+

Find An Event

+ +
+
+ +
+ diff --git a/header.php b/header.php index 92eb299..6b34be9 100644 --- a/header.php +++ b/header.php @@ -4,7 +4,7 @@ <?php wp_title(); ?> - + diff --git a/style.css b/style.css index ed77044..6591e9e 100644 --- a/style.css +++ b/style.css @@ -3,5 +3,5 @@ Theme Name: KalamazooBeerWeek Author: Gaslight Media Author URI: http://www.gaslightmedia.com Description: A theme for KalamazooBeerWeek -Version: 1.0.9 +Version: 1.0.10 */ -- 2.17.1