Skip to content

Commit d26b697

Browse files
Merge pull request #24 from CodeForPhilly/develop
Release: v1.1.2
2 parents 824e4b6 + 3b5d850 commit d26b697

File tree

17 files changed

+179
-29
lines changed

17 files changed

+179
-29
lines changed

.holo/sources/laddr.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[holosource]
22
url = "https://github.com/CodeForPhilly/laddr"
3-
ref = "refs/tags/v3.0.7"
3+
ref = "refs/tags/v3.0.9"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
// add new user to a MailChimp list (see http://forum.laddr.us/t/mailchimp-integration/26)
4+
\RemoteSystems\MailChimp::call('lists/subscribe', [
5+
'id' => '411e7bdbef',
6+
'email' => [
7+
'email' => $_EVENT['User']->Email
8+
],
9+
'merge_vars' => [
10+
'FNAME' => $_EVENT['User']->FirstName,
11+
'LNAME' => $_EVENT['User']->LastName
12+
],
13+
'double_optin' => false,
14+
'replace_interests' => false,
15+
'send_welcome' => false
16+
]);

html-templates/discourse/topic.tpl

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{extends designs/site.tpl}
2+
3+
{block title}{$fancy_title|escape} &mdash; {$dwoo.parent}{/block}
4+
5+
{block content}
6+
<h2>{$fancy_title|escape}</h2>
7+
{$post_stream.posts[0].cooked}
8+
9+
<hr>
10+
{$url = "http://forum.codeforphilly.org/t/$slug/$id"}
11+
Edit or discuss this page at <a href="{$url|escape}">{$url|escape}</a>
12+
13+
14+
<hr>
15+
16+
<div id="discourse-comments"></div>
17+
18+
<script type="text/javascript">
19+
var DiscourseEmbed = {
20+
discourseUrl: '//forum.codeforphilly.org/',
21+
topicId: {$id|json_encode}
22+
};
23+
24+
(function() {
25+
var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
26+
d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
27+
28+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
29+
})();
30+
</script>
31+
32+
{/block}

html-templates/includes/site.nav-sitelinks.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<a class="dropdown-item" href="/mission">{_ "Mission"}</a>
2424
<a class="dropdown-item" href="/pages/code_of_conduct/">{_ "Code of Conduct"}</a>
2525
<a class="dropdown-item" href="/pages/leadership/">{_ "Organizing Team"}</a>
26+
<a class="dropdown-item" href="/pages/leadership-support_team_open_positions/">{_ "Join the Organizing Team"}</a>
2627
<a class="dropdown-item" href="/contact">{_ "Contact Us"}</a>
2728
</div>
2829
</li>

php-config/ActiveRecord.config.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?php
2+
3+
// use ActiveRecord caching in production
4+
ActiveRecord::$useCache = Site::$production;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
ContactRequestHandler::$emailTo = '[email protected]';
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
DiscourseKids::$ssoSecret = getenv('DISCOURSE_KIDS_SSO_SECRET');
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
DiscourseSteering::$ssoSecret = getenv('DISCOURSE_STEERING_SSO_SECRET');
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?php
2+
3+
// Uncomment to restrict commenting to staff
4+
Emergence\Comments\CommentsRequestHandler::$accountLevelWrite = 'Staff';
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?php
2+
3+
Emergence\Connectors\Discourse::$host = getenv('DISCOURSE_HOST');
4+
Emergence\Connectors\Discourse::$ssoSecret = getenv('DISCOURSE_SSO_SECRET');

0 commit comments

Comments
 (0)