Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
campuses, apply
- Loading branch information
Showing
18 changed files
with
343 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
//change post_type and $context[] | ||
|
||
$context = Timber::get_context(); | ||
$post = new TimberPost(); | ||
|
||
$query = array( | ||
'post_type' => 'campus', | ||
'orderby' => 'date', | ||
'order' => 'ASC' | ||
); | ||
query_posts($query); | ||
$context['campuses'] = Timber::get_posts(); | ||
$context['post'] = $post; | ||
Timber::render( array( 'page-' . $post->post_name . '.twig', 'page.twig' ), $context ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
$context = Timber::get_context(); | ||
$post = new TimberPost(); | ||
|
||
$query = array( | ||
'post_type' => 'home-post', | ||
'orderby' => 'date', | ||
'order' => 'ASC' | ||
); | ||
query_posts($query); | ||
$context['homeposts'] = Timber::get_posts(); | ||
$context['post'] = $post; | ||
Timber::render( array( 'page-' . $post->post_name . '.twig', 'page.twig' ), $context ); | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
/* | ||
* Template Name: Apply Now | ||
* Description: A Page Template for the Apply Now page. | ||
*/ | ||
|
||
//change post_type and $context[] | ||
|
||
$context = Timber::get_context(); | ||
$post = new TimberPost(); | ||
|
||
$query = array( | ||
'orderby' => 'date', | ||
'order' => 'ASC' | ||
); | ||
query_posts($query); | ||
$context['post'] = $post; | ||
Timber::render( array( 'page-apply-now.twig', 'page.twig' ), $context ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
/* | ||
* Template Name: Campus | ||
* Description: A Page Template for the campus pages. | ||
*/ | ||
|
||
//change post_type and $context[] | ||
|
||
$context = Timber::get_context(); | ||
$post = new TimberPost(); | ||
|
||
$query = array( | ||
'orderby' => 'date', | ||
'order' => 'ASC' | ||
); | ||
query_posts($query); | ||
$context['post'] = $post; | ||
Timber::render( array( 'page-campus.twig', 'page.twig' ), $context ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
/* | ||
* Template Name: Subpage | ||
* Description: A Page Template for a subpage. | ||
*/ | ||
|
||
//change post_type and $context[] | ||
|
||
$context = Timber::get_context(); | ||
$post = new TimberPost(); | ||
|
||
$query = array( | ||
'orderby' => 'date', | ||
'order' => 'ASC' | ||
); | ||
query_posts($query); | ||
$context['post'] = $post; | ||
Timber::render( array( 'single.twig', 'page.twig' ), $context ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{% extends "base.twig" %} | ||
|
||
{% block content %} | ||
|
||
<main class="u-container"> | ||
<section class="applyCampus"> | ||
<figure class="applyCampus__inner"> | ||
<img src="http://localhost:8888/wp-content/uploads/2016/07/storrs-1.jpg" alt="Storrs" /> | ||
<figcaption> | ||
<h1>STORRS</h1> | ||
<a href="http://admissions.uconn.edu/content/freshman" class="applyCampus__link">SUBMIT YOUR APPLICATION</a> | ||
<a href="https://uconnadmissions.slideroom.com/#/Login" class="applyCampus__link">SUBMIT YOUR PORTFOLIO TO SLIDEROOM</a> | ||
</figcaption> | ||
</figure> | ||
</section> | ||
<section class="applyCampus"> | ||
<figure class="applyCampus__inner"> | ||
<img src="http://localhost:8888/wp-content/uploads/2016/07/stamford-1.jpg" alt="Stamford" /> | ||
<figcaption> | ||
<h1>STAMFORD</h1> | ||
<a href="http://admissions.uconn.edu/content/freshman" class="applyCampus__link">SUBMIT YOUR APPLICATION</a> | ||
<a href="https://uconnadmissions.slideroom.com/#/login/program/26304" class="applyCampus__link">SUBMIT YOUR PORTFOLIO TO SLIDEROOM</a> | ||
</figcaption> | ||
</figure> | ||
</section> | ||
</main> | ||
|
||
{% endblock %} |
Oops, something went wrong.