Permalink
Browse files

adding v0.1 code

  • Loading branch information...
themightychris committed Apr 5, 2014
1 parent 2f449bc commit 9af6d51f9af1837c89dd78b9c84f6cdf3970183c
Showing with 16,521 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +24 −0 html-templates/checked-in.tpl
  3. +5 −0 html-templates/designs/site.subtemplates.tpl
  4. +58 −0 html-templates/designs/site.tpl
  5. +176 −0 html-templates/home.tpl
  6. +8 −0 html-templates/how-to-help.tpl
  7. +7 −0 html-templates/includes/home.resources.tpl
  8. +12 −0 html-templates/includes/site.css.tpl
  9. +8 −0 html-templates/includes/site.footer.tpl
  10. +36 −0 html-templates/includes/site.header.tpl
  11. +15 −0 html-templates/includes/site.js-bottom.tpl
  12. 0 html-templates/includes/site.js-top.tpl
  13. +4 −0 html-templates/includes/site.meta-info.tpl
  14. +2 −0 html-templates/includes/site.nav-sitelinks.tpl
  15. +3 −0 html-templates/includes/site.nav-userlinks.tpl
  16. +67 −0 html-templates/login/login.tpl
  17. +17 −0 html-templates/mission.tpl
  18. +14 −0 html-templates/people/people.tpl
  19. +60 −0 html-templates/people/person.tpl
  20. +138 −0 html-templates/profile/profileEdit.tpl
  21. +42 −0 html-templates/project-updates/projectUpdate.tpl
  22. +7 −0 html-templates/project-updates/projectUpdateDeleted.tpl
  23. +32 −0 html-templates/project-updates/projectUpdateEdit.tpl
  24. +7 −0 html-templates/project-updates/projectUpdateSaved.tpl
  25. +16 −0 html-templates/project-updates/projectUpdates.tpl
  26. +7 −0 html-templates/projects/maintainerChanged.tpl
  27. +7 −0 html-templates/projects/memberAdded.tpl
  28. +7 −0 html-templates/projects/memberRemoved.tpl
  29. +194 −0 html-templates/projects/project.tpl
  30. +73 −0 html-templates/projects/projectEdit.tpl
  31. +13 −0 html-templates/projects/projectSaved.tpl
  32. +1 −0 html-templates/projects/projectUpdate.tpl
  33. +7 −0 html-templates/projects/projectUpdateCreated.tpl
  34. +65 −0 html-templates/projects/projects.tpl
  35. +85 −0 html-templates/register/register.tpl
  36. +16 −0 html-templates/subtemplates/meetups.tpl
  37. +40 −0 html-templates/subtemplates/projects.tpl
  38. +3 −0 html-templates/subtemplates/tags.tpl
  39. +19 −0 php-classes/Laddr.php
  40. +49 −0 php-classes/Laddr/MemberCheckin.php
  41. +36 −0 php-classes/Laddr/PeopleRequestHandler.php
  42. +164 −0 php-classes/Laddr/Project.php
  43. +45 −0 php-classes/Laddr/ProjectMember.php
  44. +58 −0 php-classes/Laddr/ProjectUpdate.php
  45. +25 −0 php-classes/Laddr/ProjectUpdatesRequestHandler.php
  46. +194 −0 php-classes/Laddr/ProjectsRequestHandler.php
  47. +44 −0 php-classes/RemoteSystems/Meetup.php
  48. +24 −0 php-classes/RemoteSystems/Twitter.php
  49. +14 −0 php-config/Git.config.php
  50. +17 −0 php-config/ProfileRequestHandler.config.php
  51. +4 −0 php-config/RemoteSystems/Meetup.config.php
  52. +3 −0 php-config/RemoteSystems/Twitter.config.php
  53. +61 −0 php-config/User.config.php
  54. +43 −0 site-root/checkin.php
  55. +150 −0 site-root/css/bootstrap-combobox.css
  56. +1,091 −0 site-root/css/bootstrap-responsive.css
  57. +45 −0 site-root/css/bootstrap-tagsinput.css
  58. +6,039 −0 site-root/css/bootstrap.css
  59. +62 −0 site-root/css/laddr.css
  60. +113 −0 site-root/css/pages/home.css
  61. +17 −0 site-root/css/pages/members.css
  62. +15 −0 site-root/css/pages/projects.css
  63. BIN site-root/favicon.ico
  64. +88 −0 site-root/home.php
  65. +3 −0 site-root/how-to-help.php
  66. BIN site-root/img/cover.jpg
  67. BIN site-root/img/logo.png
  68. +247 −0 site-root/js/bootstrap-combobox.js
  69. +505 −0 site-root/js/bootstrap-tagsinput.js
  70. +117 −0 site-root/js/bootstrap/bootstrap-affix.js
  71. +99 −0 site-root/js/bootstrap/bootstrap-alert.js
  72. +105 −0 site-root/js/bootstrap/bootstrap-button.js
  73. +185 −0 site-root/js/bootstrap/bootstrap-carousel.js
  74. +167 −0 site-root/js/bootstrap/bootstrap-collapse.js
  75. +161 −0 site-root/js/bootstrap/bootstrap-dropdown.js
  76. +245 −0 site-root/js/bootstrap/bootstrap-modal.js
  77. +114 −0 site-root/js/bootstrap/bootstrap-popover.js
  78. +162 −0 site-root/js/bootstrap/bootstrap-scrollspy.js
  79. +144 −0 site-root/js/bootstrap/bootstrap-tab.js
  80. +287 −0 site-root/js/bootstrap/bootstrap-tooltip.js
  81. +60 −0 site-root/js/bootstrap/bootstrap-transition.js
  82. +323 −0 site-root/js/bootstrap/bootstrap-typeahead.js
  83. +2,899 −0 site-root/js/epiceditor.js
  84. +5 −0 site-root/js/features/sidebar-checkin.js
  85. +14 −0 site-root/js/features/sidebar-tags.js
  86. +2 −0 site-root/js/jquery.js
  87. +63 −0 site-root/js/pages/profile-edit.js
  88. +63 −0 site-root/js/pages/project-edit.js
  89. +35 −0 site-root/js/pages/project.js
  90. +29 −0 site-root/js/pages/update-edit.js
  91. +70 −0 site-root/lib/epiceditor/themes/base/epiceditor.css
  92. +13 −0 site-root/lib/epiceditor/themes/editor/epic-dark.css
  93. +12 −0 site-root/lib/epiceditor/themes/editor/epic-light.css
  94. +167 −0 site-root/lib/epiceditor/themes/preview/bartik.css
  95. +20 −0 site-root/lib/epiceditor/themes/preview/cfa.css
  96. +368 −0 site-root/lib/epiceditor/themes/preview/github.css
  97. +121 −0 site-root/lib/epiceditor/themes/preview/preview-dark.css
  98. +7 −0 site-root/members.php
  99. +3 −0 site-root/mission.php
  100. +3 −0 site-root/people.php
  101. +3 −0 site-root/project-updates.php
  102. +3 −0 site-root/projects.php
View
@@ -0,0 +1 @@
+.emergence
@@ -0,0 +1,24 @@
+{extends designs/site.tpl}
+
+{block title}How to help — {$dwoo.parent}{/block}
+
+{block content}
+ {$Checkin = $data}
+
+ <h2>Success!</h2>
+ <p>Thanks for checking in {if $Checkin->Project}to {projectLink $Checkin->Project}{/if} @ {Laddr::$siteName|escape}!</p>
+ <h3>Things to do next:</h3>
+ <ul>
+ {if $Checkin->Project}
+ <li><a href="{$Checkin->Project->getURL()}">Post an update to your project</a></li>
+ {else}
+ <li><a href="/projects">Find or start a project</a></li>
+ {/if}
+
+ <li><a href="/">Return to the home page</a></li>
+
+ {if $.Session->hasAccountLevel('Developer')}
+ <li><a href="/develop#/html-templates/checked-in.tpl">Add stuff to this list</a></li>
+ {/if}
+ </ul>
+{/block}
@@ -0,0 +1,5 @@
+{load_templates subtemplates/people.tpl}
+{load_templates subtemplates/contextLinks.tpl}
+{load_templates subtemplates/tags.tpl}
+{load_templates subtemplates/projects.tpl}
+{load_templates subtemplates/meetups.tpl}
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+{load_templates designs/site.subtemplates.tpl}
+<html class="no-js" lang="en">
+
+ <head>
+ <meta charset="utf-8">
+
+ {* now use {$dwoo.parent} on subpages to automatically fill in the site name *}
+ <title>{block "title"}{Laddr::$siteName|escape}{/block}</title>
+
+ {block "meta-info"}
+ {include includes/site.meta-info.tpl}
+ {/block}
+
+ {block "meta-rendering"}
+ {include includes/site.meta-rendering.tpl}
+ {/block}
+
+ {block "favicons"}
+ {include includes/site.favicons.tpl}
+ {/block}
+
+ {block "css"}
+ {include includes/site.css.tpl}
+ {/block}
+
+ {block "js-top"}
+ {include includes/site.js-top.tpl}
+ {/block}
+ </head>
+
+ {* using the responseID as a class on the body can help with subpage-specific styles *}
+ <body class="{block 'body-class'}{str_replace('/', '_', $.responseId)}-tpl{/block}">
+ {block header}
+ {include includes/site.header.tpl}
+ {/block}
+
+ {block content-wrapper-open}<div class="container">{/block}
+ {block content}{/block}
+ {block content-wrapper-close}</div>{/block}
+
+ {block footer}
+ {include includes/site.footer.tpl}
+ {/block}
+
+ {block "js-bottom"}
+ {include includes/site.js-bottom.tpl}
+ {/block}
+
+ {block "js-analytics"}
+ {include includes/site.analytics.tpl}
+ {/block}
+
+ {* enables site developers to dump the internal session log here by setting ?log_report=1 on any page *}
+ {log_report}
+ </body>
+
+</html>
View
@@ -0,0 +1,176 @@
+{extends designs/site.tpl}
+
+{block js-bottom}
+ {$dwoo.parent}
+ {jsmin "features/sidebar-tags.js+features/sidebar-checkin.js"}
+{/block}
+
+{block header}
+ {$dwoo.parent}
+
+ <div class="hero-unit">
+ <div class="caption">
+ <img src="/img/logo.png" class="logo" alt="{Laddr::$siteName|escape}">
+ <p>{Laddr::$siteSlogan|escape}</p>
+ <p>
+ <a href="{tif $.User ? '/projects' : '/register'}" class="btn btn-primary">Start Hacking</a>
+ <small>or <a href="/mission">Learn More&hellip;</a></small>
+ </p>
+ </div>
+ </div>
+{/block}
+
+{block content-wrapper-open}<div class="container-fluid">{/block}
+{block content}
+ <nav class="sidebar left">
+
+ <section class="tagsSummary projects">
+ <a class="btn btn-success btn-mini pull-right" href="/projects/create">Add project</a>
+ <h4><a href="/projects">Projects <span class="badge badge-info">{$projectsTotal|number_format}</span></a></h4>
+
+ <header class="btn-group">
+ <a href="#projects-by-tech" class="tagFilter active btn btn-mini" data-group="byTech">by tech</a> |
+ <a href="#projects-by-topic" class="tagFilter btn btn-mini" data-group="byTopic">by topic</a> |
+ <a href="#projects-by-event" class="tagFilter btn btn-mini" data-group="byEvent">by event</a>
+ </header>
+
+ <ul class="tags nav nav-tabs nav-stacked byTech">
+ {foreach item=tag from=$projectsTags.byTech}
+ <li>{tagLink tagData=$tag rootUrl="/projects"}</li>
+ {/foreach}
+ </ul>
+
+ <ul class="tags nav nav-tabs nav-stacked byTopic" style="display: none">
+ {foreach item=tag from=$projectsTags.byTopic}
+ <li>{tagLink tagData=$tag rootUrl="/projects"}</li>
+ {/foreach}
+ </ul>
+
+ <ul class="tags nav nav-tabs nav-stacked byEvent" style="display: none">
+ {foreach item=tag from=$projectsTags.byEvent}
+ <li>{tagLink tagData=$tag rootUrl="/projects"}</li>
+ {/foreach}
+ </ul>
+ </section>
+
+ <section class="tagsSummary members">
+ <h4><a href="/people">Members <span class="badge badge-info">{$membersTotal|number_format}</span></a></h4>
+
+ <header class="btn-group">
+ <a href="#members-by-tech" class="tagFilter active btn btn-mini" data-group="byTech">by tech</a> |
+ <a href="#members-by-topic" class="tagFilter btn btn-mini" data-group="byTopic">by topic</a>
+ </header>
+
+ <ul class="tags nav nav-tabs nav-stacked byTech">
+ {foreach item=tag from=$membersTags.byTech}
+ <li>{tagLink tagData=$tag rootUrl="/people"}</li>
+ {/foreach}
+ </ul>
+
+ <ul class="tags nav nav-tabs nav-stacked byTopic" style="display: none">
+ {foreach item=tag from=$membersTags.byTopic}
+ <li>{tagLink tagData=$tag rootUrl="/people"}</li>
+ {/foreach}
+ </ul>
+ </section>
+
+ {include includes/home.resources.tpl}
+
+ {*
+ <a href="#"><h5>Events (108)</h5></a>
+ <ul>
+ <li><a href="#">Workshops (100/3)</h3></a></li>
+ <li><a href="#">Hackathons (10/4)</h3></a></li>
+ <li><a href="#">Social (6/3)</h3></a></li>
+ </ul>
+ <h6><a href="#">event count</a> | <a href="#">next closest</a></h6>
+
+ <a href="#"><h5>Help Wanted (10)</h5></a>
+ <ul>
+ <li><a href="#">PHP (1)</a></li>
+ <li><a href="#">JS (2)</a></li>
+ <li><a href="#">Python (100)</a></li>
+ <li><a href="#">Rails (42)</a></li>
+ </ul>
+ <h6><a href="#">job count</a> | <a href="#">by tech</a></h6>
+
+ <a href="#"><h5>Help Offered</h5></a>
+ <ul>
+ <li><a href="#">Django (2)</a></li>
+ <li><a href="#">Node.js (1)</a></li>
+ </ul>
+ <h6><a href="#">job count</a> | <a href="#">by tech</a></h6>
+ *}
+ </nav>
+
+ <aside class="sidebar right meetups">
+
+ {if $currentMeetup}
+ <article class="meetup meetup-current">
+ <h3><strong>Current</strong> Meetup</h3>
+ {meetup $currentMeetup showRsvp=false}
+ <form class="checkin" action="/checkin" method="POST">
+ <input type="hidden" name="MeetupID" value="{$currentMeetup.id}">
+ <select name="ProjectID" class="project-picker">
+ <option value="">Current Project (if any)</option>
+ {foreach item=Project from=Laddr\Project::getAll()}
+ <option value="{$Project->ID}">{$Project->Title|escape}</option>
+ {/foreach}
+ </select>
+ <input type="submit" value="Check In" class="btn btn-success">
+ </form>
+ <aside class="checkins">
+ <h4>Checked-in Members</h4>
+ {$lastProjectID = null}
+ <h5 class="muted">No Current Project</h5>
+ <ul class="nav nav-pills nav-stacked">
+ {foreach item=Checkin from=$currentMeetup.checkins}
+ {if $Checkin->ProjectID != $lastProjectID}
+ </ul>
+ <h5>{if $Checkin->Project}{projectLink $Checkin->Project}{/if}</h5>
+ {$lastProjectID = $Checkin->ProjectID}
+ <ul class="nav nav-pills nav-stacked">
+ {/if}
+ <li>{personLink $Checkin->Member photo=yes photoSize=32}</li>
+ {/foreach}
+ </ul>
+ </aside>
+ </article>
+ {/if}
+
+ {if $nextMeetup}
+ <article class="meetup meetup-next">
+ <h3><strong>Next</strong> Meetup</h3>
+ {meetup $nextMeetup}
+ </article>
+ {/if}
+
+ {if count($futureMeetups)}
+ <h3>Future Meetups</h3>
+ {foreach item=futureMeetup from=$futureMeetups}
+ <article class="meetup meetup-future">
+ {meetup $futureMeetup}
+ </article>
+ {/foreach}
+ {/if}
+
+ </aside>
+
+ <section class="content fixed-fixed">
+ <section>
+ <h2>Latest Project Updates</h3>
+ <div class="row-fluid">
+
+ {foreach item=Update from=$updates}
+ {projectUpdate $Update headingLevel=h3 showProject=true}
+ {foreachelse}
+ <em>No project updates have been posted on this site yet</em>
+ {/foreach}
+
+ <a href="/project-updates">Browse all project updates&hellip;</a>
+
+ </div> <!-- .row-fluid -->
+ </section>
+ </section>
+{/block}
+{block content-wrapper-close}</div>{/block}
@@ -0,0 +1,8 @@
+{extends designs/site.tpl}
+
+{block title}How to help &mdash; {$dwoo.parent}{/block}
+
+{block content}
+ <h2>How to help</h2>
+ <p><a href="/projects/create" class="btn btn-mini">Create a project</a> or <a href="/projects" class="btn btn-mini">find an existing</a> one to get involved with in our projects directory.</p>
+{/block}
@@ -0,0 +1,7 @@
+<section class="resources">
+ <a href="/resources"><h4>Civic Hacking Resources</h4></a>
+ <ul class="nav nav-tabs nav-stacked">
+ <li><a href="http://commons.codeforamerica.org/">CfA Commons</h3></a></li>
+ <li><a href="http://opendata.stackexchange.com/">Open Data Stack Exchange</h3></a></li>
+ </ul>
+</section>
@@ -0,0 +1,12 @@
+{*
+ Compresses all CSS files into a single request.
+ Add ?cssdebug=1 to any URL to load separate uncompressed files
+*}
+{cssmin array(
+ 'bootstrap.css'
+ ,'bootstrap-responsive.css'
+ ,'bootstrap-combobox.css'
+ ,'bootstrap-tagsinput.css'
+ ,'laddr.css'
+ ,'pages/*'
+)}
@@ -0,0 +1,8 @@
+<footer class="site">
+ Powered by <a href="http://laddr.io">Laddr</a> &mdash; a <a href="http://codeforphilly.org">Code for Philly</a> project.
+ {*
+ {if $responseID == 'home'}
+ <br>Cover photo by <a href="XXXXXX" target="_blank">XXXXXX</a>.
+ {/if}
+ *}
+</footer>
@@ -0,0 +1,36 @@
+{load_templates subtemplates/people.tpl}
+<nav class="navbar navbar-inverse navbar-fixed-top navbar-site">
+ <section class="navbar-inner">
+ <div class="container">
+
+ <!-- .btn-navbar is used as the toggle for collapsed navbar content -->
+ <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </a>
+
+ <a class="brand" href="/">{Laddr::$siteName|escape}</a>
+
+ <div class="nav-collapse collapse">
+ <ul class="nav">
+ {include includes/site.nav-sitelinks.tpl}
+ </ul>
+
+ <ul class="nav pull-right">
+ {if $.User}
+ <li class="dropdown">
+ <a class="dropdown-toggle" data-toggle="dropdown" href="#">{avatar $.User 18} {$.User->FirstName} <b class="caret"></b></a>
+ <ul class="dropdown-menu" role="menu">
+ {include includes/site.nav-userlinks.tpl}
+ </ul>
+ </li>
+ {else}
+ <li><a href="/login">Login</a></li>
+ <li><a href="/register">Sign up!</a></li>
+ {/if}
+ </ul>
+ </div>
+ </div>
+ </section>
+</nav>
@@ -0,0 +1,15 @@
+{*
+ Compresses all JS files into a single request.
+ Add ?jsdebug=1 to any URL to load separate uncompressed files
+*}
+{jsmin array(
+ 'jquery.js'
+ ,'bootstrap/bootstrap-collapse.js'
+ ,'bootstrap/bootstrap-typeahead.js'
+ ,'bootstrap/bootstrap-dropdown.js'
+ ,'bootstrap/bootstrap-modal.js'
+ ,'bootstrap/bootstrap-modal.js'
+ ,'bootstrap/bootstrap-tooltip.js'
+ ,'bootstrap-combobox.js'
+ ,'bootstrap-tagsinput.js'
+)}
No changes.
@@ -0,0 +1,4 @@
+{* most other old-school meta tags are now useless; "keywords" is ignored by Google, for example
+ * but "description" is still good, and you can put other microdata-type tags in here if need be
+*}
+<meta name="description" content="A Code for America Brigade">
@@ -0,0 +1,2 @@
+<li><a href="/mission">Mission</a></li>
+<li><a href="/how-to-help">How to Help</a></li>
@@ -0,0 +1,3 @@
+<li><a href="{$.User->getURL()}">View My Profile</a></li>
+<li><a href="/profile">Edit My Profile</a></li>
+<li><a href="/logout">Logout</a></li>
Oops, something went wrong.

0 comments on commit 9af6d51

Please sign in to comment.