Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changs made on a plane

  • Loading branch information...
commit b33b67e4c84a427a202fd2f19c90b5da1816f81c 1 parent 361bc63
Miguel Bermudez authored
View
63 source/assets/stylesheets/about.less
@@ -0,0 +1,63 @@
+/* About.less
+ * Styles for about page
+ * ---------------------------------------------------------------------------- */
+
+body.page-template-about-php {
+
+ h2.blackbox {
+ width: (@gridColumnWidth * 1); //don't know why .columns(1) doesn't work
+ }
+
+ #story {
+ display: block;
+ float: none;
+ margin-bottom: 25px;
+ width: 100%;
+
+ .columns {
+ .content-columns(3, 35px);
+ //height: 330px;
+ }
+ }
+
+ #story > section:first-child {
+ .columns(2);
+ }
+
+ #people {
+ border-bottom: 1px solid @lightGray;
+ display: block;
+ float: left;
+ position: relative;
+ margin-right: 35px;
+ width: (@gridColumnWidth * 2);
+
+ h2.blackbox { width: ((@gridColumnWidth * 2) - 10); }
+
+ #container {
+ dl {
+ .makeColumn(1);
+ .clearfix();
+ overflow: hidden;
+ margin-bottom: 30px;
+ margin-left: 0 !important;
+ }
+ dt {
+ #font > .extrabold(14px, 18px);
+ color: @black;
+ text-transform: uppercase;
+ }
+
+ dd {
+ margin-left: 0;
+ font-size: 14px;
+ }
+ }
+ }
+
+ #contactus {
+ border-bottom: 1px solid @lightGray;
+ float: left;
+ width: (@gridColumnWidth * 1);
+ }
+}
View
7 source/assets/stylesheets/scaffolding.less
@@ -82,12 +82,7 @@ body {
section h1 { margin-top: 0; }
.columns {
- -moz-column-count: 2;
- -moz-column-gap: 20px;
- -webkit-column-count: 2;
- -webkit-column-gap: 20px;
- column-count: 2;
- column-gap: 20px;
+ .content-columns(2, 35px);
}
}
View
3  source/assets/stylesheets/style.less
@@ -26,4 +26,5 @@
-------------------------------------------------- */
@import "learning.less";
@import "tutorial.less";
-@import "gallery.less";
+@import "gallery.less";
+@import "about.less";
View
3  source/assets/stylesheets/variables.less
@@ -26,4 +26,5 @@
@gridColumns: 3;
@gridColumnWidth: 294px;
@gridGutterWidth: 35px;
-@siteWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
+@siteWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns + 1));
+// this line use to have this: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
View
5 source/functions/functions.php
@@ -234,6 +234,11 @@ function wpe_excerptlength_tutorial($length) {
return 70;
}
+// 70 word excerpts for tutorial posts
+function wpe_excerptlength_people_blurb($length) {
+ return 10;
+}
+
function wpe_excerptmore($more) {
return '<a class="read_more" href="' . get_permalink($post->ID) . '">✚</a>';
}
View
50 source/templates/pages/about.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * The template for the about page.
+ * Template Name: pcode_about
+ * @package PotionCode
+ */
+
+ get_header(); ?>
+
+ <h2 class="blackbox">about</h2>
+
+ <div id="content" class="row">
+ <div id="story">
+ <section>
+ <h1 class="big"><?php echo strip_tags(get('headline'), '<span>'); ?></h1>
+ </section>
+ <section class="columns">
+ <?php echo get('copy'); ?>
+ </section>
+ <hr class="porule" />
+ </div>
+
+ <div id="people">
+ <h2 class="blackbox">people</h2>
+ <div id="container" class="clearfix">
+ <?php
+ $pocode_people = get_group('People');
+ foreach ($pocode_people as $person) {
+ $name = $person['people_name'][1];
+ $blurb = $person['people_blurb'][1];
+ echo '<dl>';
+ echo '<dt>'.$name.'</dt>';
+ echo '<dd>'.$blurb.'</dd>';
+ echo '</dl>';
+ }
+ ?>
+ </div> <!-- #container -->
+ </div><!-- #people -->
+
+ <div id="contactus">
+ <h2 class="blackbox">contactus</h2>
+ <?php
+ echo get('contact_copy');
+ ?>
+
+ </div> <!-- #contactus -->
+ </div> <!-- #content -->
+
+ <?php
+get_footer(); ?>
View
12 source/templates/pages/home.php
@@ -38,6 +38,18 @@
</section>
<section id="feature-tutorial">
<h1 class="blackbox">featured tutorials</h1>
+ <?php
+ $numOfTutsToGet = get('num_of_tutorials ');
+ $tutsQuery = new WP_Query(
+ array(
+ 'category_name' => 'tutorials',
+ 'orderby' => 'meta_value',
+ 'meta_key' => 'tutorial_info_date',
+ 'order' => 'ASC',
+ 'posts_per_page'=> $numOfTutsToGet
+ )
+ );
+ ?>
<hr class="porule" />
</section>
Please sign in to comment.
Something went wrong with that request. Please try again.