Skip to content

Commit a8fa3a0

Browse files
committed
[spalenque] - #14523
* new general summit landing page * remove old google ad words snippet (useless)
1 parent b0692b0 commit a8fa3a0

52 files changed

Lines changed: 2954 additions & 40 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

coa/templates/COALandingPage.ss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
});
5555
</script>
5656
<% include TwitterUniversalWebsiteTagCode %>
57-
<% include GoogleAdWordsSnippet %>
5857
</body>
5958
<% include Page_LinkedinInsightTracker %>
6059
</html>

marketplace/templates/MarketPlacePage.ss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
<% include Footer %>
4040
<% include Quantcast %>
4141
<% include TwitterUniversalWebsiteTagCode %>
42-
<% include GoogleAdWordsSnippet %>
4342
</body>
4443
<% include Page_LinkedinInsightTracker %>
4544
</html>

papers/templates/PaperViewerPage.ss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
<% include Footer %>
3333
<% include Quantcast %>
3434
<% include TwitterUniversalWebsiteTagCode %>
35-
<% include GoogleAdWordsSnippet %>
3635
</body>
3736
<% include Page_LinkedinInsightTracker %>
3837
<script>

software/templates/SoftwareHomePage.ss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
<% include Footer %>
4242
<% include Quantcast %>
4343
<% include TwitterUniversalWebsiteTagCode %>
44-
<% include GoogleAdWordsSnippet %>
4544
</body>
4645
<% include Page_LinkedinInsightTracker %>
4746
</html>

software/templates/SoftwareSubPage.ss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
<% include Footer %>
4141
<% include Quantcast %>
4242
<% include TwitterUniversalWebsiteTagCode %>
43-
<% include GoogleAdWordsSnippet %>
4443
</body>
4544
<% include Page_LinkedinInsightTracker %>
4645
</html>

summit-trackchair-app/templates/TrackChairsPage.ss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,5 @@
2222
</script>
2323
$ModuleJS('main')
2424
<% include TwitterUniversalWebsiteTagCode %>
25-
<% include GoogleAdWordsSnippet %>
2625
</body>
2726
</html>

summit-voting-app/templates/PresentationVotingPage.ss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
</div>
8585
<% include Quantcast %>
8686
<% include TwitterUniversalWebsiteTagCode %>
87-
<% include GoogleAdWordsSnippet %>
8887
</body>
8988
<% include Page_LinkedinInsightTracker %>
9089
</html>
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<?php
2+
3+
4+
class GeneralSummitLandingPage extends Page
5+
{
6+
7+
}
8+
9+
10+
class GeneralSummitLandingPage_Controller extends Page_Controller
11+
{
12+
13+
public function init()
14+
{
15+
parent::init();
16+
SweetAlert2Dependencies::renderRequirements();
17+
Requirements::javascript("summit/javascript/summit.js");
18+
// Summit pages are so different visually we don't pull in the main css file
19+
Requirements::block("themes/openstack/css/combined.css");
20+
Requirements::css("summit/css/combined.css");
21+
Requirements::css("themes/openstack/static/css/combined.css");
22+
FontAwesomeDependencies::renderRequirements();
23+
Requirements::css('node_modules/@fortawesome/fontawesome-pro/css/all.css');
24+
25+
Requirements::css('summit/css/general-summit-landing-page.css');
26+
27+
}
28+
29+
public function CurrentSummit()
30+
{
31+
$summit = Summit::get_active();
32+
33+
return $summit->isInDB() ? $summit : false;
34+
}
35+
36+
public function getPageTitle()
37+
{
38+
return SummitPage::PageCustomTitle;
39+
}
40+
41+
public function MetaTags()
42+
{
43+
$tags = parent::MetaTags();
44+
return $tags;
45+
}
46+
47+
function getCurrentSummit() {
48+
return Summit::ActiveSummit();
49+
}
50+
51+
function getCurrentSummitPage() {
52+
$currentSummit = Summit::ActiveSummit();
53+
$summitPage = SummitPage::get()->filter('SummitID', $currentSummit->ID)->first();
54+
55+
while($summitPage->Parent()->is_a('SummitPage')) {
56+
$summitPage = $summitPage->Parent();
57+
}
58+
59+
return $summitPage;
60+
}
61+
62+
function getCurrentSummitPageController() {
63+
$summitPage = $this->getCurrentSummitPage();
64+
return ModelAsController::controller_for($summitPage);
65+
}
66+
67+
function getMenuItems() {
68+
$summitPage = $this->getCurrentSummitPage();
69+
70+
$menu = $this->getCurrentSummitPageController()->Menu(3);
71+
$menu->unshift($summitPage);
72+
73+
return $menu;
74+
}
75+
76+
}

0 commit comments

Comments
 (0)