-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f20ac5c
Showing
18 changed files
with
2,360 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
/** | ||
** Activation du theme | ||
**/ | ||
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); | ||
|
||
function theme_enqueue_styles() { | ||
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); | ||
} | ||
|
||
// prise en compte du dossier de traduction du theme enfant à la place du parent | ||
function my_child_theme_setup() { | ||
load_child_theme_textdomain( 'goblog-free', get_stylesheet_directory() . '/lang' ); // languages étant le chemin du dossier dans lequel se trouvent vos fichiers .po et .mo | ||
} | ||
add_action( 'after_setup_theme', 'my_child_theme_setup' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
/** | ||
* The header for our theme | ||
* | ||
* This is the template that displays all of the <head> section and everything up until <div id="content"> | ||
* | ||
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials | ||
* | ||
* @subpackage Goblog Free | ||
* @since Goblog Free 1.0 | ||
* @version 1.0 | ||
*/ | ||
|
||
?><!DOCTYPE html> | ||
<html <?php language_attributes(); ?>> | ||
|
||
<head> | ||
<meta charset="<?php bloginfo('charset'); ?>" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="profile" href="http://gmpg.org/xfn/11" /> | ||
<?php wp_head(); ?> | ||
</head> | ||
|
||
<body <?php body_class(); ?>> | ||
<?php wp_body_open(); ?> | ||
<a class="skip-link screen-reader-text" href="#content"><?php _e('Skip to content', 'goblog-free'); ?></a> | ||
<header id="header-top" class="header-top" itemscope itemtype="http://schema.org/WPHeader"> | ||
<?php get_template_part('template-parts/header/header', 'title'); ?> | ||
<?php get_template_part('template-parts/navigation/navigation', 'primary'); ?> | ||
</header> | ||
<div id="content" class="screen-reader-text"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/** | ||
* The front page template file | ||
* | ||
* If the user has selected a static page for their homepage, this is what will | ||
* appear. | ||
* Learn more: https://developer.wordpress.org/themes/basics/template-hierarchy/ | ||
* | ||
* @subpackage Goblog Free | ||
* @since Goblog Free 1.0 | ||
* @version 1.0 | ||
*/ | ||
|
||
get_header(); ?> | ||
|
||
<main class="main-home main-layout"> | ||
<div class="container-home container-layout"> | ||
<?php get_template_part('template-parts/home/post', get_post_format()); ?> | ||
</div> | ||
<?php get_sidebar(); ?> | ||
</main> | ||
<?php get_footer(); ?> |
Binary file not shown.
Oops, something went wrong.