From: Steve Sutton Date: Thu, 19 May 2016 19:42:11 +0000 (-0400) Subject: Updating the event detail page X-Git-Tag: v1.0.0^2~21 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=fb5584590a0ff486a29953cf78a7922693b1fe54;p=WP-Plugins%2Fglm-member-db-events.git Updating the event detail page Setting up the detail page based on what Collins has given us for a new design. --- diff --git a/css/front.css b/css/front.css index ef4c44d..2d01afc 100644 --- a/css/front.css +++ b/css/front.css @@ -80,14 +80,14 @@ } #eventDetail-map { cursor: pointer; - height: 160px; + height: 260px; } .st_sharethis { float: right; margin-top: 10px; width: 58px; } -#glm-event-wrapper .eventTitle .stButton .sharethis { +#glm-event-wrapper .stButton .sharethis { background-image: url("../assets/share-icon.png") !important; width: 52px; height: 22px; @@ -131,6 +131,7 @@ input[name='contact_fname'], input[name='contact_lname']{ margin-top: 20px !important; } } +/* Event Detail Page */ #glm-event-detail-takeback-mini > span { width: 120px; top: 13px; @@ -143,3 +144,63 @@ input[name='contact_fname'], input[name='contact_lname']{ -o-transition: width 0.5s ease; transition: width 0.5s ease; } +#glm-event-detail-dates { + margin: 0 0 10px 20px; + position: relative; +} +#glm-event-detail-dates:before { + content: ""; + background-image: url("../assets/time-icon-24x24.png"); + background-height: 24px; + background-width: 24px; + position: absolute; + width: 24px; + height: 24px; + top: 6px; + left: -35px; +} +#glm-event-detail-location { + margin: 0 0 10px 20px; + position: relative; +} +#glm-event-detail-location:before { + content: ""; + background-image: url("../assets/location-icon-24x24.png"); + background-height: 24px; + background-width: 24px; + position: absolute; + width: 24px; + height: 24px; + top: 6px; + left: -35px; +} +#glm-event-detail-cost { + margin: 0 0 10px 20px; + position: relative; +} +#glm-event-detail-cost:before { + content: ""; + background-image: url("../assets/cost-icon-24x24.png"); + background-height: 24px; + background-width: 24px; + position: absolute; + width: 24px; + height: 24px; + top: 6px; + left: -35px; +} +#glm-event-detail-contact { + margin: 0 0 10px 20px; + position: relative; +} +#glm-event-detail-contact:before { + content: ""; + background-image: url("../assets/contact-icon-24x24.png"); + background-height: 24px; + background-width: 24px; + position: absolute; + width: 24px; + height: 24px; + top: 6px; + left: -35px; +} diff --git a/js/dashboard.js b/js/dashboard.js index 7bd34bc..350a495 100644 --- a/js/dashboard.js +++ b/js/dashboard.js @@ -9,8 +9,8 @@ if ($('#eventDetail-map').length > 0) { GLM_GeoMap.initialize(); $('#map-dialog').dialog({ - height: 480, - width: 520, + height: 490, + width: 630, modal: true, autoOpen: false }); diff --git a/views/front/events/detail.html b/views/front/events/detail.html index a50ca75..1214556 100644 --- a/views/front/events/detail.html +++ b/views/front/events/detail.html @@ -1,4 +1,4 @@ -
+
Back To Search
@@ -8,119 +8,116 @@
-
-
-
-
-

{$event.name}

+
+
-
- {if $event.image} -
- -
- {/if} -
-
- {if $event.locations} -
- {if $event.locations.lat} -
-
map...
-
Loading...
-
-
-
-
- - - - -
- {/if} +
+
+

{$event.name}

- {elseif $event.member && $event.use_member_location.value} -
- {if $event.member.lat} -
-
map...
-
Loading...
-
-
-
-
- - - - -
- {/if} + {if $event.image} +
+
{/if} -
-
-
{$event.dates}
-
- {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 $event.locations} +
+ {if $event.locations.lat} +
+
map...
+
Loading...
+
+
+
+
+ + + + +
{/if} - {/if}
- {if $event.hide_address.name == 'No'} -
- {if !$event.use_member_location.value && $event.locations} - {if $event.locations.name}{$event.locations.name}
{/if} - {if $event.locations.address} - {$event.locations.address}
- {$event.locations.city.name}, {$event.locations.state.value} {$event.locations.zip} - {/if} - {elseif $event.use_member_location.value} - {$event.member.member}
- {$event.member.addr1}
- {$event.member.city}, {$event.member.state.value} {$event.member.zip} - {/if} -
- {/if} - {if $event.cost && !$event.free.value} -
Cost:
{$event.cost}
- {/if} - {if $event.free.value} -
Cost:
FREE
- {/if} - {if $event.file1} -
File: - {if $event.file1_descr}{$event.file1_descr}{else}{$event.file1}{/if} + {elseif $event.member && $event.use_member_location.value} +
+ {if $event.member.lat} +
+
map...
+
Loading...
+
+
+
+ + + + +
+ {/if} +
{/if} - {if $event.file2} -
File 2: - {if $event.file2_descr}{$event.file2_descr}{else}{$event.file2}{/if} +
+
+
{$event.dates}
+ {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} - {if $event.file3} -
File 3: - {if $event.file3_descr}{$event.file3_descr}{else}{$event.file3}{/if} + {if $event.hide_address.name == 'No'} +
+ {if !$event.use_member_location.value && $event.locations} + {if $event.locations.name}{$event.locations.name}
{/if} + {if $event.locations.address} + {$event.locations.address}
+ {$event.locations.city.name}, {$event.locations.state.value} {$event.locations.zip} + {/if} + {elseif $event.use_member_location.value} + {$event.member.member}
+ {$event.member.addr1}
+ {$event.member.city}, {$event.member.state.value} {$event.member.zip} + {/if} +
+ {/if} + {if $event.cost && !$event.free.value} +
Cost: {$event.cost}
+ {/if} + {if $event.free.value} +
Cost: FREE
+ {/if} + {if $event.file1} + + {/if} + {if $event.file2} + + {/if} + {if $event.file3} + + {/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} -
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}
-
-
+
+

{$event.descr}

-
-
-
-
-
- -
+
+
+
+