Merge branch 'master' into grunt

This commit is contained in:
Paul Yoder
2012-11-22 05:51:36 -06:00
8 changed files with 350 additions and 585 deletions

View File

@@ -1,4 +1,6 @@
### HEAD
* Use `entry-summary` class for excerpts per Readability's Article Publishing Guidelines
* Cleanup/refactor `lib/activation.php`
* Remove `lib/post-types.php` and `lib/metaboxes.php`
* Make sure Primary Navigation menu always gets created and has the location set upon activation, update activation permalink method
* Update to Bootstrap 2.2.1

View File

@@ -31,7 +31,6 @@ Description: Used to style the TinyMCE editor
box-sizing: border-box;
}
body {
margin: 0;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 20px;
@@ -92,15 +91,27 @@ cite {
.text-warning {
color: #c09853;
}
a.text-warning:hover {
color: #a47e3c;
}
.text-error {
color: #b94a48;
}
a.text-error:hover {
color: #953b39;
}
.text-info {
color: #3a87ad;
}
a.text-info:hover {
color: #2d6987;
}
.text-success {
color: #468847;
}
a.text-success:hover {
color: #356635;
}
h1,
h2,
h3,
@@ -110,7 +121,7 @@ h6 {
margin: 10px 0;
font-family: inherit;
font-weight: bold;
line-height: 1;
line-height: 20px;
color: inherit;
text-rendering: optimizelegibility;
}
@@ -124,35 +135,34 @@ h6 small {
line-height: 1;
color: #999999;
}
h1 {
font-size: 36px;
h1,
h2,
h3 {
line-height: 40px;
}
h1 {
font-size: 38.5px;
}
h2 {
font-size: 30px;
line-height: 40px;
font-size: 31.5px;
}
h3 {
font-size: 24px;
line-height: 40px;
font-size: 24.5px;
}
h4 {
font-size: 18px;
line-height: 20px;
font-size: 17.5px;
}
h5 {
font-size: 14px;
line-height: 20px;
}
h6 {
font-size: 12px;
line-height: 20px;
font-size: 11.9px;
}
h1 small {
font-size: 24px;
font-size: 24.5px;
}
h2 small {
font-size: 18px;
font-size: 17.5px;
}
h3 small {
font-size: 14px;
@@ -227,7 +237,8 @@ hr {
border-top: 1px solid #eeeeee;
border-bottom: 1px solid #ffffff;
}
abbr[title] {
abbr[title],
abbr[data-original-title] {
cursor: help;
border-bottom: 1px dotted #999999;
}

Binary file not shown.

View File

@@ -1,532 +1,324 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-10-24 14:54+0100\n"
"PO-Revision-Date: \n"
"Last-Translator: Jonathan Liuti <liuti.john@gmail.com>\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
"X-Poedit-Basepath: ../\n"
"X-Poedit-Language: French\n"
"X-Poedit-Country: FRANCE\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SearchPath-1: ./templates\n"
"X-Poedit-SearchPath-2: ./lib\n"
#. Text in echo
#: comments.php:72
#: comments.php:76
msgid " (required)"
msgstr "(obligatoire)"
#: 404.php:5
msgid "The page you are looking for might have been removed, had its name changed, or is temporarily unavailable."
msgstr "La page que vous recherchez a changé de nom ou est temporairement inaccessible."
#. Text in echo
#: inc/roots-options.php:260
msgid "#fullwidth CSS Classes"
msgstr "Classes CSS #fullwidth"
#: 404.php:8
msgid "Please try the following:"
msgstr "Veuillez essayer les actions suivantes :"
#. Text in echo
#: inc/roots-options.php:238
#: inc/roots-options.php:240
msgid "#main CSS Classes"
msgstr "Classes CSS #main "
#. Text in echo
#: inc/roots-options.php:248
#: inc/roots-options.php:250
msgid "#sidebar CSS Classes"
msgstr "Classes CSS #sidebar "
#. Text in function
#: comments.php:8
msgid "%1$s"
msgstr "%1$s"
#. Text in function
#: inc/roots-activation.php:70
msgid "%s Theme Activation"
msgstr "Activation du thème %s"
#. Text in function
#: inc/roots-options.php:214
msgid "%s Theme Options"
msgstr "%s Options de thème"
#. Text in function
#: comments.php:43
msgid "&larr; Older comments"
msgstr "&larr; Commentaires plus anciens"
#. Text in function
#: loop.php:34
msgid "&larr; Older posts"
msgstr "&larr; Articles plus anciens"
#. Text in function
#: comments.php:9
msgid "(Edit)"
msgstr "(Editer)"
#. Text in function
#: inc/roots-options.php:1
msgid "1140"
msgstr "1140"
#. Text in function
#: inc/roots-options.php:1
msgid "960gs (12 cols)"
msgstr "960gs (12 cols)"
#. Text in function
#: inc/roots-options.php:1
msgid "960gs (16 cols)"
msgstr "960gs (16 cols)"
#. Text in function
#: inc/roots-options.php:1
msgid "960gs (24 cols)"
msgstr "960gs (24 cols)"
#. Text in function
#: comments.php:7
msgid "<cite class=\"fn\">%s</cite>"
msgstr "<cite class=\"fn\">%s</cite>"
#. Text in function
#: inc/roots-options.php:1
msgid "Adapt.js"
msgstr "Adapt.js"
#. Text in function
#: inc/roots-activation.php:145
msgid "Add all current published pages to the Primary Navigation"
msgstr "Ajouter toutes les pages actuellement publiées à la navigation primaire"
#. Text in echo
#: inc/roots-activation.php:137
#: inc/roots-activation.php:139
msgid "Add pages to menu?"
msgstr "Ajouter les pages au menu ?"
#. Text in function
#: archive.php:8
msgid "Author Archives: %s"
msgstr "Archives d'auteurs: %s"
#. Text in function
#: inc/roots-options.php:1
msgid "Blueprint CSS"
msgstr "Blueprint CSS"
#. Text in function
#: inc/roots-options.php:1
msgid "Bootstrap"
msgstr "Bootstrap"
#. Text in echo
#: inc/roots-options.php:282
msgid "Bootstrap Javascript Packages"
msgstr "Bootstrap Javascript Packages"
#. Text in function
#: inc/roots-options.php:1
msgid "Bootstrap w/ Less"
msgstr "Bootstrap avec Less"
#. Text in echo
#: inc/roots-options.php:226
#: inc/roots-options.php:228
msgid "CSS Grid Framework"
msgstr "Framework CSS en grille "
#. Text in function
#: inc/roots-activation.php:106
msgid "Change permalink structure to /&#37;postname&#37;/"
msgstr "Changer la structure permaliens en /&#37;postname&#37;/"
#. Text in echo
#: inc/roots-activation.php:98
msgid "Change permalink structure?"
msgstr "Changer la structure des permaliens?"
#. Text in function
#: inc/roots-activation.php:119
msgid "Change uploads folder to /assets/ instead of /wp-content/uploads/"
msgstr "Changer le dossier d'upload en /assets/ à la place de /wp-content/uploads/"
#. Text in echo
#: inc/roots-activation.php:111
msgid "Change uploads folder?"
msgstr "Changer le dossier d'upload?"
#. Text in echo
#: 404.php:11
#: 404.php:10
msgid "Check your spelling"
msgstr "Vérifier votre syntaxe"
#. Text in echo
#: inc/roots-widgets.php:107
msgid "City/Locality:"
msgstr "Ville/Localité:"
#. Text in echo
#: inc/roots-options.php:315
#: inc/roots-options.php:317
msgid "Cleanup Menu Output"
msgstr "Nettoyer le code du menu"
#. Text in echo
#: 404.php:13
msgid "Click the <a href=\"javascript:history.back()\">Back</a> button"
msgstr "Click the <a href=\"javascript:history.back()\">Retour</a> button"
#. Text in echo
#: comments.php:85
msgid "Comment"
msgstr "Commentaire"
#. Text in echo
#: comments.php:49
#: comments.php:56
msgid "Comments are closed."
msgstr "Les commentaires sont fermés"
#. Text in function
#: inc/roots-cleanup.php:1
msgid "Continued"
msgstr "Suite"
#. Text in function
#: inc/roots-activation.php:93
msgid "Create a page called Home and set it to be the static front page"
msgstr "Créer une page \"Home\" et la définir comme page d'accueil statique?"
#. Text in echo
#: inc/roots-activation.php:124
#: inc/roots-activation.php:126
msgid "Create navigation menus?"
msgstr "Créer les menus de navigation?"
#. Text in echo
#: inc/roots-activation.php:85
#: inc/roots-activation.php:87
msgid "Create static front page?"
msgstr "Créer une page d'accueil?"
#. Text in function
#: inc/roots-activation.php:132
msgid "Create the Primary and Utility Navigation menus and set their locations"
msgstr "Créer les menus de navigation Primaire et Utilitaire et définir leur position"
#. Text in function
#: archive.php:8
msgid "Daily Archives: %s"
msgstr "Archives quotidiennes: %s"
#. Text in echo
#: inc/roots-options.php:243
#: inc/roots-options.php:253
#: inc/roots-options.php:263
msgid "Default:"
msgstr "Defaut: %s"
#. Text in echo
#: comments.php:76
msgid "Email (will not be published)"
msgstr "Email (ne sera pas publié)"
#. Text in echo
#: inc/roots-widgets.php:123
msgid "Email:"
msgstr "Email:"
#. Text in echo
#: inc/roots-options.php:284
msgid "Enable Bootstrap Javascript"
msgstr "Activater Bootstrap Javascript"
#. Text in echo
#: inc/roots-options.php:304
#: inc/roots-options.php:306
msgid "Enable Root Relative URLs"
msgstr "Activer les Urls relatives sur le root"
#. Text in function
#: inc/roots-options.php:299
msgid "Enter your UA-XXXXX-X ID"
msgstr "Entrez votre ID UA-XXXXX-X"
#. Text in echo
#: 404.php:7
msgid "File Not Found"
msgstr "Fichier non trouvé"
#. Text in function
#: inc/roots-options.php:1
msgid "Foundation"
msgstr "Foundation"
#. Text in echo
#: inc/roots-options.php:258
msgid "Full Width CSS Classes"
msgstr "Classes CSS #fullwidth"
#. Text in echo
#: inc/roots-options.php:294
#: inc/roots-options.php:296
msgid "Google Analytics ID"
msgstr " ID Google Analytics"
#. Text in echo
#: index.php:7
msgid "Latest Posts"
msgstr "Dernier Articles"
#. Text in function
#: comments.php:62
msgid "Leave a Reply"
msgstr "Répondre"
#. Text in function
#: comments.php:62
msgid "Leave a Reply to %s"
msgstr "Répondre à %s"
#. Text in function
#: inc/roots-options.php:1
msgid "Less Framework 4"
msgstr "Less Framework 4"
#. Text in echo
#: comments.php:69
msgid "Log out &raquo;"
msgstr "Déconnexion &raquo;"
#. Text in function
#: comments.php:69
msgid "Log out of this account"
msgstr "Déconnexion de ce compte"
#. Text in function
#: comments.php:69
msgid "Logged in as <a href=\"%s/wp-admin/profile.php\">%s</a>."
msgstr "Connecté en tant que <a href=\"%s/wp-admin/profile.php\">%s</a>."
#. Text in function
#: archive.php:8
msgid "Monthly Archives: %s"
msgstr "Archives mensuelles: %s"
#. Text in echo
#: comments.php:72
msgid "Name"
msgstr "Nom"
#. Text in function
#: comments.php:44
msgid "Newer comments &rarr;"
msgstr "Commentaires plus récents &rarr;"
#. Text in function
#: loop.php:35
msgid "Newer posts &rarr;"
msgstr "Articles plus récents &rarr;"
#. Text in echo
#: inc/roots-activation.php:142
#: inc/roots-options.php:274
#: inc/roots-options.php:287
#: inc/roots-options.php:309
#: inc/roots-options.php:320
msgid "No"
msgstr "Non"
#. Text in function
#: inc/roots-options.php:1
msgid "None"
msgstr "Aucun"
#. Text in function
#: loop-single.php:14
#: loop-page.php:7
msgid "Pages:"
msgstr "Pages:"
#. Text in function
#: inc/roots-htaccess.php:1
msgid "Please make sure your <a href=\"%s\">.htaccess</a> file is writable "
msgstr "Veuillez vérifier que votre fichier <a href=\"%s\">.htaccess</a> est accessible en écriture"
#. Text in echo
#: 404.php:9
msgid "Please try the following:"
msgstr "Veuillez essayez les actions suivantes:"
#. Text in function
#: inc/roots-cleanup.php:1
msgid "Please update your <a href=\"%s\">site tagline</a> <a href=\"%s\" style=\"float: right;\">Hide Notice</a>"
msgstr "Veuillez mettre à jour votre <a href=\"%s\">slogan de site</a>"
#. Text in function
#: functions.php:1
msgid "Posted on %s at %s."
msgstr "Ajouté le %s à %s"
#. Text in function
#: functions.php:1
msgid "Primary Navigation"
msgstr "Navigation Primaire"
#. Text in function
#: 404.php:12
#: 404.php:11
#, php-format
msgid "Return to the <a href=\"%s\">home page</a>"
msgstr "Revenir à la <a href=\"%s\">page d'accueil</a>"
#. Text in function
#: inc/roots-widgets.php:1
msgid "Roots: vCard"
msgstr "Roots: vCard"
#: 404.php:12
msgid "Click the <a href=\"javascript:history.back()\">Back</a> button"
msgstr "Cliquer sur le bouton <a href=\"javascript:history.back()\">Retour</a>"
#. Text in echo
#: searchform.php:3
#: searchform.php:4
msgid "Search"
msgstr "Recherche"
#. Text in echo
#: search.php:7
msgid "Search Results for"
msgstr "Résultat de recherche pour"
#. Text in echo
#: searchform.php:2
msgid "Search for:"
msgstr "Rechercher pour:"
#. Text in echo
#: loop.php:3
msgid "Sorry, no results were found."
msgstr "Désolé, aucun résultat n'a été trouvé."
#. Text in echo
#: inc/roots-widgets.php:111
msgid "State/Region:"
msgstr "Etat/Région:"
#. Text in echo
#: inc/roots-widgets.php:103
msgid "Street Address:"
msgstr "Rue:"
#. Text in echo
#: comments.php:88
msgid "Submit Comment"
msgstr "Ajouter un commentaire"
#. Text in echo
#: inc/roots-widgets.php:119
msgid "Telephone:"
msgstr "Téléphone:"
#. Text in echo
#: 404.php:8
msgid "The page you are looking for might have been removed, had its name changed, or is temporarily unavailable."
msgstr "La page que vous recherchez a changé de nom ou est temporairement inaccessible"
#. Text in function
#: inc/roots-activation.php:1
#: lib/activation.php:32
#: lib/activation.php:33
msgid "Theme Activation"
msgstr "Activation du thème"
#. Text in function
#: inc/roots-options.php:1
msgid "Theme Options"
msgstr "Options de thème"
#: lib/activation.php:72
#, php-format
msgid "%s Theme Activation"
msgstr "Activation du thème %s"
#. Text in echo
#: comments.php:27
msgid "This post is password protected. Enter the password to view comments."
msgstr "Cet article est protégé par mot de passe. Entrez le mot de passe pour voir les commentaires."
#: lib/activation.php:87
#: lib/activation.php:89
msgid "Create static front page?"
msgstr "Créer une page d'accueil ?"
#. Text in echo
#: inc/roots-widgets.php:99
msgid "Title (optional):"
msgstr "Titre (facultatif):"
#. Text in echo
#: inc/roots-activation.php:100
msgid "Update permalink structure?"
msgstr "Mettre à jour la structure des permaliens?"
#. Text in echo
#: inc/roots-activation.php:113
msgid "Update uploads folder?"
msgstr "Mettre à jour le dossier d'uploads?"
#. Text in function
#: inc/roots-widgets.php:1
msgid "Use this widget to add a vCard"
msgstr "Utiliser ce widget pour ajouter une vCard"
#. Text in function
#: functions.php:1
msgid "Utility Navigation"
msgstr "Navigation Utilitaire"
#. Text in echo
#: comments.php:80
msgid "Website"
msgstr "Site web"
#. Text in function
#: functions.php:1
msgid "Written by"
msgstr "Ecrit par"
#. Text in function
#: archive.php:8
msgid "Yearly Archives: %s"
msgstr "Archives annuelles: %s"
#. Text in echo
#: inc/roots-activation.php:141
#: inc/roots-options.php:273
#: inc/roots-options.php:286
#: inc/roots-options.php:308
#: inc/roots-options.php:319
#: lib/activation.php:91
#: lib/activation.php:104
#: lib/activation.php:117
#: lib/activation.php:130
#: lib/activation.php:143
msgid "Yes"
msgstr "Oui"
#. Text in function
#: comments.php:65
msgid "You must be <a href=\"%s\">logged in</a> to post a comment."
msgstr "Vous devez être <a href=\"%s\">connecté</a> pour ajouter un commentaire."
#: lib/activation.php:92
#: lib/activation.php:105
#: lib/activation.php:118
#: lib/activation.php:131
#: lib/activation.php:144
msgid "No"
msgstr "Non"
#. Text in echo
#: comments.php:13
msgid "Your comment is awaiting moderation."
msgstr "Votre commentaire est en attente de modération."
#: lib/activation.php:95
msgid "Create a page called Home and set it to be the static front page"
msgstr "Créer une page \"Home\" et la définir comme page d'accueil statique ?"
#. Text in echo
#: inc/roots-widgets.php:115
msgid "Zipcode/Postal Code:"
msgstr "Code Zip/ Code postal:"
#: lib/activation.php:100
msgid "Change permalink structure?"
msgstr "Modifier la structure des permaliens ?"
#. Text in function
#: inc/roots-widgets.php:1
#: lib/activation.php:102
msgid "Update permalink structure?"
msgstr "Mettre à jour la structure des permaliens ?"
#: lib/activation.php:108
msgid "Change permalink structure to /&#37;postname&#37;/"
msgstr "Changer la structure permaliens en /&#37;postname&#37;/"
#: lib/activation.php:113
msgid "Change uploads folder?"
msgstr "Changer le dossier d'upload ?"
#: lib/activation.php:115
msgid "Update uploads folder?"
msgstr "Mettre à jour le dossier d'upload ?"
#: lib/activation.php:121
msgid "Change uploads folder to /assets/ instead of /wp-content/uploads/"
msgstr "Changer le dossier d'upload en /assets/ à la place de /wp-content/uploads/"
#: lib/activation.php:126
#: lib/activation.php:128
msgid "Create navigation menu?"
msgstr "Créer un menu de navigation ?"
#: lib/activation.php:134
msgid "Create the Primary Navigation menu and set the location"
msgstr "Créer le menus de navigation principal (Primaire) et définir sa position"
#: lib/activation.php:139
#: lib/activation.php:141
msgid "Add pages to menu?"
msgstr "Ajouter les pages au menu ?"
#: lib/activation.php:147
msgid "Add all current published pages to the Primary Navigation"
msgstr "Ajouter toutes les pages actuellement publiées à la navigation primaire"
#: lib/cleanup.php:404
msgid "Continued"
msgstr "Suite"
#: lib/htaccess.php:26
#, php-format
msgid "Please make sure your <a href=\"%s\">.htaccess</a> file is writable "
msgstr "Veuillez vérifier que votre fichier <a href=\"%s\">.htaccess</a> est accessible en écriture"
#: lib/init.php:13
msgid "Primary Navigation"
msgstr "Navigation Primaire"
#: lib/widgets.php:6
msgid "Primary Sidebar"
msgstr "Barre latérale Primaire"
#: lib/widgets.php:15
msgid "Footer"
msgstr "Pied de page"
#: lib/widgets.php:41
msgid "Use this widget to add a vCard"
msgstr "Utiliser ce widget pour ajouter une vCard"
#: lib/widgets.php:43
msgid "Roots: vCard"
msgstr "Roots: vCard"
#: lib/widgets.php:70
msgid "vCard"
msgstr "vCard"
#~ msgid "% Responses to"
#~ msgstr "% Réponses à"
#: templates/comments.php:7
#, php-format
msgid "<cite class=\"fn\">%s</cite>"
msgstr "<cite class=\"fn\">%s</cite>"
#~ msgid "No Responses to"
#~ msgstr "Pas de réponse."
#: templates/comments.php:8
#, php-format
msgid "%1$s"
msgstr "%1$s"
#~ msgid "One Response to"
#~ msgstr "1 réponse"
#: templates/comments.php:9
msgid "(Edit)"
msgstr "(Editer)"
#~ msgid "Pages"
#~ msgstr "Pages"
#: templates/comments.php:15
msgid "Your comment is awaiting moderation."
msgstr "Votre commentaire est en attente de modération."
#~ msgid "Please do not load this page directly. Thanks!"
#~ msgstr "Veuillez ne pas charger cette page directement. Merci!"
#: templates/comments.php:32
msgid "This post is password protected. Enter the password to view comments."
msgstr "Cet article est protégé par mot de passe. Entrez le mot de passe pour voir les commentaires."
#~ msgid "Posts"
#~ msgstr "Articles"
#: templates/comments.php:47
msgid "&larr; Older comments"
msgstr "&larr; Commentaires plus anciens"
#: templates/comments.php:48
msgid "Newer comments &rarr;"
msgstr "Commentaires plus récents &rarr;"
#: templates/comments.php:56
#: templates/comments.php:66
msgid "Comments are closed."
msgstr "Les commentaires sont fermés."
#: templates/comments.php:73
msgid "Leave a Reply"
msgstr "Répondre"
#: templates/comments.php:73
#, php-format
msgid "Leave a Reply to %s"
msgstr "Répondre à %s"
#: templates/comments.php:76
#, php-format
msgid "You must be <a href=\"%s\">logged in</a> to post a comment."
msgstr "Vous devez être <a href=\"%s\">connecté</a> pour ajouter un commentaire."
#: templates/comments.php:80
#, php-format
msgid "Logged in as <a href=\"%s/wp-admin/profile.php\">%s</a>."
msgstr "Connecté en tant que <a href=\"%s/wp-admin/profile.php\">%s</a>."
#: templates/comments.php:80
msgid "Log out of this account"
msgstr "Déconnexion de ce compte"
#: templates/comments.php:80
msgid "Log out &raquo;"
msgstr "Déconnexion &raquo;"
#: templates/comments.php:82
msgid "Name"
msgstr "Nom"
#: templates/comments.php:82
#: templates/comments.php:84
msgid " (required)"
msgstr "(obligatoire)"
#: templates/comments.php:84
msgid "Email (will not be published)"
msgstr "Email (ne sera pas publié)"
#: templates/comments.php:86
msgid "Website"
msgstr "Site web"
#: templates/comments.php:89
msgid "Comment"
msgstr "Commentaire"
#: templates/comments.php:91
msgid "Submit Comment"
msgstr "Ajouter un commentaire"
#: templates/content-single.php:11
msgid "Pages:"
msgstr "Pages :"
#: templates/content.php:4
msgid "Sorry, no results were found."
msgstr "Désolé, aucun résultat n'a été trouvé."
#: templates/content.php:26
msgid "&larr; Older posts"
msgstr "&larr; Articles plus anciens"
#: templates/content.php:27
msgid "Newer posts &rarr;"
msgstr "Commentaires plus récents &rarr;"
#: templates/entry-meta.php:1
#, php-format
msgid "Posted on %s at %s."
msgstr "Ajouté le %s à %s."
#: templates/entry-meta.php:2
msgid "Written by"
msgstr "Ecrit par"
#: templates/page-header.php:8
msgid "Latest Posts"
msgstr "Derniers Articles"
#: templates/page-header.php:17
#, php-format
msgid "Daily Archives: %s"
msgstr "Archives quotidiennes : %s"
#: templates/page-header.php:19
#, php-format
msgid "Monthly Archives: %s"
msgstr "Archives mensuelles : %s"
#: templates/page-header.php:21
#, php-format
msgid "Yearly Archives: %s"
msgstr "Archives annuelles : %s"
#: templates/page-header.php:25
#, php-format
msgid "Author Archives: %s"
msgstr "Archives d'auteurs : %s"
#: templates/page-header.php:30
#, php-format
msgid "Search Results for %s"
msgstr "Résultats de la recherche pour %s"
#: templates/page-header.php:32
msgid "File Not Found"
msgstr "Fichier non trouvé"
#: templates/searchform.php:2
msgid "Search for:"
msgstr "Rechercher pour :"
#: templates/searchform.php:3
#: templates/searchform.php:4
msgid "Search"
msgstr "Recherche"
#~ msgid "Title (optional):"
#~ msgstr "Titre (facultatif) :"
#~ msgid "Street Address:"
#~ msgstr "Rue :"
#~ msgid "City/Locality:"
#~ msgstr "Ville/Localité :"
#~ msgid "State/Region:"
#~ msgstr "Etat/Région :"
#~ msgid "Zipcode/Postal Code:"
#~ msgstr "Code Zip/Code postal :"
#~ msgid "Telephone:"
#~ msgstr "Téléphone :"
#~ msgid "Email:"
#~ msgstr "Email :"

View File

@@ -25,7 +25,8 @@ add_filter('option_page_capability_roots_activation_options', 'roots_activation_
function roots_theme_activation_options_add_page() {
$roots_activation_options = roots_get_theme_activation_options();
if (!$roots_activation_options['first_run']) {
if ($roots_activation_options['first_run']) {
$theme_page = add_theme_page(
__('Theme Activation', 'roots'),
__('Theme Activation', 'roots'),
@@ -46,7 +47,7 @@ add_action('admin_menu', 'roots_theme_activation_options_add_page', 50);
function roots_get_default_theme_activation_options() {
$default_theme_activation_options = array(
'first_run' => false,
'first_run' => true,
'create_front_page' => false,
'change_permalink_structure' => false,
'change_uploads_folder' => false,
@@ -75,7 +76,7 @@ function roots_theme_activation_options_render_page() { ?>
$roots_default_activation_options = roots_get_default_theme_activation_options();
?>
<input type="hidden" value="1" name="roots_theme_activation_options[first_run]">
<input type="hidden" value="false" name="roots_theme_activation_options[first_run]">
<table class="form-table">
@@ -83,8 +84,8 @@ function roots_theme_activation_options_render_page() { ?>
<td>
<fieldset><legend class="screen-reader-text"><span><?php _e('Create static front page?', 'roots'); ?></span></legend>
<select name="roots_theme_activation_options[create_front_page]" id="create_front_page">
<option selected="selected" value="yes"><?php echo _e('Yes', 'roots'); ?></option>
<option value="no"><?php echo _e('No', 'roots'); ?></option>
<option selected="selected" value="true"><?php echo _e('Yes', 'roots'); ?></option>
<option value="false"><?php echo _e('No', 'roots'); ?></option>
</select>
<br>
<small class="description"><?php printf(__('Create a page called Home and set it to be the static front page', 'roots')); ?></small>
@@ -96,8 +97,8 @@ function roots_theme_activation_options_render_page() { ?>
<td>
<fieldset><legend class="screen-reader-text"><span><?php _e('Update permalink structure?', 'roots'); ?></span></legend>
<select name="roots_theme_activation_options[change_permalink_structure]" id="change_permalink_structure">
<option selected="selected" value="yes"><?php echo _e('Yes', 'roots'); ?></option>
<option value="no"><?php echo _e('No', 'roots'); ?></option>
<option selected="selected" value="true"><?php echo _e('Yes', 'roots'); ?></option>
<option value="false"><?php echo _e('No', 'roots'); ?></option>
</select>
<br>
<small class="description"><?php printf(__('Change permalink structure to /&#37;postname&#37;/', 'roots')); ?></small>
@@ -109,8 +110,8 @@ function roots_theme_activation_options_render_page() { ?>
<td>
<fieldset><legend class="screen-reader-text"><span><?php _e('Update uploads folder?', 'roots'); ?></span></legend>
<select name="roots_theme_activation_options[change_uploads_folder]" id="change_uploads_folder">
<option selected="selected" value="yes"><?php echo _e('Yes', 'roots'); ?></option>
<option value="no"><?php echo _e('No', 'roots'); ?></option>
<option selected="selected" value="true"><?php echo _e('Yes', 'roots'); ?></option>
<option value="false"><?php echo _e('No', 'roots'); ?></option>
</select>
<br>
<small class="description"><?php printf(__('Change uploads folder to /assets/ instead of /wp-content/uploads/', 'roots')); ?></small>
@@ -122,8 +123,8 @@ function roots_theme_activation_options_render_page() { ?>
<td>
<fieldset><legend class="screen-reader-text"><span><?php _e('Create navigation menu?', 'roots'); ?></span></legend>
<select name="roots_theme_activation_options[create_navigation_menus]" id="create_navigation_menus">
<option selected="selected" value="yes"><?php echo _e('Yes', 'roots'); ?></option>
<option value="no"><?php echo _e('No', 'roots'); ?></option>
<option selected="selected" value="true"><?php echo _e('Yes', 'roots'); ?></option>
<option value="false"><?php echo _e('No', 'roots'); ?></option>
</select>
<br>
<small class="description"><?php printf(__('Create the Primary Navigation menu and set the location', 'roots')); ?></small>
@@ -135,8 +136,8 @@ function roots_theme_activation_options_render_page() { ?>
<td>
<fieldset><legend class="screen-reader-text"><span><?php _e('Add pages to menu?', 'roots'); ?></span></legend>
<select name="roots_theme_activation_options[add_pages_to_primary_navigation]" id="add_pages_to_primary_navigation">
<option selected="selected" value="yes"><?php echo _e('Yes', 'roots'); ?></option>
<option value="no"><?php echo _e('No', 'roots'); ?></option>
<option selected="selected" value="true"><?php echo _e('Yes', 'roots'); ?></option>
<option value="false"><?php echo _e('No', 'roots'); ?></option>
</select>
<br>
<small class="description"><?php printf(__('Add all current published pages to the Primary Navigation', 'roots')); ?></small>
@@ -155,61 +156,20 @@ function roots_theme_activation_options_render_page() { ?>
function roots_theme_activation_options_validate($input) {
$output = $defaults = roots_get_default_theme_activation_options();
if (isset($input['first_run'])) {
if ($input['first_run'] === '1') {
$input['first_run'] = true;
}
$output['first_run'] = $input['first_run'];
}
$options = array(
'first_run',
'create_front_page',
'change_permalink_structure',
'change_uploads_folder',
'create_navigation_menus',
'add_pages_to_primary_navigation'
);
if (isset($input['create_front_page'])) {
if ($input['create_front_page'] === 'yes') {
$input['create_front_page'] = true;
foreach($options as $option_name) {
if (isset($input[$option_name])) {
$input[$option_name] = ($input[$option_name] === 'true') ? true : false;
$output[$option_name] = $input[$option_name];
}
if ($input['create_front_page'] === 'no') {
$input['create_front_page'] = false;
}
$output['create_front_page'] = $input['create_front_page'];
}
if (isset($input['change_permalink_structure'])) {
if ($input['change_permalink_structure'] === 'yes') {
$input['change_permalink_structure'] = true;
}
if ($input['change_permalink_structure'] === 'no') {
$input['change_permalink_structure'] = false;
}
$output['change_permalink_structure'] = $input['change_permalink_structure'];
}
if (isset($input['change_uploads_folder'])) {
if ($input['change_uploads_folder'] === 'yes') {
$input['change_uploads_folder'] = true;
}
if ($input['change_uploads_folder'] === 'no') {
$input['change_uploads_folder'] = false;
}
$output['change_uploads_folder'] = $input['change_uploads_folder'];
}
if (isset($input['create_navigation_menus'])) {
if ($input['create_navigation_menus'] === 'yes') {
$input['create_navigation_menus'] = true;
}
if ($input['create_navigation_menus'] === 'no') {
$input['create_navigation_menus'] = false;
}
$output['create_navigation_menus'] = $input['create_navigation_menus'];
}
if (isset($input['add_pages_to_primary_navigation'])) {
if ($input['add_pages_to_primary_navigation'] === 'yes') {
$input['add_pages_to_primary_navigation'] = true;
}
if ($input['add_pages_to_primary_navigation'] === 'no') {
$input['add_pages_to_primary_navigation'] = false;
}
$output['add_pages_to_primary_navigation'] = $input['add_pages_to_primary_navigation'];
}
return apply_filters('roots_theme_activation_options_validate', $output, $input, $defaults);
@@ -277,12 +237,12 @@ function roots_theme_activation_action() {
$roots_nav_theme_mod = false;
$existing_nav = wp_get_nav_menu_object('Primary Navigation');
if (!$existing_nav) {
$primary_nav = wp_get_nav_menu_object('Primary Navigation');
if (!$primary_nav) {
$primary_nav_id = wp_create_nav_menu('Primary Navigation', array('slug' => 'primary_navigation'));
$roots_nav_theme_mod['primary_navigation'] = $primary_nav_id;
} else {
$primary_nav = wp_get_nav_menu_object('Primary Navigation');
$roots_nav_theme_mod['primary_navigation'] = $primary_nav->term_id;
}
@@ -297,6 +257,7 @@ function roots_theme_activation_action() {
$primary_nav = wp_get_nav_menu_object('Primary Navigation');
$primary_nav_term_id = (int) $primary_nav->term_id;
$menu_items= wp_get_nav_menu_items($primary_nav_term_id);
if (!$menu_items || empty($menu_items)) {
$pages = get_pages();
foreach($pages as $page) {

View File

@@ -11,10 +11,9 @@
* /wp-content/themes/themename/img/ to /img/
* /wp-content/plugins/ to /plugins/
*
* If you aren't using Apache, alternate configuration settings can be found in the wiki.
* If you aren't using Apache, alternate configuration settings can be found in the docs.
*
* @link https://github.com/retlehs/roots/wiki/Nginx
* @link https://github.com/retlehs/roots/wiki/Lighttpd
* @link https://github.com/retlehs/roots/blob/master/doc/rewrites.md
*/
if (stristr($_SERVER['SERVER_SOFTWARE'], 'apache') || stristr($_SERVER['SERVER_SOFTWARE'], 'litespeed') !== false) {

View File

@@ -60,7 +60,7 @@ class Roots_Nav_Walker extends Walker_Nav_Menu {
function roots_nav_menu_css_class($classes, $item) {
$slug = sanitize_title($item->title);
$classes = preg_replace('/(current(-menu-|[-_]page[-_])(item|parent|ancestor))/', 'active', $classes);
$classes = preg_replace('/((menu|page)[-_\w+]+)+/', '', $classes);
$classes = preg_replace('/^((menu|page)[-_\w+]+)+/', '', $classes);
$classes[] = 'menu-' . $slug;

View File

@@ -12,7 +12,7 @@
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php get_template_part('templates/entry-meta'); ?>
</header>
<div class="entry-content">
<div class="entry-summary">
<?php the_excerpt(); ?>
</div>
<footer>