diff --git a/archive.php b/archive.php index 6c69bcf..40d6d08 100644 --- a/archive.php +++ b/archive.php @@ -1,7 +1,7 @@

- +
diff --git a/category.php b/category.php index 536ff05..4dfae77 100644 --- a/category.php +++ b/category.php @@ -1,17 +1,23 @@
-

- - cat_ID; - - echo '' . '' ; - ?> -

+ cat_ID; ?>
- + + + diff --git a/components/sidebar-content.php b/components/sidebar-content.php new file mode 100644 index 0000000..62bd264 --- /dev/null +++ b/components/sidebar-content.php @@ -0,0 +1,5 @@ + + + + + diff --git a/components/sidebar/archives.php b/components/sidebar/archives.php new file mode 100644 index 0000000..8c3538d --- /dev/null +++ b/components/sidebar/archives.php @@ -0,0 +1,12 @@ +
+
Archives
+
+ 'yearly', + 'echo' => 1, + 'order'=> 'ASC' + ) ); + ?> +
+
diff --git a/components/sidebar/categories.php b/components/sidebar/categories.php new file mode 100644 index 0000000..94b47ff --- /dev/null +++ b/components/sidebar/categories.php @@ -0,0 +1,14 @@ +
+
Catégories
+
+ 'name', + 'order' => 'ASC' + ) ); + + foreach( $categories as $category ) { + echo '' . $category->name . ''. $category->count . ''; + }?> +
+
diff --git a/components/sidebar/last-articles.php b/components/sidebar/last-articles.php new file mode 100644 index 0000000..5f27e3b --- /dev/null +++ b/components/sidebar/last-articles.php @@ -0,0 +1,13 @@ +
+
Publications
+
+ 'postbypost', + 'echo' => 1, + 'order' => 'ASC', + 'limit' => 6 + ) ); + ?> +
+
diff --git a/components/sidebar/links.php b/components/sidebar/links.php new file mode 100644 index 0000000..7caca66 --- /dev/null +++ b/components/sidebar/links.php @@ -0,0 +1,10 @@ +
+
Liens
+
+ Kobold City + Mes JDR + Mes Univers + Mon Gitea + Vault +
+
diff --git a/components/sidebar/tags.php b/components/sidebar/tags.php new file mode 100644 index 0000000..ea9bef6 --- /dev/null +++ b/components/sidebar/tags.php @@ -0,0 +1,24 @@ + 8, 'largest' => 22, 'unit' => 'pt', 'number' => 999, + 'format' => 'array', 'orderby' => 'name', 'order' => 'ASC', + 'exclude' => '', 'include' => ''); + +$tags = get_tags($args); + +?> + +
+
Tags
+
+
+ +
+
+
diff --git a/functions.php b/functions.php index 6a7dc05..0cc07cc 100644 --- a/functions.php +++ b/functions.php @@ -1,21 +1,21 @@ - '
', + 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); - + /* 2. Niveau support (for featured posts) */ register_taxonomy( @@ -58,20 +58,20 @@ function mypost_social_sharing_buttons($content) { // Fork of mypost_social_sharing_buttons // You can find the original at the following url: // https://mypost_.com/how-to-create-social-sharing-button-without-any-plugin-and-script-loading-wordpress-speed-optimization-goal/ - + global $post; if(is_singular() || is_home()){ - - // Get current page URL + + // Get current page URL $mypost_URL = urlencode(get_permalink()); - + // Get current page title $mypost_Title = htmlspecialchars(urlencode(html_entity_decode(get_the_title(), ENT_COMPAT, 'UTF-8')), ENT_COMPAT, 'UTF-8'); // $mypost_Title = str_replace( ' ', '%20', get_the_title()); - + // Get Post Thumbnail for pinterest $mypost_Thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); - + // Construct sharing URL without using any script $twitterURL = 'https://twitter.com/intent/tweet?text='.$mypost_Title.'&url='.$mypost_URL.'&via=mypost_'; $facebookURL = 'https://www.facebook.com/sharer/sharer.php?u='.$mypost_URL; @@ -79,10 +79,10 @@ function mypost_social_sharing_buttons($content) { $whatsappURL = 'whatsapp://send?text='.$mypost_Title . ' ' . $mypost_URL; $linkedInURL = 'https://www.linkedin.com/shareArticle?mini=true&url='.$mypost_URL.'&title='.$mypost_Title; $diasporaURL = 'http://sharetodiaspora.github.io/?title=' . $mypost_Title . '&url=' . $mypost_URL; - + // Based on popular demand added Pinterest too $pinterestURL = 'https://pinterest.com/pin/create/button/?url='.$mypost_URL.'&media='.$mypost_Thumbnail[0].'&description='.$mypost_Title; - + // Add sharing button at the end of page/page content $content .= ''; $content .= '
'; @@ -94,7 +94,7 @@ function mypost_social_sharing_buttons($content) { $content .= ''; $content .= ''; $content .= '
'; - + return $content; }else{ // if not a post/page then don't include sharing button diff --git a/scss/components/_cards.scss b/scss/components/_cards.scss index c88477a..94828f8 100644 --- a/scss/components/_cards.scss +++ b/scss/components/_cards.scss @@ -169,7 +169,7 @@ $card-smallpad: $lineheight_half; } } -ul.card-list { +ul.card-list, .card > ul { padding:0; margin:0; li.list-element { diff --git a/sidebar.php b/sidebar.php index 052e8e2..251e9de 100644 --- a/sidebar.php +++ b/sidebar.php @@ -1,3 +1,3 @@ -