Browse Source

fix agenda

Kevin 4 years ago
parent
commit
8ec1fce306

+ 0 - 1
web/app/themes/la_mine/agenda.php

@@ -6,7 +6,6 @@
 
 $context = Timber::context();
 $timber_post     = new Timber\Post();
-$context['posts'] = new Timber\PostQuery();
 
 $args = array(
     'post_type' => 'post',

+ 0 - 40
web/app/themes/la_mine/archive.php

@@ -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 );

+ 0 - 24
web/app/themes/la_mine/composer.json

@@ -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.*"
-  }
-}

+ 0 - 10
web/app/themes/la_mine/humans.txt

@@ -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

+ 1 - 1
web/app/themes/la_mine/templates/agenda.twig

@@ -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 - 1
web/app/themes/la_mine/templates/components/thumbnails/thumbnails.twig

@@ -22,7 +22,7 @@
       <div class="lieu">{{item.lieu}}</div>
     </div>
   </div>
-  
+
   <div id="btn redirection_page">
     {% include 'components/buttons/bouton_ensavoir.html.twig'with { name__template : 'accueil' } %}
   </div>

+ 0 - 9
web/app/themes/la_mine/templates/single-password.twig

@@ -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 %}

+ 0 - 9
web/app/themes/la_mine/templates/tease-post.twig

@@ -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 %}

+ 0 - 0
web/app/themes/la_mine/templates/tease.twig