Skip to content

Commit 86102fd

Browse files
committed
Added Exhibitor Sponsor Type
1 parent abb025f commit 86102fd

2 files changed

Lines changed: 27 additions & 2 deletions

File tree

summit/code/pages/SummitSponsorPage.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class SummitSponsorPage extends SummitPage
5757
//sponsor type
5858
private static $many_many_extraFields = array(
5959
'Companies' => [
60-
'SponsorshipType' => "Enum('Headline, Premier, Event, Startup, InKind, Spotlight, Media, Party', 'Startup')",
60+
'SponsorshipType' => "Enum('Headline, Premier, Event, Exhibitor, Startup, InKind, Spotlight, Media, Party', 'Startup')",
6161
'SubmitPageUrl' => 'Text',
6262
'SummitID' => 'Int'
6363
],
@@ -287,7 +287,7 @@ public function getAudienceCountriesRepresented()
287287
*/
288288
public function HasSponsors(){
289289
return $this->StartupSponsors()->Count() > 0 || $this->HeadlineSponsors()->Count() > 0
290-
|| $this->PremierSponsors()->Count() > 0 || $this->EventSponsors()->Count() > 0
290+
|| $this->PremierSponsors()->Count() > 0 || $this->EventSponsors()->Count() > 0 || $this->Exhibitor()->Count() > 0
291291
|| $this->InKindSponsors()->Count() > 0 || $this->SpotlightSponsors()->Count() > 0
292292
|| $this->MediaSponsors()->Count() > 0;
293293
}
@@ -320,6 +320,11 @@ public function EventSponsors()
320320
return $this->Sponsors("Event");
321321
}
322322

323+
public function ExhibitorSponsors()
324+
{
325+
return $this->Sponsors("Exhibitor");
326+
}
327+
323328
public function InKindSponsors()
324329
{
325330
return $this->Sponsors("InKind");

summit/templates/Layout/SummitSponsorPage.ss

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,26 @@
134134
</div>
135135
</div>
136136
<% end_if %>
137+
<% if ExhibitorSponsors %>
138+
<div class="row">
139+
<div class="col-lg-8 col-lg-push-2">
140+
<h5 class="section-title">
141+
Exhibitor Sponsors
142+
</h5>
143+
</div>
144+
<div class="col-lg-8 col-lg-push-2">
145+
<div class="row">
146+
<% loop ExhibitorSponsors %>
147+
<div class="col-lg-2 col-md-2 col-sm-2">
148+
<a rel="nofollow" href="{$SubmitLandPageUrl}">
149+
$SubmitLogo
150+
</a>
151+
</div>
152+
<% end_loop %>
153+
</div>
154+
</div>
155+
</div>
156+
<% end_if %>
137157
<% if EventSponsors %>
138158
<div class="row">
139159
<div class="col-lg-8 col-lg-push-2">

0 commit comments

Comments
 (0)