fix agenda
This commit is contained in:
parent
da0618f73f
commit
8ec1fce306
@ -6,7 +6,6 @@
|
||||
|
||||
$context = Timber::context();
|
||||
$timber_post = new Timber\Post();
|
||||
$context['posts'] = new Timber\PostQuery();
|
||||
|
||||
$args = array(
|
||||
'post_type' => 'post',
|
||||
|
@ -1,40 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying Archive pages.
|
||||
*
|
||||
* Used to display archive-type pages if nothing more specific matches a query.
|
||||
* For example, puts together date-based pages if no date.php file exists.
|
||||
*
|
||||
* Learn more: http://codex.wordpress.org/Template_Hierarchy
|
||||
*
|
||||
* Methods for TimberHelper can be found in the /lib sub-directory
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Timber
|
||||
* @since Timber 0.2
|
||||
*/
|
||||
|
||||
$templates = array( 'archive.twig', 'index.twig' );
|
||||
|
||||
$context = Timber::context();
|
||||
|
||||
$context['title'] = 'Archive';
|
||||
if ( is_day() ) {
|
||||
$context['title'] = 'Archive: ' . get_the_date( 'D M Y' );
|
||||
} elseif ( is_month() ) {
|
||||
$context['title'] = 'Archive: ' . get_the_date( 'M Y' );
|
||||
} elseif ( is_year() ) {
|
||||
$context['title'] = 'Archive: ' . get_the_date( 'Y' );
|
||||
} elseif ( is_tag() ) {
|
||||
$context['title'] = single_tag_title( '', false );
|
||||
} elseif ( is_category() ) {
|
||||
$context['title'] = single_cat_title( '', false );
|
||||
array_unshift( $templates, 'archive-' . get_query_var( 'cat' ) . '.twig' );
|
||||
} elseif ( is_post_type_archive() ) {
|
||||
$context['title'] = post_type_archive_title( '', false );
|
||||
array_unshift( $templates, 'archive-' . get_post_type() . '.twig' );
|
||||
}
|
||||
|
||||
$context['posts'] = new Timber\PostQuery();
|
||||
|
||||
Timber::render( $templates, $context );
|
@ -1,24 +0,0 @@
|
||||
{
|
||||
"name": "upstatement/timber-starter-theme",
|
||||
"description": "Starter theme to build a Timber theme",
|
||||
"type":"wordpress-theme",
|
||||
"minimum-stability" : "stable",
|
||||
"authors": [
|
||||
{
|
||||
"email": "jared@upstatement.com",
|
||||
"name": "jarednova"
|
||||
}
|
||||
],
|
||||
"repositories": [
|
||||
{
|
||||
"type": "composer",
|
||||
"url": "https://wpackagist.org"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"timber/timber": "1.*"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "5.7.16|6.*"
|
||||
}
|
||||
}
|
@ -1,10 +0,0 @@
|
||||
## Team
|
||||
|
||||
Your name or company
|
||||
http://yoursite.org
|
||||
@you_on_twitter
|
||||
|
||||
|
||||
## Site
|
||||
|
||||
Software: Built with [Timber](http://upstatement.com/timber) by Upstatement
|
@ -5,7 +5,7 @@
|
||||
page agenda
|
||||
<div>
|
||||
{% for item in posts %}
|
||||
{% include 'components/thumbnails/thumbnails.twig' %}
|
||||
{% include 'components/thumbnails/thumbnails.twig'%}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
|
@ -1,9 +0,0 @@
|
||||
{% extends "base.twig" %}
|
||||
|
||||
{% block content %}
|
||||
<form class="password-form" action="{{site.site_url}}/wp-login.php?action=postpass" method="post">
|
||||
<label for="pwbox-{{post.ID}}">Password:</label>
|
||||
<input class="password-box" name="post_password" id="pwbox-{{post.ID}}" type="password" placeholder="Password" size="20" maxlength="20" />
|
||||
<input class="password-btn" type="submit" name="Submit" value="Submit" />
|
||||
</form>
|
||||
{% endblock %}
|
@ -1,9 +0,0 @@
|
||||
{% extends "tease.twig" %}
|
||||
|
||||
{% block content %}
|
||||
<h2 class="h2"><a href="{{post.link}}">{{post.title}}</a></h2>
|
||||
<p>{{post.preview.length(25)}}</p>
|
||||
{% if post.thumbnail.src %}
|
||||
<img src="{{post.thumbnail.src}}" />
|
||||
{% endif %}
|
||||
{% endblock %}
|
Loading…
x
Reference in New Issue
Block a user