indent
This commit is contained in:
parent
caef8d8824
commit
0a79bfdd8c
|
@ -15,7 +15,7 @@
|
|||
<link rel="stylesheet" href="{{ asset('bundles/deblanblog/css/cleanblog/bootstrap.css') }}" />
|
||||
<link rel="stylesheet" href="{{ asset('bundles/deblanblog/css/cleanblog/clean-blog.css') }}" />
|
||||
<link rel="stylesheet" href="{{ asset('bundles/deblanblog/syntaxhighlighter/styles/shThemeEclipse.css') }}" />
|
||||
<link rel="stylesheet" href="{{ asset('bundles/deblanblog/css/cleanblog/main.css') }}" />
|
||||
<link rel="stylesheet" href="{{ asset('bundles/deblanblog/css/cleanblog/main.css') }}?v=2" />
|
||||
{% endblock %}
|
||||
{{ get_var('CssBlock')|raw }}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
@ -124,6 +124,19 @@
|
|||
</header>
|
||||
|
||||
|
||||
{% spaceless %}
|
||||
{% if session_user.hasFlash('message') %}
|
||||
{% set flash = session_user.flash('message') %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
{{ include(flash.template, {message: flash.message}) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endspaceless %}
|
||||
|
||||
{% block body %}{% endblock %}
|
||||
|
||||
{#
|
||||
|
@ -161,12 +174,6 @@
|
|||
<div id="content" class="ctn">
|
||||
<div class="trow">
|
||||
<section>
|
||||
{% spaceless %}
|
||||
{% if session_user.hasFlash('message') %}
|
||||
{% set flash = session_user.flash('message') %}
|
||||
{{ include(flash.template, {message: flash.message}) }}
|
||||
{% endif %}
|
||||
{% endspaceless %}
|
||||
|
||||
{{ get_var('Notice')|transform_url }}
|
||||
|
||||
|
|
|
@ -1,63 +1,63 @@
|
|||
{% extends "::base.html.twig" %}
|
||||
|
||||
{% block breadcrumb %}
|
||||
<li><a href="{{ cms_path('homepage') }}">Accueil</a></li>
|
||||
<li class="sep"> » </li>
|
||||
<li>Catégorie « <a href="{{ cms_path('category', {id: page.object.id, category: page.object.slug}) }}">{{ page.object }}</a> »</li>
|
||||
<li><a href="{{ cms_path('homepage') }}">Accueil</a></li>
|
||||
<li class="sep"> » </li>
|
||||
<li>Catégorie « <a href="{{ cms_path('category', {id: page.object.id, category: page.object.slug}) }}">{{ page.object }}</a> »</li>
|
||||
|
||||
{% if page.pager.nbResults > 0 and page.pager.currentPage > 1 %}
|
||||
<li class="sep"> » </li>
|
||||
<li>Page {{ page.pager.currentPage }}</li>
|
||||
{% endif %}
|
||||
{% if page.pager.nbResults > 0 and page.pager.currentPage > 1 %}
|
||||
<li class="sep"> » </li>
|
||||
<li>Page {{ page.pager.currentPage }}</li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
{% if page.pager.nbResults == 0 %}
|
||||
<div class="alert alert-info">Aucun article disponible.</div>
|
||||
{% endif %}
|
||||
{% if page.pager.nbResults == 0 %}
|
||||
<div class="alert alert-info">Aucun article disponible.</div>
|
||||
{% endif %}
|
||||
|
||||
{% for post in page.pager %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
{% if not loop.first %}
|
||||
<hr />
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ include('DeblanBlogBundle:Default:thePost.html.twig') }}
|
||||
{% endfor %}
|
||||
{% for post in page.pager %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
{% if not loop.first %}
|
||||
<hr />
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ include('DeblanBlogBundle:Default:thePost.html.twig') }}
|
||||
{% endfor %}
|
||||
|
||||
{% if page.pager.hasPreviousPage or page.pager.hasNextPage %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
<hr />
|
||||
<ul class="pager">
|
||||
{% if page.pager.hasPreviousPage %}
|
||||
<li class="previous">
|
||||
<a href="{{ cms_path('category', {id: page.object.id, category: page.object.slug, page: page.pager.getPreviousPage }) }}">Précédent</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if page.pager.hasNextPage %}
|
||||
<li class="next">
|
||||
<a href="{{ cms_path('category', {id: page.object.id, category: page.object.slug, page: page.pager.getNextPage }) }}">Suivant</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if page.pager.hasPreviousPage or page.pager.hasNextPage %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
<hr />
|
||||
<ul class="pager">
|
||||
{% if page.pager.hasPreviousPage %}
|
||||
<li class="previous">
|
||||
<a href="{{ cms_path('category', {id: page.object.id, category: page.object.slug, page: page.pager.getPreviousPage }) }}">Précédent</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if page.pager.hasNextPage %}
|
||||
<li class="next">
|
||||
<a href="{{ cms_path('category', {id: page.object.id, category: page.object.slug, page: page.pager.getNextPage }) }}">Suivant</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block main_menu_bind %}
|
||||
{% if page.pager.hasPreviousPage %}
|
||||
<li class="bind"><a href="{{ cms_path('category', {id: page.object.id, category: page.object.slug, page: page.pager.getPreviousPage}) }}"><span class="glyphicon glyphicon-backward"></span></a></li>
|
||||
{% endif %}
|
||||
{% if page.pager.hasNextPage %}
|
||||
<li class="bind"><a href="{{ cms_path('category', {id: page.object.id, category: page.object.slug, page: page.pager.getNextPage}) }}"><span class="glyphicon glyphicon-forward"></span></a></li>
|
||||
{% endif %}
|
||||
{% if page.pager.hasPreviousPage %}
|
||||
<li class="bind"><a href="{{ cms_path('category', {id: page.object.id, category: page.object.slug, page: page.pager.getPreviousPage}) }}"><span class="glyphicon glyphicon-backward"></span></a></li>
|
||||
{% endif %}
|
||||
{% if page.pager.hasNextPage %}
|
||||
<li class="bind"><a href="{{ cms_path('category', {id: page.object.id, category: page.object.slug, page: page.pager.getNextPage}) }}"><span class="glyphicon glyphicon-forward"></span></a></li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,57 +1,57 @@
|
|||
{% extends "::base.html.twig" %}
|
||||
|
||||
{% block breadcrumb %}
|
||||
<li><a href="{{ cms_path('homepage') }}">Accueil</a></li>
|
||||
<li><a href="{{ cms_path('homepage') }}">Accueil</a></li>
|
||||
|
||||
{% if page.pager.nbResults > 0 and page.pager.currentPage > 1 %}
|
||||
<li class="sep"> » </li>
|
||||
<li>Page {{ page.pager.currentPage }}</li>
|
||||
{% endif %}
|
||||
{% if page.pager.nbResults > 0 and page.pager.currentPage > 1 %}
|
||||
<li class="sep"> » </li>
|
||||
<li>Page {{ page.pager.currentPage }}</li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
{% for post in page.pager %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
{% if not loop.first %}
|
||||
<hr />
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% for post in page.pager %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
{% if not loop.first %}
|
||||
<hr />
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ include('DeblanBlogBundle:Default:thePost.html.twig', {post: post}) }}
|
||||
{% endfor %}
|
||||
{{ include('DeblanBlogBundle:Default:thePost.html.twig', {post: post}) }}
|
||||
{% endfor %}
|
||||
|
||||
{% if page.pager.hasPreviousPage or page.pager.hasNextPage %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
<hr />
|
||||
<ul class="pager">
|
||||
{% if page.pager.hasPreviousPage %}
|
||||
<li class="previous">
|
||||
<a href="{{ cms_path('homepage', {page: page.pager.getPreviousPage}) }}">Précédent</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if page.pager.hasNextPage %}
|
||||
<li class="next">
|
||||
<a href="{{ cms_path('homepage', {page: page.pager.getNextPage}) }}">Suivant</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if page.pager.hasPreviousPage or page.pager.hasNextPage %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
<hr />
|
||||
<ul class="pager">
|
||||
{% if page.pager.hasPreviousPage %}
|
||||
<li class="previous">
|
||||
<a href="{{ cms_path('homepage', {page: page.pager.getPreviousPage}) }}">Précédent</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if page.pager.hasNextPage %}
|
||||
<li class="next">
|
||||
<a href="{{ cms_path('homepage', {page: page.pager.getNextPage}) }}">Suivant</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block main_menu_bind %}
|
||||
{% if page.pager.hasPreviousPage %}
|
||||
<li class="bind"><a href="{{ cms_path('homepage', {page: page.pager.getPreviousPage}) }}"><span class="glyphicon glyphicon-backward"></span></a></li>
|
||||
{% endif %}
|
||||
{% if page.pager.hasNextPage %}
|
||||
<li class="bind"><a href="{{ cms_path('homepage', {page: page.pager.getNextPage}) }}"><span class="glyphicon glyphicon-forward"></span></a></li>
|
||||
{% endif %}
|
||||
{% if page.pager.hasPreviousPage %}
|
||||
<li class="bind"><a href="{{ cms_path('homepage', {page: page.pager.getPreviousPage}) }}"><span class="glyphicon glyphicon-backward"></span></a></li>
|
||||
{% endif %}
|
||||
{% if page.pager.hasNextPage %}
|
||||
<li class="bind"><a href="{{ cms_path('homepage', {page: page.pager.getNextPage}) }}"><span class="glyphicon glyphicon-forward"></span></a></li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,28 +1,28 @@
|
|||
{% extends "::base.html.twig" %}
|
||||
|
||||
{% block breadcrumb %}
|
||||
<li><a href="{{ cms_path('homepage') }}">Accueil</a></li>
|
||||
<li class="sep"> » </li>
|
||||
<li>Article « <a href="{{ cms_path('post', {id: page.object.id, post: page.object.slug}) }}">{{ page.object }}</a> »</li>
|
||||
<li><a href="{{ cms_path('homepage') }}">Accueil</a></li>
|
||||
<li class="sep"> » </li>
|
||||
<li>Article « <a href="{{ cms_path('post', {id: page.object.id, post: page.object.slug}) }}">{{ page.object }}</a> »</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block header_title %}
|
||||
{{ page.object.title }}
|
||||
{{ page.object.title }}
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
{% set post = page.object %}
|
||||
{% set post = page.object %}
|
||||
|
||||
{{ include('DeblanBlogBundle:Default:thePost.html.twig') }}
|
||||
{{ include('DeblanBlogBundle:Default:thePost.html.twig') }}
|
||||
{% endblock %}
|
||||
|
||||
{% block metas %}
|
||||
{% spaceless %}
|
||||
{{ parent() }}
|
||||
{{ parent() }}
|
||||
|
||||
<meta property="og:title" content="{{ page.object.title }}" />
|
||||
<meta property="og:url" content="{{ app.request.getSchemeAndHttpHost() ~ cms_path('post', {id: page.object.id, post: page.object.slug}) }}" />
|
||||
<meta property="og:image" content="{{ app.request.getSchemeAndHttpHost() ~ asset(page.object.getWebPathForPicture) }}" />
|
||||
<meta property="og:site_name" content="Deblan" />
|
||||
<meta property="og:title" content="{{ page.object.title }}" />
|
||||
<meta property="og:url" content="{{ app.request.getSchemeAndHttpHost() ~ cms_path('post', {id: page.object.id, post: page.object.slug}) }}" />
|
||||
<meta property="og:image" content="{{ app.request.getSchemeAndHttpHost() ~ asset(page.object.getWebPathForPicture) }}" />
|
||||
<meta property="og:site_name" content="Deblan" />
|
||||
{% endspaceless %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,31 +1,31 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
|
||||
<channel>
|
||||
<title>Deblan - Blog</title>
|
||||
<link>http://www.deblan.io/</link>
|
||||
<description>Deblan - Blog</description>
|
||||
<language>fr</language>
|
||||
<channel>
|
||||
<title>Deblan - Blog</title>
|
||||
<link>http://www.deblan.io/</link>
|
||||
<description>Deblan - Blog</description>
|
||||
<language>fr</language>
|
||||
|
||||
{% for post in page.pager %}
|
||||
<item>
|
||||
<title><![CDATA[{{ post.title|raw }}]]></title>
|
||||
<link>{{ app.request.getSchemeAndHttpHost() ~ cms_path('post', {id: post.id, post: post.slug}) }}</link>
|
||||
<description>
|
||||
<![CDATA[
|
||||
{% if post.contentFormat == 'html' %}
|
||||
{{ post.content|post|transform_url }}
|
||||
{% endif %}
|
||||
|
||||
{% if post.contentFormat == 'markdown' %}
|
||||
{{ post.content|markdown|transform_url }}
|
||||
{% endif %}
|
||||
]]></description>
|
||||
<guid isPermaLink="false">{{ post.id }}</guid>
|
||||
<pubDate>{{ post.publishedAt|date('r') }}</pubDate>
|
||||
{% for category in post.categories %}
|
||||
<category><![CDATA[{{ category.title }}]]></category>
|
||||
{% endfor %}
|
||||
</item>
|
||||
{% endfor %}
|
||||
</channel>
|
||||
{% for post in page.pager %}
|
||||
<item>
|
||||
<title><![CDATA[{{ post.title|raw }}]]></title>
|
||||
<link>{{ app.request.getSchemeAndHttpHost() ~ cms_path('post', {id: post.id, post: post.slug}) }}</link>
|
||||
<description>
|
||||
<![CDATA[
|
||||
{% if post.contentFormat == 'html' %}
|
||||
{{ post.content|post|transform_url }}
|
||||
{% endif %}
|
||||
|
||||
{% if post.contentFormat == 'markdown' %}
|
||||
{{ post.content|markdown|transform_url }}
|
||||
{% endif %}
|
||||
]]></description>
|
||||
<guid isPermaLink="false">{{ post.id }}</guid>
|
||||
<pubDate>{{ post.publishedAt|date('r') }}</pubDate>
|
||||
{% for category in post.categories %}
|
||||
<category><![CDATA[{{ category.title }}]]></category>
|
||||
{% endfor %}
|
||||
</item>
|
||||
{% endfor %}
|
||||
</channel>
|
||||
</rss>
|
||||
|
|
|
@ -1,62 +1,62 @@
|
|||
{% extends "::base.html.twig" %}
|
||||
|
||||
{% block breadcrumb %}
|
||||
<li><a href="{{ cms_path('homepage') }}">Accueil</a></li>
|
||||
<li class="sep"> » </li>
|
||||
<li>Tag « <a href="{{ cms_path('tag', {tag: page.object}) }}">{{ page.object }}</a> »</li>
|
||||
<li><a href="{{ cms_path('homepage') }}">Accueil</a></li>
|
||||
<li class="sep"> » </li>
|
||||
<li>Tag « <a href="{{ cms_path('tag', {tag: page.object}) }}">{{ page.object }}</a> »</li>
|
||||
|
||||
{% if page.pager.nbResults > 0 and page.pager.currentPage > 1 %}
|
||||
<li class="sep"> » </li>
|
||||
<li>Page {{ page.pager.currentPage }}</li>
|
||||
{% endif %}
|
||||
{% if page.pager.nbResults > 0 and page.pager.currentPage > 1 %}
|
||||
<li class="sep"> » </li>
|
||||
<li>Page {{ page.pager.currentPage }}</li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
{% if page.pager.nbResults == 0 %}
|
||||
<div class="alert alert-info">Aucun article disponible.</div>
|
||||
{% endif %}
|
||||
{% if page.pager.nbResults == 0 %}
|
||||
<div class="alert alert-info">Aucun article disponible.</div>
|
||||
{% endif %}
|
||||
|
||||
{% for post in page.pager %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
{% if not loop.first %}
|
||||
<hr />
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% for post in page.pager %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
{% if not loop.first %}
|
||||
<hr />
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ include('DeblanBlogBundle:Default:thePost.html.twig') }}
|
||||
{% endfor %}
|
||||
{{ include('DeblanBlogBundle:Default:thePost.html.twig') }}
|
||||
{% endfor %}
|
||||
|
||||
{% if page.pager.hasPreviousPage or page.pager.hasNextPage %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
<ul class="pager">
|
||||
{% if page.pager.hasPreviousPage %}
|
||||
<li class="previous">
|
||||
<a href="{{ cms_path('tag', {tag: page.object, page: page.pager.getPreviousPage}) }}">Précédent</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if page.pager.hasNextPage %}
|
||||
<li class="next">
|
||||
<a href="{{ cms_path('tag', {tag: page.object, page: page.pager.getNextPage}) }}">Suivant</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if page.pager.hasPreviousPage or page.pager.hasNextPage %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
<ul class="pager">
|
||||
{% if page.pager.hasPreviousPage %}
|
||||
<li class="previous">
|
||||
<a href="{{ cms_path('tag', {tag: page.object, page: page.pager.getPreviousPage}) }}">Précédent</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if page.pager.hasNextPage %}
|
||||
<li class="next">
|
||||
<a href="{{ cms_path('tag', {tag: page.object, page: page.pager.getNextPage}) }}">Suivant</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block main_menu_bind %}
|
||||
{% if page.pager.hasPreviousPage %}
|
||||
<li class="bind"><a href="{{ cms_path('tag', {tag: page.object, page: page.pager.getPreviousPage}) }}"><span class="glyphicon glyphicon-backward"></span></a></li>
|
||||
{% endif %}
|
||||
{% if page.pager.hasNextPage %}
|
||||
<li class="bind"><a href="{{ cms_path('tag', {tag: page.object, page: page.pager.getNextPage}) }}"><span class="glyphicon glyphicon-forward"></span></a></li>
|
||||
{% endif %}
|
||||
{% if page.pager.hasPreviousPage %}
|
||||
<li class="bind"><a href="{{ cms_path('tag', {tag: page.object, page: page.pager.getPreviousPage}) }}"><span class="glyphicon glyphicon-backward"></span></a></li>
|
||||
{% endif %}
|
||||
{% if page.pager.hasNextPage %}
|
||||
<li class="bind"><a href="{{ cms_path('tag', {tag: page.object, page: page.pager.getNextPage}) }}"><span class="glyphicon glyphicon-forward"></span></a></li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,23 +1,23 @@
|
|||
<div class="media {% if level != 1 %}level-{{ level }}{%endif %}">
|
||||
<div class="pull-left">
|
||||
<img width="90" height="90" data-dimensions="destroy" class="avatar" src="{{ comment.avatar }}" alt="{{ comment.author }}" title="{{ comment.author }}">
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<div class="media-heading meta">
|
||||
<a rel="author" href="{{ comment.Website ? comment.Website : '#' }}">{{ comment.author }}</a>,
|
||||
<div class="pull-left">
|
||||
<img width="90" height="90" data-dimensions="destroy" class="avatar" src="{{ comment.avatar }}" alt="{{ comment.author }}" title="{{ comment.author }}">
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<div class="media-heading meta">
|
||||
<a rel="author" href="{{ comment.Website ? comment.Website : '#' }}">{{ comment.author }}</a>,
|
||||
|
||||
<time datetime="{{ post.createdAt|date("Y-m-d") }}" title="{{ comment.createdAt|date("r") }}">
|
||||
{{ comment.createdAt|date("d/m/Y à H\\hi") }}
|
||||
</time>
|
||||
</div>
|
||||
<p>{{ comment.Content|comment }}</p>
|
||||
|
||||
<button class="btn btn-default btn-sm answer" data-comment="{{ comment.id }}">Répondre</button>
|
||||
</div>
|
||||
<time datetime="{{ post.createdAt|date("Y-m-d") }}" title="{{ comment.createdAt|date("r") }}">
|
||||
{{ comment.createdAt|date("d/m/Y à H\\hi") }}
|
||||
</time>
|
||||
</div>
|
||||
<p>{{ comment.Content|comment }}</p>
|
||||
|
||||
<button class="btn btn-default btn-sm answer" data-comment="{{ comment.id }}">Répondre</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% set level = level + 1 %}
|
||||
|
||||
{% for child in comment.orderedComments %}
|
||||
{{ include('DeblanBlogBundle:Default:theComment.html.twig', {level: level, comment: child}) }}
|
||||
{{ include('DeblanBlogBundle:Default:theComment.html.twig', {level: level, comment: child}) }}
|
||||
{% endfor %}
|
||||
|
|
|
@ -1,180 +1,180 @@
|
|||
<article>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
{% if full is not defined %}
|
||||
<h1><a href="{{ cms_path('post', {id: post.id, post: post.slug}) }}">{{ post.title }}</a></h1>
|
||||
{% endif %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
{% if full is not defined %}
|
||||
<h1><a href="{{ cms_path('post', {id: post.id, post: post.slug}) }}">{{ post.title }}</a></h1>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if post.contentFormat == 'html' %}
|
||||
{{ post.content|post|transform_url }}
|
||||
{% endif %}
|
||||
|
||||
{% if post.contentFormat == 'markdown' %}
|
||||
{{ post.content|markdown|transform_url }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if post.contentFormat == 'html' %}
|
||||
{{ post.content|post|transform_url }}
|
||||
{% endif %}
|
||||
|
||||
{% if post.contentFormat == 'markdown' %}
|
||||
{{ post.content|markdown|transform_url }}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
<ul class="labels">
|
||||
{% for category in post.categories %}
|
||||
<li><span class="label"><a href="{{ cms_path('category', {id: category.id, category: category.slug}) }}">{{ category.title }}</a></span></li>
|
||||
{% endfor %}
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
<ul class="labels">
|
||||
{% for category in post.categories %}
|
||||
<li><span class="label"><a href="{{ cms_path('category', {id: category.id, category: category.slug}) }}">{{ category.title }}</a></span></li>
|
||||
{% endfor %}
|
||||
|
||||
{% for tag in post.tagsCollection %}
|
||||
{% if tag|trim is not empty %}
|
||||
<li><span class="label"><a href="{{ cms_path('tag', {tag: tag}) }}">#{{ tag }}</a></span></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% for tag in post.tagsCollection %}
|
||||
{% if tag|trim is not empty %}
|
||||
<li><span class="label"><a href="{{ cms_path('tag', {tag: tag}) }}">#{{ tag }}</a></span></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
|
||||
{#
|
||||
<article class="post" id="post-{{ post.id }}">
|
||||
<header>
|
||||
<h1><a href="{{ cms_path('post', {id: post.id, post: post.slug}) }}">{{ post.title }}</a></h1>
|
||||
<header>
|
||||
<h1><a href="{{ cms_path('post', {id: post.id, post: post.slug}) }}">{{ post.title }}</a></h1>
|
||||
|
||||
<div class="meta">
|
||||
<address class="author">
|
||||
<span class="glyphicon glyphicon-user"></span>
|
||||
<a rel="author" href="{{ cms_path('about') }}">{{ post.user.username|capitalize }}</a>
|
||||
</address>
|
||||
<div class="meta">
|
||||
<address class="author">
|
||||
<span class="glyphicon glyphicon-user"></span>
|
||||
<a rel="author" href="{{ cms_path('about') }}">{{ post.user.username|capitalize }}</a>
|
||||
</address>
|
||||
|
||||
<time datetime="{{ post.publishedAt|date("Y-m-d") }}" title="{{ post.publishedAt|date("r") }}">
|
||||
<span class="glyphicon glyphicon-calendar"></span>
|
||||
{{ post.publishedAt|date("d/m/Y à H\\hi") }}
|
||||
</time>
|
||||
|
||||
<ul class="labels">
|
||||
{% for category in post.categories %}
|
||||
<li><span class="label label-primary"><a href="{{ cms_path('category', {id: category.id, category: category.slug}) }}">{{ category.title }}</a></span></li>
|
||||
{% endfor %}
|
||||
<time datetime="{{ post.publishedAt|date("Y-m-d") }}" title="{{ post.publishedAt|date("r") }}">
|
||||
<span class="glyphicon glyphicon-calendar"></span>
|
||||
{{ post.publishedAt|date("d/m/Y à H\\hi") }}
|
||||
</time>
|
||||
|
||||
<ul class="labels">
|
||||
{% for category in post.categories %}
|
||||
<li><span class="label label-primary"><a href="{{ cms_path('category', {id: category.id, category: category.slug}) }}">{{ category.title }}</a></span></li>
|
||||
{% endfor %}
|
||||
|
||||
{% for tag in post.tagsCollection %}
|
||||
{% if tag|trim is not empty %}
|
||||
<li><span class="label label-success"><a href="{{ cms_path('tag', {tag: tag}) }}">#{{ tag }}</a></span></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
{% for tag in post.tagsCollection %}
|
||||
{% if tag|trim is not empty %}
|
||||
<li><span class="label label-success"><a href="{{ cms_path('tag', {tag: tag}) }}">#{{ tag }}</a></span></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="page-content">
|
||||
{% if post.contentFormat == 'html' %}
|
||||
{{ post.content|post|transform_url }}
|
||||
{% endif %}
|
||||
|
||||
{% if post.contentFormat == 'markdown' %}
|
||||
{{ post.content|markdown|transform_url }}
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="page-content">
|
||||
{% if post.contentFormat == 'html' %}
|
||||
{{ post.content|post|transform_url }}
|
||||
{% endif %}
|
||||
|
||||
{% if post.contentFormat == 'markdown' %}
|
||||
{{ post.content|markdown|transform_url }}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if full is defined and false %}
|
||||
<footer>
|
||||
<script type="text/javascript">
|
||||
var addthis_share = {
|
||||
url: '{{ app.request.getSchemeAndHttpHost() ~ cms_path('post', {id: post.id, post: post.slug}) }}'
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
|
||||
<a class="addthis_button_preferred_1"></a>
|
||||
<a class="addthis_button_preferred_2"></a>
|
||||
<a class="addthis_button_preferred_3"></a>
|
||||
<a class="addthis_button_preferred_4"></a>
|
||||
<a class="addthis_button_compact"></a>
|
||||
<a class="addthis_counter addthis_bubble_style"></a>
|
||||
</div>
|
||||
</footer>
|
||||
{% endif %}
|
||||
{% if full is defined and false %}
|
||||
<footer>
|
||||
<script type="text/javascript">
|
||||
var addthis_share = {
|
||||
url: '{{ app.request.getSchemeAndHttpHost() ~ cms_path('post', {id: post.id, post: post.slug}) }}'
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
|
||||
<a class="addthis_button_preferred_1"></a>
|
||||
<a class="addthis_button_preferred_2"></a>
|
||||
<a class="addthis_button_preferred_3"></a>
|
||||
<a class="addthis_button_preferred_4"></a>
|
||||
<a class="addthis_button_compact"></a>
|
||||
<a class="addthis_counter addthis_bubble_style"></a>
|
||||
</div>
|
||||
</footer>
|
||||
{% endif %}
|
||||
</article>
|
||||
#}
|
||||
|
||||
{% if full is defined %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
{% if post.hasComments %}
|
||||
<hr />
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
{% if post.hasComments %}
|
||||
<hr />
|
||||
|
||||
{% for comment in post.orderedComments %}
|
||||
{% if comment.active and not comment.parentCommentId %}
|
||||
{{ include('DeblanBlogBundle:Default:theComment.html.twig', {level: 1}) }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% for comment in post.orderedComments %}
|
||||
{% if comment.active and not comment.parentCommentId %}
|
||||
{{ include('DeblanBlogBundle:Default:theComment.html.twig', {level: 1}) }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
<div class="comments">
|
||||
<div id="form"></div>
|
||||
<div class="comments">
|
||||
<div id="form"></div>
|
||||
|
||||
<hr />
|
||||
<hr />
|
||||
|
||||
<h2>Ajouter un commentaire</h2>
|
||||
<h2>Ajouter un commentaire</h2>
|
||||
|
||||
<div class="alert alert-info hide" id="answer_inprogress">
|
||||
<button id="cancel_answer" class="btn btn-default pull-right">Annuler</button>
|
||||
<p>Vous répondez à un commentaire.</p>
|
||||
</div>
|
||||
<div class="alert alert-info hide" id="answer_inprogress">
|
||||
<button id="cancel_answer" class="btn btn-default pull-right">Annuler</button>
|
||||
<p>Vous répondez à un commentaire.</p>
|
||||
</div>
|
||||
|
||||
<form class="form-horizontal" method="post" data-secured role="form" data-target="{{ cms_path('post', {id: post.id, post: post.slug}) }}" action="{{ cms_path('bot') }}">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label" for="comment_Author">Auteur</label>
|
||||
<div class="col-sm-10">
|
||||
{{ form_widget(form.Author) }}
|
||||
{{ form_errors(form.Author) }}
|
||||
</div>
|
||||
</div>
|
||||
<form class="form-horizontal" method="post" data-secured role="form" data-target="{{ cms_path('post', {id: post.id, post: post.slug}) }}" action="{{ cms_path('bot') }}">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label" for="comment_Author">Auteur</label>
|
||||
<div class="col-sm-10">
|
||||
{{ form_widget(form.Author) }}
|
||||
{{ form_errors(form.Author) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label" for="comment_Website">Site web</label>
|
||||
<div class="col-sm-10">
|
||||
{{ form_widget(form.Website) }}
|
||||
{{ form_errors(form.Website) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label" for="comment_Website">Site web</label>
|
||||
<div class="col-sm-10">
|
||||
{{ form_widget(form.Website) }}
|
||||
{{ form_errors(form.Website) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label" for="comment_Email">Email</label>
|
||||
<div class="col-sm-10">
|
||||
{{ form_widget(form.Email) }}
|
||||
{{ form_errors(form.Email) }}
|
||||
<span class="help-block">L'email n'est pas affiché. Vous pouvez utiliser un avatar à l'aide de <a href="http://fr.gravatar.com/">Gravatar</a>.</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label" for="comment_Email">Email</label>
|
||||
<div class="col-sm-10">
|
||||
{{ form_widget(form.Email) }}
|
||||
{{ form_errors(form.Email) }}
|
||||
<span class="help-block">L'email n'est pas affiché. Vous pouvez utiliser un avatar à l'aide de <a href="http://fr.gravatar.com/">Gravatar</a>.</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label" for="comment_Content">Commentaire</label>
|
||||
<div class="col-sm-10">
|
||||
{{ form_widget(form.Content) }}
|
||||
{{ form_errors(form.Content) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label" for="comment_Content">Commentaire</label>
|
||||
<div class="col-sm-10">
|
||||
{{ form_widget(form.Content) }}
|
||||
{{ form_errors(form.Content) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label"></label>
|
||||
<div class="col-sm-10">
|
||||
<label>{{ form_widget(form.Follow) }} M'informer des nouveaux commentaires</label>
|
||||
{{ form_errors(form.Follow) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label"></label>
|
||||
<div class="col-sm-10">
|
||||
<label>{{ form_widget(form.Follow) }} M'informer des nouveaux commentaires</label>
|
||||
{{ form_errors(form.Follow) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group submit">
|
||||
<label class="col-sm-2 control-label">Publier</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="submit" class="btn btn-primary" value="Publier" />
|
||||
</div>
|
||||
</div>
|
||||
{{ form_widget(form.ParentCommentId) }}
|
||||
<div class="form-group submit">
|
||||
<label class="col-sm-2 control-label">Publier</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="submit" class="btn btn-primary" value="Publier" />
|
||||
</div>
|
||||
</div>
|
||||
{{ form_widget(form.ParentCommentId) }}
|
||||
|
||||
{{ form_rest(form) }}
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ form_rest(form) }}
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
|
@ -1,58 +1,58 @@
|
|||
{% extends "DeblanBlogBundle:Default:home.html.twig" %}
|
||||
|
||||
{% block breadcrumb %}
|
||||
<li><a href="{{ cms_path('homepage') }}">Accueil</a></li>
|
||||
<li><a href="{{ cms_path('homepage') }}">Accueil</a></li>
|
||||
|
||||
<li class="sep"> » </li>
|
||||
<li><a href="{{ cms_path('tiny', {page: 1}) }}">{{ page.seoTitle|pp(page.object)|pp(page)|e }}</a></li>
|
||||
<li class="sep"> » </li>
|
||||
<li><a href="{{ cms_path('tiny', {page: 1}) }}">{{ page.seoTitle|pp(page.object)|pp(page)|e }}</a></li>
|
||||
|
||||
{% if page.pager.nbResults > 0 and page.pager.currentPage > 1 %}
|
||||
<li class="sep"> » </li>
|
||||
<li>Page {{ page.pager.currentPage }}</li>
|
||||
{% endif %}
|
||||
{% if page.pager.nbResults > 0 and page.pager.currentPage > 1 %}
|
||||
<li class="sep"> » </li>
|
||||
<li>Page {{ page.pager.currentPage }}</li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>
|
||||
{{ page.seoTitle|pp(page.object)|pp(page)|e }}
|
||||
|
||||
<a href="https://tiny.deblan.org/public.php?op=rss&id=-1&key=c35938b7d791af1d550a8e11e77eb91ad2bf7a6f" target="_blank">
|
||||
<span class="social social-rss" style="width: 20px; height: 20px; display: inline-block"></span>
|
||||
</a>
|
||||
</h1>
|
||||
<h1>
|
||||
{{ page.seoTitle|pp(page.object)|pp(page)|e }}
|
||||
|
||||
<a href="https://tiny.deblan.org/public.php?op=rss&id=-1&key=c35938b7d791af1d550a8e11e77eb91ad2bf7a6f" target="_blank">
|
||||
<span class="social social-rss" style="width: 20px; height: 20px; display: inline-block"></span>
|
||||
</a>
|
||||
</h1>
|
||||
|
||||
{% for post in page.pager %}
|
||||
{{ include('DeblanBlogBundle:Default:tinyThePost.html.twig', {post: post}) }}
|
||||
{% endfor %}
|
||||
{% for post in page.pager %}
|
||||
{{ include('DeblanBlogBundle:Default:tinyThePost.html.twig', {post: post}) }}
|
||||
{% endfor %}
|
||||
|
||||
{% if page.pager.hasPreviousPage or page.pager.hasNextPage %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
<hr />
|
||||
<ul class="pager">
|
||||
{% if page.pager.hasPreviousPage %}
|
||||
<li class="previous">
|
||||
<a href="{{ cms_path('tiny', {page: page.pager.getPreviousPage}) }}">Précédent</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if page.pager.hasNextPage %}
|
||||
<li class="next">
|
||||
<a href="{{ cms_path('tiny', {page: page.pager.getNextPage}) }}">Suivant</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if page.pager.hasPreviousPage or page.pager.hasNextPage %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||
<hr />
|
||||
<ul class="pager">
|
||||
{% if page.pager.hasPreviousPage %}
|
||||
<li class="previous">
|
||||
<a href="{{ cms_path('tiny', {page: page.pager.getPreviousPage}) }}">Précédent</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if page.pager.hasNextPage %}
|
||||
<li class="next">
|
||||
<a href="{{ cms_path('tiny', {page: page.pager.getNextPage}) }}">Suivant</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block main_menu_bind %}
|
||||
{% if page.pager.hasPreviousPage %}
|
||||
<li class="bind"><a href="{{ cms_path('tiny', {page: page.pager.getPreviousPage}) }}"><span class="glyphicon glyphicon-backward"></span></a></li>
|
||||
{% endif %}
|
||||
{% if page.pager.hasNextPage %}
|
||||
<li class="bind"><a href="{{ cms_path('tiny', {page: page.pager.getNextPage}) }}"><span class="glyphicon glyphicon-forward"></span></a></li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% if page.pager.hasPreviousPage %}
|
||||
<li class="bind"><a href="{{ cms_path('tiny', {page: page.pager.getPreviousPage}) }}"><span class="glyphicon glyphicon-backward"></span></a></li>
|
||||
{% endif %}
|
||||
{% if page.pager.hasNextPage %}
|
||||
<li class="bind"><a href="{{ cms_path('tiny', {page: page.pager.getNextPage}) }}"><span class="glyphicon glyphicon-forward"></span></a></li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,23 +1,23 @@
|
|||
<article class="post" id="post-{{ post.id }}">
|
||||
<header>
|
||||
<h3><a href="{{ post.link }}" target="_blank">{{ post.title }}</a></h3>
|
||||
<header>
|
||||
<h3><a href="{{ post.link }}" target="_blank">{{ post.title }}</a></h3>
|
||||
|
||||
<div class="meta">
|
||||
<address class="author">
|
||||
<span class="glyphicon glyphicon-user"></span>
|
||||
<a rel="author" href="{{ post.link }}" target="_blank">{{ post.author }}</a>
|
||||
</address>
|
||||
<div class="meta">
|
||||
<address class="author">
|
||||
<span class="glyphicon glyphicon-user"></span>
|
||||
<a rel="author" href="{{ post.link }}" target="_blank">{{ post.author }}</a>
|
||||
</address>
|
||||
|
||||
<time datetime="{{ post.updated|date("Y-m-d") }}" title="{{ post.updated|date("r") }}">
|
||||
<span class="glyphicon glyphicon-calendar"></span>
|
||||
{{ post.updated|date("d/m/Y à H\\hi") }}
|
||||
</time>
|
||||
</div>
|
||||
</header>
|
||||
<time datetime="{{ post.updated|date("Y-m-d") }}" title="{{ post.updated|date("r") }}">
|
||||
<span class="glyphicon glyphicon-calendar"></span>
|
||||
{{ post.updated|date("d/m/Y à H\\hi") }}
|
||||
</time>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="page-content">
|
||||
{{ post.excerpt|raw }}
|
||||
<div class="page-content">
|
||||
{{ post.excerpt|raw }}
|
||||
|
||||
<p><a href="{{ post.link }}" target="_blank">{{ post.link }}</a></p>
|
||||
</div>
|
||||
<p><a href="{{ post.link }}" target="_blank">{{ post.link }}</a></p>
|
||||
</div>
|
||||
</article>
|
||||
|
|
Loading…
Reference in a new issue