Skip to content

Commit

Permalink
Ajout initial des fichiers
Browse files Browse the repository at this point in the history
  • Loading branch information
micter59 committed Dec 19, 2022
0 parents commit f20ac5c
Show file tree
Hide file tree
Showing 18 changed files with 2,360 additions and 0 deletions.
Binary file added assets/palanquin/Palanquin-Bold.ttf
Binary file not shown.
Binary file added assets/palanquin/Palanquin-ExtraLight.ttf
Binary file not shown.
Binary file added assets/palanquin/Palanquin-Light.ttf
Binary file not shown.
Binary file added assets/palanquin/Palanquin-Medium.ttf
Binary file not shown.
Binary file added assets/palanquin/Palanquin-Regular.ttf
Binary file not shown.
Binary file added assets/palanquin/Palanquin-SemiBold.ttf
Binary file not shown.
Binary file added assets/palanquin/Palanquin-Thin.ttf
Binary file not shown.
15 changes: 15 additions & 0 deletions functions.php
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' );
31 changes: 31 additions & 0 deletions header.php
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>
22 changes: 22 additions & 0 deletions home.php
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 added lang/fr_FR.mo
Binary file not shown.
Loading

0 comments on commit f20ac5c

Please sign in to comment.