feat: Initial theme setup (theme features, locale, main menu)
This commit is contained in:
@@ -1 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// Core
|
||||||
|
require_once __DIR__ . '/includes/core/theme-setup.php';
|
||||||
|
|||||||
18
wp-content/themes/moonshine/includes/core/theme-setup.php
Normal file
18
wp-content/themes/moonshine/includes/core/theme-setup.php
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// Setup theme
|
||||||
|
add_action( 'after_setup_theme', 'moonshine_after_setup_theme' );
|
||||||
|
function moonshine_after_setup_theme() {
|
||||||
|
// Load textdomain
|
||||||
|
load_theme_textdomain( 'moonshine', get_theme_file_path( 'languages' ) );
|
||||||
|
|
||||||
|
// Theme features
|
||||||
|
add_theme_support( 'custom-logo' );
|
||||||
|
add_theme_support( 'editor-styles' );
|
||||||
|
remove_theme_support( 'core-block-patterns' );
|
||||||
|
|
||||||
|
// Register menus
|
||||||
|
register_nav_menu( 'main', __( "Main menu", 'moonshine' ) );
|
||||||
|
|
||||||
|
// Register sidebars
|
||||||
|
}
|
||||||
24
wp-content/themes/moonshine/languages/fr_CA.l10n.php
Normal file
24
wp-content/themes/moonshine/languages/fr_CA.l10n.php
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
return array(
|
||||||
|
'project-id-version' => 'Moonshine',
|
||||||
|
'report-msgid-bugs-to' => '',
|
||||||
|
'pot-creation-date' => '2026-01-13 15:52+0000',
|
||||||
|
'po-revision-date' => '2026-01-13 15:53+0000',
|
||||||
|
'last-translator' => '',
|
||||||
|
'language-team' => 'Français du Canada',
|
||||||
|
'language' => 'fr_CA',
|
||||||
|
'plural-forms' => 'nplurals=2; plural=n > 1;',
|
||||||
|
'mime-version' => '1.0',
|
||||||
|
'content-type' => 'text/plain; charset=UTF-8',
|
||||||
|
'content-transfer-encoding' => '8bit',
|
||||||
|
'x-generator' => 'Loco https://localise.biz/',
|
||||||
|
'x-loco-version' => '2.8.1; wp-6.9; php-8.3.27',
|
||||||
|
'x-domain' => 'moonshine',
|
||||||
|
'messages' => array(
|
||||||
|
'Headless WordPress theme based on Nuxt.' => 'Thème Wordpress headless basé sur Nuxt.',
|
||||||
|
'https://websimple.com/' => 'https://websimple.com/',
|
||||||
|
'Main menu' => 'Menu principal',
|
||||||
|
'Moonshine' => 'Moonshine',
|
||||||
|
'Pascal Martineau ' => 'Pascal Martineau ',
|
||||||
|
),
|
||||||
|
);
|
||||||
BIN
wp-content/themes/moonshine/languages/fr_CA.mo
Normal file
BIN
wp-content/themes/moonshine/languages/fr_CA.mo
Normal file
Binary file not shown.
36
wp-content/themes/moonshine/languages/fr_CA.po
Normal file
36
wp-content/themes/moonshine/languages/fr_CA.po
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Moonshine\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2026-01-13 15:52+0000\n"
|
||||||
|
"PO-Revision-Date: 2026-01-13 15:53+0000\n"
|
||||||
|
"Last-Translator: \n"
|
||||||
|
"Language-Team: Français du Canada\n"
|
||||||
|
"Language: fr_CA\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"X-Generator: Loco https://localise.biz/\n"
|
||||||
|
"X-Loco-Version: 2.8.1; wp-6.9; php-8.3.27\n"
|
||||||
|
"X-Domain: moonshine"
|
||||||
|
|
||||||
|
#. Description of the theme
|
||||||
|
msgid "Headless WordPress theme based on Nuxt."
|
||||||
|
msgstr "Thème Wordpress headless basé sur Nuxt."
|
||||||
|
|
||||||
|
#. Author URI of the theme
|
||||||
|
msgid "https://websimple.com/"
|
||||||
|
msgstr "https://websimple.com/"
|
||||||
|
|
||||||
|
#: includes/core/theme-setup.php:15
|
||||||
|
msgid "Main menu"
|
||||||
|
msgstr "Menu principal"
|
||||||
|
|
||||||
|
#. Name of the theme
|
||||||
|
msgid "Moonshine"
|
||||||
|
msgstr "Moonshine"
|
||||||
|
|
||||||
|
#. Author of the theme
|
||||||
|
msgid "Pascal Martineau "
|
||||||
|
msgstr "Pascal Martineau "
|
||||||
37
wp-content/themes/moonshine/languages/moonshine.pot
Normal file
37
wp-content/themes/moonshine/languages/moonshine.pot
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
#, fuzzy
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Moonshine\n"
|
||||||
|
"Report-Msgid-Bugs-To: \n"
|
||||||
|
"POT-Creation-Date: 2026-01-13 15:52+0000\n"
|
||||||
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
|
"Language-Team: \n"
|
||||||
|
"Language: \n"
|
||||||
|
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"X-Generator: Loco https://localise.biz/\n"
|
||||||
|
"X-Loco-Version: 2.8.1; wp-6.9; php-8.3.27\n"
|
||||||
|
"X-Domain: moonshine"
|
||||||
|
|
||||||
|
#. Description of the theme
|
||||||
|
msgid "Headless WordPress theme based on Nuxt."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Author URI of the theme
|
||||||
|
msgid "https://websimple.com/"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: includes/core/theme-setup.php:15
|
||||||
|
msgid "Main menu"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Name of the theme
|
||||||
|
msgid "Moonshine"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. Author of the theme
|
||||||
|
msgid "Pascal Martineau "
|
||||||
|
msgstr ""
|
||||||
Reference in New Issue
Block a user