diff --git a/home.php b/home.php index d34d2c0..ebeefc3 100644 --- a/home.php +++ b/home.php @@ -15,7 +15,7 @@ get_header(); ?>
-

From the blog

+

diff --git a/inc/customizer.php b/inc/customizer.php index 115ee43..bddd847 100644 --- a/inc/customizer.php +++ b/inc/customizer.php @@ -135,6 +135,33 @@ function acajou_customize_register( $wp_customize ) { "type" => "textarea", ) )); + + /* + * From the blog text + * + * + */ + // Create sections for socials links + $wp_customize->add_section("acajou_from_section", array( + "title" => __("From the blog", "acajou"), + "priority" => 30, + )); + + // Typing lines + $wp_customize->add_setting("from_text", array( + "default" => "From the blog", + "transport" => "refresh", + )); + $wp_customize->add_control(new WP_Customize_Control( + $wp_customize, + "from_text", + array( + "label" => __("Replace the defaut « From the blog » text", "acajou"), + "section" => "acajou_from_section", + "settings" => "from_text", + "type" => "textarea", + ) + )); } add_action( 'customize_register', 'acajou_customize_register' ); diff --git a/inc/extras.php b/inc/extras.php index 503cbd0..567e8c7 100644 --- a/inc/extras.php +++ b/inc/extras.php @@ -411,3 +411,14 @@ function acajou_typing_machine(){ echo '

'; } } + /* + * "From the blog" + * + */ + function acajou_from_blog_title(){ + $text = __("From the blog", "acajou"); + if(get_theme_mod( 'from_text' ) && ""!=get_theme_mod( 'from_text' )) { + $text = get_theme_mod( 'from_text' ); + } + echo $text; + } diff --git a/languages/acajou-backup-201612300532470.pot~ b/languages/acajou-backup-201612300532470.pot~ deleted file mode 100644 index 11c1b1a..0000000 --- a/languages/acajou-backup-201612300532470.pot~ +++ /dev/null @@ -1,224 +0,0 @@ -# Copyright (C) 2016 Automattic -# This file is distributed under the GNU General Public License v2 or later. -msgid "" -msgstr "" -"Project-Id-Version: _s 1.0.0\n" -"Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n" -"POT-Creation-Date: 2016-02-14 21:43:07+00:00\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" - -#: 404.php:17 -#@ _s -msgid "Oops! That page can’t be found." -msgstr "" - -#: 404.php:21 -#@ _s -msgid "It looks like nothing was found at this location. Maybe try one of the links below or a search?" -msgstr "" - -#: 404.php:33 -#@ _s -msgid "Most Used Categories" -msgstr "" - -#. translators: %1$s: smiley -#: 404.php:51 -#, php-format -#@ _s -msgid "Try looking in the monthly archives. %1$s" -msgstr "" - -#: comments.php:31 -#, php-format -#@ _s -msgctxt "comments title" -msgid "One thought on “%2$s”" -msgid_plural "%1$s thoughts on “%2$s”" -msgstr[0] "" -msgstr[1] "" - -#: comments.php:40 -#: comments.php:61 -#@ _s -msgid "Comment navigation" -msgstr "" - -#: comments.php:43 -#: comments.php:64 -#@ _s -msgid "Older Comments" -msgstr "" - -#: comments.php:44 -#: comments.php:65 -#@ _s -msgid "Newer Comments" -msgstr "" - -#: comments.php:78 -#@ _s -msgid "Comments are closed." -msgstr "" - -#: footer.php:18 -#@ _s -msgid "https://wordpress.org/" -msgstr "" - -#: footer.php:18 -#, php-format -#@ _s -msgid "Proudly powered by %s" -msgstr "" - -#: footer.php:20 -#, php-format -#@ _s -msgid "Theme: %1$s by %2$s." -msgstr "" - -#: functions.php:47 -#@ _s -msgid "Primary" -msgstr "" - -#: functions.php:102 -#@ _s -msgid "Sidebar" -msgstr "" - -#: header.php:25 -#@ _s -msgid "Skip to content" -msgstr "" - -#: header.php:45 -#@ _s -msgid "Primary Menu" -msgstr "" - -#: inc/template-tags.php:28 -#, php-format -#@ _s -msgctxt "post date" -msgid "Posted on %s" -msgstr "" - -#: inc/template-tags.php:33 -#, php-format -#@ _s -msgctxt "post author" -msgid "by %s" -msgstr "" - -#. translators: used between list items, there is a space after the comma -#: inc/template-tags.php:50 -#: inc/template-tags.php:56 -#@ _s -msgid ", " -msgstr "" - -#: inc/template-tags.php:52 -#, php-format -#@ _s -msgid "Posted in %1$s" -msgstr "" - -#: inc/template-tags.php:58 -#, php-format -#@ _s -msgid "Tagged %1$s" -msgstr "" - -#: inc/template-tags.php:65 -#@ _s -msgid "Leave a Comment on %s" -msgstr "" - -#: inc/template-tags.php:65 -#@ _s -msgid "1 Comment" -msgstr "" - -#: inc/template-tags.php:65 -#@ _s -msgid "% Comments" -msgstr "" - -#. translators: %s: Name of current post -#: inc/template-tags.php:71 -#: template-parts/content-page.php:33 -#, php-format -#@ _s -msgid "Edit %s" -msgstr "" - -#: search.php:19 -#, php-format -#@ _s -msgid "Search Results for: %s" -msgstr "" - -#: template-parts/content-none.php:14 -#@ _s -msgid "Nothing Found" -msgstr "" - -#: template-parts/content-none.php:21 -#, php-format -#@ _s -msgid "Ready to publish your first post? Get started here." -msgstr "" - -#: template-parts/content-none.php:25 -#@ _s -msgid "Sorry, but nothing matched your search terms. Please try again with some different keywords." -msgstr "" - -#: template-parts/content-none.php:31 -#@ _s -msgid "It seems we can’t find what you’re looking for. Perhaps searching can help." -msgstr "" - -#: template-parts/content-page.php:22 -#: template-parts/content.php:38 -#@ _s -msgid "Pages:" -msgstr "" - -#. translators: %s: Name of current post. -#: template-parts/content.php:33 -#, php-format -#@ _s -msgid "Continue reading %s " -msgstr "" - -#. Theme Name of the plugin/theme -msgid "_s" -msgstr "" - -#. Theme URI of the plugin/theme -#@ _s -msgid "http://underscores.me/" -msgstr "" - -#. Description of the plugin/theme -#@ _s -msgid "Hi. I'm a starter theme called _s, or underscores, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for." -msgstr "" - -#. Author of the plugin/theme -#@ _s -msgid "Automattic" -msgstr "" - -#. Author URI of the plugin/theme -#@ _s -msgid "http://automattic.com/" -msgstr "" diff --git a/languages/acajou.pot b/languages/acajou.pot index 9847a92..abfcd22 100644 --- a/languages/acajou.pot +++ b/languages/acajou.pot @@ -13,6 +13,34 @@ msgstr "" "Language:fr\n" "MIME-Version: 1.0\n" +#: "from_text", +#: array( +#: "label" => __("Replace the defaut « From the blog » text", "acajou"), +# wpml-name: 1bae563ac73d8764dc25047a4b779d41 +msgid "Replace the defaut « From the blog » text" +msgstr "Remplacer le titre « Actualités »" + +#: // Create sections for socials links +#: $wp_customize->add_section("acajou_from_section", array( +#: "title" => __("From the blog", "acajou"), +# wpml-name: e9e838e8eb8a156d2989faa260244799 +msgid "From the blog" +msgstr "Actualités" + +#: "typing_text", +#: array( +#: "label" => __("Type your text and use slash (/) for creating several sentences", "acajou"), +# wpml-name: dc754740f7de8b013feff530324c71b8 +msgid "Type your text and use slash (/) for creating several sentences" +msgstr "Tapez votre texte et utilisez la barre oblique (/) pour créer plusieurs phrases" + +#: // Create sections for socials links +#: $wp_customize->add_section("acajou_typing_section", array( +#: "title" => __("Typing machine", "acajou"), +# wpml-name: 0eae6a1413df83696f931b200ba47561 +msgid "Typing machine" +msgstr "Machine à écrire" + #: #: #: @@ -207,7 +235,7 @@ msgstr "Principal" #: # wpml-name: d6c4a6ac6a732b8db88d1cfe32b5b44e msgid "and available on" -msgstr "disponible sur" +msgstr "et disponible sur " #:
#:
@@ -228,7 +256,7 @@ msgstr "Fièrement propulsé par %s" #: # wpml-name: 71a7765c3d553e44aaa308159b5a2ba6 msgid "https://wordpress.org/" -msgstr "" +msgstr "https://wordpress.org/" #: __("Replace the defaut « From blog » +#: text", "acajou"), +msgid "Replace the defaut « From the blog » text" +msgstr "Sustituir el título \"Noticias\"" + +# wpml-name: e9e838e8eb8a156d2989faa260244799 +#: // Create sections for socials links +#: $wp_customize->add_section("acajou_from_section", array( "title" => +#: __("From the blog", "acajou"), +msgid "From the blog" +msgstr "Noticias" + +# wpml-name: dc754740f7de8b013feff530324c71b8 +#: "typing_text", array( "label" => __("Type your text and use slash (/) for +#: creating several sentences", "acajou"), +msgid "Type your text and use slash (/) for creating several sentences" +msgstr "Escriba su texto y utilice la barra (/) para crear varias oraciones" + +# wpml-name: 0eae6a1413df83696f931b200ba47561 +#: // Create sections for socials links +#: $wp_customize->add_section("acajou_typing_section", array( "title" => +#: __("Typing machine", "acajou"), +msgid "Typing machine" +msgstr "Máquina de escribir" + # wpml-name: 7dce122004969d56ae2e0245cb754d35 #: __( 'Theme color', 'acajou' ), msgid "Theme color" -msgstr "" +msgstr "Color del tema" # wpml-name: 582d0217bdd3280c7fef224c83846d47 #: "github_url", array( "label" => __("Enter Github url", "acajou"), @@ -197,7 +223,7 @@ msgstr "Principal" #: href="https://github.com/samuelguebo/acajou"> #: Github

msgid "and available on" -msgstr "" +msgstr "y disponible en " # wpml-name: e2b8f1326fea2c94cdc3bccda878a9d6 #:
class="small-6 large-6 columns">

#: Github

msgid "https://wordpress.org/" -msgstr "" +msgstr "https://wordpress.org/" # wpml-name: ed9e37872f818f1e8903eba505917478 #: __("Replace the defaut « From blog » +#: text", "acajou"), +msgid "Replace the defaut « From the blog » text" +msgstr "Remplacer le titre « Actualités »" + +# wpml-name: e9e838e8eb8a156d2989faa260244799 +#: // Create sections for socials links +#: $wp_customize->add_section("acajou_from_section", array( "title" => +#: __("From the blog", "acajou"), +msgid "From the blog" +msgstr "Actualités" + +# wpml-name: dc754740f7de8b013feff530324c71b8 +#: "typing_text", array( "label" => __("Type your text and use slash (/) for +#: creating several sentences", "acajou"), +msgid "Type your text and use slash (/) for creating several sentences" +msgstr "" +"Tapez votre texte et utilisez la barre oblique (/) pour créer plusieurs " +"phrases" + +# wpml-name: 0eae6a1413df83696f931b200ba47561 +#: // Create sections for socials links +#: $wp_customize->add_section("acajou_typing_section", array( "title" => +#: __("Typing machine", "acajou"), +msgid "Typing machine" +msgstr "Machine à écrire" + # wpml-name: 7dce122004969d56ae2e0245cb754d35 #: #: Github

msgid "and available on" -msgstr "disponible sur" +msgstr "et disponible sur " # wpml-name: e2b8f1326fea2c94cdc3bccda878a9d6 #:
class="small-6 large-6 columns">

#: Github

msgid "https://wordpress.org/" -msgstr "" +msgstr "https://wordpress.org/" # wpml-name: ed9e37872f818f1e8903eba505917478 #: