pcf wp added
This commit is contained in:
parent
01ce5e6a26
commit
55f2330654
|
@ -0,0 +1,55 @@
|
|||
<?php
|
||||
/*
|
||||
Template Name: Archives
|
||||
*/
|
||||
get_header(); ?>
|
||||
<h3>Archives:</h3>
|
||||
|
||||
<!--
|
||||
<section class="archive-year">
|
||||
<?php //wp_get_archives('type=yearly'); ?>
|
||||
</section>
|
||||
-->
|
||||
<?php
|
||||
// the query
|
||||
$wpb_all_query = new WP_Query(array('post_type'=>'post', 'post_status'=>'publish', 'posts_per_page'=>-1)); ?>
|
||||
|
||||
|
||||
<?php while ( $wpb_all_query->have_posts() ) : $wpb_all_query->the_post(); ?>
|
||||
|
||||
|
||||
<?php
|
||||
$arc = get_the_title();
|
||||
|
||||
if ( strcmp( $arc ,"Archives") ) {
|
||||
echo "
|
||||
<article>
|
||||
<a href=" . get_the_permalink() . ">
|
||||
<h3>" . get_the_title() . "</h3></a>
|
||||
" . get_the_excerpt();
|
||||
}
|
||||
?>
|
||||
|
||||
<footer>
|
||||
<?php
|
||||
$categories = get_the_category();
|
||||
if ( ! empty( $categories ) ) {
|
||||
$art_cat_link = esc_url( get_category_link( $categories[0]->term_id ));
|
||||
$art_cat_name = esc_html( $categories[0]->name );
|
||||
$art_permalink = get_the_permalink();
|
||||
$post_date = get_the_date( 'j F o' );
|
||||
|
||||
echo "
|
||||
<span>$post_date</span>
|
||||
<a href='". $art_permalink ."'>
|
||||
<span class='dtlink'>Lire la suite</span>
|
||||
</a>";
|
||||
} ?>
|
||||
|
||||
</footer>
|
||||
</article>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<?php endwhile; ?>
|
||||
<?php get_footer(); ?>
|
|
@ -0,0 +1,36 @@
|
|||
<?php get_header(); ?>
|
||||
<h3 class="tag-big"><?php single_cat_title(); ?></h3>
|
||||
|
||||
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
|
||||
|
||||
<article>
|
||||
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
<h3><?php the_title(); ?></h3></a>
|
||||
<section class="byl-justext">
|
||||
<?php the_excerpt(); ?>
|
||||
</section>
|
||||
|
||||
<footer>
|
||||
<?php
|
||||
|
||||
$categories = get_the_category();
|
||||
if ( ! empty( $categories ) ) {
|
||||
$art_cat_link = esc_url( get_category_link( $categories[0]->term_id ));
|
||||
$art_cat_name = esc_html( $categories[0]->name );
|
||||
$art_permalink = get_the_permalink();
|
||||
|
||||
// echo "<a href='". $art_cat_link."'><span class='tag'>".$art_cat_name ."</span></a>
|
||||
echo "
|
||||
<a href='". $art_permalink ."'>
|
||||
<span class='dtlink'>Lire la suite</span>
|
||||
</a>";
|
||||
} ?>
|
||||
</footer>
|
||||
</article>
|
||||
<br>
|
||||
<br>
|
||||
<?php endwhile; ?>
|
||||
<?php endif; ?>
|
||||
<?php get_footer(); ?>
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
<?php
|
||||
|
||||
$rgpd_lien = "https://indignation.info/rgpd/";
|
||||
|
||||
$current_post_ID = get_query_var('current_post_ID');
|
||||
|
||||
$args = array(
|
||||
'post_id' => $current_post_ID,
|
||||
);
|
||||
|
||||
$comments = get_comments($args);
|
||||
$com_count = wp_count_comments( $current_post_ID );
|
||||
|
||||
if ($com_count->all == 0):
|
||||
|
||||
echo "<h3>Aucun commentaire</h3>";
|
||||
|
||||
else:
|
||||
|
||||
echo "<h3>Commentaires:</h3>";
|
||||
|
||||
endif;
|
||||
|
||||
foreach ( $comments as $comment ) :
|
||||
$com_parent = $comment->comment_parent;
|
||||
|
||||
if ($com_parent == 0):
|
||||
|
||||
$com_ID = $comment->comment_ID;
|
||||
set_query_var('com_ID', $com_ID);
|
||||
get_template_part( 'template-parts/comment-wrapper');
|
||||
|
||||
$defaults = array(
|
||||
'format' => 'tree',
|
||||
'status' => 'all',
|
||||
'hierarchical' => 'threaded',
|
||||
//'orderby' => 'comment_ID',
|
||||
'orderby' => 'publish_date',
|
||||
'order' => 'ASC',
|
||||
);
|
||||
//TODO
|
||||
$children_com = $comment->get_children($defaults);
|
||||
|
||||
foreach ($children_com as $child_com):
|
||||
|
||||
$com_ID = $child_com->comment_ID;
|
||||
set_query_var('com_ID', $com_ID);
|
||||
|
||||
get_template_part( 'template-parts/comment-wrapper');
|
||||
|
||||
endforeach;
|
||||
|
||||
endif;
|
||||
|
||||
endforeach;
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
$args = array(
|
||||
'attribute' => "",
|
||||
'fields' => array(
|
||||
//Author field
|
||||
'author' => '<input id="author" name="author" aria-required="true" placeholder="Votre Nom"></input>',
|
||||
//Email Field
|
||||
'email' => '<input id="email" name="email" placeholder="Votre mail*"></input>
|
||||
<br>
|
||||
<p><i>*<a href="'. $rgpd_lien .'" target="_blank">Lire notre politique de confidentialité</a></i></p>
|
||||
',
|
||||
//URL Field
|
||||
'url' => '',
|
||||
//Cookies
|
||||
'cookies' => ''
|
||||
|
||||
),
|
||||
'comment_field' => '<p class="comment-form-comment"><textarea id="comment" name="comment" placeholder="Rédiger un commentaire..." aria-required="true"></textarea></p>',
|
||||
|
||||
'title_reply' => __( '' ),
|
||||
'title_reply_to' => __( '' ),
|
||||
'title_reply_before' => '',
|
||||
'title_reply_after' => '',
|
||||
'comment_notes_before' => '',
|
||||
'comment_notes_after' => '',
|
||||
|
||||
);
|
||||
|
||||
|
||||
comment_form( $args );
|
||||
|
||||
echo "
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
";
|
||||
?>
|
|
@ -0,0 +1,3 @@
|
|||
<div class="comrade-bloc">
|
||||
|
||||
</div>
|
|
@ -0,0 +1,30 @@
|
|||
</main>
|
||||
<?php get_sidebar('right') ?>
|
||||
</div>
|
||||
|
||||
<footer id="main-footer" class="byl-footer">
|
||||
<?php dynamic_sidebar( 'dyn-side-footer' ); ?>
|
||||
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
|
||||
<?php wp_footer(); ?>
|
||||
|
||||
<script src="https://cdn.indignation.info/js/vue.min.js"></script>
|
||||
|
||||
<script type="module" src="https://cdn.indignation.info/byl/byl.js"></script>
|
||||
|
||||
<script type="module">
|
||||
import byl from 'https://cdn.indignation.info/byl/byl.js';
|
||||
|
||||
Vue.use(byl);
|
||||
|
||||
let vm = new Vue({
|
||||
el: '#root',
|
||||
})
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
<?php
|
||||
|
||||
// Add Theme Support
|
||||
add_theme_support( 'title-tag' );
|
||||
add_theme_support( 'post-thumbnails' );
|
||||
add_theme_support( 'post_format', ['aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat'] );
|
||||
add_theme_support( 'html5' );
|
||||
add_theme_support( 'automatic-feed-links' );
|
||||
add_theme_support( 'custom-background' );
|
||||
add_theme_support( 'custom-header' );
|
||||
add_theme_support( 'custom-logo' );
|
||||
add_theme_support( 'customize-selective-refresh-widgets' );
|
||||
add_theme_support( 'starter-content' );
|
||||
|
||||
// Load in our CSS
|
||||
function boiler_enqueue_styles() {
|
||||
|
||||
wp_enqueue_style( 'boiler-css', get_stylesheet_directory_uri() . '/static/css/boilerplate.css', [], time(), 'all' );
|
||||
|
||||
}
|
||||
|
||||
add_action( 'wp_enqueue_scripts', 'boiler_enqueue_styles' );
|
||||
|
||||
//Register "Sidebar"
|
||||
|
||||
function boiler_widgets_init() {
|
||||
register_sidebar([
|
||||
'name' => esc_html__( 'Sidebar Right', 'boiler' ),
|
||||
'id' => 'dyn-side-right',
|
||||
'description' => esc_html__( 'Add widgets for right sidebar', 'boiler' ),
|
||||
'before_widget' => '<section class="widget">',
|
||||
'after_widget' => '</section>',
|
||||
'before_title' => '<h2 class="widget-title">',
|
||||
'after_title' => '</h2>',
|
||||
]);
|
||||
|
||||
register_sidebar([
|
||||
'name' => esc_html__( 'Sidebar Header', 'boiler' ),
|
||||
'id' => 'dyn-side-header',
|
||||
'description' => esc_html__( 'Add widgets for header sidebar', 'boiler' ),
|
||||
'before_widget' => '<section class="widget">',
|
||||
'after_widget' => '</section>',
|
||||
'before_title' => '<h2 class="widget-title">',
|
||||
'after_title' => '</h2>',
|
||||
]);
|
||||
|
||||
register_sidebar([
|
||||
'name' => esc_html__( 'Sidebar Footer', 'boiler' ),
|
||||
'id' => 'dyn-side-footer',
|
||||
'description' => esc_html__( 'Add widgets for footer sidebar', 'boiler' ),
|
||||
'before_widget' => '<section class="widget">',
|
||||
'after_widget' => '</section>',
|
||||
'before_title' => '<h2 class="widget-title">',
|
||||
'after_title' => '</h2>',
|
||||
]);
|
||||
}
|
||||
|
||||
add_action( 'widgets_init', 'boiler_widgets_init' );
|
||||
|
||||
?>
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="https://cdn.indignation.info/byl/css/byl.min.css"/>
|
||||
<?php wp_head(); ?>
|
||||
</head>
|
||||
|
||||
<body <?php body_class(); ?>>
|
||||
<div id="root" class="byl-root">
|
||||
|
||||
<header id="masthead" class="byl-header byl-centered byl-bloc">
|
||||
<h1 id="site-title">
|
||||
<a href="<?php bloginfo( 'url' ) ?>"><?php bloginfo( 'name' ); ?></a>
|
||||
</h1>
|
||||
|
||||
<h2 id="tagline"><?php bloginfo( 'description' ); ?></h2>
|
||||
|
||||
<?php dynamic_sidebar( 'dyn-side-header' ); ?>
|
||||
|
||||
</header>
|
||||
|
||||
<div class="byl-main row">
|
||||
<?php get_sidebar('left') ?>
|
||||
<main id="content" class="col col-lg-7 col-md-8 col-sm-8 col-xs-12">
|
|
@ -0,0 +1,7 @@
|
|||
<?php get_header(); ?>
|
||||
|
||||
<?php get_template_part('template-parts/main-story'); ?>
|
||||
|
||||
<?php get_template_part('template-parts/latest-grid'); ?>
|
||||
|
||||
<?php get_footer(); ?>
|
|
@ -0,0 +1,6 @@
|
|||
<?php get_header(); ?>
|
||||
|
||||
<h4>Boilerplate</h4>
|
||||
<tooltiped text="check">Check Tooltiped</tooltiped>
|
||||
|
||||
<?php get_footer(); ?>
|
|
@ -0,0 +1,21 @@
|
|||
<?php get_header(); ?>
|
||||
|
||||
<section class="simple-page">
|
||||
|
||||
|
||||
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
|
||||
<h2><?php the_title(); ?></h2>
|
||||
<section class="byl-justext">
|
||||
<?php the_content(); ?>
|
||||
</section>
|
||||
|
||||
<?php endwhile; else: ?>
|
||||
<section class="byl-justext">
|
||||
<?php the_content(); ?>
|
||||
</section>
|
||||
|
||||
<?php endif; ?>
|
||||
</section>
|
||||
|
||||
<?php get_footer(); ?>
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 61 KiB |
|
@ -0,0 +1,38 @@
|
|||
<?php get_header(); ?>
|
||||
<h3>Résultat:</h3>
|
||||
|
||||
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
|
||||
|
||||
<article>
|
||||
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
<h3><?php the_title(); ?></h3></a>
|
||||
<?php the_excerpt(); ?>
|
||||
|
||||
<footer>
|
||||
<?php
|
||||
|
||||
$categories = get_the_category();
|
||||
if ( ! empty( $categories ) ) {
|
||||
$art_cat_link = esc_url( get_category_link( $categories[0]->term_id ));
|
||||
$art_cat_name = esc_html( $categories[0]->name );
|
||||
$art_permalink = get_the_permalink();
|
||||
|
||||
// echo "<a href='". $art_cat_link."'><span class='tag'>".$art_cat_name ."</span></a>
|
||||
echo "
|
||||
<a href='". $art_permalink ."'>
|
||||
<span class='dtlink'>Lire la suite</span>
|
||||
</a>";
|
||||
} ?>
|
||||
|
||||
</footer>
|
||||
</article>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<?php endwhile; ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php get_footer(); ?>
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
<section class="col col-lg-1 col-md-1 col-sm-12 col-xs-12">
|
||||
</section>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<section id="sidedroit" class="widget-area col col-lg-4 col-md-3 col-sm-4 col-xs-12">
|
||||
|
||||
<form action="/" method="get">
|
||||
<input type="text" class="search-bar" placeholder="Rechercher" name="s" id="search" value="" />
|
||||
</form>
|
||||
|
||||
<?php get_template_part('template-parts/tag-cloud'); ?>
|
||||
|
||||
<?php //get_template_part('template-parts/cat-cloud'); ?>
|
||||
|
||||
<?php dynamic_sidebar( 'dyn-side-right' ); ?>
|
||||
|
||||
</section>
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
<?php get_header(); ?>
|
||||
<article>
|
||||
<header>
|
||||
<hero
|
||||
imgurl="<?php echo get_the_post_thumbnail_url(); ?>"
|
||||
link="<?php echo get_permalink(); ?>"
|
||||
text="<?php echo get_the_title(); ?>">
|
||||
</hero>
|
||||
</header>
|
||||
|
||||
|
||||
<section class="byl-justext">
|
||||
<?php the_post(); ?>
|
||||
<?php the_content(); ?>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<?php
|
||||
$tags = get_the_tags( get_the_ID() );
|
||||
|
||||
foreach( $tags as $tag ) {
|
||||
$tag_link = esc_url( get_tag_link( $tag->term_id ) );
|
||||
$tag_name = esc_html( $tag->name );
|
||||
echo "<a href='". $tag_link ."'><span class='tag'>". $tag_name ."</span></a>";
|
||||
}
|
||||
?>
|
||||
</section>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<footer class="article-detail">
|
||||
<div class="byl-container row">
|
||||
|
||||
<section class="social-share-bloc col col-md-3 col-sm-3 col-xs-12">
|
||||
<?php get_template_part('template-parts/social-share'); ?>
|
||||
</section>
|
||||
|
||||
<section class="pub-info col col-md-9 col-sm-9 col-xs-12 byl-txt-right">
|
||||
<?php get_template_part('template-parts/pub-info'); ?>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</footer>
|
||||
</article>
|
||||
<br>
|
||||
<section>
|
||||
|
||||
<?php if( comments_open() ) : ?>
|
||||
|
||||
|
||||
<?php
|
||||
$current_post_ID = get_the_ID();
|
||||
set_query_var('current_post_ID', $current_post_ID);
|
||||
comments_template('/comments.php');
|
||||
//comments_template('/comments-old.php');
|
||||
|
||||
?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</section>
|
||||
<?php get_footer(); ?>
|
||||
|
|
@ -0,0 +1,416 @@
|
|||
@font-face {
|
||||
font-family: IrishU;
|
||||
src: url("https://cdn.indignation.info/fonts/IrishUncial.ttf");
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Axis;
|
||||
src: url("https://cdn.indignation.info/fonts/Axis.otf");
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Vollkorn;
|
||||
src: url("https://cdn.indignation.info/fonts/Vollkorn/Vollkorn-Regular.woff");
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: AvNext;
|
||||
src: url("https://file.brz9.dev/cdn/fonts/serv/AvenirNext/AvenirNext-Regular.woff2");
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
:root {
|
||||
--font-t: AvNext;
|
||||
--font-h: AvNext;
|
||||
--font-p: AvNext;
|
||||
--col-bg: #ffffff;
|
||||
--col-fg: #171717;
|
||||
--col-aside-bg: #ffffff;
|
||||
--col-aside-fg: #171717;
|
||||
--col-hf-bg: #e4002b;
|
||||
--col-hf-fg: #ffffff;
|
||||
--col-a:;
|
||||
--col-a-v:;
|
||||
}
|
||||
|
||||
html {
|
||||
font-family: var(--font-p);
|
||||
font-size: 1.1rem;
|
||||
color: var(--col-fg);
|
||||
background-color: var(--col-bg);
|
||||
}
|
||||
|
||||
.byl-header h1 {
|
||||
font-family: var(--font-t);
|
||||
font-size: 3rem;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: var(--font-h);
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.byl-header, .byl-footer {
|
||||
color: var(--col-hf-fg);
|
||||
background-color: var(--col-hf-bg);
|
||||
}
|
||||
|
||||
.byl-header{
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.byl-header h1 {
|
||||
font-family: var(--font-t);
|
||||
font-size: 4rem;
|
||||
margin-top: 15px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
#tagline {
|
||||
font-family: var(--font-p);
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
p, p[style] {
|
||||
font-family: var(--font-p); !important
|
||||
font-size: 1.2rem; !important
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
article header h2 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
article h6,
|
||||
article h5,
|
||||
article h4,
|
||||
article h3,
|
||||
article h2,
|
||||
article h1{
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
article blockquote p {
|
||||
font-size: 1.6rem;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
blockquote.wp-block-quote {
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
footer nav li a {
|
||||
font-family: var(--font-h);
|
||||
}
|
||||
|
||||
footer {
|
||||
font-family: var(--font-h);
|
||||
}
|
||||
|
||||
article footer .dtlink {
|
||||
font-family: var(--font-h);
|
||||
}
|
||||
|
||||
input[type=text].search-bar {
|
||||
font-family: var(--font-h);
|
||||
width: 100%;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.article-detail {
|
||||
font-style: italic;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.menu, #submit{
|
||||
font-family: var(--font-h);
|
||||
}
|
||||
|
||||
.byl-hero h4 {
|
||||
font-size: 2.2rem;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
input {
|
||||
border-radius: 0px;
|
||||
border: 0;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
a span.tag {
|
||||
border-style: solid;
|
||||
border-width: thick;
|
||||
padding: 3px;
|
||||
display: inline-block;
|
||||
margin-bottom: 4px;
|
||||
margin-right: 4px;
|
||||
font-size: 1rem;
|
||||
font-family: var(--font-h);
|
||||
}
|
||||
|
||||
.tag-big {
|
||||
border-style: solid;
|
||||
border-width: 8px;
|
||||
padding: 3px;
|
||||
display: inline-block;
|
||||
margin: 5px;
|
||||
font-size: 2rem;
|
||||
font-family: var(--font-h);
|
||||
}
|
||||
|
||||
textarea {
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
resize: none;
|
||||
padding: 20px;
|
||||
font-family: var(--font-p);
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
input#author, input#email {
|
||||
padding: 20px;
|
||||
width: 40%;
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
article footer .dtlink {
|
||||
float: right;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.footer-social {
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
|
||||
.footer-social span{
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
footer li{
|
||||
display: inline-block;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
#content {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#content article {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
input.submit {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.full-article {
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.archive-year {
|
||||
font-family: var(--font-h);
|
||||
}
|
||||
|
||||
footer.article-detail{
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
article p, article ul li {
|
||||
font-family: var(--font-p);
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.social-share {
|
||||
cursor: pointer;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.byl-icon-link.social-share {
|
||||
margin-left: -7px;
|
||||
}
|
||||
|
||||
.widget-title {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
ul.menu {
|
||||
margin: 0px;
|
||||
padding-left: 20px
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1080px) {
|
||||
h1 {
|
||||
font-size: 3rem;
|
||||
}
|
||||
.byl-hero h4 {
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
}
|
||||
|
||||
.pub-info p {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
figure.wp-block-image {
|
||||
width: 100%;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
img.wp-image-1000 {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
article h4 {
|
||||
font-size: 1.2 rem;
|
||||
}
|
||||
|
||||
article img.aligncenter {
|
||||
display: flex;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.tag-cloud, .cat-cloud {
|
||||
padding-left: 5px;
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
.simple-page {
|
||||
padding-right: 50px;
|
||||
padding-left: 50px;
|
||||
}
|
||||
|
||||
section.widget {
|
||||
text-align: center;
|
||||
padding-bottom: 0px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
section.widget_text h2.widget-title {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.comrade-bloc img {
|
||||
width: 8rem;
|
||||
}
|
||||
|
||||
.comrade-bloc a {
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
/* comment section start*/
|
||||
h4.reply {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.comlevel1{
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
.comlevel2{
|
||||
margin-left: 60px;
|
||||
}
|
||||
|
||||
.reply, input#submit {
|
||||
background-color: var(--col-fg);
|
||||
color: var(--col-bg);
|
||||
padding: 5px;
|
||||
margin-top: -3px;
|
||||
display: inline-block;
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
section.comment-wrap {
|
||||
border-left: 5px solid var(--col-fg);
|
||||
padding-top: 1px;
|
||||
padding-left: 5px;
|
||||
|
||||
}
|
||||
|
||||
.comment-content {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.comment-wrap {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.comment-wrap footer {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.form-submit {
|
||||
margin-top: 15px;
|
||||
}
|
||||
/* comment section end*/
|
||||
|
||||
/* newsletter section start*/
|
||||
section.widget div.tnp {
|
||||
padding-top: 0px;
|
||||
margin-top: 0px;
|
||||
text-align: center;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
width: 300px; !important
|
||||
}
|
||||
|
||||
form.tnp-form input {
|
||||
font-family: var(--font-h);
|
||||
}
|
||||
|
||||
form.tnp-form input[type=submit] {
|
||||
background-color: var(--col-fg);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
input.tnp-email {
|
||||
margin-bottom: 10px;
|
||||
border: none;
|
||||
}
|
||||
/* newsletter section end*/
|
||||
article section p span[style]{
|
||||
color: var(--col-fg) !important;
|
||||
font-size: 1.2rem !important;
|
||||
font-weight: 400 !important;
|
||||
font-family: Vollkorn !important;
|
||||
}
|
||||
|
||||
footer#main-footer .widget{
|
||||
padding-top: 0px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 800px) {
|
||||
h1#site-title {
|
||||
font-size: 3rem;
|
||||
}
|
||||
.byl-hero h4 {
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
article section p span[style], p,
|
||||
article h4, article h2 {
|
||||
text-align: left !important;
|
||||
}
|
||||
}
|
||||
|
||||
.simple-page p {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
img.jc-logo {
|
||||
width: 195px;
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
/*
|
||||
Theme Name: pcf06
|
||||
Author: edbarz9
|
||||
Author URI: https://brz9.dev
|
||||
Description: Theme Marxiste-Léninsite
|
||||
Version: 1.0
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
Text Domain: pcf06wp
|
||||
This theme, like WordPress, is licensed under the GPL.
|
||||
Use it to make something cool, have fun, and share what you've learned with others.
|
||||
*/
|
|
@ -0,0 +1,34 @@
|
|||
<?php get_header(); ?>
|
||||
<h3 class="tag-big"><?php single_tag_title(); ?></h3>
|
||||
|
||||
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
|
||||
|
||||
<article>
|
||||
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
<h3><?php the_title(); ?></h3></a>
|
||||
<?php the_excerpt(); ?>
|
||||
|
||||
<footer>
|
||||
<?php
|
||||
|
||||
$categories = get_the_category();
|
||||
if ( ! empty( $categories ) ) {
|
||||
$art_cat_link = esc_url( get_category_link( $categories[0]->term_id ));
|
||||
$art_cat_name = esc_html( $categories[0]->name );
|
||||
$art_permalink = get_the_permalink();
|
||||
|
||||
// echo "<a href='". $art_cat_link."'><span class='tag'>".$art_cat_name ."</span></a>
|
||||
echo "
|
||||
<a href='". $art_permalink ."'>
|
||||
<span class='dtlink'>Lire la suite</span>
|
||||
</a>";
|
||||
} ?>
|
||||
</footer>
|
||||
</article>
|
||||
<br>
|
||||
<br>
|
||||
<?php endwhile; ?>
|
||||
<?php endif; ?>
|
||||
<?php get_footer(); ?>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<section class="cat-cloud">
|
||||
<?php
|
||||
$categories = get_categories( array(
|
||||
'orderby' => 'name',
|
||||
'order' => 'ASC')
|
||||
);
|
||||
|
||||
foreach( $categories as $category ) {
|
||||
$catg_link = esc_url( get_category_link( $category->term_id ) );
|
||||
$catg_name = esc_html( $category->name );
|
||||
echo "<a href='". $catg_link ."'><span class='tag'>". $catg_name ."</span></a>";
|
||||
}
|
||||
?>
|
||||
</section>
|
|
@ -0,0 +1,67 @@
|
|||
<?php
|
||||
|
||||
$com_ID = get_query_var('com_ID');
|
||||
$comment = get_comment($com_ID);
|
||||
|
||||
$com_auth = $comment->comment_author;
|
||||
$com_txt = $comment->comment_content;
|
||||
$com_id = get_comment_ID();
|
||||
$com_date = get_comment_date( 'd\/m\/Y' );
|
||||
$com_h = get_comment_time( 'H' );
|
||||
$com_m = get_comment_time( 'i' );
|
||||
$com_parent = $comment->comment_parent;
|
||||
//$com_parent = get_query_var('com_parent');
|
||||
if ($com_parent == 0):
|
||||
$comlevel = "comlevel1";
|
||||
else:
|
||||
$comlevel = "comlevel2";
|
||||
endif;
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<section class="comment-wrap <?php echo $comlevel?>">
|
||||
<p class="comment-content">
|
||||
<?php echo $com_txt; ?>
|
||||
<footer>
|
||||
<?php echo "
|
||||
<p><i>$com_auth - $com_date - $com_h h $com_m </i></p>"
|
||||
?>
|
||||
|
||||
<!--<p><i>Jule - 02/03/2020 - 14h35</i></p>--!>
|
||||
|
||||
<?php
|
||||
|
||||
$post_id = get_the_ID();
|
||||
$comment_id =get_comment_ID();
|
||||
|
||||
//get the setting configured in the admin panel under settings discussions "Enable threaded (nested) comments levels deep"
|
||||
$max_depth = get_option('thread_comments_depth');
|
||||
//add max_depth to the array and give it the value from above and set the depth to 1
|
||||
$default = array(
|
||||
'add_below' => 'comment',
|
||||
'respond_id' => 'respond',
|
||||
'reply_text' => __('Reply'),
|
||||
'login_text' => __('Log in to Reply'),
|
||||
'depth' => 1,
|
||||
'before' => '',
|
||||
'after' => '',
|
||||
'max_depth' => $max_depth
|
||||
);
|
||||
$com_replink = get_comment_reply_link($default,$comment_id,$post_id);
|
||||
|
||||
?>
|
||||
|
||||
|
||||
</footer>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<?php if ($com_parent == 0): ?>
|
||||
|
||||
<h4 class="<?php echo $comlevel?> reply">
|
||||
<?php echo $com_replink;?>
|
||||
</h4>
|
||||
|
||||
<?php endif; ?>
|
|
@ -0,0 +1,38 @@
|
|||
<h2>Derniers Articles:</h2>
|
||||
<section class="row">
|
||||
<?php $preview_count = 0?>
|
||||
<?php if (have_posts()) : while ( have_posts() ) : the_post(); ?>
|
||||
<?php if (!is_sticky() && $preview_count < 8 ): ?>
|
||||
<?php $preview_count++ ?>
|
||||
<div class="col-md-6 col-xs-12">
|
||||
<article>
|
||||
|
||||
<a href="<?php the_permalink(); ?>">
|
||||
<h3><?php the_title(); ?></h3></a>
|
||||
<section class="byl-justext">
|
||||
<?php the_excerpt(); ?>
|
||||
</section>
|
||||
|
||||
<footer>
|
||||
<?php
|
||||
|
||||
$categories = get_the_category();
|
||||
if ( ! empty( $categories ) ) {
|
||||
$art_cat_link = esc_url( get_category_link( $categories[0]->term_id ));
|
||||
$art_cat_name = esc_html( $categories[0]->name );
|
||||
$art_permalink = get_the_permalink();
|
||||
|
||||
echo "<a href='". $art_cat_link."'><span class='tag'>".$art_cat_name ."</span></a>
|
||||
<a href='". $art_permalink ."'>
|
||||
<span class='dtlink'>Lire la suite</span>
|
||||
</a>";
|
||||
} ?>
|
||||
|
||||
</footer>
|
||||
</article>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endwhile ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</section>
|
|
@ -0,0 +1,9 @@
|
|||
<?php $sticky = get_option( 'sticky_posts' ); ?>
|
||||
<?php $the_query = new WP_Query( array( 'p' => $sticky[0] ) ); ?>
|
||||
<?php $the_query->the_post(); ?>
|
||||
|
||||
<hero
|
||||
imgurl="<?php echo get_the_post_thumbnail_url(); ?>"
|
||||
link="<?php echo get_permalink(); ?>"
|
||||
text="<?php echo get_the_title(); ?>">
|
||||
</hero>
|
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
$post_date = get_the_date( 'j F o' );
|
||||
$author = get_the_author();
|
||||
?>
|
||||
|
||||
<p>Publié le <?php echo $post_date ?> par <?php echo $author ?></p>
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
<?php $url = get_the_permalink(); ?>
|
||||
|
||||
<tooltiped text="Partager sur facebook">
|
||||
<?php echo '<a href="https://www.facebook.com/sharer/sharer.php?u=' . $url . '" target="_blank"><span class="byl-icon-facebook social-share"> </span></a>'; ?>
|
||||
</tooltiped>
|
||||
|
||||
<tooltiped text="Partager sur twitter">
|
||||
<?php echo '<a href="https://twitter.com/intent/tweet?text=À lire sur @indignation_l ' . $url . '" target="_blank"><span class="byl-icon-twitter social-share"></span></a>';?>
|
||||
</tooltiped>
|
||||
|
||||
<input class="byl-hidden" type="text" value="<?php echo $url ?>" id="permalinkUrl">
|
||||
|
||||
<div class="byl-tooltiped">
|
||||
<span class="byl-tooltip-text">Copier le lien</span>
|
||||
<span onclick="copy2clipboard()" class="byl-icon-link social-share"></span>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function copy2clipboard() {
|
||||
var copyText = document.getElementById("permalinkUrl");
|
||||
copyText.select();
|
||||
console.log("check");
|
||||
console.log(copyText);
|
||||
copyText.setSelectionRange(0, 99999)
|
||||
document.execCommand("copy");
|
||||
alert("Le lien a été copié dans votre presse-papier!\nVous pouvez le coller en appuyant sur Ctrl+V pour le partager.");
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<section class="tag-cloud">
|
||||
<?php
|
||||
$tags = get_tags( array(
|
||||
'orderby' => 'name',
|
||||
'order' => 'ASC')
|
||||
);
|
||||
|
||||
foreach( $tags as $tag ) {
|
||||
$tag_link = esc_url( get_tag_link( $tag->term_id ) );
|
||||
$tag_name = esc_html( $tag->name );
|
||||
echo "<a href='". $tag_link ."'><span class='tag'>". $tag_name ."</span></a>";
|
||||
}
|
||||
?>
|
||||
</section>
|
Loading…
Reference in New Issue