diff --git a/pcf-wp/archive.php b/pcf-wp/archive.php new file mode 100644 index 0000000..3c29698 --- /dev/null +++ b/pcf-wp/archive.php @@ -0,0 +1,55 @@ + +

Archives:

+ + +'post', 'post_status'=>'publish', 'posts_per_page'=>-1)); ?> + + + have_posts() ) : $wpb_all_query->the_post(); ?> + + + + +

" . get_the_title() . "

+" . get_the_excerpt(); +} +?> + + + + +
+
+ + diff --git a/pcf-wp/category.php b/pcf-wp/category.php new file mode 100644 index 0000000..0d38ddc --- /dev/null +++ b/pcf-wp/category.php @@ -0,0 +1,36 @@ + +

+ + + +
+ + +

+
+ +
+ + +
+
+
+ + + + diff --git a/pcf-wp/comments.php b/pcf-wp/comments.php new file mode 100644 index 0000000..4f1d50e --- /dev/null +++ b/pcf-wp/comments.php @@ -0,0 +1,96 @@ + $current_post_ID, +); + +$comments = get_comments($args); +$com_count = wp_count_comments( $current_post_ID ); + +if ($com_count->all == 0): + + echo "

Aucun commentaire

"; + +else: + + echo "

Commentaires:

"; + +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; + +?> + + "", + 'fields' => array( +//Author field +'author' => '', +//Email Field +'email' => ' +
+

*Lire notre politique de confidentialité

+', +//URL Field +'url' => '', +//Cookies +'cookies' => '' + +), + 'comment_field' => '

', + +'title_reply' => __( '' ), +'title_reply_to' => __( '' ), +'title_reply_before' => '', +'title_reply_after' => '', +'comment_notes_before' => '', +'comment_notes_after' => '', + +); + + +comment_form( $args ); + +echo " +
+
+
+"; +?> diff --git a/pcf-wp/comrade.html b/pcf-wp/comrade.html new file mode 100644 index 0000000..fc6477e --- /dev/null +++ b/pcf-wp/comrade.html @@ -0,0 +1,3 @@ +
+ +
diff --git a/pcf-wp/footer.php b/pcf-wp/footer.php new file mode 100644 index 0000000..6572690 --- /dev/null +++ b/pcf-wp/footer.php @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + diff --git a/pcf-wp/functions.php b/pcf-wp/functions.php new file mode 100644 index 0000000..a085077 --- /dev/null +++ b/pcf-wp/functions.php @@ -0,0 +1,60 @@ + esc_html__( 'Sidebar Right', 'boiler' ), + 'id' => 'dyn-side-right', + 'description' => esc_html__( 'Add widgets for right sidebar', 'boiler' ), + 'before_widget' => '
', + 'after_widget' => '
', + 'before_title' => '

', + 'after_title' => '

', + ]); + + register_sidebar([ + 'name' => esc_html__( 'Sidebar Header', 'boiler' ), + 'id' => 'dyn-side-header', + 'description' => esc_html__( 'Add widgets for header sidebar', 'boiler' ), + 'before_widget' => '
', + 'after_widget' => '
', + 'before_title' => '

', + 'after_title' => '

', + ]); + + register_sidebar([ + 'name' => esc_html__( 'Sidebar Footer', 'boiler' ), + 'id' => 'dyn-side-footer', + 'description' => esc_html__( 'Add widgets for footer sidebar', 'boiler' ), + 'before_widget' => '
', + 'after_widget' => '
', + 'before_title' => '

', + 'after_title' => '

', + ]); +} + +add_action( 'widgets_init', 'boiler_widgets_init' ); + +?> diff --git a/pcf-wp/header.php b/pcf-wp/header.php new file mode 100644 index 0000000..e15491f --- /dev/null +++ b/pcf-wp/header.php @@ -0,0 +1,26 @@ + + + + + + + + + +> +
+ +
+

+ +

+ +

+ + + +
+ +
+ +
diff --git a/pcf-wp/home.php b/pcf-wp/home.php new file mode 100644 index 0000000..d9b6ace --- /dev/null +++ b/pcf-wp/home.php @@ -0,0 +1,7 @@ + + + + + + + diff --git a/pcf-wp/index.php b/pcf-wp/index.php new file mode 100644 index 0000000..8797fd6 --- /dev/null +++ b/pcf-wp/index.php @@ -0,0 +1,6 @@ + + +

Boilerplate

+Check Tooltiped + + diff --git a/pcf-wp/page.php b/pcf-wp/page.php new file mode 100644 index 0000000..5497570 --- /dev/null +++ b/pcf-wp/page.php @@ -0,0 +1,21 @@ + + +
+ + + +

+
+ +
+ + +
+ +
+ + +
+ + + diff --git a/pcf-wp/screenshot.png b/pcf-wp/screenshot.png new file mode 100644 index 0000000..e5a18b2 Binary files /dev/null and b/pcf-wp/screenshot.png differ diff --git a/pcf-wp/search.php b/pcf-wp/search.php new file mode 100644 index 0000000..e4becaa --- /dev/null +++ b/pcf-wp/search.php @@ -0,0 +1,38 @@ + +

Résultat:

+ + + + +
+
+ + + + + + + diff --git a/pcf-wp/sidebar-left.php b/pcf-wp/sidebar-left.php new file mode 100644 index 0000000..77e719d --- /dev/null +++ b/pcf-wp/sidebar-left.php @@ -0,0 +1,3 @@ +
+
+ diff --git a/pcf-wp/sidebar-right.php b/pcf-wp/sidebar-right.php new file mode 100644 index 0000000..813e458 --- /dev/null +++ b/pcf-wp/sidebar-right.php @@ -0,0 +1,14 @@ +
+ +
+ +
+ + + + + + + +
+ diff --git a/pcf-wp/single-post.php b/pcf-wp/single-post.php new file mode 100644 index 0000000..37aa79b --- /dev/null +++ b/pcf-wp/single-post.php @@ -0,0 +1,66 @@ + +
+
+ + +
+ + +
+ + +
+ +
+term_id ) ); + $tag_name = esc_html( $tag->name ); + echo "". $tag_name .""; +} +?> +
+
+
+ +
+
+ + + +
+ +
+ +
+ + + +
+
+
+
+ + + + + + + + +
+ + diff --git a/pcf-wp/static/css/boilerplate.css b/pcf-wp/static/css/boilerplate.css new file mode 100644 index 0000000..08de9cd --- /dev/null +++ b/pcf-wp/static/css/boilerplate.css @@ -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; +} diff --git a/pcf-wp/style.css b/pcf-wp/style.css new file mode 100644 index 0000000..45137b7 --- /dev/null +++ b/pcf-wp/style.css @@ -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. +*/ diff --git a/pcf-wp/tag.php b/pcf-wp/tag.php new file mode 100644 index 0000000..18f690b --- /dev/null +++ b/pcf-wp/tag.php @@ -0,0 +1,34 @@ + +

+ + + + +
+
+ + + + diff --git a/pcf-wp/template-parts/cat-cloud.php b/pcf-wp/template-parts/cat-cloud.php new file mode 100644 index 0000000..ee9ee65 --- /dev/null +++ b/pcf-wp/template-parts/cat-cloud.php @@ -0,0 +1,14 @@ +
+ 'name', + 'order' => 'ASC') + ); + +foreach( $categories as $category ) { + $catg_link = esc_url( get_category_link( $category->term_id ) ); + $catg_name = esc_html( $category->name ); + echo "". $catg_name .""; +} +?> +
diff --git a/pcf-wp/template-parts/comment-wrapper.php b/pcf-wp/template-parts/comment-wrapper.php new file mode 100644 index 0000000..9ac1337 --- /dev/null +++ b/pcf-wp/template-parts/comment-wrapper.php @@ -0,0 +1,67 @@ +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; +?> + + + +
+

+ +

+$com_auth - $com_date - $com_h h $com_m

" +?> + + + + '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); + +?> + + +
+
+ + + + + +

+ +

+ + diff --git a/pcf-wp/template-parts/latest-grid.php b/pcf-wp/template-parts/latest-grid.php new file mode 100644 index 0000000..85e1f25 --- /dev/null +++ b/pcf-wp/template-parts/latest-grid.php @@ -0,0 +1,38 @@ +

Derniers Articles:

+
+ + + + +
+ +
+ + + + +
diff --git a/pcf-wp/template-parts/main-story.php b/pcf-wp/template-parts/main-story.php new file mode 100644 index 0000000..dd9aee3 --- /dev/null +++ b/pcf-wp/template-parts/main-story.php @@ -0,0 +1,9 @@ + + $sticky[0] ) ); ?> +the_post(); ?> + + + diff --git a/pcf-wp/template-parts/pub-info.php b/pcf-wp/template-parts/pub-info.php new file mode 100644 index 0000000..74700d3 --- /dev/null +++ b/pcf-wp/template-parts/pub-info.php @@ -0,0 +1,7 @@ + + +

Publié le par

+ diff --git a/pcf-wp/template-parts/social-share.php b/pcf-wp/template-parts/social-share.php new file mode 100644 index 0000000..467979c --- /dev/null +++ b/pcf-wp/template-parts/social-share.php @@ -0,0 +1,28 @@ + + + +'; ?> + + + +';?> + + + + +
+ Copier le lien + +
+ + diff --git a/pcf-wp/template-parts/tag-cloud.php b/pcf-wp/template-parts/tag-cloud.php new file mode 100644 index 0000000..d69105d --- /dev/null +++ b/pcf-wp/template-parts/tag-cloud.php @@ -0,0 +1,14 @@ +
+ 'name', + 'order' => 'ASC') + ); + +foreach( $tags as $tag ) { + $tag_link = esc_url( get_tag_link( $tag->term_id ) ); + $tag_name = esc_html( $tag->name ); + echo "". $tag_name .""; +} +?> +