- init project
This commit is contained in:
parent
63d8756c8e
commit
2acaa12e56
1936 changed files with 1008499 additions and 344 deletions
12
.gitignore
vendored
Normal file
12
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
.idea/
|
||||
composer.lock
|
||||
.env
|
||||
# ignore log file
|
||||
debug.log
|
||||
|
||||
# ignore nodejs files
|
||||
node_modules
|
||||
|
||||
# ignore uploads
|
||||
wp-content/uploads/*
|
||||
!wp-content/uploads/.htaccess
|
||||
15
.htaccess
Normal file
15
.htaccess
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
|
||||
# BEGIN WordPress
|
||||
# Les directives (lignes) entre 'BEGIN WordPress' et 'END WordPress' sont
|
||||
# généré dynamiquement, et ne doivent uniquement être modifiées via les filtres WordPress.
|
||||
# Toute modification des directives entre ces marqueurs sera outrepassée.
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
RewriteBase /
|
||||
RewriteRule ^index\.php$ - [L]
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule . /index.php [L]
|
||||
</IfModule>
|
||||
|
||||
# END WordPress
|
||||
5
composer.json
Normal file
5
composer.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"require": {
|
||||
"vlucas/phpdotenv": "^4.1"
|
||||
}
|
||||
}
|
||||
2
content/index.php
Normal file
2
content/index.php
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
// Silence is golden.
|
||||
BIN
content/languages/admin-fr_FR.mo
Normal file
BIN
content/languages/admin-fr_FR.mo
Normal file
Binary file not shown.
13976
content/languages/admin-fr_FR.po
Normal file
13976
content/languages/admin-fr_FR.po
Normal file
File diff suppressed because it is too large
Load diff
BIN
content/languages/admin-network-fr_FR.mo
Normal file
BIN
content/languages/admin-network-fr_FR.mo
Normal file
Binary file not shown.
1417
content/languages/admin-network-fr_FR.po
Normal file
1417
content/languages/admin-network-fr_FR.po
Normal file
File diff suppressed because it is too large
Load diff
BIN
content/languages/continents-cities-fr_FR.mo
Normal file
BIN
content/languages/continents-cities-fr_FR.mo
Normal file
Binary file not shown.
2117
content/languages/continents-cities-fr_FR.po
Normal file
2117
content/languages/continents-cities-fr_FR.po
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1 @@
|
|||
{"translation-revision-date":"2020-07-17 10:21:32+0000","generator":"GlotPress\/3.0.0-alpha.2","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural-forms":"nplurals=2; plural=n > 1;","lang":"fr"},"Editor tips":["Astuces de l\u2019\u00e9diteur"],"Disable tips":["D\u00e9sactiver les astuces"],"Got it":["J\u2019ai compris"],"See next tip":["Voir l\u2019astuce suivante"]}},"comment":{"reference":"wp-includes\/js\/dist\/nux.js"}}
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"translation-revision-date":"2020-07-17 10:21:32+0000","generator":"GlotPress\/3.0.0-alpha.2","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural-forms":"nplurals=2; plural=n > 1;","lang":"fr"},"%1$s Block. Row %2$d. %3$s":["Bloc %1$s. Ligne %2$d. %3$s"],"%s Block. Row %d":["Bloc %s. Ligne %d"],"%1$s Block. Column %2$d. %3$s":["Bloc %1$s. Colonne %2$d. %3$s"],"%s Block. Column %d":["%s Bloc. Colonne %d"],"%1$s Block. %2$s":["Bloc %1$s. %2$s"],"%s Block":["Bloc %s"],"Formatting":["Mise en forme"],"Embeds":["Contenus embarqu\u00e9s"],"Reusable blocks":["Blocs r\u00e9utilisables"],"Common blocks":["Blocs communs"],"Layout elements":["\u00c9l\u00e9ments de mise en page"],"Widgets":["Widgets"]}},"comment":{"reference":"wp-includes\/js\/dist\/blocks.js"}}
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"translation-revision-date":"2020-07-17 10:21:32+0000","generator":"GlotPress\/3.0.0-alpha.2","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural-forms":"nplurals=2; plural=n > 1;","lang":"fr"},"You are probably offline.":["Vous \u00eates probablement hors ligne."],"Media upload failed. If this is a photo or a large image, please scale it down and try again.":["Le t\u00e9l\u00e9versement du m\u00e9dia a \u00e9chou\u00e9. S\u2019il s\u2019agit d\u2019une photo ou d\u2019une grande image, veuillez la redimensionner puis r\u00e9essayer."],"The response is not a valid JSON response.":["La r\u00e9ponse n\u2019est pas une r\u00e9ponse JSON valide."],"An unknown error occurred.":["Une erreur inconnue est survenue."]}},"comment":{"reference":"wp-includes\/js\/dist\/api-fetch.js"}}
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"translation-revision-date":"2020-07-17 10:21:32+0000","generator":"GlotPress\/3.0.0-alpha.2","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural-forms":"nplurals=2; plural=n > 1;","lang":"fr"},"Unknown error":["Erreur inconnue"],"Reusable block imported successfully!":["Bloc r\u00e9utilisable bien import\u00e9\u00a0!"],"Invalid Reusable Block JSON file":["Fichier JSON de bloc r\u00e9utilisable non valide"],"Invalid JSON file":["Fichier JSON non valide"],"Import from JSON":["Importer d\u2019un JSON"],"button label\u0004Import":["Importer"],"File":["Fichier"]}},"comment":{"reference":"wp-includes\/js\/dist\/list-reusable-blocks.js"}}
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"translation-revision-date":"2020-07-17 10:21:32+0000","generator":"GlotPress\/3.0.0-alpha.2","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural-forms":"nplurals=2; plural=n > 1;","lang":"fr"},"Annotation":["Annotation"]}},"comment":{"reference":"wp-includes\/js\/dist\/annotations.js"}}
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"translation-revision-date":"2020-07-12 17:47:00+0000","generator":"GlotPress\/3.0.0-alpha.2","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural-forms":"nplurals=2; plural=n > 1;","lang":"fr"},"All site health tests have finished running. There are items that should be addressed, and the results are now available on the page.":["Tous les tests de sant\u00e9 du site ont fini de tourner. Il y a des \u00e9l\u00e9ments qui devraient \u00eatre pris en charge, et les r\u00e9sultats sont maintenant disponible sur cette page."],"Should be improved":["Peut \u00eatre am\u00e9lior\u00e9"],"Good":["Bien"],"%s critical issue":["%s probl\u00e8me critique","%s probl\u00e8mes critiques"],"%s item with no issues detected":["%s \u00e9l\u00e9ment sans probl\u00e8me d\u00e9tect\u00e9","%s \u00e9l\u00e9ments sans probl\u00e8me d\u00e9tect\u00e9s"],"%s recommended improvement":["%s am\u00e9lioration recommand\u00e9e","%s am\u00e9liorations recommand\u00e9es"],"Site information has been added to your clipboard.":["Les informations du site ont \u00e9t\u00e9 ajout\u00e9es \u00e0 votre presse-papier."],"All site health tests have finished running. Your site is looking good, and the results are now available on the page.":["Les v\u00e9rifications de sant\u00e9 sont termin\u00e9es. Votre site a bonne mine, et les r\u00e9sultats sont maintenant disponibles sur la page."],"All site health tests have finished running.":["Tous les tests de v\u00e9rification de sant\u00e9 du site sont termin\u00e9s."],"Please wait...":["Veuillez patienter..."]}},"comment":{"reference":"wp-admin\/js\/site-health.js"}}
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"translation-revision-date":"2020-07-17 10:21:32+0000","generator":"GlotPress\/3.0.0-alpha.2","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural-forms":"nplurals=2; plural=n > 1;","lang":"fr"},"Inline Code":["Code en ligne"],"Inline image":["Image en ligne"],"Link edited.":["Lien modifi\u00e9."],"Link removed.":["Lien retir\u00e9."],"media":["m\u00e9dia"],"photo":["photo"],"Warning: the link has been inserted but may have errors. Please test it.":["Attention\u00a0: le lien a bien \u00e9t\u00e9 ins\u00e9r\u00e9 mais peut contenir des erreurs. Veuillez le tester."],"Link inserted.":["Lien ins\u00e9r\u00e9."],"Text Color":["Couleur du texte"],"Link":["Lien"],"Bold":["Gras"],"Italic":["Italique"],"Underline":["Souligner"],"Unlink":["Supprimer le lien"],"Strikethrough":["Barrer"],"Width":["Largeur"],"Apply":["Appliquer"]}},"comment":{"reference":"wp-includes\/js\/dist\/format-library.js"}}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1 @@
|
|||
{"translation-revision-date":"2020-07-17 10:21:32+0000","generator":"GlotPress\/3.0.0-alpha.2","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural-forms":"nplurals=2; plural=n > 1;","lang":"fr"},"%s item selected":["%s \u00e9l\u00e9ment s\u00e9lectionn\u00e9","%s \u00e9l\u00e9ments s\u00e9lectionn\u00e9s"]}},"comment":{"reference":"wp-includes\/js\/media-views.js"}}
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1 @@
|
|||
{"translation-revision-date":"2020-07-17 10:21:32+0000","generator":"GlotPress\/3.0.0-alpha.2","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural-forms":"nplurals=2; plural=n > 1;","lang":"fr"},"%s block icon":["Ic\u00f4ne du bloc %s"],"No blocks found in your library. These blocks can be downloaded and installed:":["Aucun bloc trouv\u00e9 dans la biblioth\u00e8que. Ces blocs peuvent \u00eatre t\u00e9l\u00e9charg\u00e9s et install\u00e9s :"],"Retry":["Recommencez"],"No blocks found in your library.":["Aucun bloc trouv\u00e9 dans votre biblioth\u00e8que."],"Block previews can't install.":["Les aper\u00e7us de bloc ne peuvent pas \u00eatre install\u00e9s."],"Block previews can\u2019t load.":["Les aper\u00e7us de blocs ne peuvent pas se charger."],"Please contact your site administrator to install new blocks.":["Veuillez contacter votre administrateur ou votre administratrice pour installer de nouveaux blocs."],"No blocks found in your library. We did find %d block available for download.":["Aucun bloc trouv\u00e9 dans la biblioth\u00e8que. Nous avons trouv\u00e9 %d bloc disponible en t\u00e9l\u00e9chargement.","Aucun bloc trouv\u00e9 dans la biblioth\u00e8que. Nous avons trouv\u00e9 %d blocs disponibles en t\u00e9l\u00e9chargement."],"No blocks found in your library. Please contact your site administrator to install new blocks.":["Aucun bloc trouv\u00e9 dans votre biblioth\u00e8que. Veuillez contacter l'administrateur de votre site afin d'installer de nouveaux blocs."],"Authored by %s":["\u00c9crit par %s"],"%d active installation":["%d installation active","%d installations actives"],"%d total rating":["%d \u00e9valuation au total","%d \u00e9valuations au total"],"%s out of 5 stars":["%s sur 5 \u00e9toiles"],"This author has %d block, with an average rating of %d.":["Cet auteur poss\u00e8de %d bloc, avec une \u00e9valuation moyenne de %d.","Cet auteur poss\u00e8de %d blocs, avec une \u00e9valuation moyenne de %d."],"Add block":["Ajouter un bloc"],"Remove":["Retirer"],"Updated %s":["%s mis \u00e0 jour"]}},"comment":{"reference":"wp-includes\/js\/dist\/block-directory.js"}}
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"translation-revision-date":"2020-07-17 10:21:32+0000","generator":"GlotPress\/3.0.0-alpha.2","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural-forms":"nplurals=2; plural=n > 1;","lang":"fr"},"Period":["P\u00e9riode"],"Comma":["Virgule"],"Backtick":["Retour arri\u00e8re"]}},"comment":{"reference":"wp-includes\/js\/dist\/keycodes.js"}}
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1 @@
|
|||
{"translation-revision-date":"2020-07-17 10:21:32+0000","generator":"GlotPress\/3.0.0-alpha.2","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural-forms":"nplurals=2; plural=n > 1;","lang":"fr"},"Select or Upload Media":["S\u00e9lectionnez ou t\u00e9l\u00e9versez un fichier"],"Error while uploading file %s to the media library.":["Erreur lors du t\u00e9l\u00e9versement du fichier %s dans la biblioth\u00e8que de m\u00e9dias."],"This file is empty.":["Ce fichier est vide."],"Sorry, this file type is not supported here.":["D\u00e9sol\u00e9 ce type de fichier n\u2019est pas pris en charge ici."],"Sorry, this file type is not permitted for security reasons.":["D\u00e9sol\u00e9, ce type de fichier n\u2019est pas autoris\u00e9 pour des raisons de s\u00e9curit\u00e9."],"This file exceeds the maximum upload size for this site.":["La taille de ce fichier d\u00e9passe la limite d’envoi de ce site."]}},"comment":{"reference":"wp-includes\/js\/dist\/media-utils.js"}}
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"translation-revision-date":"2020-07-17 10:21:32+0000","generator":"GlotPress\/3.0.0-alpha.2","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural-forms":"nplurals=2; plural=n > 1;","lang":"fr"},"Block rendered as empty.":["Bloc devenu vide."],"Error loading block: %s":["Erreur de chargement du bloc\u00a0: %s"]}},"comment":{"reference":"wp-includes\/js\/dist\/server-side-render.js"}}
|
||||
File diff suppressed because one or more lines are too long
BIN
content/languages/fr_FR.mo
Normal file
BIN
content/languages/fr_FR.mo
Normal file
Binary file not shown.
18663
content/languages/fr_FR.po
Normal file
18663
content/languages/fr_FR.po
Normal file
File diff suppressed because it is too large
Load diff
BIN
content/languages/plugins/akismet-fr_FR.mo
Normal file
BIN
content/languages/plugins/akismet-fr_FR.mo
Normal file
Binary file not shown.
879
content/languages/plugins/akismet-fr_FR.po
Normal file
879
content/languages/plugins/akismet-fr_FR.po
Normal file
|
|
@ -0,0 +1,879 @@
|
|||
# Translation of Plugins - Akismet Anti-Spam - Stable (latest release) in French (France)
|
||||
# This file is distributed under the same license as the Plugins - Akismet Anti-Spam - Stable (latest release) package.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"PO-Revision-Date: 2020-06-06 12:29:04+0000\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||
"X-Generator: GlotPress/3.0.0-alpha.2\n"
|
||||
"Language: fr\n"
|
||||
"Project-Id-Version: Plugins - Akismet Anti-Spam - Stable (latest release)\n"
|
||||
|
||||
#. translators: The placeholder is for showing how much of the process has
|
||||
#. completed, as a percent. e.g., "Checking for Spam (40%)"
|
||||
#: class.akismet-admin.php:416
|
||||
msgid "Checking for Spam (%1$s%)"
|
||||
msgstr "Vérification des indésirables (%1$s%)"
|
||||
|
||||
#: class.akismet-admin.php:684
|
||||
msgid "No comment history."
|
||||
msgstr "Aucun historique de commentaires."
|
||||
|
||||
#: class.akismet-admin.php:652
|
||||
msgid "Akismet was unable to recheck this comment."
|
||||
msgstr "Akismet n’a pas pu revérifier ce commentaire."
|
||||
|
||||
#: class.akismet-admin.php:644
|
||||
msgid "Akismet was unable to check this comment but will automatically retry later."
|
||||
msgstr "Akismet n’a pas pu vérifier ce commentaire, mais réessayera ultérieurement."
|
||||
|
||||
#: class.akismet-admin.php:615
|
||||
msgid "Comment was caught by %s."
|
||||
msgstr "Le commentaire a été attrapé par %s."
|
||||
|
||||
#: class.akismet.php:552
|
||||
msgid "Akismet is not configured. Please enter an API key."
|
||||
msgstr "Akismet n'est pas configuré. Veuillez saisir votre clé API."
|
||||
|
||||
#: views/enter.php:8
|
||||
msgid "Enter your API key"
|
||||
msgstr "Saisissez votre clé API"
|
||||
|
||||
#: views/connect-jp.php:66
|
||||
msgid "Set up a different account"
|
||||
msgstr "Configurer un autre compte"
|
||||
|
||||
#: views/setup.php:2
|
||||
msgid "Set up your Akismet account to enable spam filtering on this site."
|
||||
msgstr "Configurez votre compte Akismet pour activer le filtrage des indésirables sur ce site."
|
||||
|
||||
#: class.akismet-admin.php:1087
|
||||
msgid "Akismet could not recheck your comments for spam."
|
||||
msgstr "Akismet n’a pas pu revérifier les indésirables de vos commentaires."
|
||||
|
||||
#: class.akismet-admin.php:437
|
||||
msgid "You don't have permission to do that."
|
||||
msgstr "Vous n’avez pas l’autorisation d’effectuer cela."
|
||||
|
||||
#: class.akismet-cli.php:165
|
||||
msgid "Stats response could not be decoded."
|
||||
msgstr "Résultat des statistiques indécodable."
|
||||
|
||||
#: class.akismet-cli.php:159
|
||||
msgid "Currently unable to fetch stats. Please try again."
|
||||
msgstr "Impossible de récupérer les statistiques. Veuillez réessayer."
|
||||
|
||||
#: class.akismet-cli.php:134
|
||||
msgid "API key must be set to fetch stats."
|
||||
msgstr "Clé API nécessaire pour la récupération de statistiques."
|
||||
|
||||
#: views/config.php:162
|
||||
msgid "To help your site with transparency under privacy laws like the GDPR, Akismet can display a notice to your users under your comment forms. This feature is disabled by default, however, you can turn it on above."
|
||||
msgstr "Pour aider votre site à être plus transparent à l'égard des lois sur la confidentialité comme le RGPD, Akismet permet d'afficher un message sous les formulaires de commentaire à l'attention de vos utilisateurs. Cette fonctionnalité est désactivée par défaut, cependant, vous pouvez l'activer au-dessus."
|
||||
|
||||
#: views/config.php:160
|
||||
msgid "Do not display privacy notice."
|
||||
msgstr "Ne pas afficher le message d’information sur la confidentialité."
|
||||
|
||||
#: views/config.php:159
|
||||
msgid "Display a privacy notice under your comment forms."
|
||||
msgstr "Afficher un message d’information sur la confidentialité sous vos formulaires de commentaire."
|
||||
|
||||
#: views/config.php:158
|
||||
msgid "Akismet privacy notice"
|
||||
msgstr "Message d’information sur la confidentialité d’Akismet."
|
||||
|
||||
#: views/config.php:155
|
||||
msgid "Privacy"
|
||||
msgstr "Confidentialité"
|
||||
|
||||
#: class.akismet.php:1491
|
||||
msgid "This site uses Akismet to reduce spam. <a href=\"%s\" target=\"_blank\" rel=\"nofollow noopener\">Learn how your comment data is processed</a>."
|
||||
msgstr "Ce site utilise Akismet pour réduire les indésirables. <a href=\"%s\" target=\"_blank\" rel=\"nofollow noopener\">En savoir plus sur comment les données de vos commentaires sont utilisées</a>."
|
||||
|
||||
#: class.akismet-admin.php:87
|
||||
msgid "We collect information about visitors who comment on Sites that use our Akismet anti-spam service. The information we collect depends on how the User sets up Akismet for the Site, but typically includes the commenter's IP address, user agent, referrer, and Site URL (along with other information directly provided by the commenter such as their name, username, email address, and the comment itself)."
|
||||
msgstr "Nous récoltons des informations sur les visiteurs qui commentent sur les sites utilisant Akismet, notre service contre les indésirables. Ces informations récoltées dépendent des réglages Akismet effectués par l’utilisateur sur le site, et incluent généralement l’adresse IP des commentateurs, l’agent utilisateur, le référent et l’URL du site (ainsi que d’autres informations fournies directement par le commentateur comme leur nom, identifiant, adresse e-mail et leur commentaire)."
|
||||
|
||||
#: class.akismet.php:236
|
||||
msgid "Comment discarded."
|
||||
msgstr "Commentaire rejeté."
|
||||
|
||||
#: class.akismet-rest-api.php:174
|
||||
msgid "This site's API key is hardcoded and cannot be deleted."
|
||||
msgstr "La clé API de ce site est codée en dur et ne peut pas être supprimée."
|
||||
|
||||
#: class.akismet-rest-api.php:158
|
||||
msgid "The value provided is not a valid and registered API key."
|
||||
msgstr "La valeur fournie n’est pas une clé API valide et enregistrée."
|
||||
|
||||
#: class.akismet-rest-api.php:152
|
||||
msgid "This site's API key is hardcoded and cannot be changed via the API."
|
||||
msgstr "La clé API de ce site est codée en dur et ne peut être modifiée via l’API."
|
||||
|
||||
#: class.akismet-rest-api.php:71 class.akismet-rest-api.php:80
|
||||
msgid "The time period for which to retrieve stats. Options: 60-days, 6-months, all"
|
||||
msgstr "La période sur laquelle les statistiques sont conservées. Options : 60 jours, 6 mois, tous"
|
||||
|
||||
#: class.akismet-rest-api.php:56
|
||||
msgid "If true, show the number of approved comments beside each comment author in the comments list page."
|
||||
msgstr "Si oui, affiche le nombre de commentaires approuvés à côté de chaque auteur de commentaire dans la page de liste de commentaires."
|
||||
|
||||
#: class.akismet-rest-api.php:51
|
||||
msgid "If true, Akismet will automatically discard the worst spam automatically rather than putting it in the spam folder."
|
||||
msgstr "Si oui, Akismet rejettera automatiquement les pires indésirables plutôt que de les placer dans le dossier des indésirables."
|
||||
|
||||
#: class.akismet-rest-api.php:27 class.akismet-rest-api.php:101
|
||||
#: class.akismet-rest-api.php:114 class.akismet-rest-api.php:127
|
||||
msgid "A 12-character Akismet API key. Available at akismet.com/get/"
|
||||
msgstr "Une clé API Akismet de 12 caractères. Disponible sur akismet.com/get/"
|
||||
|
||||
#: views/notice.php:55
|
||||
msgid "Your site can’t connect to the Akismet servers."
|
||||
msgstr "Votre site ne peut se connecter aux serveurs d’Akismet."
|
||||
|
||||
#. translators: %s is the wp-config.php file
|
||||
#: views/predefined.php:7
|
||||
msgid "An Akismet API key has been defined in the %s file for this site."
|
||||
msgstr "Une clé API Akismet a été définie dans le fichier %s pour ce site."
|
||||
|
||||
#: views/predefined.php:2
|
||||
msgid "Manual Configuration"
|
||||
msgstr "Configuration manuelle"
|
||||
|
||||
#: class.akismet-admin.php:234
|
||||
msgid "On this page, you are able to update your Akismet settings and view spam stats."
|
||||
msgstr "Sur cette page, vous êtes en mesure de mettre à jour vos réglages Akismet et de voir vos statistiques de spam."
|
||||
|
||||
#. Description of the plugin
|
||||
msgid "Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from spam</strong>. It keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key."
|
||||
msgstr "Utilisé par des millions d’utilisateurs, Akismet est probablement la meilleure solution au monde pour <strong>protéger votre blog des indésirables</strong>. Il garde votre site protégé même quand vous dormez. Pour commencer : activez l’extension Akismet et allez ensuite dans la page de réglages pour configurer votre clé API. "
|
||||
|
||||
#. Plugin Name of the plugin
|
||||
#: class.akismet-admin.php:112 class.akismet-admin.php:115
|
||||
msgid "Akismet Anti-Spam"
|
||||
msgstr "Akismet Anti-Spam"
|
||||
|
||||
#: views/stats.php:4
|
||||
msgid "Akismet Settings"
|
||||
msgstr "Réglages d’Akismet"
|
||||
|
||||
#: views/enter.php:9
|
||||
msgid "Connect with API key"
|
||||
msgstr "Connectez-vous avec une clé API"
|
||||
|
||||
#. translators: %s is the WordPress.com username
|
||||
#: views/connect-jp.php:23 views/connect-jp.php:58
|
||||
msgid "You are connected as %s."
|
||||
msgstr "Vous êtes connecté en tant que %s."
|
||||
|
||||
#: views/connect-jp.php:10 views/connect-jp.php:18 views/connect-jp.php:31
|
||||
#: views/connect-jp.php:53 views/connect-jp.php:65
|
||||
msgid "Connect with Jetpack"
|
||||
msgstr "Connectez-vous avec Jetpack"
|
||||
|
||||
#: views/connect-jp.php:12 views/connect-jp.php:25 views/connect-jp.php:48
|
||||
msgid "Use your Jetpack connection to set up Akismet."
|
||||
msgstr "Utilisez votre connexion Jetpack pour activer Akismet."
|
||||
|
||||
#: views/title.php:2
|
||||
msgid "Eliminate spam from your site"
|
||||
msgstr "Éliminez le spam de votre site"
|
||||
|
||||
#: views/notice.php:107
|
||||
msgid "Would you like to <a href=\"%s\">check pending comments</a>?"
|
||||
msgstr "Voulez-vous <a href=\"%s\">vérifier les commentaires en attente</a> ?"
|
||||
|
||||
#: views/notice.php:105
|
||||
msgid "Akismet is now protecting your site from spam. Happy blogging!"
|
||||
msgstr "Akismet protège maintenant votre site des indésirables. Joyeux blogging !"
|
||||
|
||||
#: views/setup.php:3 views/notice.php:14
|
||||
msgid "Set up your Akismet account"
|
||||
msgstr "Configurez votre compte Akismet"
|
||||
|
||||
#: views/config.php:26
|
||||
msgid "Detailed Stats"
|
||||
msgstr "Stats détaillées"
|
||||
|
||||
#: views/config.php:22
|
||||
msgid "Statistics"
|
||||
msgstr "Statistiques"
|
||||
|
||||
#: class.akismet-admin.php:1191
|
||||
msgid "Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from spam</strong>. It keeps your site protected even while you sleep. To get started, just go to <a href=\"admin.php?page=akismet-key-config\">your Akismet Settings page</a> to set up your API key."
|
||||
msgstr "Utilisé par des millions d’utilisateurs, Akismet est probablement la meilleure solution au monde pour <strong>protéger votre blog des indésirables</strong>. Il garde votre site protégé même quand vous dormez. Pour commencer, allez sur <a href=\"admin.php?page=akismet-key-config\">votre page de réglages Akismet</a> pour configurer votre clé API."
|
||||
|
||||
#: class.akismet-admin.php:1188
|
||||
msgid "Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from spam</strong>. Your site is fully configured and being protected, even while you sleep."
|
||||
msgstr "Utilisé par des millions d’utilisateurs, Akismet est probablement la meilleure solution au monde pour <strong>protéger votre blog des indésirables</strong>. Votre site est pleinement configuré et protégé, même quand vous dormez."
|
||||
|
||||
#: class.akismet-admin.php:1080
|
||||
msgid "%s comment was caught as spam."
|
||||
msgid_plural "%s comments were caught as spam."
|
||||
msgstr[0] "%s commentaire a été marqué comme indésirable."
|
||||
msgstr[1] "%s commentaires ont été marqués comme indésirables."
|
||||
|
||||
#: class.akismet-admin.php:1077
|
||||
msgid "No comments were caught as spam."
|
||||
msgstr "Aucun commentaire n’a été marqué comme indésirable."
|
||||
|
||||
#: class.akismet-admin.php:1073
|
||||
msgid "Akismet checked %s comment."
|
||||
msgid_plural "Akismet checked %s comments."
|
||||
msgstr[0] "Akismet a vérifié %s commentaire."
|
||||
msgstr[1] "Akismet a vérifié %s commentaires."
|
||||
|
||||
#: class.akismet-admin.php:1070
|
||||
msgid "There were no comments to check. Akismet will only check comments awaiting moderation."
|
||||
msgstr "Il n’y avait aucun commentaire à vérifier. Akismet ne vérifie que les commentaires en attente de modération."
|
||||
|
||||
#: class.akismet.php:558
|
||||
msgid "Comment not found."
|
||||
msgstr "Commentaire non trouvé."
|
||||
|
||||
#: class.akismet-cli.php:88
|
||||
msgid "%d comment could not be checked."
|
||||
msgid_plural "%d comments could not be checked."
|
||||
msgstr[0] "%d commentaire ne peut pas être vérifié."
|
||||
msgstr[1] "%d commentaires ne peuvent pas être vérifiés."
|
||||
|
||||
#: class.akismet-cli.php:85
|
||||
msgid "%d comment moved to Spam."
|
||||
msgid_plural "%d comments moved to Spam."
|
||||
msgstr[0] "%d commentaire déplacé vers les indésirables."
|
||||
msgstr[1] "%d commentaires déplacés vers les indésirables."
|
||||
|
||||
#: class.akismet-cli.php:84
|
||||
msgid "Processed %d comment."
|
||||
msgid_plural "Processed %d comments."
|
||||
msgstr[0] "%d commentaire traité."
|
||||
msgstr[1] "%d commentaires traités."
|
||||
|
||||
#: class.akismet-cli.php:46
|
||||
msgid "Comment #%d could not be checked."
|
||||
msgstr "Le commentaire #%d ne peut pas être vérifié."
|
||||
|
||||
#: class.akismet-cli.php:43
|
||||
msgid "Failed to connect to Akismet."
|
||||
msgstr "Impossible de se connecter à Akismet."
|
||||
|
||||
#: class.akismet-cli.php:39
|
||||
msgid "Comment #%d is not spam."
|
||||
msgstr "Le commentaire #%d n’est pas indésirable."
|
||||
|
||||
#: class.akismet-cli.php:36
|
||||
msgid "Comment #%d is spam."
|
||||
msgstr "Le commentaire #%d est indésirable."
|
||||
|
||||
#: views/config.php:49
|
||||
msgid "%s false positive"
|
||||
msgid_plural "%s false positives"
|
||||
msgstr[0] "%s faux positif"
|
||||
msgstr[1] "%s faux positifs"
|
||||
|
||||
#: views/config.php:47
|
||||
msgid "%s missed spam"
|
||||
msgid_plural "%s missed spam"
|
||||
msgstr[0] "%s indésirable manqué"
|
||||
msgstr[1] "%s indésirables manqués"
|
||||
|
||||
#: views/notice.php:85
|
||||
msgid "You don’t have an Akismet plan."
|
||||
msgstr "Vous n’avez pas de plan Akismet."
|
||||
|
||||
#: views/notice.php:70
|
||||
msgid "Your Akismet subscription is suspended."
|
||||
msgstr "Votre inscription Akismet est suspendue."
|
||||
|
||||
#: views/notice.php:65
|
||||
msgid "Your Akismet plan has been cancelled."
|
||||
msgstr "Votre plan Akismet a été annulé."
|
||||
|
||||
#: views/notice.php:61
|
||||
msgid "We cannot process your payment. Please <a href=\"%s\" target=\"_blank\">update your payment details</a>."
|
||||
msgstr "Nous ne pouvons traiter votre paiement. Merci de <a href=\"%s\" target=\"_blank\">mettre à jour vos détails de paiement</a>."
|
||||
|
||||
#: views/notice.php:60
|
||||
msgid "Please update your payment information."
|
||||
msgstr "Merci de mettre à jour vos informations de paiement."
|
||||
|
||||
#: views/notice.php:17
|
||||
msgid "<strong>Almost done</strong> - configure Akismet and say goodbye to spam"
|
||||
msgstr "<strong>C’est presque fini</strong> - configurez Akismet et dîtes adieu aux indésirables."
|
||||
|
||||
#: class.akismet-admin.php:1004
|
||||
msgid "Akismet has saved you %d minute!"
|
||||
msgid_plural "Akismet has saved you %d minutes!"
|
||||
msgstr[0] "Akismet vous a fait gagner %d minute !"
|
||||
msgstr[1] "Akismet vous a fait gagner %d minutes !"
|
||||
|
||||
#: class.akismet-admin.php:1002
|
||||
msgid "Akismet has saved you %d hour!"
|
||||
msgid_plural "Akismet has saved you %d hours!"
|
||||
msgstr[0] "Akismet vous a fait gagner %d heure !"
|
||||
msgstr[1] "Akismet vous a fait gagner %d heures !"
|
||||
|
||||
#: class.akismet-admin.php:1000
|
||||
msgid "Akismet has saved you %s day!"
|
||||
msgid_plural "Akismet has saved you %s days!"
|
||||
msgstr[0] "Akismet vous a fait gagner %s jour !"
|
||||
msgstr[1] "Akismet vous a fait gagner %s jours !"
|
||||
|
||||
#: class.akismet-admin.php:182 class.akismet-admin.php:220
|
||||
#: class.akismet-admin.php:233
|
||||
msgid "Akismet filters out spam, so you can focus on more important things."
|
||||
msgstr "Akismet filtre les indésirables, vous pouvez donc vous concentrer sur des choses plus importantes."
|
||||
|
||||
#: views/notice.php:135
|
||||
msgid "To continue your service, <a href=\"%s\" target=\"_blank\">upgrade to an Enterprise subscription</a>, which covers an unlimited number of sites."
|
||||
msgstr "Pour continuer votre service <a href=\"%s\" target=\"_blank\">migrez vers une inscription Entreprise</a>, qui autorise un nombre de sites illimités."
|
||||
|
||||
#: views/notice.php:128
|
||||
msgid "Your Pro subscription allows the use of Akismet on only one site. Please <a href=\"%s\" target=\"_blank\">purchase additional Pro subscriptions</a> or upgrade to an Enterprise subscription that allows the use of Akismet on unlimited sites."
|
||||
msgstr "Votre abonnement Pro ne vous permet d’utiliser Akismet que sur un seul site. Veuillez <a href=\"%s\" target=\"_blank\"> acheter des abonnements Pro supplémentaires</a> ou mettez à niveau vers un abonnement Entreprise qui vous permettra d’utiliser Akismet sur un nombre de sites illimité."
|
||||
|
||||
#: views/notice.php:121
|
||||
msgid "The connection to akismet.com could not be established. Please refer to <a href=\"%s\" target=\"_blank\">our guide about firewalls</a> and check your server configuration."
|
||||
msgstr "La connexion avec akismet.com ne peut pas être établie. Merci de vous référer à <a href=\"%s\" target=\"_blank\">notre guide à propos des firewalls</a> et de vérifier la configuration de votre serveur."
|
||||
|
||||
#: views/notice.php:120
|
||||
msgid "The API key you entered could not be verified."
|
||||
msgstr "La clé API que vous avez saisie n’a pas pu être vérifiée."
|
||||
|
||||
#: views/notice.php:116
|
||||
msgid "Your API key is no longer valid. Please enter a new key or contact support@akismet.com."
|
||||
msgstr "Votre clé API n’est plus valide. Veuillez saisir une nouvelle clé ou nous contacter via support@akismet.com."
|
||||
|
||||
#: views/notice.php:89 views/notice.php:130 views/notice.php:137
|
||||
msgid "Please <a href=\"%s\" target=\"_blank\">contact our support team</a> with any questions."
|
||||
msgstr "Merci de <a href=\"%s\" target=\"_blank\">contacter notre équipe de support</a> si vous avez des questions."
|
||||
|
||||
#: views/notice.php:87
|
||||
msgid "In 2012, Akismet began using subscription plans for all accounts (even free ones). A plan has not been assigned to your account, and we’d appreciate it if you’d <a href=\"%s\" target=\"_blank\">sign into your account</a> and choose one."
|
||||
msgstr "En 2012, Akismet a commencé à utiliser des formules d’abonnement pour tous les comptes (même les gratuits). Aucune formule n’a été assignée à votre compte et nous vous serions reconnaissant si vous vous <a href=\"%s\" target=\"_blank\">connectiez-à votre compte</a> et que vous en choisissiez une."
|
||||
|
||||
#: views/config.php:95
|
||||
msgid "All systems functional."
|
||||
msgstr "Tous les systèmes fonctionnent."
|
||||
|
||||
#: views/config.php:95
|
||||
msgid "Enabled."
|
||||
msgstr "Activé."
|
||||
|
||||
#: views/config.php:92
|
||||
msgid "Akismet encountered a problem with a previous SSL request and disabled it temporarily. It will begin using SSL for requests again shortly."
|
||||
msgstr "Akismet a rencontré un problème avec une requête SSL précédente et l’a désactivée momentanément. Il devrait très rapidement recommencé à utiliser le SSL pour les prochaines requêtes. "
|
||||
|
||||
#: views/config.php:92
|
||||
msgid "Temporarily disabled."
|
||||
msgstr "Temporairement désactivé."
|
||||
|
||||
#: views/config.php:86
|
||||
msgid "Your Web server cannot make SSL requests; contact your Web host and ask them to add support for SSL requests."
|
||||
msgstr "Votre serveur web ne peut pas faire de requête SSL ; contactez votre hébergeur web et demandez-lui d’ajouter la reconnaissance des requêtes SSL."
|
||||
|
||||
#: views/config.php:86
|
||||
msgid "Disabled."
|
||||
msgstr "Désactivé."
|
||||
|
||||
#: views/config.php:79
|
||||
msgid "SSL Status"
|
||||
msgstr "État SSL"
|
||||
|
||||
#: class.akismet-admin.php:630
|
||||
msgid "This comment was reported as not spam."
|
||||
msgstr "Ce commentaire a été rapporté comme acceptable."
|
||||
|
||||
#: class.akismet-admin.php:622
|
||||
msgid "This comment was reported as spam."
|
||||
msgstr "Ce commentaire a été rapporté comme indésirable."
|
||||
|
||||
#: class.akismet-admin.php:147
|
||||
msgid "(undo)"
|
||||
msgstr "(annuler)"
|
||||
|
||||
#: class.akismet-admin.php:146
|
||||
msgid "URL removed"
|
||||
msgstr "URL supprimée"
|
||||
|
||||
#: class.akismet-admin.php:145
|
||||
msgid "Removing..."
|
||||
msgstr "Suppression..."
|
||||
|
||||
#: class.akismet-admin.php:86 class.akismet-admin.php:1206
|
||||
msgid "Akismet"
|
||||
msgstr "Akismet"
|
||||
|
||||
#: class.akismet-admin.php:105 class.akismet-admin.php:241
|
||||
#: class.akismet-admin.php:691 views/config.php:60
|
||||
msgid "Settings"
|
||||
msgstr "Réglages"
|
||||
|
||||
#: class.akismet-admin.php:148
|
||||
msgid "Re-adding..."
|
||||
msgstr "Rajout en cours..."
|
||||
|
||||
#: class.akismet-admin.php:179 class.akismet-admin.php:217
|
||||
#: class.akismet-admin.php:230
|
||||
msgid "Overview"
|
||||
msgstr "Vue d’ensemble"
|
||||
|
||||
#: class.akismet-admin.php:181 class.akismet-admin.php:192
|
||||
#: class.akismet-admin.php:203
|
||||
msgid "Akismet Setup"
|
||||
msgstr "Configuration d’Askimet"
|
||||
|
||||
#: class.akismet-admin.php:183
|
||||
msgid "On this page, you are able to set up the Akismet plugin."
|
||||
msgstr "Sur cette page, vous pouvez configurer l’extension Akismet."
|
||||
|
||||
#: class.akismet-admin.php:190
|
||||
msgid "New to Akismet"
|
||||
msgstr "Nouveau avec Akismet"
|
||||
|
||||
#: class.akismet-admin.php:193
|
||||
msgid "You need to enter an API key to activate the Akismet service on your site."
|
||||
msgstr "Vous avez besoin de saisir une clé API pour activer le service Akismet sur votre site."
|
||||
|
||||
#: class.akismet-admin.php:201
|
||||
msgid "Enter an API Key"
|
||||
msgstr "Saisissez une clé API"
|
||||
|
||||
#: class.akismet-admin.php:194
|
||||
msgid "Sign up for an account on %s to get an API Key."
|
||||
msgstr "Créez-vous un compte sur %s pour obtenir une clé API."
|
||||
|
||||
#: class.akismet-admin.php:204
|
||||
msgid "If you already have an API key"
|
||||
msgstr "Si vous avez déjà une clé API"
|
||||
|
||||
#: class.akismet-admin.php:206
|
||||
msgid "Copy and paste the API key into the text field."
|
||||
msgstr "Copiez et collez la clé API dans le champ de texte."
|
||||
|
||||
#: class.akismet-admin.php:207
|
||||
msgid "Click the Use this Key button."
|
||||
msgstr "Cliquez sur le bouton « Utilisez cette clé »."
|
||||
|
||||
#: class.akismet-admin.php:219
|
||||
msgid "Akismet Stats"
|
||||
msgstr "Statistiques Akismet"
|
||||
|
||||
#: class.akismet-admin.php:221
|
||||
msgid "On this page, you are able to view stats on spam filtered on your site."
|
||||
msgstr "Sur cette page, vous pouvez voir les statistiques des commentaires indésirables filtrés sur votre site."
|
||||
|
||||
#: class.akismet-admin.php:232 class.akismet-admin.php:243
|
||||
#: class.akismet-admin.php:256
|
||||
msgid "Akismet Configuration"
|
||||
msgstr "Configuration Akismet"
|
||||
|
||||
#: class.akismet-admin.php:244 views/config.php:70
|
||||
msgid "API Key"
|
||||
msgstr "Clé API"
|
||||
|
||||
#: class.akismet-admin.php:244
|
||||
msgid "Enter/remove an API key."
|
||||
msgstr "Saisir/supprimer une clé API."
|
||||
|
||||
#: class.akismet-admin.php:245 views/config.php:105
|
||||
msgid "Comments"
|
||||
msgstr "Commentaires"
|
||||
|
||||
#: class.akismet-admin.php:245
|
||||
msgid "Show the number of approved comments beside each comment author in the comments list page."
|
||||
msgstr "Montrer le nombre de commentaires approuvés devant chaque auteur de commentaires dans la page listant les commentaires."
|
||||
|
||||
#: class.akismet-admin.php:246
|
||||
msgid "Choose to either discard the worst spam automatically or to always put all spam in spam folder."
|
||||
msgstr "Choisissez d’éliminer directement les indésirables, ou de toujours les mettre dans le dossier Indésirables."
|
||||
|
||||
#: class.akismet-admin.php:246 views/config.php:128
|
||||
msgid "Strictness"
|
||||
msgstr "Sévérité"
|
||||
|
||||
#: class.akismet-admin.php:254 views/config.php:188
|
||||
msgid "Account"
|
||||
msgstr "Compte"
|
||||
|
||||
#: class.akismet-admin.php:257 views/config.php:196
|
||||
msgid "Subscription Type"
|
||||
msgstr "Type d’abonnement "
|
||||
|
||||
#: class.akismet-admin.php:258
|
||||
msgid "The subscription status - active, cancelled or suspended"
|
||||
msgstr "L’état de l’abonnement - actif, annulé ou suspendu"
|
||||
|
||||
#: class.akismet-admin.php:258 views/config.php:203
|
||||
msgid "Status"
|
||||
msgstr "État"
|
||||
|
||||
#: class.akismet-admin.php:257
|
||||
msgid "The Akismet subscription plan"
|
||||
msgstr "Les abonnements d’Akismet"
|
||||
|
||||
#: class.akismet-admin.php:268
|
||||
msgid "Akismet FAQ"
|
||||
msgstr "FAQ d’Askimet"
|
||||
|
||||
#: class.akismet-admin.php:267
|
||||
msgid "For more information:"
|
||||
msgstr "Plus d’informations :"
|
||||
|
||||
#: class.akismet-admin.php:269
|
||||
msgid "Akismet Support"
|
||||
msgstr "Support d’Askimet"
|
||||
|
||||
#: class.akismet-admin.php:275
|
||||
msgid "Cheatin’ uh?"
|
||||
msgstr "Une mauvaise manipulation ?"
|
||||
|
||||
#: class.akismet-admin.php:345
|
||||
msgctxt "comments"
|
||||
msgid "Spam"
|
||||
msgstr "Indésirable"
|
||||
|
||||
#: class.akismet-admin.php:347
|
||||
msgid "<a href=\"%1$s\">Akismet</a> has protected your site from <a href=\"%2$s\">%3$s spam comment</a>."
|
||||
msgid_plural "<a href=\"%1$s\">Akismet</a> has protected your site from <a href=\"%2$s\">%3$s spam comments</a>."
|
||||
msgstr[0] "<a href=\"%1$s\">Akismet</a> a déjà protégé votre site de <a href=\"%2$s\">%3$s commentaire indésirable</a>."
|
||||
msgstr[1] "<a href=\"%1$s\">Akismet</a> a déjà protégé votre site de <a href=\"%2$s\">%3$s commentaires indésirables</a>."
|
||||
|
||||
#: class.akismet-admin.php:357
|
||||
msgid "<a href=\"%1$s\">Akismet</a> has protected your site from %2$s spam comment already. "
|
||||
msgid_plural "<a href=\"%1$s\">Akismet</a> has protected your site from %2$s spam comments already. "
|
||||
msgstr[0] "<a href=\"%1$s\">Akismet</a> a déjà protégé votre site de %2$s commentaire indésirable."
|
||||
msgstr[1] "<a href=\"%1$s\">Akismet</a> a déjà protégé votre site de %2$s commentaires indésirables."
|
||||
|
||||
#: class.akismet-admin.php:363
|
||||
msgid "<a href=\"%s\">Akismet</a> blocks spam from getting to your blog. "
|
||||
msgstr "<a href=\"%s\">Akismet</a> a bloqué les commentaires indésirables de votre site. "
|
||||
|
||||
#: class.akismet-admin.php:369
|
||||
msgid "There’s <a href=\"%2$s\">%1$s comment</a> in your spam queue right now."
|
||||
msgid_plural "There are <a href=\"%2$s\">%1$s comments</a> in your spam queue right now."
|
||||
msgstr[0] "Il y a actuellement <a href=\"%2$s\">%1$s commentaire</a> dans votre file d’indésirables."
|
||||
msgstr[1] "Il y a actuellement <a href=\"%2$s\">%1$s commentaires</a> dans votre file d’indésirables."
|
||||
|
||||
#: class.akismet-admin.php:375
|
||||
msgid "There’s nothing in your <a href='%s'>spam queue</a> at the moment."
|
||||
msgstr "Il n’y a rien dans votre <a href='%s'>file d’attente d’indésirables</a> pour le moment."
|
||||
|
||||
#: class.akismet-admin.php:609
|
||||
msgid "Akismet re-checked and cleared this comment."
|
||||
msgstr "Akismet a revérifié et validé ce commentaire."
|
||||
|
||||
#: class.akismet-admin.php:603
|
||||
msgid "Akismet re-checked and caught this comment as spam."
|
||||
msgstr "Akismet a revérifié et marqué ce commentaire comme indésirable."
|
||||
|
||||
#: class.akismet-admin.php:422
|
||||
msgid "Check for Spam"
|
||||
msgstr "Vérifier les commentaires indésirables"
|
||||
|
||||
#: class.akismet-admin.php:649
|
||||
msgid "Akismet was unable to recheck this comment (response: %s)."
|
||||
msgstr "Akismet a été incapable de revérifier ce commentaire (réponse : %s)."
|
||||
|
||||
#: class.akismet-admin.php:533
|
||||
msgid "Flagged as spam by Akismet"
|
||||
msgstr "Marqué comme indésirable par Akismet"
|
||||
|
||||
#: class.akismet-admin.php:529
|
||||
msgid "Awaiting spam check"
|
||||
msgstr "En attente de vérification"
|
||||
|
||||
#: class.akismet-admin.php:539
|
||||
msgid "Flagged as spam by %s"
|
||||
msgstr "Marqué comme indésirable par %s"
|
||||
|
||||
#: class.akismet-admin.php:535
|
||||
msgid "Cleared by Akismet"
|
||||
msgstr "Validé par Akismet"
|
||||
|
||||
#: class.akismet-admin.php:541
|
||||
msgid "Un-spammed by %s"
|
||||
msgstr "Marqué comme légitime par %s"
|
||||
|
||||
#: class.akismet-admin.php:576
|
||||
msgid "%s approved"
|
||||
msgid_plural "%s approved"
|
||||
msgstr[0] "%s approuvé"
|
||||
msgstr[1] "%s approuvés"
|
||||
|
||||
#: class.akismet-admin.php:553
|
||||
msgid "History"
|
||||
msgstr "Historique"
|
||||
|
||||
#: class.akismet-admin.php:553 class.akismet-admin.php:561
|
||||
msgid "View comment history"
|
||||
msgstr "Voir l’historique du commentaire"
|
||||
|
||||
#: class.akismet-admin.php:890
|
||||
msgid "Please check your <a href=\"%s\">Akismet configuration</a> and contact your web host if problems persist."
|
||||
msgstr "Veuillez vérifier votre <a href=\"%s\">configuration Akismet</a> et contacter votre hébergeur si le problème persiste."
|
||||
|
||||
#: class.akismet-admin.php:675
|
||||
msgid "%s ago"
|
||||
msgstr "il y a %s"
|
||||
|
||||
#: class.akismet-admin.php:997
|
||||
msgid "Cleaning up spam takes time."
|
||||
msgstr "Nettoyer les commentaires indésirables prend du temps."
|
||||
|
||||
#: class.akismet-widget.php:12
|
||||
msgid "Akismet Widget"
|
||||
msgstr "Widget Akismet"
|
||||
|
||||
#: class.akismet-widget.php:13
|
||||
msgid "Display the number of spam comments Akismet has caught"
|
||||
msgstr "Affiche le nombre de commentaires indésirables repérés par Akismet"
|
||||
|
||||
#: class.akismet-widget.php:74
|
||||
msgid "Title:"
|
||||
msgstr "Titre :"
|
||||
|
||||
#: class.akismet-widget.php:69 class.akismet-widget.php:90
|
||||
msgid "Spam Blocked"
|
||||
msgstr "Indésirable bloqué"
|
||||
|
||||
#: class.akismet-widget.php:102
|
||||
msgid "<strong class=\"count\">%1$s spam</strong> blocked by <strong>Akismet</strong>"
|
||||
msgid_plural "<strong class=\"count\">%1$s spam</strong> blocked by <strong>Akismet</strong>"
|
||||
msgstr[0] "<strong class=\"count\">%1$s indésirable</strong> bloqué par <strong>Akismet</strong>"
|
||||
msgstr[1] "<strong class=\"count\">%1$s indésirables</strong> bloqués par <strong>Akismet</strong>"
|
||||
|
||||
#: class.akismet-admin.php:606
|
||||
msgid "Akismet caught this comment as spam."
|
||||
msgstr "Akismet a marqué ce commentaire comme indésirable."
|
||||
|
||||
#: class.akismet-admin.php:660
|
||||
msgid "Comment status was changed to %s"
|
||||
msgstr "L’état du commentaire a été changé en %s"
|
||||
|
||||
#: class.akismet-admin.php:612
|
||||
msgid "Akismet cleared this comment."
|
||||
msgstr "Akismet a validé ce commentaire."
|
||||
|
||||
#: class.akismet-admin.php:641
|
||||
msgid "Akismet was unable to check this comment (response: %s) but will automatically retry later."
|
||||
msgstr "Akismet a été incapable de revérifier ce commentaire (réponse : %s) mais réessayera automatiquement plus tard."
|
||||
|
||||
#: class.akismet-admin.php:666
|
||||
msgid "%1$s changed the comment status to %2$s."
|
||||
msgstr "%1$s a changé l’état du commentaire en %2$s."
|
||||
|
||||
#: class.akismet-admin.php:619
|
||||
msgid "%s reported this comment as spam."
|
||||
msgstr "%s a rapporté ce commentaire comme indésirable."
|
||||
|
||||
#: class.akismet-admin.php:627
|
||||
msgid "%s reported this comment as not spam."
|
||||
msgstr "%s a rapporté ce commentaire comme acceptable."
|
||||
|
||||
#: class.akismet-admin.php:634
|
||||
msgid "Akismet caught this comment as spam during an automatic retry."
|
||||
msgstr "Akismet a revérifié ce commentaire et considéré qu’il s’agit d’un indésirable."
|
||||
|
||||
#: class.akismet-admin.php:637
|
||||
msgid "Akismet cleared this comment during an automatic retry."
|
||||
msgstr "Akismet a validé ce commentaire suite à une revérification automatique."
|
||||
|
||||
#: class.akismet.php:1348
|
||||
msgid "Please <a href=\"%1$s\">upgrade WordPress</a> to a current version, or <a href=\"%2$s\">downgrade to version 2.4 of the Akismet plugin</a>."
|
||||
msgstr "Veuillez passer à la <a href=\"%1$s\">dernière version de WordPress</a> ou <a href=\"%2$s\">revenir à la version 2.4 de l’extension Akismet</a>."
|
||||
|
||||
#: class.akismet.php:1348
|
||||
msgid "Akismet %s requires WordPress %s or higher."
|
||||
msgstr "Akismet %s requiert WordPress %s ou supérieur."
|
||||
|
||||
#: views/config.php:37 views/config.php:42
|
||||
msgid "Spam blocked"
|
||||
msgid_plural "Spam blocked"
|
||||
msgstr[0] "Commentaire indésirable bloqué"
|
||||
msgstr[1] ""
|
||||
|
||||
#: views/config.php:35
|
||||
msgid "Past six months"
|
||||
msgstr "Les six derniers mois"
|
||||
|
||||
#: views/config.php:40
|
||||
msgid "All time"
|
||||
msgstr "Depuis le début"
|
||||
|
||||
#: views/config.php:45
|
||||
msgid "Accuracy"
|
||||
msgstr "Exactitude"
|
||||
|
||||
#: views/config.php:109
|
||||
msgid "Show approved comments"
|
||||
msgstr "Afficher les commentaires approuvés"
|
||||
|
||||
#: views/config.php:122
|
||||
msgid "Show the number of approved comments beside each comment author"
|
||||
msgstr "Montrer le nombre de commentaires approuvés devant chaque auteur de commentaires"
|
||||
|
||||
#: views/config.php:131
|
||||
msgid "Akismet anti-spam strictness"
|
||||
msgstr "Sévérité anti-indésirables d’Akismet"
|
||||
|
||||
#: views/config.php:132
|
||||
msgid "Silently discard the worst and most pervasive spam so I never see it."
|
||||
msgstr "Éliminer directement les pires indésirables et les plus répandus pour que je ne les vois jamais."
|
||||
|
||||
#: views/config.php:133
|
||||
msgid "Always put spam in the Spam folder for review."
|
||||
msgstr "Toujours mettre les indésirables dans le dossier Indésirables pour vérification."
|
||||
|
||||
#: views/config.php:141
|
||||
msgid "Spam in the <a href=\"%1$s\">spam folder</a> older than 1 day is deleted automatically."
|
||||
msgid_plural "Spam in the <a href=\"%1$s\">spam folder</a> older than %2$d days is deleted automatically."
|
||||
msgstr[0] "Les messages dans le <a href=\"%1$s\">dossier des indésirables</a> depuis plus de 1 jour sont supprimés automatiquement."
|
||||
msgstr[1] "Les messages dans le <a href=\"%1$s\">dossier des indésirables</a> depuis plus de %2$d jours sont supprimés automatiquement."
|
||||
|
||||
#: views/config.php:135
|
||||
msgid "Note:"
|
||||
msgstr "Note :"
|
||||
|
||||
#: views/config.php:208
|
||||
msgid "Cancelled"
|
||||
msgstr "Annulé"
|
||||
|
||||
#: views/config.php:176
|
||||
msgid "Save Changes"
|
||||
msgstr "Enregistrer les modifications"
|
||||
|
||||
#: views/config.php:170
|
||||
msgid "Disconnect this account"
|
||||
msgstr "Déconnecter ce compte"
|
||||
|
||||
#: views/config.php:210
|
||||
msgid "Suspended"
|
||||
msgstr "Suspendu"
|
||||
|
||||
#: views/config.php:214
|
||||
msgid "No Subscription Found"
|
||||
msgstr "Aucun abonnement trouvé"
|
||||
|
||||
#: views/config.php:212
|
||||
msgid "Missing"
|
||||
msgstr "Manquant"
|
||||
|
||||
#: views/config.php:222
|
||||
msgid "Next Billing Date"
|
||||
msgstr "Prochaine date de facturation"
|
||||
|
||||
#: views/config.php:216
|
||||
msgid "Active"
|
||||
msgstr "Activé"
|
||||
|
||||
#: views/config.php:233
|
||||
msgid "Upgrade"
|
||||
msgstr "Mise à jour"
|
||||
|
||||
#: views/config.php:233
|
||||
msgid "Change"
|
||||
msgstr "Changer"
|
||||
|
||||
#: views/notice.php:23
|
||||
msgid "Akismet has detected a problem."
|
||||
msgstr "Akismet a détecté un problème."
|
||||
|
||||
#: views/notice.php:24
|
||||
msgid "Some comments have not yet been checked for spam by Akismet. They have been temporarily held for moderation and will automatically be rechecked later."
|
||||
msgstr "Certains commentaires n’ont pas encore été vérifiés par Akismet. Ils ont été temporairement mis en modération et seront vérifiés automatiquement plus tard."
|
||||
|
||||
#: views/notice.php:31
|
||||
msgid "Akismet Error Code: %s"
|
||||
msgstr "Code d’erreur Akismet : %s"
|
||||
|
||||
#. translators: the placeholder is a clickable URL that leads to more
|
||||
#. information regarding an error code.
|
||||
#: views/notice.php:36
|
||||
msgid "For more information: %s"
|
||||
msgstr "Pour plus d’information : %s"
|
||||
|
||||
#: views/notice.php:51
|
||||
msgid "Your web host or server administrator has disabled PHP’s <code>gethostbynamel</code> function. <strong>Akismet cannot work correctly until this is fixed.</strong> Please contact your web host or firewall administrator and give them <a href=\"%s\" target=\"_blank\">this information about Akismet’s system requirements</a>."
|
||||
msgstr "Votre hébergeur web ou administrateur de serveur a désactivé la fonction PHP <code>gethostbynamel</code>. <strong>Akismet ne peut pas fonctionner correctement tant qu’elle ne sera pas activée</strong>. Veuillez contacter votre hébergeur web ou l’administrateur de votre pare-feu et donnez-lui <a href=\"%s\" target=\"_blank\">ces informations à propos des prérequis systèmes d’Akismet</a>."
|
||||
|
||||
#: views/notice.php:50
|
||||
msgid "Network functions are disabled."
|
||||
msgstr "Les fonctionnalités réseau sont désactivées."
|
||||
|
||||
#: views/notice.php:56
|
||||
msgid "Your firewall may be blocking Akismet from connecting to its API. Please contact your host and refer to <a href=\"%s\" target=\"_blank\">our guide about firewalls</a>."
|
||||
msgstr "Il est possible que votre pare-feu bloque Akismet. Veuillez contacter votre hébergeur et indiquez-lui notre <a href=\"%s\" target=\"_blank\">guide pour les pares-feu (en anglais)</a>."
|
||||
|
||||
#: views/notice.php:66
|
||||
msgid "Please visit your <a href=\"%s\" target=\"_blank\">Akismet account page</a> to reactivate your subscription."
|
||||
msgstr "Veuillez vous rendre sur <a href=\"%s\" target=\"_blank\">la page de votre compte Akismet</a> pour réactiver votre abonnement."
|
||||
|
||||
#: views/notice.php:71 views/notice.php:81
|
||||
msgid "Please contact <a href=\"%s\" target=\"_blank\">Akismet support</a> for assistance."
|
||||
msgstr "Veuillez contacter <a href=\"%s\" target=\"_blank\">le service de support d’Akismet</a> pour obtenir de l’aide."
|
||||
|
||||
#: views/notice.php:76
|
||||
msgid "You can help us fight spam and upgrade your account by <a href=\"%s\" target=\"_blank\">contributing a token amount</a>."
|
||||
msgstr "Vous pouvez nous aider à combattre les messages indésirables et passer à un compte supérieur <a href=\"%s\" target=\"_blank\">avec un montant symbolique</a>."
|
||||
|
||||
#: views/notice.php:80
|
||||
msgid "There is a problem with your API key."
|
||||
msgstr "Il y a un problème avec votre clé API."
|
||||
|
||||
#: views/notice.php:112
|
||||
msgid "The key you entered is invalid. Please double-check it."
|
||||
msgstr "Votre clé ne semble pas être valide. Veuillez la vérifier."
|
||||
|
||||
#: views/notice.php:126
|
||||
msgid "You’re using your Akismet key on more sites than your Pro subscription allows."
|
||||
msgstr "Vous utilisez votre clé Askismet sur plus de sites que votre abonnement Pro n’en autorise."
|
||||
|
||||
#: views/notice.php:133
|
||||
msgid "You’re using Akismet on far too many sites for your Pro subscription."
|
||||
msgstr "Vous utilisez Akismet sur bien trop de sites pour votre abonnement Pro."
|
||||
|
||||
#. translators: %s is the WordPress.com email address
|
||||
#: views/connect-jp.php:36
|
||||
msgid "Your subscription for %s is cancelled."
|
||||
msgstr "Votre abonnement à %s est annulé."
|
||||
|
||||
#. translators: %s is the WordPress.com email address
|
||||
#: views/connect-jp.php:44
|
||||
msgid "Your subscription for %s is suspended."
|
||||
msgstr "Votre abonnement à %s est suspendu."
|
||||
|
||||
#: views/connect-jp.php:45
|
||||
msgid "No worries! Get in touch and we’ll sort this out."
|
||||
msgstr "Aucune crainte à avoir ! Contactez-nous et nous trouverons une solution."
|
||||
|
||||
#: views/connect-jp.php:39
|
||||
msgid "Contact Akismet support"
|
||||
msgstr "Contacter le support Akismet"
|
||||
|
||||
#: views/enter.php:2
|
||||
msgid "Manually enter an API key"
|
||||
msgstr "Saisissez votre clé d’API manuellement"
|
||||
|
||||
#. Plugin URI of the plugin
|
||||
msgid "https://akismet.com/"
|
||||
msgstr "https://akismet.com/"
|
||||
|
||||
#. Author URI of the plugin
|
||||
msgid "https://automattic.com/wordpress-plugins/"
|
||||
msgstr "https://automattic.com/wordpress-plugins/"
|
||||
|
||||
#. Author of the plugin
|
||||
msgid "Automattic"
|
||||
msgstr "Automattic"
|
||||
|
||||
#: class.akismet-admin.php:144
|
||||
msgid "Remove this URL"
|
||||
msgstr "Supprimer cette URL"
|
||||
|
||||
#: class.akismet-admin.php:82
|
||||
msgid "Comment History"
|
||||
msgstr "Voir l’historique du commentaire"
|
||||
BIN
content/languages/themes/twentynineteen-fr_FR.mo
Normal file
BIN
content/languages/themes/twentynineteen-fr_FR.mo
Normal file
Binary file not shown.
398
content/languages/themes/twentynineteen-fr_FR.po
Normal file
398
content/languages/themes/twentynineteen-fr_FR.po
Normal file
|
|
@ -0,0 +1,398 @@
|
|||
# Translation of Themes - Twenty Nineteen in French (France)
|
||||
# This file is distributed under the same license as the Themes - Twenty Nineteen package.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"PO-Revision-Date: 2020-04-23 12:16:20+0000\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||
"X-Generator: GlotPress/3.0.0-alpha.2\n"
|
||||
"Language: fr\n"
|
||||
"Project-Id-Version: Themes - Twenty Nineteen\n"
|
||||
|
||||
#. Description of the theme
|
||||
msgid "Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether you’re running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes."
|
||||
msgstr "Notre thème par défaut 2019 est conçu pour afficher la puissance de l’éditeur de blocs. Il comporte des styles personnalisés pour tous les blocs par défaut, et est construit pour que ce que vous voyez dans l’éditeur ressemble à ce que vous verrez sur votre site Web. Twenty Nineteen est conçu pour s’adapter à un large éventail de sites Web, que vous exploitiez un blog photo, que vous lanciez une nouvelle entreprise ou souteniez un organisme à but non lucratif. Doté d’un large espace blanc, de titres modernes sans empattement, couplés à un corps de texte classique à empattement, il est conçu pour être beau sur toutes les tailles d’écran."
|
||||
|
||||
#. Theme Name of the theme
|
||||
msgid "Twenty Nineteen"
|
||||
msgstr "Twenty Nineteen"
|
||||
|
||||
#: classes/class-twentynineteen-walker-comment.php:96
|
||||
msgid "Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved."
|
||||
msgstr "Votre commentaire est en attente de modération. Il s’agit d’un aperçu, votre commentaire sera visible lorsqu’il sera approuvé."
|
||||
|
||||
#: functions.php:153
|
||||
msgid "Dark Blue"
|
||||
msgstr "Bleu foncé"
|
||||
|
||||
#: functions.php:148
|
||||
msgid "Blue"
|
||||
msgstr "Bleu"
|
||||
|
||||
#. translators: %s: Parent post link.
|
||||
#: single.php:31
|
||||
msgid "<span class=\"meta-nav\">Published in</span><span class=\"post-title\">%s</span>"
|
||||
msgstr "<span class=\"meta-nav\">Publié dans</span><span class=\"post-title\">%s</span>"
|
||||
|
||||
#: image.php:87
|
||||
msgctxt "Parent post link"
|
||||
msgid "<span class=\"meta-nav\">Published in</span><br><span class=\"post-title\">%title</span>"
|
||||
msgstr "<span class=\"meta-nav\">Publié dans</span><br><span class=\"post-title\">%title</span>"
|
||||
|
||||
#: template-parts/content/content.php:18
|
||||
#: template-parts/content/content-excerpt.php:18
|
||||
msgctxt "post"
|
||||
msgid "Featured"
|
||||
msgstr "Mis en avant"
|
||||
|
||||
#: inc/template-functions.php:143
|
||||
msgid "Back"
|
||||
msgstr "Retour"
|
||||
|
||||
#: inc/template-functions.php:136
|
||||
msgid "More"
|
||||
msgstr "Plus"
|
||||
|
||||
#: inc/customizer.php:78
|
||||
msgid "Apply a custom color for buttons, links, featured images, etc."
|
||||
msgstr "Appliquer une couleur personnalisée aux boutons, liens, images mises en avant, etc."
|
||||
|
||||
#: inc/customizer.php:98
|
||||
msgid "Apply a filter to featured images using the primary color"
|
||||
msgstr "Appliquer un filtre aux images mises en avant en utilisant la couleur principale"
|
||||
|
||||
#: inc/customizer.php:55
|
||||
msgctxt "primary color"
|
||||
msgid "Default"
|
||||
msgstr "Par défaut"
|
||||
|
||||
#: functions.php:168
|
||||
msgid "White"
|
||||
msgstr "Blanc"
|
||||
|
||||
#: functions.php:163
|
||||
msgid "Light Gray"
|
||||
msgstr "Gris clair"
|
||||
|
||||
#: functions.php:158
|
||||
msgid "Dark Gray"
|
||||
msgstr "Gris foncé"
|
||||
|
||||
#: functions.php:136
|
||||
msgid "XL"
|
||||
msgstr "XL"
|
||||
|
||||
#: functions.php:135
|
||||
msgid "Huge"
|
||||
msgstr "Énorme"
|
||||
|
||||
#: functions.php:130
|
||||
msgid "L"
|
||||
msgstr "L"
|
||||
|
||||
#: functions.php:129
|
||||
msgid "Large"
|
||||
msgstr "Large"
|
||||
|
||||
#: functions.php:124
|
||||
msgid "M"
|
||||
msgstr "M"
|
||||
|
||||
#: functions.php:123
|
||||
msgid "Normal"
|
||||
msgstr "Normal"
|
||||
|
||||
#: functions.php:117
|
||||
msgid "Small"
|
||||
msgstr "Petit"
|
||||
|
||||
#: functions.php:118
|
||||
msgid "S"
|
||||
msgstr "S"
|
||||
|
||||
#: functions.php:60 footer.php:37
|
||||
msgid "Footer Menu"
|
||||
msgstr "Menu du pied de page"
|
||||
|
||||
#. translators: %s: WordPress version.
|
||||
#: inc/back-compat.php:40 inc/back-compat.php:55 inc/back-compat.php:76
|
||||
msgid "Twenty Nineteen requires at least WordPress version 4.7. You are running version %s. Please upgrade and try again."
|
||||
msgstr "Twenty Nineteen nécessite au moins la version 4.7 de WordPress. Vous utilisez la version %s. Veuillez mettre à niveau et réessayer."
|
||||
|
||||
#: inc/customizer.php:56
|
||||
msgctxt "primary color"
|
||||
msgid "Custom"
|
||||
msgstr "Personnalisée"
|
||||
|
||||
#: inc/customizer.php:53
|
||||
msgid "Primary Color"
|
||||
msgstr "Couleur principale"
|
||||
|
||||
#: functions.php:190 template-parts/footer/footer-widgets.php:12
|
||||
msgid "Footer"
|
||||
msgstr "Pied de page"
|
||||
|
||||
#: functions.php:192
|
||||
msgid "Add widgets here to appear in your footer."
|
||||
msgstr "Ajoutez ici des widgets qui apparaîtront dans votre pied de page."
|
||||
|
||||
#: image.php:56
|
||||
msgid "Page"
|
||||
msgstr "Page"
|
||||
|
||||
#: image.php:70
|
||||
msgctxt "Used before full size attachment link."
|
||||
msgid "Full size"
|
||||
msgstr "Taille originale"
|
||||
|
||||
#: comments.php:116
|
||||
msgid "Comments are closed."
|
||||
msgstr "Les commentaires sont fermés."
|
||||
|
||||
#: functions.php:61 template-parts/header/site-branding.php:46
|
||||
msgid "Social Links Menu"
|
||||
msgstr "Menu des liens de réseaux sociaux"
|
||||
|
||||
#: comments.php:96
|
||||
msgid "Next"
|
||||
msgstr "Suivant"
|
||||
|
||||
#: comments.php:95
|
||||
msgid "Previous"
|
||||
msgstr "Précédent"
|
||||
|
||||
#: single.php:41
|
||||
msgid "Previous Post"
|
||||
msgstr "Article précédent"
|
||||
|
||||
#: template-parts/content/content-none.php:16
|
||||
msgid "Nothing Found"
|
||||
msgstr "Aucun résultat"
|
||||
|
||||
#: template-parts/content/content-none.php:39
|
||||
msgid "Sorry, but nothing matched your search terms. Please try again with some different keywords."
|
||||
msgstr "Désolé, mais rien ne correspond à votre recherche. Veuillez réessayer avec des mots différents."
|
||||
|
||||
#: template-parts/header/site-branding.php:33
|
||||
msgid "Top Menu"
|
||||
msgstr "Menu supérieur"
|
||||
|
||||
#. translators: Used between list items, there is a space after the comma.
|
||||
#: inc/template-tags.php:86 inc/template-tags.php:98
|
||||
msgid ", "
|
||||
msgstr ", "
|
||||
|
||||
#: single.php:38
|
||||
msgid "Next Post"
|
||||
msgstr "Article suivant"
|
||||
|
||||
#: 404.php:20
|
||||
msgid "Oops! That page can’t be found."
|
||||
msgstr "Aïe ! Cette page est introuvable."
|
||||
|
||||
#. translators: 1: Link to WP admin new post page.
|
||||
#: template-parts/content/content-none.php:26
|
||||
msgid "Ready to publish your first post? <a href=\"%1$s\">Get started here</a>."
|
||||
msgstr "Prêt·e à publier votre premier article ? <a href=\"%1$s\">Lancez-vous ici</a>."
|
||||
|
||||
#: template-parts/content/content-none.php:46
|
||||
msgid "It seems we can’t find what you’re looking for. Perhaps searching can help."
|
||||
msgstr "Il semblerait que nous ne pouvons trouver ce que vous cherchez. Une recherche pourrait vous être utile."
|
||||
|
||||
#: header.php:25
|
||||
msgid "Skip to content"
|
||||
msgstr "Aller au contenu"
|
||||
|
||||
#. translators: 1: Comment date, 2: Comment time.
|
||||
#: classes/class-twentynineteen-walker-comment.php:79
|
||||
msgid "%1$s at %2$s"
|
||||
msgstr "%1$s à %2$s"
|
||||
|
||||
#: classes/class-twentynineteen-walker-comment.php:87
|
||||
msgid "Edit"
|
||||
msgstr "Modifier"
|
||||
|
||||
#: classes/class-twentynineteen-walker-comment.php:94
|
||||
msgid "Your comment is awaiting moderation."
|
||||
msgstr "Votre commentaire est en attente de modération."
|
||||
|
||||
#: comments.php:33
|
||||
msgid "Join the Conversation"
|
||||
msgstr "Rejoindre la conversation"
|
||||
|
||||
#: comments.php:35 comments.php:105 comments.php:107
|
||||
msgid "Leave a comment"
|
||||
msgstr "Laisser un commentaire"
|
||||
|
||||
#: comments.php:92 comments.php:95 comments.php:96
|
||||
msgid "Comments"
|
||||
msgstr "Commentaires"
|
||||
|
||||
#: functions.php:59
|
||||
msgid "Primary"
|
||||
msgstr "Principal"
|
||||
|
||||
#. translators: %s: Post title. Only visible to screen readers.
|
||||
#: template-parts/content/content-page.php:41
|
||||
#: template-parts/header/entry-header.php:32 inc/template-tags.php:120
|
||||
msgid "Edit <span class=\"screen-reader-text\">%s</span>"
|
||||
msgstr "Modifier <span class=\"screen-reader-text\">%s</span>"
|
||||
|
||||
#: inc/template-functions.php:92
|
||||
msgid "Archives:"
|
||||
msgstr "Archives :"
|
||||
|
||||
#: inc/template-functions.php:80
|
||||
msgctxt "yearly archives date format"
|
||||
msgid "Y"
|
||||
msgstr "Y"
|
||||
|
||||
#: inc/template-functions.php:82
|
||||
msgctxt "monthly archives date format"
|
||||
msgid "F Y"
|
||||
msgstr "F Y"
|
||||
|
||||
#: inc/template-tags.php:46
|
||||
msgid "Posted by"
|
||||
msgstr "Publié par"
|
||||
|
||||
#: inc/template-tags.php:92
|
||||
msgid "Posted in"
|
||||
msgstr "Publié dans"
|
||||
|
||||
#: inc/template-tags.php:104
|
||||
msgid "Tags:"
|
||||
msgstr "Étiquettes :"
|
||||
|
||||
#: inc/template-tags.php:230
|
||||
msgid "Newer posts"
|
||||
msgstr "Articles plus récents"
|
||||
|
||||
#: inc/template-tags.php:234
|
||||
msgid "Older posts"
|
||||
msgstr "Articles plus anciens"
|
||||
|
||||
#: single.php:39
|
||||
msgid "Next post:"
|
||||
msgstr "Article suivant :"
|
||||
|
||||
#: single.php:42
|
||||
msgid "Previous post:"
|
||||
msgstr "Article précédent :"
|
||||
|
||||
#. translators: %s: Post author.
|
||||
#: template-parts/post/author-bio.php:17
|
||||
msgid "Published by %s"
|
||||
msgstr "Publié par %s"
|
||||
|
||||
#: template-parts/post/discussion-meta.php:18
|
||||
msgid "No comments"
|
||||
msgstr "Aucun commentaire"
|
||||
|
||||
#: 404.php:24
|
||||
msgid "It looks like nothing was found at this location. Maybe try a search?"
|
||||
msgstr "Apparemment, rien n’a été trouvé à cette adresse. Essayez avec une recherche ?"
|
||||
|
||||
#: image.php:52 template-parts/content/content-page.php:27
|
||||
#: template-parts/content/content.php:49
|
||||
#: template-parts/content/content-single.php:40
|
||||
msgid "Pages:"
|
||||
msgstr "Pages :"
|
||||
|
||||
#. translators: %s: Post title.
|
||||
#: comments.php:40
|
||||
msgctxt "comments title"
|
||||
msgid "One reply on “%s”"
|
||||
msgstr "Une réponse sur « %s »"
|
||||
|
||||
#. translators: %s: Taxonomy singular name.
|
||||
#: inc/template-functions.php:90
|
||||
msgid "%s Archives:"
|
||||
msgstr "%s archives : "
|
||||
|
||||
#. translators: %s: Post title. Only visible to screen readers.
|
||||
#: inc/template-tags.php:63
|
||||
msgid "Leave a comment<span class=\"screen-reader-text\"> on %s</span>"
|
||||
msgstr "Laisser un commentaire<span class=\"screen-reader-text\"> sur %s</span>"
|
||||
|
||||
#. translators: %d: Number of comments.
|
||||
#: template-parts/post/discussion-meta.php:16
|
||||
msgid "%d Comment"
|
||||
msgid_plural "%d Comments"
|
||||
msgstr[0] "%d commentaire"
|
||||
msgstr[1] "%d commentaires"
|
||||
|
||||
#. translators: 1: Number of comments, 2: Post title.
|
||||
#: comments.php:44
|
||||
msgctxt "comments title"
|
||||
msgid "%1$s reply on “%2$s”"
|
||||
msgid_plural "%1$s replies on “%2$s”"
|
||||
msgstr[0] "%1$s réponse sur « %2$s »"
|
||||
msgstr[1] "%1$s réponses sur « %2$s »"
|
||||
|
||||
#. translators: %s: Comment author link.
|
||||
#: classes/class-twentynineteen-walker-comment.php:59
|
||||
msgid "%s <span class=\"screen-reader-text says\">says:</span>"
|
||||
msgstr "%s <span class=\"screen-reader-text says\">a dit :</span>"
|
||||
|
||||
#: inc/template-functions.php:74
|
||||
msgid "Category Archives: "
|
||||
msgstr "Archives de la catégorie : "
|
||||
|
||||
#: inc/template-functions.php:76
|
||||
msgid "Tag Archives: "
|
||||
msgstr "Archives de l’étiquette : "
|
||||
|
||||
#: inc/template-functions.php:78
|
||||
msgid "Author Archives: "
|
||||
msgstr "Archives de l’auteur : "
|
||||
|
||||
#: inc/template-functions.php:80
|
||||
msgid "Yearly Archives: "
|
||||
msgstr "Archives annuelles : "
|
||||
|
||||
#: inc/template-functions.php:82
|
||||
msgid "Monthly Archives: "
|
||||
msgstr "Archives mensuelles : "
|
||||
|
||||
#: inc/template-functions.php:84
|
||||
msgid "Daily Archives: "
|
||||
msgstr "Archives quotidiennes : "
|
||||
|
||||
#: inc/template-functions.php:86
|
||||
msgid "Post Type Archives: "
|
||||
msgstr "Archives du type de publication : "
|
||||
|
||||
#: template-parts/post/author-bio.php:26
|
||||
msgid "View more posts"
|
||||
msgstr "Voir plus d’articles"
|
||||
|
||||
#. translators: %s: WordPress.
|
||||
#: footer.php:28
|
||||
msgid "Proudly powered by %s."
|
||||
msgstr "Fièrement propulsé par %s."
|
||||
|
||||
#. translators: %s: Post title. Only visible to screen readers.
|
||||
#: template-parts/content/content.php:36
|
||||
#: template-parts/content/content-single.php:27
|
||||
msgid "Continue reading<span class=\"screen-reader-text\"> \"%s\"</span>"
|
||||
msgstr "Continuer la lecture <span class=\"screen-reader-text\"> « %s »</span>"
|
||||
|
||||
#: search.php:22
|
||||
msgid "Search results for: "
|
||||
msgstr "Résultats de recherche pour :"
|
||||
|
||||
#. Theme URI of the theme
|
||||
msgid "https://wordpress.org/themes/twentynineteen/"
|
||||
msgstr "https://fr.wordpress.org/themes/twentynineteen/"
|
||||
|
||||
#. Author of the theme
|
||||
msgid "the WordPress team"
|
||||
msgstr "L’équipe WordPress"
|
||||
|
||||
#. Author URI of the theme
|
||||
#: footer.php:25
|
||||
msgid "https://wordpress.org/"
|
||||
msgstr "https://fr.wordpress.org/"
|
||||
BIN
content/languages/themes/twentyseventeen-fr_FR.mo
Normal file
BIN
content/languages/themes/twentyseventeen-fr_FR.mo
Normal file
Binary file not shown.
336
content/languages/themes/twentyseventeen-fr_FR.po
Normal file
336
content/languages/themes/twentyseventeen-fr_FR.po
Normal file
|
|
@ -0,0 +1,336 @@
|
|||
# Translation of Themes - Twenty Seventeen in French (France)
|
||||
# This file is distributed under the same license as the Themes - Twenty Seventeen package.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"PO-Revision-Date: 2020-05-04 10:28:27+0000\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||
"X-Generator: GlotPress/3.0.0-alpha.2\n"
|
||||
"Language: fr\n"
|
||||
"Project-Id-Version: Themes - Twenty Seventeen\n"
|
||||
|
||||
#. Description of the theme
|
||||
msgid "Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device."
|
||||
msgstr "Twenty Seventeen donne vie à votre site avec un en-tête vidéo et des images mises en avant immersives. En mettant l’accent sur les sites d’entreprises, il offre de multiples sections sur la page d’accueil comme sur les widgets, les menus de navigation et sociaux, un logo et bien plus encore. Personnalisez sa grille asymétrique avec votre propre jeu de couleurs et mettez en valeur vos contenus multimédias avec les formats d’articles. Notre thème par défaut pour 2017 fonctionne dans de nombreuses langues, dans tous les domaines et sur n’importe quel type d’appareils."
|
||||
|
||||
#. Theme Name of the theme
|
||||
msgid "Twenty Seventeen"
|
||||
msgstr "Twenty Seventeen"
|
||||
|
||||
#: template-parts/footer/footer-widgets.php:18
|
||||
msgid "Footer"
|
||||
msgstr "Pied de page"
|
||||
|
||||
#: functions.php:338 sidebar.php:18
|
||||
msgid "Blog Sidebar"
|
||||
msgstr "Colonne latérale du blog"
|
||||
|
||||
#: functions.php:340
|
||||
msgid "Add widgets here to appear in your sidebar on blog posts and archive pages."
|
||||
msgstr "Ajoutez ici des widgets pour les faire apparaître dans votre colonne latérale d’articles de blog ou de pages d’archives."
|
||||
|
||||
#: template-parts/header/site-branding.php:34
|
||||
#: template-parts/navigation/navigation-top.php:31
|
||||
msgid "Scroll down to content"
|
||||
msgstr "Descendre au contenu"
|
||||
|
||||
#: functions.php:181
|
||||
msgctxt "Theme starter content"
|
||||
msgid "Coffee"
|
||||
msgstr "Café"
|
||||
|
||||
#: functions.php:177
|
||||
msgctxt "Theme starter content"
|
||||
msgid "Sandwich"
|
||||
msgstr "Sandwich"
|
||||
|
||||
#: functions.php:173
|
||||
msgctxt "Theme starter content"
|
||||
msgid "Espresso"
|
||||
msgstr "Expresso"
|
||||
|
||||
#: inc/custom-header.php:128
|
||||
msgid "Pause background video"
|
||||
msgstr "Arrière plan vidéo en pause"
|
||||
|
||||
#: inc/custom-header.php:127
|
||||
msgid "Play background video"
|
||||
msgstr "Lecture d’arrière-plan vidéo"
|
||||
|
||||
#: inc/customizer.php:109
|
||||
msgid "When the two-column layout is assigned, the page title is in one column and content is in the other."
|
||||
msgstr "Quand la mise en page en deux colonnes est sélectionnée, le titre de la page est sur une colonne et le contenu sur l’autre."
|
||||
|
||||
#. translators: %s: The section ID.
|
||||
#: inc/template-tags.php:158
|
||||
msgid "Front Page Section %s Placeholder"
|
||||
msgstr "Texte indicatif de la section %s de la page d’accueil"
|
||||
|
||||
#: single.php:34
|
||||
msgid "Next Post"
|
||||
msgstr "Article suivant"
|
||||
|
||||
#: index.php:27
|
||||
msgid "Posts"
|
||||
msgstr "Articles"
|
||||
|
||||
#: inc/template-tags.php:89
|
||||
msgid "Tags"
|
||||
msgstr "Étiquettes"
|
||||
|
||||
#: inc/template-tags.php:85
|
||||
msgid "Categories"
|
||||
msgstr "Catégories"
|
||||
|
||||
#. translators: Used between list items, there is a space after the comma.
|
||||
#: inc/template-tags.php:66
|
||||
msgid ", "
|
||||
msgstr ", "
|
||||
|
||||
#. translators: %s: Post date.
|
||||
#: inc/template-tags.php:52
|
||||
msgid "<span class=\"screen-reader-text\">Posted on</span> %s"
|
||||
msgstr "<span class=\"screen-reader-text\">Publié le</span> %s"
|
||||
|
||||
#. translators: %s: Post author.
|
||||
#: inc/template-tags.php:21
|
||||
msgid "by %s"
|
||||
msgstr "par %s"
|
||||
|
||||
#: inc/icon-functions.php:44
|
||||
msgid "Please define an SVG icon filename."
|
||||
msgstr "Veuillez définir un nom de fichier d’icône SVG."
|
||||
|
||||
#. translators: %d: The front page section number.
|
||||
#: inc/customizer.php:142
|
||||
msgid "Front Page Section %d Content"
|
||||
msgstr "Contenu %d de section de page d’accueil"
|
||||
|
||||
#: inc/customizer.php:112 inc/customizer.php:171
|
||||
msgid "Two Column"
|
||||
msgstr "Deux colonnes"
|
||||
|
||||
#: inc/customizer.php:111 inc/customizer.php:170
|
||||
msgid "One Column"
|
||||
msgstr "Une colonne"
|
||||
|
||||
#: inc/customizer.php:106
|
||||
msgid "Page Layout"
|
||||
msgstr "Mise en page de page"
|
||||
|
||||
#: inc/customizer.php:89
|
||||
msgid "Theme Options"
|
||||
msgstr "Options du thème"
|
||||
|
||||
#: inc/customizer.php:62
|
||||
msgid "Light"
|
||||
msgstr "Clair"
|
||||
|
||||
#: inc/customizer.php:60
|
||||
msgid "Color Scheme"
|
||||
msgstr "Jeu de couleurs"
|
||||
|
||||
#: inc/custom-header.php:56
|
||||
msgid "Default Header Image"
|
||||
msgstr "Image d’en-tête par défaut"
|
||||
|
||||
#: inc/customizer.php:64
|
||||
msgid "Custom"
|
||||
msgstr "Personnalisé"
|
||||
|
||||
#: inc/icon-functions.php:39
|
||||
msgid "Please define default parameters in the form of an array."
|
||||
msgstr "Veuillez définir les paramètres par défaut sous forme d’un tableau."
|
||||
|
||||
#: inc/customizer.php:143
|
||||
msgid "Select pages to feature in each area from the dropdowns. Add an image to a section by setting a featured image in the page editor. Empty sections will not be displayed."
|
||||
msgstr "Sélectionnez les pages à mettre en avant dans chaque zone depuis la liste déroulante. Ajoutez une image à la section en définissant une image mise en avant dans l’éditeur de page. Les sections vides ne s’afficheront pas."
|
||||
|
||||
#: functions.php:362
|
||||
msgid "Footer 2"
|
||||
msgstr "Pied de page 2"
|
||||
|
||||
#: functions.php:352 functions.php:364
|
||||
msgid "Add widgets here to appear in your footer."
|
||||
msgstr "Ajoutez ici des widgets qui apparaîtront dans votre pied de page."
|
||||
|
||||
#: comments.php:62
|
||||
msgid "Reply"
|
||||
msgstr "Répondre"
|
||||
|
||||
#: functions.php:350
|
||||
msgid "Footer 1"
|
||||
msgstr "Pied de page 1"
|
||||
|
||||
#: functions.php:290
|
||||
msgctxt "Libre Franklin font: on or off"
|
||||
msgid "on"
|
||||
msgstr "on"
|
||||
|
||||
#: template-parts/navigation/navigation-top.php:12 functions.php:64
|
||||
#: functions.php:205
|
||||
msgid "Top Menu"
|
||||
msgstr "Menu supérieur"
|
||||
|
||||
#: search.php:59
|
||||
msgid "Sorry, but nothing matched your search terms. Please try again with some different keywords."
|
||||
msgstr "Désolé, mais rien ne correspond à votre recherche. Veuillez réessayer avec des mots différents."
|
||||
|
||||
#: template-parts/post/content-none.php:17 search.php:26
|
||||
msgid "Nothing Found"
|
||||
msgstr "Aucun résultat"
|
||||
|
||||
#: single.php:33 comments.php:71
|
||||
msgid "Previous"
|
||||
msgstr "Précédent"
|
||||
|
||||
#: single.php:34 comments.php:72
|
||||
msgid "Next"
|
||||
msgstr "Suivant"
|
||||
|
||||
#: template-parts/post/content-none.php:33
|
||||
msgid "It seems we can’t find what you’re looking for. Perhaps searching can help."
|
||||
msgstr "Il semble que ce que vous cherchez est introuvable. Essayez avec une recherche."
|
||||
|
||||
#: searchform.php:19
|
||||
msgctxt "placeholder"
|
||||
msgid "Search …"
|
||||
msgstr "Recherche…"
|
||||
|
||||
#: searchform.php:20
|
||||
msgctxt "submit button"
|
||||
msgid "Search"
|
||||
msgstr "Recherche"
|
||||
|
||||
#: single.php:33
|
||||
msgid "Previous Post"
|
||||
msgstr "Article précédent"
|
||||
|
||||
#. translators: %s: Post editor URL.
|
||||
#: template-parts/post/content-none.php:27
|
||||
msgid "Ready to publish your first post? <a href=\"%s\">Get started here</a>."
|
||||
msgstr "Prêt⋅e à publier votre premier article ? <a href=\"%s\">Commencez ici</a>."
|
||||
|
||||
#: template-parts/post/content.php:64 template-parts/post/content-audio.php:91
|
||||
#: template-parts/post/content-image.php:68
|
||||
#: template-parts/post/content-video.php:90
|
||||
#: template-parts/post/content-gallery.php:78
|
||||
#: template-parts/page/content-page.php:26
|
||||
msgid "Pages:"
|
||||
msgstr "Pages :"
|
||||
|
||||
#: template-parts/navigation/navigation-top.php:17
|
||||
msgid "Menu"
|
||||
msgstr "Menu"
|
||||
|
||||
#: header.php:28
|
||||
msgid "Skip to content"
|
||||
msgstr "Aller au contenu principal"
|
||||
|
||||
#: functions.php:65 functions.php:216
|
||||
msgid "Social Links Menu"
|
||||
msgstr "Menu des liens de réseaux sociaux"
|
||||
|
||||
#: comments.php:82
|
||||
msgid "Comments are closed."
|
||||
msgstr "Les commentaires sont fermés."
|
||||
|
||||
#: index.php:55 archive.php:51 search.php:52
|
||||
msgid "Page"
|
||||
msgstr "Page"
|
||||
|
||||
#: index.php:54 archive.php:50 search.php:51
|
||||
msgid "Next page"
|
||||
msgstr "Page suivante"
|
||||
|
||||
#: 404.php:24
|
||||
msgid "It looks like nothing was found at this location. Maybe try a search?"
|
||||
msgstr "Apparemment, rien n’a été trouvé à cette adresse. Essayez avec une recherche ?"
|
||||
|
||||
#: index.php:53 archive.php:49 search.php:50
|
||||
msgid "Previous page"
|
||||
msgstr "Page précédente"
|
||||
|
||||
#: inc/customizer.php:63
|
||||
msgid "Dark"
|
||||
msgstr "Foncé"
|
||||
|
||||
#. translators: %s: WordPress
|
||||
#: template-parts/footer/site-info.php:21
|
||||
msgid "Proudly powered by %s"
|
||||
msgstr "Fièrement propulsé par %s"
|
||||
|
||||
#: searchform.php:17
|
||||
msgctxt "label"
|
||||
msgid "Search for:"
|
||||
msgstr "Recherche pour :"
|
||||
|
||||
#. translators: %s: Post title.
|
||||
#: inc/template-tags.php:117
|
||||
msgid "Edit<span class=\"screen-reader-text\"> \"%s\"</span>"
|
||||
msgstr "Modifier<span class=\"screen-reader-text\"> \"%s\"</span>"
|
||||
|
||||
#. translators: %s: Post title.
|
||||
#: template-parts/post/content.php:57 template-parts/post/content-audio.php:84
|
||||
#: template-parts/post/content-image.php:61
|
||||
#: template-parts/post/content-video.php:83
|
||||
#: template-parts/post/content-gallery.php:71
|
||||
#: template-parts/page/content-front-page.php:42
|
||||
#: template-parts/page/content-front-page-panels.php:45 functions.php:392
|
||||
msgid "Continue reading<span class=\"screen-reader-text\"> \"%s\"</span>"
|
||||
msgstr "Continuer la lecture<span class=\"screen-reader-text\"> de « %s »</span>"
|
||||
|
||||
#: functions.php:484
|
||||
msgid "Collapse child menu"
|
||||
msgstr "Fermer le sous-menu"
|
||||
|
||||
#: functions.php:483
|
||||
msgid "Expand child menu"
|
||||
msgstr "Ouvrir le sous-menu"
|
||||
|
||||
#: footer.php:26
|
||||
msgid "Footer Social Links Menu"
|
||||
msgstr "Menu de liens sociaux de pied de page"
|
||||
|
||||
#. translators: 1: Number of comments, 2: Post title.
|
||||
#: comments.php:41
|
||||
msgctxt "comments title"
|
||||
msgid "%1$s Reply to “%2$s”"
|
||||
msgid_plural "%1$s Replies to “%2$s”"
|
||||
msgstr[0] "%1$s réponse sur “%2$s”"
|
||||
msgstr[1] "%1$s réponses sur “%2$s”"
|
||||
|
||||
#: 404.php:21
|
||||
msgid "Oops! That page can’t be found."
|
||||
msgstr "Aie ! Cette page est introuvable."
|
||||
|
||||
#. translators: %s: The current WordPress version.
|
||||
#: inc/back-compat.php:40 inc/back-compat.php:54 inc/back-compat.php:73
|
||||
msgid "Twenty Seventeen requires at least WordPress version 4.7. You are running version %s. Please upgrade and try again."
|
||||
msgstr "Twenty Seventeen ne fonctionne qu’à partir de WordPress 4.7. Vous utilisez la version %s. Veuillez mettre à niveau et réessayer."
|
||||
|
||||
#. translators: Search query.
|
||||
#: search.php:22
|
||||
msgid "Search Results for: %s"
|
||||
msgstr "Résultats de recherche pour : %s"
|
||||
|
||||
#. translators: %s: Post title.
|
||||
#: comments.php:37
|
||||
msgctxt "comments title"
|
||||
msgid "One Reply to “%s”"
|
||||
msgstr "Une réponse sur “%s”"
|
||||
|
||||
#. Theme URI of the theme
|
||||
msgid "https://wordpress.org/themes/twentyseventeen/"
|
||||
msgstr "https://wordpress.org/themes/twentyseventeen/"
|
||||
|
||||
#. Author of the theme
|
||||
msgid "the WordPress team"
|
||||
msgstr "l’équipe WordPress"
|
||||
|
||||
#. Author URI of the theme
|
||||
#: template-parts/footer/site-info.php:18
|
||||
msgid "https://wordpress.org/"
|
||||
msgstr "https://wordpress.org/"
|
||||
BIN
content/languages/themes/twentysixteen-fr_FR.mo
Normal file
BIN
content/languages/themes/twentysixteen-fr_FR.mo
Normal file
Binary file not shown.
370
content/languages/themes/twentysixteen-fr_FR.po
Normal file
370
content/languages/themes/twentysixteen-fr_FR.po
Normal file
|
|
@ -0,0 +1,370 @@
|
|||
# Translation of Themes - Twenty Sixteen in French (France)
|
||||
# This file is distributed under the same license as the Themes - Twenty Sixteen package.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"PO-Revision-Date: 2020-01-23 19:45:51+0000\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||
"X-Generator: GlotPress/3.0.0-alpha.2\n"
|
||||
"Language: fr\n"
|
||||
"Project-Id-Version: Themes - Twenty Sixteen\n"
|
||||
|
||||
#. Theme Name of the theme
|
||||
msgid "Twenty Sixteen"
|
||||
msgstr "Twenty Sixteen"
|
||||
|
||||
#. Description of the theme
|
||||
msgid "Twenty Sixteen is a modernized take on an ever-popular WordPress layout — the horizontal masthead with an optional right sidebar that works perfectly for blogs and websites. It has custom color options with beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail. Twenty Sixteen will make your WordPress look beautiful everywhere."
|
||||
msgstr "Twenty Sixteen revisite en la modernisant une mise en page WordPress toujours aussi populaire : l’entête horizontal avec une barre latérale facultative, qui fonctionne tout aussi bien pour les blogs que pour les sites. Il dispose d'options de couleurs avec de superbes jeux de couleurs par défaut, une composition en grille fluide et harmonieuse utilisant l'approche \"mobile-first\", et un soin apporté jusque dans les moindres détails. Twenty Sixteen vous donnera un site WordPress magnifique dans toutes les situations."
|
||||
|
||||
#: functions.php:204
|
||||
msgid "Bright Red"
|
||||
msgstr "Rouge brillant"
|
||||
|
||||
#: functions.php:199
|
||||
msgid "Dark Red"
|
||||
msgstr "Rouge foncé"
|
||||
|
||||
#: functions.php:194
|
||||
msgid "Medium Brown"
|
||||
msgstr "Marron moyen"
|
||||
|
||||
#: functions.php:189
|
||||
msgid "Dark Brown"
|
||||
msgstr "Marron foncé"
|
||||
|
||||
#: functions.php:184
|
||||
msgid "Light Blue"
|
||||
msgstr "Bleu clair"
|
||||
|
||||
#: functions.php:179
|
||||
msgid "Bright Blue"
|
||||
msgstr "Bleu brillant"
|
||||
|
||||
#: functions.php:174
|
||||
msgid "Blue Gray"
|
||||
msgstr "Bleu gris"
|
||||
|
||||
#: functions.php:169
|
||||
msgid "White"
|
||||
msgstr "Blanc"
|
||||
|
||||
#: functions.php:164
|
||||
msgid "Light Gray"
|
||||
msgstr "Gris clair"
|
||||
|
||||
#: functions.php:159
|
||||
msgid "Medium Gray"
|
||||
msgstr "Gris moyen"
|
||||
|
||||
#: functions.php:154
|
||||
msgid "Dark Gray"
|
||||
msgstr "Gris foncé"
|
||||
|
||||
#. translators: %s: Post title.
|
||||
#: template-parts/content.php:29 inc/template-tags.php:195
|
||||
msgid "Continue reading<span class=\"screen-reader-text\"> \"%s\"</span>"
|
||||
msgstr "Continuer la lecture<span class=\"screen-reader-text\"> de « %s »</span>"
|
||||
|
||||
#. translators: %s: Post title.
|
||||
#: image.php:88 template-parts/content-page.php:39
|
||||
#: template-parts/content.php:53 template-parts/content-search.php:28
|
||||
#: template-parts/content-search.php:43 template-parts/content-single.php:47
|
||||
msgid "Edit<span class=\"screen-reader-text\"> \"%s\"</span>"
|
||||
msgstr "Modifier<span class=\"screen-reader-text\"> \"%s\"</span>"
|
||||
|
||||
#: inc/customizer.php:345
|
||||
msgid "Red"
|
||||
msgstr "Rouge"
|
||||
|
||||
#. translators: %s: Post title.
|
||||
#: comments.php:31
|
||||
msgctxt "comments title"
|
||||
msgid "One thought on “%s”"
|
||||
msgstr "Une réflexion sur « %s »"
|
||||
|
||||
#: searchform.php:16
|
||||
msgctxt "submit button"
|
||||
msgid "Search"
|
||||
msgstr "Recherche"
|
||||
|
||||
#: searchform.php:14
|
||||
msgctxt "placeholder"
|
||||
msgid "Search …"
|
||||
msgstr "Recherche…"
|
||||
|
||||
#: searchform.php:13
|
||||
msgctxt "label"
|
||||
msgid "Search for:"
|
||||
msgstr "Recherche pour :"
|
||||
|
||||
#: footer.php:30
|
||||
msgid "Footer Social Links Menu"
|
||||
msgstr "Menu de liens sociaux de pied"
|
||||
|
||||
#: footer.php:17
|
||||
msgid "Footer Primary Menu"
|
||||
msgstr "Menu principal de pied"
|
||||
|
||||
#: functions.php:269
|
||||
msgid "Add widgets here to appear in your sidebar."
|
||||
msgstr "Ajoutez des widgets ici pour les faire apparaître dans votre barre latérale."
|
||||
|
||||
#: template-parts/content.php:14
|
||||
msgid "Featured"
|
||||
msgstr "Mise en avant"
|
||||
|
||||
#: template-parts/content-none.php:33
|
||||
msgid "It seems we can’t find what you’re looking for. Perhaps searching can help."
|
||||
msgstr "Il semble que ce que vous cherchez est introuvable. Essayez avec une recherche."
|
||||
|
||||
#: template-parts/content-none.php:28
|
||||
msgid "Sorry, but nothing matched your search terms. Please try again with some different keywords."
|
||||
msgstr "Désolé, mais rien ne correspond à votre recherche. Veuillez réessayer avec des mots différents."
|
||||
|
||||
#. translators: %s: Post editor URL.
|
||||
#: template-parts/content-none.php:22
|
||||
msgid "Ready to publish your first post? <a href=\"%1$s\">Get started here</a>."
|
||||
msgstr "Prêt(e) à publier votre premier article ? <a href=\"%1$s\">Lancez-vous ici</a>."
|
||||
|
||||
#: template-parts/content-none.php:13
|
||||
msgid "Nothing Found"
|
||||
msgstr "Aucun résultat"
|
||||
|
||||
#. translators: %s: The post author display name.
|
||||
#: template-parts/biography.php:35
|
||||
msgid "View all posts by %s"
|
||||
msgstr "Afficher tous les articles par %s"
|
||||
|
||||
#: template-parts/biography.php:28
|
||||
msgid "Author:"
|
||||
msgstr "Auteur :"
|
||||
|
||||
#: single.php:42
|
||||
msgid "Previous post:"
|
||||
msgstr "Article précédent :"
|
||||
|
||||
#: single.php:41
|
||||
msgid "Previous"
|
||||
msgstr "Précédent"
|
||||
|
||||
#: single.php:39
|
||||
msgid "Next post:"
|
||||
msgstr "Article suivant :"
|
||||
|
||||
#: single.php:38
|
||||
msgid "Next"
|
||||
msgstr "Suivant"
|
||||
|
||||
#. translators: %s: The search query.
|
||||
#: search.php:21
|
||||
msgid "Search Results for: %s"
|
||||
msgstr "Résultats de recherche pour : %s"
|
||||
|
||||
#: inc/template-tags.php:113
|
||||
msgctxt "Used before tag names."
|
||||
msgid "Tags"
|
||||
msgstr "Étiquettes"
|
||||
|
||||
#: inc/template-tags.php:104
|
||||
msgctxt "Used before category names."
|
||||
msgid "Categories"
|
||||
msgstr "Catégories"
|
||||
|
||||
#: inc/template-tags.php:100 inc/template-tags.php:109
|
||||
msgctxt "Used between list items, there is a space after the comma."
|
||||
msgid ", "
|
||||
msgstr ", "
|
||||
|
||||
#: inc/template-tags.php:84
|
||||
msgctxt "Used before publish date."
|
||||
msgid "Posted on"
|
||||
msgstr "Publié le"
|
||||
|
||||
#: inc/template-tags.php:40
|
||||
msgctxt "Used before post format."
|
||||
msgid "Format"
|
||||
msgstr "Format"
|
||||
|
||||
#. translators: %s: Post title.
|
||||
#: inc/template-tags.php:53
|
||||
msgid "Leave a comment<span class=\"screen-reader-text\"> on %s</span>"
|
||||
msgstr "Laisser un commentaire<span class=\"screen-reader-text\"> sur %s</span>"
|
||||
|
||||
#: inc/template-tags.php:26
|
||||
msgctxt "Used before post author name."
|
||||
msgid "Author"
|
||||
msgstr "Auteur"
|
||||
|
||||
#: functions.php:209 inc/customizer.php:355
|
||||
msgid "Yellow"
|
||||
msgstr "Jaune"
|
||||
|
||||
#: inc/customizer.php:335
|
||||
msgid "Gray"
|
||||
msgstr "Gris"
|
||||
|
||||
#: inc/customizer.php:325
|
||||
msgid "Dark"
|
||||
msgstr "Foncé"
|
||||
|
||||
#: inc/customizer.php:221
|
||||
msgid "Main Text Color"
|
||||
msgstr "Couleur du texte principal"
|
||||
|
||||
#: inc/customizer.php:315
|
||||
msgid "Default"
|
||||
msgstr "Par défaut"
|
||||
|
||||
#: inc/customizer.php:242
|
||||
msgid "Secondary Text Color"
|
||||
msgstr "Seconde couleur du texte"
|
||||
|
||||
#: inc/customizer.php:200
|
||||
msgid "Link Color"
|
||||
msgstr "Couleur des liens"
|
||||
|
||||
#: inc/customizer.php:176
|
||||
msgid "Page Background Color"
|
||||
msgstr "Couleur du fond de page"
|
||||
|
||||
#: single.php:31 image.php:107
|
||||
msgctxt "Parent post link"
|
||||
msgid "<span class=\"meta-nav\">Published in</span><span class=\"post-title\">%title</span>"
|
||||
msgstr "<span class=\"meta-nav\">Publié dans</span><span class=\"post-title\">%title</span>"
|
||||
|
||||
#. translators: %s: The current WordPress version.
|
||||
#: inc/back-compat.php:42 inc/back-compat.php:56 inc/back-compat.php:75
|
||||
msgid "Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again."
|
||||
msgstr "Twenty Sixteen ne fonctionne qu'à partir de WordPress 4.4. Vous utilisez la version %s. Veuillez mettre à jour et réessayer. "
|
||||
|
||||
#: inc/customizer.php:153
|
||||
msgid "Base Color Scheme"
|
||||
msgstr "Jeu de couleurs de base"
|
||||
|
||||
#: image.php:77
|
||||
msgctxt "Used before full size attachment link."
|
||||
msgid "Full size"
|
||||
msgstr "Taille réelle"
|
||||
|
||||
#: image.php:58 template-parts/content-page.php:24
|
||||
#: template-parts/content.php:36 template-parts/content-single.php:26
|
||||
msgid "Pages:"
|
||||
msgstr "Pages :"
|
||||
|
||||
#: image.php:26
|
||||
msgid "Next Image"
|
||||
msgstr "Image suivante"
|
||||
|
||||
#: image.php:25
|
||||
msgid "Previous Image"
|
||||
msgstr "Image précédente"
|
||||
|
||||
#: header.php:50
|
||||
msgid "Menu"
|
||||
msgstr "Menu"
|
||||
|
||||
#: header.php:28
|
||||
msgid "Skip to content"
|
||||
msgstr "Aller au contenu"
|
||||
|
||||
#: functions.php:419
|
||||
msgid "expand child menu"
|
||||
msgstr "ouvrir le sous-menu"
|
||||
|
||||
#: functions.php:420
|
||||
msgid "collapse child menu"
|
||||
msgstr "fermer le sous-menu"
|
||||
|
||||
#: functions.php:338
|
||||
msgctxt "Inconsolata font: on or off"
|
||||
msgid "on"
|
||||
msgstr "on"
|
||||
|
||||
#: functions.php:279
|
||||
msgid "Content Bottom 1"
|
||||
msgstr "Contenu inférieur 1"
|
||||
|
||||
#: functions.php:281 functions.php:293
|
||||
msgid "Appears at the bottom of the content on posts and pages."
|
||||
msgstr "S’affiche en bas du contenu des articles et des pages."
|
||||
|
||||
#: functions.php:291
|
||||
msgid "Content Bottom 2"
|
||||
msgstr "Contenu inférieur 2"
|
||||
|
||||
#: functions.php:322
|
||||
msgctxt "Merriweather font: on or off"
|
||||
msgid "on"
|
||||
msgstr "on"
|
||||
|
||||
#: functions.php:330
|
||||
msgctxt "Montserrat font: on or off"
|
||||
msgid "on"
|
||||
msgstr "on"
|
||||
|
||||
#: functions.php:267
|
||||
msgid "Sidebar"
|
||||
msgstr "Barre latérale"
|
||||
|
||||
#: functions.php:93 header.php:67
|
||||
msgid "Social Links Menu"
|
||||
msgstr "Menu des liens de réseaux sociaux"
|
||||
|
||||
#: functions.php:92 header.php:54
|
||||
msgid "Primary Menu"
|
||||
msgstr "Menu principal"
|
||||
|
||||
#. translators: %s: WordPress
|
||||
#: footer.php:63
|
||||
msgid "Proudly powered by %s"
|
||||
msgstr "Fièrement propulsé par %s"
|
||||
|
||||
#: comments.php:71
|
||||
msgid "Comments are closed."
|
||||
msgstr "Les commentaires sont fermés."
|
||||
|
||||
#. translators: 1: Number of comments, 2: Post title.
|
||||
#: comments.php:35
|
||||
msgctxt "comments title"
|
||||
msgid "%1$s thought on “%2$s”"
|
||||
msgid_plural "%1$s thoughts on “%2$s”"
|
||||
msgstr[0] "%1$s réflexion sur « %2$s »"
|
||||
msgstr[1] "%1$s réflexions sur « %2$s »"
|
||||
|
||||
#: image.php:62 template-parts/content-page.php:28
|
||||
#: template-parts/content.php:40 template-parts/content-single.php:30
|
||||
#: search.php:46 archive.php:54 index.php:51
|
||||
msgid "Page"
|
||||
msgstr "Page"
|
||||
|
||||
#: search.php:45 archive.php:53 index.php:50
|
||||
msgid "Next page"
|
||||
msgstr "Page suivante"
|
||||
|
||||
#: search.php:44 archive.php:52 index.php:49
|
||||
msgid "Previous page"
|
||||
msgstr "Page précédente"
|
||||
|
||||
#: 404.php:21
|
||||
msgid "It looks like nothing was found at this location. Maybe try a search?"
|
||||
msgstr "Apparemment, rien n’a été trouvé à cette adresse. Essayez avec une recherche ?"
|
||||
|
||||
#: 404.php:17
|
||||
msgid "Oops! That page can’t be found."
|
||||
msgstr "Oups ! Cette page est introuvable."
|
||||
|
||||
#. Theme URI of the theme
|
||||
msgid "https://wordpress.org/themes/twentysixteen/"
|
||||
msgstr "https://wordpress.org/themes/twentysixteen/"
|
||||
|
||||
#. Author of the theme
|
||||
msgid "the WordPress team"
|
||||
msgstr "l'équipe WordPress"
|
||||
|
||||
#. Author URI of the theme
|
||||
#: footer.php:60
|
||||
msgid "https://wordpress.org/"
|
||||
msgstr "https://wordpress.org/"
|
||||
BIN
content/languages/themes/twentytwenty-fr_FR.mo
Normal file
BIN
content/languages/themes/twentytwenty-fr_FR.mo
Normal file
Binary file not shown.
537
content/languages/themes/twentytwenty-fr_FR.po
Normal file
537
content/languages/themes/twentytwenty-fr_FR.po
Normal file
|
|
@ -0,0 +1,537 @@
|
|||
# Translation of Themes - Twenty Twenty in French (France)
|
||||
# This file is distributed under the same license as the Themes - Twenty Twenty package.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"PO-Revision-Date: 2020-05-04 10:25:06+0000\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n > 1;\n"
|
||||
"X-Generator: GlotPress/3.0.0-alpha.2\n"
|
||||
"Language: fr\n"
|
||||
"Project-Id-Version: Themes - Twenty Twenty\n"
|
||||
|
||||
#. Description of the theme
|
||||
msgid "Our default theme for 2020 is designed to take full advantage of the flexibility of the block editor. Organizations and businesses have the ability to create dynamic landing pages with endless layouts using the group and column blocks. The centered content column and fine-tuned typography also makes it perfect for traditional blogs. Complete editor styles give you a good idea of what your content will look like, even before you publish. You can give your site a personal touch by changing the background colors and the accent color in the Customizer. The colors of all elements on your site are automatically calculated based on the colors you pick, ensuring a high, accessible color contrast for your visitors."
|
||||
msgstr "Notre thème par défaut pour 2020 est conçu pour tirer pleinement parti de la flexibilité de l'éditeur de bloc. Les organisations et les entreprises ont la possibilité de créer des pages d’atterrissage dynamiques avec des mises en page sans fin à l'aide des blocs de groupe et de colonne. La colonne de contenu centrée et la typographie affinée le rendent également parfait pour les blogs traditionnels. Les styles complets de l’éditeur vous donnent une bonne idée de ce à quoi votre contenu ressemblera, avant même de publier. Vous pouvez donner à votre site une touche personnelle en changeant les couleurs d’arrière-plan et la couleur accentuée dans l’outil de personnalisation. Les couleurs de tous les éléments de votre site sont automatiquement calculées en fonction des couleurs que vous choisissez, assurant un contraste de couleurs élevé et accessible pour vos visiteurs."
|
||||
|
||||
#. Theme Name of the theme
|
||||
msgid "Twenty Twenty"
|
||||
msgstr "Twenty Twenty"
|
||||
|
||||
#: classes/class-twentytwenty-customize.php:246
|
||||
msgid "Show author bio"
|
||||
msgstr "Afficher la bio de l’auteur"
|
||||
|
||||
#: inc/starter-content.php:38
|
||||
msgctxt "Theme starter content"
|
||||
msgid "The New UMoMA Opens its Doors"
|
||||
msgstr "Le nouveau E-Mucem ouvre ses portes"
|
||||
|
||||
#: template-parts/entry-author-bio.php:29
|
||||
msgid "View Archive <span aria-hidden=\"true\">→</span>"
|
||||
msgstr "Voir l’archive <span aria-hidden=\"true\">→</span>"
|
||||
|
||||
#: inc/template-tags.php:393
|
||||
msgctxt "A string that is output before one or more categories"
|
||||
msgid "In"
|
||||
msgstr "Dans"
|
||||
|
||||
#: inc/starter-content.php:150
|
||||
msgid "Join the Club"
|
||||
msgstr "Rejoignez le club"
|
||||
|
||||
#: inc/starter-content.php:144
|
||||
msgid "Become a Member and Get Exclusive Offers!"
|
||||
msgstr "Devenez membre et obtenez des offres exclusives !"
|
||||
|
||||
#: inc/starter-content.php:113
|
||||
msgid "From Signac to Matisse"
|
||||
msgstr "De Signac à Matisse"
|
||||
|
||||
#: inc/starter-content.php:98
|
||||
msgid "The Life I Deserve"
|
||||
msgstr "La vie que je mérite"
|
||||
|
||||
#: inc/starter-content.php:84 inc/starter-content.php:116
|
||||
msgid "October 1 -- December 1"
|
||||
msgstr "1er octobre au 1er décembre"
|
||||
|
||||
#: inc/starter-content.php:81
|
||||
msgid "Theatre of Operations"
|
||||
msgstr "Théâtre des opérations"
|
||||
|
||||
#: inc/starter-content.php:69 inc/starter-content.php:101
|
||||
msgid "August 1 -- December 1"
|
||||
msgstr "1er août au 1er décembre"
|
||||
|
||||
#: classes/class-twentytwenty-customize.php:375
|
||||
msgid "The color used for the text in the overlay."
|
||||
msgstr "La couleur utilisée pour le texte de la superposition."
|
||||
|
||||
#: classes/class-twentytwenty-customize.php:374
|
||||
msgid "Overlay Text Color"
|
||||
msgstr "Couleur du texte de superposition"
|
||||
|
||||
#: classes/class-twentytwenty-customize.php:353
|
||||
msgid "The color used for the overlay. Defaults to the accent color."
|
||||
msgstr "La couleur utilisée pour la superposition. La couleur par défaut est la couleur d'accentuation."
|
||||
|
||||
#: classes/class-twentytwenty-customize.php:352
|
||||
msgid "Overlay Background Color"
|
||||
msgstr "Couleur de superposition de l’arrière-plan"
|
||||
|
||||
#: classes/class-twentytwenty-customize.php:126
|
||||
msgid "Custom"
|
||||
msgstr "Personnalisé"
|
||||
|
||||
#: classes/class-twentytwenty-customize.php:125
|
||||
msgid "Default"
|
||||
msgstr "Par défaut"
|
||||
|
||||
#: classes/class-twentytwenty-customize.php:123
|
||||
msgid "Primary Color"
|
||||
msgstr "Couleur principale"
|
||||
|
||||
#: inc/starter-content.php:147
|
||||
msgid "Members get access to exclusive exhibits and sales. Our memberships cost $99.99 and are billed annually."
|
||||
msgstr "Les adhérent·es ont accès à des expositions et des ventes exclusives. Notre abonnement coûtent $99.99 et est facturé annuellement."
|
||||
|
||||
#: inc/starter-content.php:66
|
||||
msgid "Works and Days"
|
||||
msgstr "Travaux et jours"
|
||||
|
||||
#: inc/starter-content.php:55
|
||||
msgid "The premier destination for modern art in Northern Sweden. Open from 10 AM to 6 PM every day during the summer months."
|
||||
msgstr "La première destination pour l’art moderne dans le nord de la Suède. Ouvert de 10h à 18h tous les jours pendant les mois d’été."
|
||||
|
||||
#: classes/class-twentytwenty-customize.php:183
|
||||
msgid "Apply a custom color for links, buttons, featured images."
|
||||
msgstr "Appliquer une couleur personnalisée aux boutons, liens, images mises en avant."
|
||||
|
||||
#: inc/starter-content.php:47
|
||||
msgid "The New UMoMA Opens its Doors"
|
||||
msgstr "Le nouveau E-Mucem ouvre ses portes"
|
||||
|
||||
#: classes/class-twentytwenty-customize.php:283
|
||||
msgid "Settings for the \"Cover Template\" page template. Add a featured image to use as background."
|
||||
msgstr "Réglages pour le modèle de page « Modèle avec bannière ». Utilise une image mise en avant en tant qu’arrière-plan."
|
||||
|
||||
#: inc/starter-content.php:136
|
||||
msgid "The exhibitions are produced by UMoMA in collaboration with artists and museums around the world and they often attract international attention. UMoMA has received a Special Commendation from the European Museum of the Year, and was among the top candidates for the Swedish Museum of the Year Award as well as for the Council of Europe Museum Prize."
|
||||
msgstr "Les expositions sont produites par le E-Mucem en collaboration avec des artistes et des musées du monde entier et attirent souvent l’attention internationale. Le E-Mucem a reçu une mention spéciale du Musée européen de l’année et a été l’un des meilleurs candidats pour le Prix du Musée méditerranéen de l’année ainsi que pour le Prix du Musée du Conseil de l’Europe."
|
||||
|
||||
#: inc/starter-content.php:133
|
||||
msgid "With seven floors of striking architecture, UMoMA shows exhibitions of international contemporary art, sometimes along with art historical retrospectives. Existential, political and philosophical issues are intrinsic to our programme. As visitor you are invited to guided tours artist talks, lectures, film screenings and other events with free admission"
|
||||
msgstr "Avec ses sept étages d’architecture remarquable, le E-Mucem présente des expositions d’art contemporain international, parfois accompagnées de rétrospectives sur l’histoire de l’art. Les questions existentielles, politiques et philosophiques font partie intégrante de notre programme. En tant que visiteur, vous êtes invité à des visites guidées, des conférences, des projections de films et d’autres évènements avec entrée gratuite."
|
||||
|
||||
#: inc/starter-content.php:72 inc/starter-content.php:87
|
||||
#: inc/starter-content.php:104 inc/starter-content.php:119
|
||||
msgid "Read More"
|
||||
msgstr "Lire la suite"
|
||||
|
||||
#: inc/starter-content.php:129
|
||||
msgid "“Cyborgs, as the philosopher Donna Haraway established, are not reverent. They do not remember the cosmos.”"
|
||||
msgstr "« Les cyborgs, comme l’a fait remarquer la philosophe Donna Haraway, ne sont pas respectueux. Ils ne se souviennent pas du cosmos. »"
|
||||
|
||||
#: classes/class-twentytwenty-customize.php:395
|
||||
msgid "Overlay Opacity"
|
||||
msgstr "Opacité de la superposition"
|
||||
|
||||
#: searchform.php:24 template-parts/modal-search.php:20
|
||||
msgid "Search for:"
|
||||
msgstr "Rechercher :"
|
||||
|
||||
#: index.php:99
|
||||
msgid "search again"
|
||||
msgstr "chercher à nouveau"
|
||||
|
||||
#. translators: %s: HTML character for up arrow.
|
||||
#: footer.php:49
|
||||
msgid "Up %s"
|
||||
msgstr "Haut %s"
|
||||
|
||||
#. translators: %s: HTML character for up arrow.
|
||||
#: footer.php:43
|
||||
msgid "To the top %s"
|
||||
msgstr "Vers le haut %s"
|
||||
|
||||
#. translators: Copyright date format, see https://www.php.net/date
|
||||
#: footer.php:25
|
||||
msgctxt "copyright date format"
|
||||
msgid "Y"
|
||||
msgstr "Y"
|
||||
|
||||
#: 404.php:24
|
||||
msgid "404 not found"
|
||||
msgstr "404 non trouvé"
|
||||
|
||||
#. translators: %s: Number of search results.
|
||||
#: index.php:39
|
||||
msgid "We found %s result for your search."
|
||||
msgid_plural "We found %s results for your search."
|
||||
msgstr[0] "Nous avons trouvé %s résultat pour votre recherche."
|
||||
msgstr[1] "Nous avons trouvé %s résultats pour votre recherche."
|
||||
|
||||
#. translators: 1: Comment date, 2: Comment time.
|
||||
#: classes/class-twentytwenty-walker-comment.php:69
|
||||
msgid "%1$s at %2$s"
|
||||
msgstr "%1$s à %2$s"
|
||||
|
||||
#: classes/class-twentytwenty-walker-comment.php:77
|
||||
msgid "Edit"
|
||||
msgstr "Modifier"
|
||||
|
||||
#: classes/class-twentytwenty-walker-comment.php:92
|
||||
msgid "Your comment is awaiting moderation."
|
||||
msgstr "Votre commentaire est en attente de modération."
|
||||
|
||||
#: comments.php:34
|
||||
msgid "Leave a comment"
|
||||
msgstr "Laisser un commentaire"
|
||||
|
||||
#. translators: %s: Post title.
|
||||
#: comments.php:37
|
||||
msgctxt "comments title"
|
||||
msgid "One reply on “%s”"
|
||||
msgstr "Une réponse sur « %s »"
|
||||
|
||||
#. translators: 1: Number of comments, 2: Post title.
|
||||
#: comments.php:41
|
||||
msgctxt "comments title"
|
||||
msgid "%1$s reply on “%2$s”"
|
||||
msgid_plural "%1$s replies on “%2$s”"
|
||||
msgstr[0] "%1$s réponse sur « %2$s »"
|
||||
msgstr[1] "%1$s réponses sur « %2$s »"
|
||||
|
||||
#: comments.php:88
|
||||
msgid "Comments"
|
||||
msgstr "Commentaires"
|
||||
|
||||
#: comments.php:127
|
||||
msgid "Comments are closed."
|
||||
msgstr "Les commentaires sont fermés."
|
||||
|
||||
#: inc/starter-content.php:176 inc/starter-content.php:186 functions.php:492
|
||||
msgid "Primary"
|
||||
msgstr "Principal"
|
||||
|
||||
#: inc/starter-content.php:196
|
||||
msgid "Social Links Menu"
|
||||
msgstr "Menu des liens de réseaux sociaux"
|
||||
|
||||
#. translators: %s: Post title. Only visible to screen readers.
|
||||
#: inc/template-tags.php:206
|
||||
msgid "Edit <span class=\"screen-reader-text\">%s</span>"
|
||||
msgstr "Modifier <span class=\"screen-reader-text\">%s</span>"
|
||||
|
||||
#: functions.php:261
|
||||
msgid "Footer Menu"
|
||||
msgstr "Menu du pied de page"
|
||||
|
||||
#: template-parts/content-cover.php:138 template-parts/content.php:48
|
||||
msgid "Pages:"
|
||||
msgstr "Pages :"
|
||||
|
||||
#: template-parts/footer-menus-widgets.php:37
|
||||
msgid "Footer"
|
||||
msgstr "Pied de page"
|
||||
|
||||
#: template-parts/content-cover.php:138 template-parts/content.php:48
|
||||
msgid "Page"
|
||||
msgstr "Page"
|
||||
|
||||
#: functions.php:497
|
||||
msgid "Secondary"
|
||||
msgstr "Secondaire"
|
||||
|
||||
#. Template Name of the theme
|
||||
msgid "Full Width Template"
|
||||
msgstr "Modèle pleine largeur"
|
||||
|
||||
#: template-parts/navigation.php:25
|
||||
msgid "Post"
|
||||
msgstr "Article"
|
||||
|
||||
#: template-parts/modal-search.php:26
|
||||
msgid "Close search"
|
||||
msgstr "Fermer la recherche"
|
||||
|
||||
#: template-parts/modal-menu.php:73
|
||||
msgid "Mobile"
|
||||
msgstr "Mobile"
|
||||
|
||||
#: template-parts/modal-menu.php:48
|
||||
msgid "Expanded"
|
||||
msgstr "Développé"
|
||||
|
||||
#: template-parts/footer-menus-widgets.php:57
|
||||
msgid "Social links"
|
||||
msgstr "Réseaux sociaux"
|
||||
|
||||
#. translators: %s: Author name.
|
||||
#: inc/template-tags.php:354 template-parts/entry-author-bio.php:20
|
||||
msgid "By %s"
|
||||
msgstr "Par %s"
|
||||
|
||||
#: template-parts/content-cover.php:88
|
||||
msgid "Scroll Down"
|
||||
msgstr "Défiler vers le bas"
|
||||
|
||||
#: searchform.php:27
|
||||
msgctxt "submit button"
|
||||
msgid "Search"
|
||||
msgstr "Rechercher"
|
||||
|
||||
#: searchform.php:25
|
||||
msgctxt "placeholder"
|
||||
msgid "Search …"
|
||||
msgstr "Rechercher…"
|
||||
|
||||
#: index.php:32
|
||||
msgid "Search:"
|
||||
msgstr "Recherche :"
|
||||
|
||||
#: inc/template-tags.php:445
|
||||
msgid "Sticky post"
|
||||
msgstr "Article épinglé"
|
||||
|
||||
#: inc/template-tags.php:407
|
||||
msgid "Tags"
|
||||
msgstr "Étiquettes"
|
||||
|
||||
#: inc/template-tags.php:389 template-parts/entry-header.php:36
|
||||
#: template-parts/content-cover.php:70
|
||||
msgid "Categories"
|
||||
msgstr "Catégories"
|
||||
|
||||
#: inc/template-tags.php:371
|
||||
msgid "Post date"
|
||||
msgstr "Date de l’article"
|
||||
|
||||
#: inc/template-tags.php:347
|
||||
msgid "Post author"
|
||||
msgstr "Auteur de l’article"
|
||||
|
||||
#: header.php:88
|
||||
msgid "Horizontal"
|
||||
msgstr "Horizontal"
|
||||
|
||||
#: header.php:76 header.php:137
|
||||
msgid "Menu"
|
||||
msgstr "Menu"
|
||||
|
||||
#: header.php:53 header.php:157
|
||||
msgid "Search"
|
||||
msgstr "Rechercher"
|
||||
|
||||
#: template-parts/content.php:36
|
||||
msgid "Continue reading"
|
||||
msgstr "Lire la suite"
|
||||
|
||||
#: functions.php:549
|
||||
msgctxt "Short name of the larger font size in the block editor."
|
||||
msgid "XL"
|
||||
msgstr "XL"
|
||||
|
||||
#: functions.php:548
|
||||
msgctxt "Name of the larger font size in the block editor"
|
||||
msgid "Larger"
|
||||
msgstr "Très grand"
|
||||
|
||||
#: functions.php:543
|
||||
msgctxt "Short name of the large font size in the block editor."
|
||||
msgid "L"
|
||||
msgstr "L"
|
||||
|
||||
#: functions.php:542
|
||||
msgctxt "Name of the large font size in the block editor"
|
||||
msgid "Large"
|
||||
msgstr "Grand"
|
||||
|
||||
#: functions.php:537
|
||||
msgctxt "Short name of the regular font size in the block editor."
|
||||
msgid "M"
|
||||
msgstr "L"
|
||||
|
||||
#: functions.php:536
|
||||
msgctxt "Name of the regular font size in the block editor"
|
||||
msgid "Regular"
|
||||
msgstr "Normal"
|
||||
|
||||
#: functions.php:531
|
||||
msgctxt "Short name of the small font size in the block editor."
|
||||
msgid "S"
|
||||
msgstr "S"
|
||||
|
||||
#: functions.php:530
|
||||
msgctxt "Name of the small font size in the block editor"
|
||||
msgid "Small"
|
||||
msgstr "Petit"
|
||||
|
||||
#: functions.php:515
|
||||
msgid "Background Color"
|
||||
msgstr "Couleur de l’arrière-plan"
|
||||
|
||||
#: functions.php:487
|
||||
msgid "Accent Color"
|
||||
msgstr "Couleur de contraste"
|
||||
|
||||
#: functions.php:378
|
||||
msgid "Footer #2"
|
||||
msgstr "Pied de page #2"
|
||||
|
||||
#: functions.php:366
|
||||
msgid "Footer #1"
|
||||
msgstr "Pied de page #1"
|
||||
|
||||
#: functions.php:341
|
||||
msgid "Skip to the content"
|
||||
msgstr "Aller au contenu"
|
||||
|
||||
#: functions.php:262
|
||||
msgid "Social Menu"
|
||||
msgstr "Menu réseaux sociaux"
|
||||
|
||||
#: functions.php:260
|
||||
msgid "Mobile Menu"
|
||||
msgstr "Menu sur mobile"
|
||||
|
||||
#: footer.php:33
|
||||
msgid "Powered by WordPress"
|
||||
msgstr "Propulsé par WordPress"
|
||||
|
||||
#: comments.php:75
|
||||
msgid "Older Comments"
|
||||
msgstr "Commentaires plus anciens"
|
||||
|
||||
#: comments.php:74
|
||||
msgid "Newer Comments"
|
||||
msgstr "Commentaires plus récents"
|
||||
|
||||
#: classes/class-twentytwenty-walker-page.php:107 inc/template-tags.php:555
|
||||
msgid "Show sub menu"
|
||||
msgstr "Afficher le sous-menu"
|
||||
|
||||
#. translators: %d: ID of a post.
|
||||
#: classes/class-twentytwenty-walker-page.php:70
|
||||
msgid "#%d (no title)"
|
||||
msgstr "#%d (sans titre)"
|
||||
|
||||
#: classes/class-twentytwenty-walker-comment.php:127
|
||||
msgid "By Post Author"
|
||||
msgstr "Par auteur de l’article"
|
||||
|
||||
#: classes/class-twentytwenty-walker-comment.php:56
|
||||
msgid "says:"
|
||||
msgstr "dit :"
|
||||
|
||||
#: classes/class-twentytwenty-customize.php:396
|
||||
msgid "Make sure that the contrast is high enough so that the text is readable."
|
||||
msgstr "Assurez-vous que le contraste soit suffisamment élevé pour que le texte soit lisible."
|
||||
|
||||
#: classes/class-twentytwenty-customize.php:306
|
||||
msgid "Creates a parallax effect when the visitor scrolls."
|
||||
msgstr "Crée un effet de parallaxe lorsque le visiteur défile."
|
||||
|
||||
#: classes/class-twentytwenty-customize.php:305
|
||||
msgid "Fixed Background Image"
|
||||
msgstr "Image d’arrière-plan fixe"
|
||||
|
||||
#: classes/class-twentytwenty-customize.php:269
|
||||
msgid "Full text"
|
||||
msgstr "Le texte complet"
|
||||
|
||||
#: classes/class-twentytwenty-customize.php:267
|
||||
msgid "On archive pages, posts show:"
|
||||
msgstr "Sur les pages d'archive, les articles affichent :"
|
||||
|
||||
#: classes/class-twentytwenty-customize.php:225
|
||||
msgid "Show search in header"
|
||||
msgstr "Afficher la recherche dans l'en-tête"
|
||||
|
||||
#: classes/class-twentytwenty-customize.php:202
|
||||
msgid "Theme Options"
|
||||
msgstr "Options du thème"
|
||||
|
||||
#: classes/class-twentytwenty-customize.php:101
|
||||
msgid "Header & Footer Background Color"
|
||||
msgstr "Couleur d’arrière-plan de l’en-tête et du pied de page"
|
||||
|
||||
#: 404.php:17
|
||||
msgid "Page Not Found"
|
||||
msgstr "Page introuvable"
|
||||
|
||||
#: classes/class-twentytwenty-customize.php:270
|
||||
msgid "Summary"
|
||||
msgstr "Résumé"
|
||||
|
||||
#: template-parts/modal-menu.php:21
|
||||
msgid "Close Menu"
|
||||
msgstr "Fermer le menu"
|
||||
|
||||
#: index.php:48
|
||||
msgid "We could not find any results for your search. You can give it another try through the search form below."
|
||||
msgstr "Nous n’avons trouvé aucun résultat à votre requête. Vous pouvez tenter une autre recherche avec le formulaire ci-dessous."
|
||||
|
||||
#: functions.php:380
|
||||
msgid "Widgets in this area will be displayed in the second column in the footer."
|
||||
msgstr "Les widgets de cette partie seront affichés dans la seconde colonne du pied de page."
|
||||
|
||||
#: functions.php:368
|
||||
msgid "Widgets in this area will be displayed in the first column in the footer."
|
||||
msgstr "Les widgets de cette partie seront affichés dans la première colonne du pied de page."
|
||||
|
||||
#: classes/class-twentytwenty-customize.php:81
|
||||
msgid "Retina logo"
|
||||
msgstr "Logo retina"
|
||||
|
||||
#: template-parts/pagination.php:25
|
||||
msgid "Older <span class=\"nav-short\">Posts</span>"
|
||||
msgstr "<span class=\"nav-short\">Articles</span> plus anciens"
|
||||
|
||||
#: template-parts/pagination.php:21
|
||||
msgid "Newer <span class=\"nav-short\">Posts</span>"
|
||||
msgstr "<span class=\"nav-short\">Articles</span> plus récents"
|
||||
|
||||
#: template-parts/modal-menu.php:117
|
||||
msgid "Expanded Social links"
|
||||
msgstr "Liens de réseaux sociaux étendus"
|
||||
|
||||
#: functions.php:502
|
||||
msgid "Subtle Background"
|
||||
msgstr "Arrière-plan subtil"
|
||||
|
||||
#: functions.php:258
|
||||
msgid "Desktop Horizontal Menu"
|
||||
msgstr "Menu horizontal grand écrans"
|
||||
|
||||
#: functions.php:259
|
||||
msgid "Desktop Expanded Menu"
|
||||
msgstr "Menu étendu grands écrans"
|
||||
|
||||
#. Template Name of the theme
|
||||
#: classes/class-twentytwenty-customize.php:281
|
||||
msgid "Cover Template"
|
||||
msgstr "Modèle avec bannière"
|
||||
|
||||
#: classes/class-twentytwenty-customize.php:82
|
||||
msgid "Scales the logo to half its uploaded size, making it sharp on high-res screens."
|
||||
msgstr "Redimensionne le logo à la moitié de sa taille de téléversement afin de le rendre net sur les écrans haute résolution."
|
||||
|
||||
#: 404.php:19
|
||||
msgid "The page you were looking for could not be found. It might have been removed, renamed, or did not exist in the first place."
|
||||
msgstr "La page que vous recherchez est introuvable. Elle pourrait avoir été supprimée, renommée, ou pourrait n’avoir jamais existé."
|
||||
|
||||
#. Author URI of the theme
|
||||
#: footer.php:32
|
||||
msgid "https://wordpress.org/"
|
||||
msgstr "https://fr.wordpress.org/"
|
||||
|
||||
#. Author of the theme
|
||||
msgid "the WordPress team"
|
||||
msgstr "L’équipe WordPress"
|
||||
|
||||
#. Theme URI of the theme
|
||||
msgid "https://wordpress.org/themes/twentytwenty/"
|
||||
msgstr "https://wordpress.org/themes/twentytwenty/"
|
||||
34
content/plugins/akismet/.htaccess
Normal file
34
content/plugins/akismet/.htaccess
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# Only allow direct access to specific Web-available files.
|
||||
|
||||
# Apache 2.2
|
||||
<IfModule !mod_authz_core.c>
|
||||
Order Deny,Allow
|
||||
Deny from all
|
||||
</IfModule>
|
||||
|
||||
# Apache 2.4
|
||||
<IfModule mod_authz_core.c>
|
||||
Require all denied
|
||||
</IfModule>
|
||||
|
||||
# Akismet CSS and JS
|
||||
<FilesMatch "^(form\.js|akismet\.js|akismet\.css)$">
|
||||
<IfModule !mod_authz_core.c>
|
||||
Allow from all
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_authz_core.c>
|
||||
Require all granted
|
||||
</IfModule>
|
||||
</FilesMatch>
|
||||
|
||||
# Akismet images
|
||||
<FilesMatch "^logo-full-2x\.png$">
|
||||
<IfModule !mod_authz_core.c>
|
||||
Allow from all
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_authz_core.c>
|
||||
Require all granted
|
||||
</IfModule>
|
||||
</FilesMatch>
|
||||
339
content/plugins/akismet/LICENSE.txt
Normal file
339
content/plugins/akismet/LICENSE.txt
Normal file
|
|
@ -0,0 +1,339 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License.
|
||||
671
content/plugins/akismet/_inc/akismet.css
Normal file
671
content/plugins/akismet/_inc/akismet.css
Normal file
|
|
@ -0,0 +1,671 @@
|
|||
.wp-admin.jetpack_page_akismet-key-config, .wp-admin.settings_page_akismet-key-config {
|
||||
background-color:#f3f6f8;
|
||||
}
|
||||
|
||||
#submitted-on {
|
||||
position: relative;
|
||||
}
|
||||
#the-comment-list .author .akismet-user-comment-count {
|
||||
display: inline;
|
||||
}
|
||||
#the-comment-list .author a span {
|
||||
text-decoration: none;
|
||||
color: #999;
|
||||
}
|
||||
#the-comment-list .author a span.akismet-span-link {
|
||||
text-decoration: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
#the-comment-list .akismet_remove_url {
|
||||
margin-left: 3px;
|
||||
color: #999;
|
||||
padding: 2px 3px 2px 0;
|
||||
}
|
||||
#the-comment-list .akismet_remove_url:hover {
|
||||
color: #A7301F;
|
||||
font-weight: bold;
|
||||
padding: 2px 2px 2px 0;
|
||||
}
|
||||
#dashboard_recent_comments .akismet-status {
|
||||
display: none;
|
||||
}
|
||||
.akismet-status {
|
||||
float: right;
|
||||
}
|
||||
.akismet-status a {
|
||||
color: #AAA;
|
||||
font-style: italic;
|
||||
}
|
||||
table.comments td.comment p a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
table.comments td.comment p a:after {
|
||||
content: attr(href);
|
||||
color: #aaa;
|
||||
display: inline-block; /* Show the URL without the link's underline extending under it. */
|
||||
padding: 0 1ex; /* Because it's inline block, we can't just use spaces in the content: attribute to separate it from the link text. */
|
||||
}
|
||||
.mshot-arrow {
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-top: 10px solid transparent;
|
||||
border-bottom: 10px solid transparent;
|
||||
border-right: 10px solid #5C5C5C;
|
||||
position: absolute;
|
||||
left: -6px;
|
||||
top: 91px;
|
||||
}
|
||||
.mshot-container {
|
||||
background: #5C5C5C;
|
||||
position: absolute;
|
||||
top: -94px;
|
||||
padding: 7px;
|
||||
width: 450px;
|
||||
height: 338px;
|
||||
z-index: 20000;
|
||||
-moz-border-radius: 6px;
|
||||
border-radius: 6px;
|
||||
-webkit-border-radius: 6px;
|
||||
}
|
||||
.akismet-mshot {
|
||||
position: absolute;
|
||||
z-index: 100;
|
||||
}
|
||||
.akismet-mshot .mshot-image {
|
||||
margin: 0;
|
||||
height: 338px;
|
||||
width: 450px;
|
||||
}
|
||||
.checkforspam {
|
||||
display: inline-block !important;
|
||||
}
|
||||
.checkforspam-progress {
|
||||
display: none;
|
||||
}
|
||||
.checkforspam.checking .checkforspam-progress {
|
||||
padding-left: 1ex;
|
||||
}
|
||||
.checkforspam.button-disabled .checkforspam-progress {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.checkforspam-spinner {
|
||||
display: inline-block;
|
||||
margin-top: 7px;
|
||||
}
|
||||
|
||||
.akismet-right {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.akismet-card .akismet-right {
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
.akismet-alert-text {
|
||||
color: #dd3d36;
|
||||
font-weight: bold;
|
||||
font-size: 120%;
|
||||
margin-top: .5rem;
|
||||
}
|
||||
.akismet-alert {
|
||||
border: 1px solid #e5e5e5;
|
||||
padding: 0.4em 1em 1.4em 1em;
|
||||
border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
.akismet-alert h3.akismet-key-status {
|
||||
color: #fff;
|
||||
margin: 1em 0 0.5em 0;
|
||||
}
|
||||
|
||||
.akismet-alert.akismet-critical {
|
||||
background-color: #993300;
|
||||
}
|
||||
|
||||
.akismet-alert.akismet-active {
|
||||
background-color: #649316;
|
||||
}
|
||||
|
||||
.akismet-alert p.akismet-key-status {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.akismet-alert p.akismet-description {
|
||||
color:#fff;
|
||||
font-size: 14px;
|
||||
margin: 0 0;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.akismet-alert p.akismet-description a,
|
||||
.akismet-alert p.akismet-description a,
|
||||
.akismet-alert p.akismet-description a,
|
||||
.akismet-alert p.akismet-description a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.akismet-new-snapshot {
|
||||
margin-top: 1em;
|
||||
padding: 1em;
|
||||
text-align: center;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.akismet-new-snapshot h3 {
|
||||
background: #f5f5f5;
|
||||
color: #888;
|
||||
font-size: 11px;
|
||||
margin: 0;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
.new-snapspot ul {
|
||||
font-size: 12px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.akismet-new-snapshot ul li {
|
||||
color: #999;
|
||||
float: left;
|
||||
font-size: 11px;
|
||||
padding: 0 20px;
|
||||
text-transform: uppercase;
|
||||
width: 33%;
|
||||
box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
-ms-box-sizing: border-box;
|
||||
}
|
||||
|
||||
.akismet-new-snapshot ul li:first-child,
|
||||
.akismet-new-snapshot ul li:nth-child(2) {
|
||||
border-right:1px dotted #ccc;
|
||||
}
|
||||
|
||||
.akismet-new-snapshot ul li span {
|
||||
color: #52accc;
|
||||
display: block;
|
||||
font-size: 32px;
|
||||
font-weight: lighter;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
.akismet-settings th:first-child {
|
||||
vertical-align: top;
|
||||
padding-top: 15px;
|
||||
}
|
||||
|
||||
.akismet-settings th.akismet-api-key {
|
||||
vertical-align: middle;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.akismet-settings input[type=text] {
|
||||
width: 75%;
|
||||
}
|
||||
|
||||
.akismet-settings span.akismet-note{
|
||||
float: left;
|
||||
padding-left: 23px;
|
||||
font-size: 75%;
|
||||
margin-top: -10px;
|
||||
}
|
||||
|
||||
/**
|
||||
* For the activation notice on the plugins page.
|
||||
*/
|
||||
|
||||
#akismet_setup_prompt {
|
||||
background: none;
|
||||
border: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.akismet_activate {
|
||||
border: 1px solid #4F800D;
|
||||
padding: 5px;
|
||||
margin: 15px 0;
|
||||
background: #83AF24;
|
||||
background-image: -webkit-gradient(linear, 0% 0, 80% 100%, from(#83AF24), to(#4F800D));
|
||||
background-image: -moz-linear-gradient(80% 100% 120deg, #4F800D, #83AF24);
|
||||
-moz-border-radius: 3px;
|
||||
border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.akismet_activate .aa_a {
|
||||
position: absolute;
|
||||
top: -5px;
|
||||
right: 10px;
|
||||
font-size: 140px;
|
||||
color: #769F33;
|
||||
font-family: Georgia, "Times New Roman", Times, serif;
|
||||
}
|
||||
|
||||
.akismet_activate .aa_button {
|
||||
font-weight: bold;
|
||||
border: 1px solid #029DD6;
|
||||
border-top: 1px solid #06B9FD;
|
||||
font-size: 15px;
|
||||
text-align: center;
|
||||
padding: 9px 0 8px 0;
|
||||
color: #FFF;
|
||||
background: #029DD6;
|
||||
background-image: -webkit-gradient(linear, 0% 0, 0% 100%, from(#029DD6), to(#0079B1));
|
||||
background-image: -moz-linear-gradient(0% 100% 90deg, #0079B1, #029DD6);
|
||||
-moz-border-radius: 2px;
|
||||
border-radius: 2px;
|
||||
-webkit-border-radius: 2px;
|
||||
width: 100%;
|
||||
cursor: pointer;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.akismet_activate .aa_button:hover {
|
||||
text-decoration: none !important;
|
||||
border: 1px solid #029DD6;
|
||||
border-bottom: 1px solid #00A8EF;
|
||||
font-size: 15px;
|
||||
text-align: center;
|
||||
padding: 9px 0 8px 0;
|
||||
color: #F0F8FB;
|
||||
background: #0079B1;
|
||||
background-image: -webkit-gradient(linear, 0% 0, 0% 100%, from(#0079B1), to(#0092BF));
|
||||
background-image: -moz-linear-gradient(0% 100% 90deg, #0092BF, #0079B1);
|
||||
-moz-border-radius: 2px;
|
||||
border-radius: 2px;
|
||||
-webkit-border-radius: 2px;
|
||||
}
|
||||
|
||||
.akismet_activate .aa_button_border {
|
||||
border: 1px solid #006699;
|
||||
-moz-border-radius: 2px;
|
||||
border-radius: 2px;
|
||||
-webkit-border-radius: 2px;
|
||||
background: #029DD6;
|
||||
background-image: -webkit-gradient(linear, 0% 0, 0% 100%, from(#029DD6), to(#0079B1));
|
||||
background-image: -moz-linear-gradient(0% 100% 90deg, #0079B1, #029DD6);
|
||||
}
|
||||
|
||||
.akismet_activate .aa_button_container {
|
||||
box-sizing: border-box;
|
||||
display: inline-block;
|
||||
background: #DEF1B8;
|
||||
padding: 5px;
|
||||
-moz-border-radius: 2px;
|
||||
border-radius: 2px;
|
||||
-webkit-border-radius: 2px;
|
||||
width: 266px;
|
||||
}
|
||||
|
||||
.akismet_activate .aa_description {
|
||||
position: absolute;
|
||||
top: 22px;
|
||||
left: 285px;
|
||||
margin-left: 25px;
|
||||
color: #E5F2B1;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.akismet_activate .aa_description strong {
|
||||
color: #FFF;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
@media (max-width: 550px) {
|
||||
.akismet_activate .aa_a {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.akismet_activate .aa_button_container {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 782px) {
|
||||
.akismet_activate {
|
||||
min-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 850px) {
|
||||
#akismet_setup_prompt .aa_description {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.akismet_activate {
|
||||
min-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.jetpack_page_akismet-key-config #wpcontent, .settings_page_akismet-key-config #wpcontent {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.akismet-masthead {
|
||||
background-color:#fff;
|
||||
text-align:center;
|
||||
box-shadow:0 1px 0 rgba(200,215,225,0.5),0 1px 2px #e9eff3
|
||||
}
|
||||
@media (max-width: 45rem) {
|
||||
.akismet-masthead {
|
||||
padding:0 1.25rem
|
||||
}
|
||||
}
|
||||
|
||||
.akismet-masthead__inside-container {
|
||||
padding:.375rem 0;
|
||||
margin:0 auto;
|
||||
width:100%;
|
||||
max-width:45rem;
|
||||
text-align: left;
|
||||
}
|
||||
.akismet-masthead__logo-container {
|
||||
padding:.3125rem 0 0
|
||||
}
|
||||
.akismet-masthead__logo {
|
||||
width:10.375rem;
|
||||
height:1.8125rem;
|
||||
}
|
||||
.akismet-masthead__logo-link {
|
||||
display:inline-block;
|
||||
outline:none;
|
||||
vertical-align:middle
|
||||
}
|
||||
.akismet-masthead__logo-link:focus {
|
||||
line-height:0;
|
||||
box-shadow:0 0 0 2px #78dcfa
|
||||
}
|
||||
.akismet-masthead__logo-link+code {
|
||||
margin:0 10px;
|
||||
padding:5px 9px;
|
||||
border-radius:2px;
|
||||
background:#e6ecf1;
|
||||
color:#647a88
|
||||
}
|
||||
.akismet-masthead__links {
|
||||
display:-ms-flexbox;
|
||||
display:flex;
|
||||
-ms-flex-flow:row wrap;
|
||||
flex-flow:row wrap;
|
||||
-ms-flex:2 50%;
|
||||
flex:2 50%;
|
||||
-ms-flex-pack:end;
|
||||
justify-content:flex-end;
|
||||
margin:0
|
||||
}
|
||||
@media (max-width: 480px) {
|
||||
.akismet-masthead__links {
|
||||
padding-right:.625rem
|
||||
}
|
||||
}
|
||||
.akismet-masthead__link-li {
|
||||
margin:0;
|
||||
padding:0
|
||||
}
|
||||
.akismet-masthead__link {
|
||||
font-style:normal;
|
||||
color:#0087be;
|
||||
padding:.625rem;
|
||||
display:inline-block
|
||||
}
|
||||
.akismet-masthead__link:visited {
|
||||
color:#0087be
|
||||
}
|
||||
.akismet-masthead__link:active,.akismet-masthead__link:hover {
|
||||
color:#00aadc
|
||||
}
|
||||
.akismet-masthead__link:hover {
|
||||
text-decoration:underline
|
||||
}
|
||||
.akismet-masthead__link .dashicons {
|
||||
display:none
|
||||
}
|
||||
@media (max-width: 480px) {
|
||||
.akismet-masthead__link:hover,.akismet-masthead__link:active {
|
||||
text-decoration:none
|
||||
}
|
||||
.akismet-masthead__link .dashicons {
|
||||
display:block;
|
||||
font-size:1.75rem
|
||||
}
|
||||
.akismet-masthead__link span+span {
|
||||
display:none
|
||||
}
|
||||
}
|
||||
.akismet-masthead__link-li:last-of-type .akismet-masthead__link {
|
||||
padding-right:0
|
||||
}
|
||||
|
||||
.akismet-lower {
|
||||
margin: 0 auto;
|
||||
text-align: left;
|
||||
max-width: 45rem;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.akismet-lower .notice {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.akismet-card {
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 0;
|
||||
position: relative;
|
||||
margin: 0 auto 0.625rem auto;
|
||||
box-sizing: border-box;
|
||||
background: white;
|
||||
box-shadow: 0 0 0 1px rgba(200, 215, 225, 0.5), 0 1px 2px #e9eff3;
|
||||
}
|
||||
|
||||
.akismet-card:after, .akismet-card .inside:after, .akismet-masthead__logo-container:after {
|
||||
content: ".";
|
||||
display: block;
|
||||
height: 0;
|
||||
clear: both;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.akismet-card .inside {
|
||||
padding: 1.5rem;
|
||||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
.akismet-card .akismet-card-actions {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.jetpack_page_akismet-key-config .update-nag, .settings_page_akismet-key-config .update-nag {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.akismet-masthead .akismet-right {
|
||||
line-height: 2.125rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.akismet-box {
|
||||
box-sizing: border-box;
|
||||
background: white;
|
||||
border: 1px solid rgba(200, 215, 225, 0.5);
|
||||
}
|
||||
|
||||
.akismet-box h2, .akismet-box h3 {
|
||||
padding: 1.5rem 1.5rem .5rem 1.5rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.akismet-box p {
|
||||
padding: 0 1.5rem 1.5rem 1.5rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.akismet-jetpack-email {
|
||||
font-style: oblique;
|
||||
}
|
||||
|
||||
.akismet-jetpack-gravatar {
|
||||
padding: 0 0 0 1.5rem;
|
||||
float: left;
|
||||
margin-right: 1rem;
|
||||
width: 54px;
|
||||
height: 54px;
|
||||
}
|
||||
|
||||
.akismet-box p:after {
|
||||
content: ".";
|
||||
display: block;
|
||||
height: 0;
|
||||
clear: both;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.akismet-box .akismet-right {
|
||||
padding-right: 1.5rem;
|
||||
}
|
||||
|
||||
.akismet-boxes .akismet-box {
|
||||
margin-bottom: 0;
|
||||
padding: 0;
|
||||
margin-top: -1px;
|
||||
}
|
||||
|
||||
.akismet-boxes .akismet-box:last-child {
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.akismet-boxes .akismet-box:first-child {
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.akismet-box-header {
|
||||
max-width: 700px;
|
||||
margin: 0 auto 40px auto;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.akismet-box-header h2 {
|
||||
margin: 1.5rem 10% 0;
|
||||
font-size: 1.375rem;
|
||||
font-weight: 700;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.akismet-box .centered {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.akismet-enter-api-key-box {
|
||||
margin: 1.5rem 0;
|
||||
}
|
||||
|
||||
.akismet-box .enter-api-key {
|
||||
display: none;
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
|
||||
.akismet-box .akismet-toggles {
|
||||
margin: 3rem 0;
|
||||
}
|
||||
|
||||
.akismet-box .akismet-ak-connect, .akismet-box .toggle-jp-connect {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.akismet-box .enter-api-key p {
|
||||
padding: 0 1.5rem;
|
||||
}
|
||||
|
||||
.akismet-button, .akismet-button:hover, .akismet-button:visited {
|
||||
background: white;
|
||||
border-color: #c8d7e1;
|
||||
border-style: solid;
|
||||
border-width: 1px 1px 2px;
|
||||
color: #2e4453;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
outline: 0;
|
||||
overflow: hidden;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
text-overflow: ellipsis;
|
||||
text-decoration: none;
|
||||
vertical-align: top;
|
||||
box-sizing: border-box;
|
||||
font-size: 14px;
|
||||
line-height: 21px;
|
||||
border-radius: 4px;
|
||||
padding: 7px 14px 9px;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
.akismet-button:hover {
|
||||
border-color: #a8bece;
|
||||
}
|
||||
|
||||
.akismet-button:active {
|
||||
border-width: 2px 1px 1px;
|
||||
}
|
||||
|
||||
.akismet-is-primary, .akismet-is-primary:hover, .akismet-is-primary:visited {
|
||||
background: #00aadc;
|
||||
border-color: #0087be;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.akismet-is-primary:hover, .akismet-is-primary:focus {
|
||||
border-color: #005082;
|
||||
}
|
||||
|
||||
.akismet-is-primary:hover {
|
||||
border-color: #005082;
|
||||
}
|
||||
|
||||
.akismet-section-header {
|
||||
position: relative;
|
||||
margin: 0 auto 0.625rem auto;
|
||||
padding: 1rem;
|
||||
box-sizing: border-box;
|
||||
box-shadow: 0 0 0 1px rgba(200, 215, 225, 0.5), 0 1px 2px #e9eff3;
|
||||
background: #ffffff;
|
||||
width: 100%;
|
||||
padding-top: 0.6875rem;
|
||||
padding-bottom: 0.6875rem;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.akismet-section-header__label {
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
-ms-flex-positive: 1;
|
||||
flex-grow: 1;
|
||||
line-height: 1.75rem;
|
||||
position: relative;
|
||||
font-size: 0.875rem;
|
||||
color: #4f748e;
|
||||
}
|
||||
|
||||
.akismet-section-header__actions {
|
||||
line-height: 1.75rem;
|
||||
}
|
||||
|
||||
.akismet-setup-instructions {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.akismet-setup-instructions form {
|
||||
padding-bottom: 1.5rem;
|
||||
}
|
||||
350
content/plugins/akismet/_inc/akismet.js
Normal file
350
content/plugins/akismet/_inc/akismet.js
Normal file
|
|
@ -0,0 +1,350 @@
|
|||
jQuery( function ( $ ) {
|
||||
var mshotRemovalTimer = null;
|
||||
var mshotSecondTryTimer = null
|
||||
var mshotThirdTryTimer = null
|
||||
|
||||
var mshotEnabledLinkSelector = 'a[id^="author_comment_url"], tr.pingback td.column-author a:first-of-type, td.comment p a';
|
||||
|
||||
$('.akismet-status').each(function () {
|
||||
var thisId = $(this).attr('commentid');
|
||||
$(this).prependTo('#comment-' + thisId + ' .column-comment');
|
||||
});
|
||||
$('.akismet-user-comment-count').each(function () {
|
||||
var thisId = $(this).attr('commentid');
|
||||
$(this).insertAfter('#comment-' + thisId + ' .author strong:first').show();
|
||||
});
|
||||
|
||||
akismet_enable_comment_author_url_removal();
|
||||
|
||||
$( '#the-comment-list' ).on( 'click', '.akismet_remove_url', function () {
|
||||
var thisId = $(this).attr('commentid');
|
||||
var data = {
|
||||
action: 'comment_author_deurl',
|
||||
_wpnonce: WPAkismet.comment_author_url_nonce,
|
||||
id: thisId
|
||||
};
|
||||
$.ajax({
|
||||
url: ajaxurl,
|
||||
type: 'POST',
|
||||
data: data,
|
||||
beforeSend: function () {
|
||||
// Removes "x" link
|
||||
$("a[commentid='"+ thisId +"']").hide();
|
||||
// Show temp status
|
||||
$("#author_comment_url_"+ thisId).html( $( '<span/>' ).text( WPAkismet.strings['Removing...'] ) );
|
||||
},
|
||||
success: function (response) {
|
||||
if (response) {
|
||||
// Show status/undo link
|
||||
$("#author_comment_url_"+ thisId)
|
||||
.attr('cid', thisId)
|
||||
.addClass('akismet_undo_link_removal')
|
||||
.html(
|
||||
$( '<span/>' ).text( WPAkismet.strings['URL removed'] )
|
||||
)
|
||||
.append( ' ' )
|
||||
.append(
|
||||
$( '<span/>' )
|
||||
.text( WPAkismet.strings['(undo)'] )
|
||||
.addClass( 'akismet-span-link' )
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return false;
|
||||
}).on( 'click', '.akismet_undo_link_removal', function () {
|
||||
var thisId = $(this).attr('cid');
|
||||
var thisUrl = $(this).attr('href');
|
||||
var data = {
|
||||
action: 'comment_author_reurl',
|
||||
_wpnonce: WPAkismet.comment_author_url_nonce,
|
||||
id: thisId,
|
||||
url: thisUrl
|
||||
};
|
||||
$.ajax({
|
||||
url: ajaxurl,
|
||||
type: 'POST',
|
||||
data: data,
|
||||
beforeSend: function () {
|
||||
// Show temp status
|
||||
$("#author_comment_url_"+ thisId).html( $( '<span/>' ).text( WPAkismet.strings['Re-adding...'] ) );
|
||||
},
|
||||
success: function (response) {
|
||||
if (response) {
|
||||
// Add "x" link
|
||||
$("a[commentid='"+ thisId +"']").show();
|
||||
// Show link. Core strips leading http://, so let's do that too.
|
||||
$("#author_comment_url_"+ thisId).removeClass('akismet_undo_link_removal').text( thisUrl.replace( /^http:\/\/(www\.)?/ig, '' ) );
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
// Show a preview image of the hovered URL. Applies to author URLs and URLs inside the comments.
|
||||
$( '#the-comment-list' ).on( 'mouseover', mshotEnabledLinkSelector, function () {
|
||||
clearTimeout( mshotRemovalTimer );
|
||||
|
||||
if ( $( '.akismet-mshot' ).length > 0 ) {
|
||||
if ( $( '.akismet-mshot:first' ).data( 'link' ) == this ) {
|
||||
// The preview is already showing for this link.
|
||||
return;
|
||||
}
|
||||
else {
|
||||
// A new link is being hovered, so remove the old preview.
|
||||
$( '.akismet-mshot' ).remove();
|
||||
}
|
||||
}
|
||||
|
||||
clearTimeout( mshotSecondTryTimer );
|
||||
clearTimeout( mshotThirdTryTimer );
|
||||
|
||||
var thisHref = $( this ).attr( 'href' );
|
||||
|
||||
var mShot = $( '<div class="akismet-mshot mshot-container"><div class="mshot-arrow"></div><img src="' + akismet_mshot_url( thisHref ) + '" width="450" height="338" class="mshot-image" /></div>' );
|
||||
mShot.data( 'link', this );
|
||||
|
||||
var offset = $( this ).offset();
|
||||
|
||||
mShot.offset( {
|
||||
left : Math.min( $( window ).width() - 475, offset.left + $( this ).width() + 10 ), // Keep it on the screen if the link is near the edge of the window.
|
||||
top: offset.top + ( $( this ).height() / 2 ) - 101 // 101 = top offset of the arrow plus the top border thickness
|
||||
} );
|
||||
|
||||
// These retries appear to be superfluous if .mshot-image has already loaded, but it's because mShots
|
||||
// can return a "Generating thumbnail..." image if it doesn't have a thumbnail ready, so we need
|
||||
// to retry to see if we can get the newly generated thumbnail.
|
||||
mshotSecondTryTimer = setTimeout( function () {
|
||||
mShot.find( '.mshot-image' ).attr( 'src', akismet_mshot_url( thisHref, 2 ) );
|
||||
}, 6000 );
|
||||
|
||||
mshotThirdTryTimer = setTimeout( function () {
|
||||
mShot.find( '.mshot-image' ).attr( 'src', akismet_mshot_url( thisHref, 3 ) );
|
||||
}, 12000 );
|
||||
|
||||
$( 'body' ).append( mShot );
|
||||
} ).on( 'mouseout', 'a[id^="author_comment_url"], tr.pingback td.column-author a:first-of-type, td.comment p a', function () {
|
||||
mshotRemovalTimer = setTimeout( function () {
|
||||
clearTimeout( mshotSecondTryTimer );
|
||||
clearTimeout( mshotThirdTryTimer );
|
||||
|
||||
$( '.akismet-mshot' ).remove();
|
||||
}, 200 );
|
||||
} ).on( 'mouseover', 'tr', function () {
|
||||
// When the mouse hovers over a comment row, begin preloading mshots for any links in the comment or the comment author.
|
||||
var linksToPreloadMshotsFor = $( this ).find( mshotEnabledLinkSelector );
|
||||
|
||||
linksToPreloadMshotsFor.each( function () {
|
||||
// Don't attempt to preload an mshot for a single link twice. Browser caching should cover this, but in case of
|
||||
// race conditions, save a flag locally when we've begun trying to preload one.
|
||||
if ( ! $( this ).data( 'akismet-mshot-preloaded' ) ) {
|
||||
akismet_preload_mshot( $( this ).attr( 'href' ) );
|
||||
$( this ).data( 'akismet-mshot-preloaded', true );
|
||||
}
|
||||
} );
|
||||
} );
|
||||
|
||||
$( '.checkforspam' ).click( function( e ) {
|
||||
if ( $( this ).hasClass( 'checkforspam-pending-config' ) ) {
|
||||
// Akismet hasn't been configured yet. Allow the user to proceed to the button's link.
|
||||
return;
|
||||
}
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
if ( $( this ).hasClass( 'button-disabled' ) ) {
|
||||
window.location.href = $( this ).data( 'success-url' ).replace( '__recheck_count__', 0 ).replace( '__spam_count__', 0 );
|
||||
return;
|
||||
}
|
||||
|
||||
$('.checkforspam').addClass('button-disabled').addClass( 'checking' );
|
||||
$('.checkforspam-spinner').addClass( 'spinner' ).addClass( 'is-active' );
|
||||
|
||||
// Update the label on the "Check for Spam" button to use the active "Checking for Spam" language.
|
||||
$( '.checkforspam .akismet-label' ).text( $( '.checkforspam' ).data( 'active-label' ) );
|
||||
|
||||
akismet_check_for_spam(0, 100);
|
||||
});
|
||||
|
||||
var spam_count = 0;
|
||||
var recheck_count = 0;
|
||||
|
||||
function akismet_check_for_spam(offset, limit) {
|
||||
var check_for_spam_buttons = $( '.checkforspam' );
|
||||
|
||||
var nonce = check_for_spam_buttons.data( 'nonce' );
|
||||
|
||||
// We show the percentage complete down to one decimal point so even queues with 100k
|
||||
// pending comments will show some progress pretty quickly.
|
||||
var percentage_complete = Math.round( ( recheck_count / check_for_spam_buttons.data( 'pending-comment-count' ) ) * 1000 ) / 10;
|
||||
|
||||
// Update the progress counter on the "Check for Spam" button.
|
||||
$( '.checkforspam-progress' ).text( check_for_spam_buttons.data( 'progress-label-format' ).replace( '%1$s', percentage_complete ) );
|
||||
|
||||
$.post(
|
||||
ajaxurl,
|
||||
{
|
||||
'action': 'akismet_recheck_queue',
|
||||
'offset': offset,
|
||||
'limit': limit,
|
||||
'nonce': nonce
|
||||
},
|
||||
function(result) {
|
||||
if ( 'error' in result ) {
|
||||
// An error is only returned in the case of a missing nonce, so we don't need the actual error message.
|
||||
window.location.href = check_for_spam_buttons.data( 'failure-url' );
|
||||
return;
|
||||
}
|
||||
|
||||
recheck_count += result.counts.processed;
|
||||
spam_count += result.counts.spam;
|
||||
|
||||
if (result.counts.processed < limit) {
|
||||
window.location.href = check_for_spam_buttons.data( 'success-url' ).replace( '__recheck_count__', recheck_count ).replace( '__spam_count__', spam_count );
|
||||
}
|
||||
else {
|
||||
// Account for comments that were caught as spam and moved out of the queue.
|
||||
akismet_check_for_spam(offset + limit - result.counts.spam, limit);
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
if ( "start_recheck" in WPAkismet && WPAkismet.start_recheck ) {
|
||||
$( '.checkforspam' ).click();
|
||||
}
|
||||
|
||||
if ( typeof MutationObserver !== 'undefined' ) {
|
||||
// Dynamically add the "X" next the the author URL links when a comment is quick-edited.
|
||||
var comment_list_container = document.getElementById( 'the-comment-list' );
|
||||
|
||||
if ( comment_list_container ) {
|
||||
var observer = new MutationObserver( function ( mutations ) {
|
||||
for ( var i = 0, _len = mutations.length; i < _len; i++ ) {
|
||||
if ( mutations[i].addedNodes.length > 0 ) {
|
||||
akismet_enable_comment_author_url_removal();
|
||||
|
||||
// Once we know that we'll have to check for new author links, skip the rest of the mutations.
|
||||
break;
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
||||
observer.observe( comment_list_container, { attributes: true, childList: true, characterData: true } );
|
||||
}
|
||||
}
|
||||
|
||||
function akismet_enable_comment_author_url_removal() {
|
||||
$( '#the-comment-list' )
|
||||
.find( 'tr.comment, tr[id ^= "comment-"]' )
|
||||
.find( '.column-author a[href^="http"]:first' ) // Ignore mailto: links, which would be the comment author's email.
|
||||
.each(function () {
|
||||
if ( $( this ).parent().find( '.akismet_remove_url' ).length > 0 ) {
|
||||
return;
|
||||
}
|
||||
|
||||
var linkHref = $(this).attr( 'href' );
|
||||
|
||||
// Ignore any links to the current domain, which are diagnostic tools, like the IP address link
|
||||
// or any other links another plugin might add.
|
||||
var currentHostParts = document.location.href.split( '/' );
|
||||
var currentHost = currentHostParts[0] + '//' + currentHostParts[2] + '/';
|
||||
|
||||
if ( linkHref.indexOf( currentHost ) != 0 ) {
|
||||
var thisCommentId = $(this).parents('tr:first').attr('id').split("-");
|
||||
|
||||
$(this)
|
||||
.attr("id", "author_comment_url_"+ thisCommentId[1])
|
||||
.after(
|
||||
$( '<a href="#" class="akismet_remove_url">x</a>' )
|
||||
.attr( 'commentid', thisCommentId[1] )
|
||||
.attr( 'title', WPAkismet.strings['Remove this URL'] )
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate an mShot URL if given a link URL.
|
||||
*
|
||||
* @param string linkUrl
|
||||
* @param int retry If retrying a request, the number of the retry.
|
||||
* @return string The mShot URL;
|
||||
*/
|
||||
function akismet_mshot_url( linkUrl, retry ) {
|
||||
var mshotUrl = '//s0.wordpress.com/mshots/v1/' + encodeURIComponent( linkUrl ) + '?w=900';
|
||||
|
||||
if ( retry ) {
|
||||
mshotUrl += '&r=' + encodeURIComponent( retry );
|
||||
}
|
||||
|
||||
return mshotUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Begin loading an mShot preview of a link.
|
||||
*
|
||||
* @param string linkUrl
|
||||
*/
|
||||
function akismet_preload_mshot( linkUrl ) {
|
||||
var img = new Image();
|
||||
img.src = akismet_mshot_url( linkUrl );
|
||||
}
|
||||
|
||||
$( '.akismet-could-be-primary' ).each( function () {
|
||||
var form = $( this ).closest( 'form' );
|
||||
|
||||
form.data( 'initial-state', form.serialize() );
|
||||
|
||||
form.on( 'change keyup', function () {
|
||||
var self = $( this );
|
||||
var submit_button = self.find( '.akismet-could-be-primary' );
|
||||
|
||||
if ( self.serialize() != self.data( 'initial-state' ) ) {
|
||||
submit_button.addClass( 'akismet-is-primary' );
|
||||
}
|
||||
else {
|
||||
submit_button.removeClass( 'akismet-is-primary' );
|
||||
}
|
||||
} );
|
||||
} );
|
||||
|
||||
/**
|
||||
* Shows the Enter API key form
|
||||
*/
|
||||
$( '.akismet-enter-api-key-box a' ).on( 'click', function ( e ) {
|
||||
e.preventDefault();
|
||||
|
||||
var div = $( '.enter-api-key' );
|
||||
div.show( 500 );
|
||||
div.find( 'input[name=key]' ).focus();
|
||||
|
||||
$( this ).hide();
|
||||
} );
|
||||
|
||||
/**
|
||||
* Hides the Connect with Jetpack form | Shows the Activate Akismet Account form
|
||||
*/
|
||||
$( 'a.toggle-ak-connect' ).on( 'click', function ( e ) {
|
||||
e.preventDefault();
|
||||
|
||||
$( '.akismet-ak-connect' ).slideToggle('slow');
|
||||
$( 'a.toggle-ak-connect' ).hide();
|
||||
$( '.akismet-jp-connect' ).hide();
|
||||
$( 'a.toggle-jp-connect' ).show();
|
||||
} );
|
||||
|
||||
/**
|
||||
* Shows the Connect with Jetpack form | Hides the Activate Akismet Account form
|
||||
*/
|
||||
$( 'a.toggle-jp-connect' ).on( 'click', function ( e ) {
|
||||
e.preventDefault();
|
||||
|
||||
$( '.akismet-jp-connect' ).slideToggle('slow');
|
||||
$( 'a.toggle-jp-connect' ).hide();
|
||||
$( '.akismet-ak-connect' ).hide();
|
||||
$( 'a.toggle-ak-connect' ).show();
|
||||
} );
|
||||
});
|
||||
30
content/plugins/akismet/_inc/form.js
Normal file
30
content/plugins/akismet/_inc/form.js
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
var ak_js = document.getElementById( "ak_js" );
|
||||
|
||||
if ( ! ak_js ) {
|
||||
ak_js = document.createElement( 'input' );
|
||||
ak_js.setAttribute( 'id', 'ak_js' );
|
||||
ak_js.setAttribute( 'name', 'ak_js' );
|
||||
ak_js.setAttribute( 'type', 'hidden' );
|
||||
}
|
||||
else {
|
||||
ak_js.parentNode.removeChild( ak_js );
|
||||
}
|
||||
|
||||
ak_js.setAttribute( 'value', ( new Date() ).getTime() );
|
||||
|
||||
var commentForm = document.getElementById( 'commentform' );
|
||||
|
||||
if ( commentForm ) {
|
||||
commentForm.appendChild( ak_js );
|
||||
}
|
||||
else {
|
||||
var replyRowContainer = document.getElementById( 'replyrow' );
|
||||
|
||||
if ( replyRowContainer ) {
|
||||
var children = replyRowContainer.getElementsByTagName( 'td' );
|
||||
|
||||
if ( children.length > 0 ) {
|
||||
children[0].appendChild( ak_js );
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
content/plugins/akismet/_inc/img/logo-full-2x.png
Normal file
BIN
content/plugins/akismet/_inc/img/logo-full-2x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.9 KiB |
66
content/plugins/akismet/akismet.php
Normal file
66
content/plugins/akismet/akismet.php
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
<?php
|
||||
/**
|
||||
* @package Akismet
|
||||
*/
|
||||
/*
|
||||
Plugin Name: Akismet Anti-Spam
|
||||
Plugin URI: https://akismet.com/
|
||||
Description: Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from spam</strong>. It keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key.
|
||||
Version: 4.1.5
|
||||
Author: Automattic
|
||||
Author URI: https://automattic.com/wordpress-plugins/
|
||||
License: GPLv2 or later
|
||||
Text Domain: akismet
|
||||
*/
|
||||
|
||||
/*
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
Copyright 2005-2015 Automattic, Inc.
|
||||
*/
|
||||
|
||||
// Make sure we don't expose any info if called directly
|
||||
if ( !function_exists( 'add_action' ) ) {
|
||||
echo 'Hi there! I\'m just a plugin, not much I can do when called directly.';
|
||||
exit;
|
||||
}
|
||||
|
||||
define( 'AKISMET_VERSION', '4.1.5' );
|
||||
define( 'AKISMET__MINIMUM_WP_VERSION', '4.0' );
|
||||
define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
||||
define( 'AKISMET_DELETE_LIMIT', 100000 );
|
||||
|
||||
register_activation_hook( __FILE__, array( 'Akismet', 'plugin_activation' ) );
|
||||
register_deactivation_hook( __FILE__, array( 'Akismet', 'plugin_deactivation' ) );
|
||||
|
||||
require_once( AKISMET__PLUGIN_DIR . 'class.akismet.php' );
|
||||
require_once( AKISMET__PLUGIN_DIR . 'class.akismet-widget.php' );
|
||||
require_once( AKISMET__PLUGIN_DIR . 'class.akismet-rest-api.php' );
|
||||
|
||||
add_action( 'init', array( 'Akismet', 'init' ) );
|
||||
|
||||
add_action( 'rest_api_init', array( 'Akismet_REST_API', 'init' ) );
|
||||
|
||||
if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
|
||||
require_once( AKISMET__PLUGIN_DIR . 'class.akismet-admin.php' );
|
||||
add_action( 'init', array( 'Akismet_Admin', 'init' ) );
|
||||
}
|
||||
|
||||
//add wrapper class around deprecated akismet functions that are referenced elsewhere
|
||||
require_once( AKISMET__PLUGIN_DIR . 'wrapper.php' );
|
||||
|
||||
if ( defined( 'WP_CLI' ) && WP_CLI ) {
|
||||
require_once( AKISMET__PLUGIN_DIR . 'class.akismet-cli.php' );
|
||||
}
|
||||
418
content/plugins/akismet/changelog.txt
Normal file
418
content/plugins/akismet/changelog.txt
Normal file
|
|
@ -0,0 +1,418 @@
|
|||
=== Akismet Anti-Spam ===
|
||||
|
||||
== Archived Changelog Entries ==
|
||||
|
||||
This file contains older changelog entries, so we can keep the size of the standard WordPress readme.txt file reasonable.
|
||||
For the latest changes, please see the "Changelog" section of the [readme.txt file](https://plugins.svn.wordpress.org/akismet/trunk/readme.txt).
|
||||
|
||||
= 4.0.8 =
|
||||
*Release Date - 19 June 2018*
|
||||
|
||||
* Improved the grammar and consistency of the in-admin privacy related notes (notice and config).
|
||||
* Revised in-admin explanation of the comment form privacy notice to make its usage clearer.
|
||||
* Added `rel="nofollow noopener"` to the comment form privacy notice to improve SEO and security.
|
||||
|
||||
= 4.0.7 =
|
||||
*Release Date - 28 May 2018*
|
||||
|
||||
* Based on user feedback, the link on "Learn how your comment data is processed." in the optional privacy notice now has a `target` of `_blank` and opens in a new tab/window.
|
||||
* Updated the in-admin privacy notice to use the term "comment" instead of "contact" in "Akismet can display a notice to your users under your comment forms."
|
||||
* Only show in-admin privacy notice if Akismet has an API Key configured
|
||||
|
||||
= 4.0.6 =
|
||||
*Release Date - 26 May 2018*
|
||||
|
||||
* Moved away from using `empty( get_option() )` to instantiating a variable to be compatible with older versions of PHP (5.3, 5.4, etc).
|
||||
|
||||
= 4.0.5 =
|
||||
*Release Date - 26 May 2018*
|
||||
|
||||
* Corrected version number after tagging. Sorry...
|
||||
|
||||
= 4.0.4 =
|
||||
*Release Date - 26 May 2018*
|
||||
|
||||
* Added a hook to provide Akismet-specific privacy information for a site's privacy policy.
|
||||
* Added tools to control the display of a privacy related notice under comment forms.
|
||||
* Fixed HTML in activation failure message to close META and HEAD tag properly.
|
||||
* Fixed a bug that would sometimes prevent Akismet from being correctly auto-configured.
|
||||
|
||||
= 4.0.3 =
|
||||
*Release Date - 19 February 2018*
|
||||
|
||||
* Added a scheduled task to remove entries in wp_commentmeta that no longer have corresponding comments in wp_comments.
|
||||
* Added a new `akismet_batch_delete_count` action to the batch delete methods for people who'd like to keep track of the numbers of records being processed by those methods.
|
||||
|
||||
= 4.0.2 =
|
||||
*Release Date - 18 December 2017*
|
||||
|
||||
* Fixed a bug that could cause Akismet to recheck a comment that has already been manually approved or marked as spam.
|
||||
* Fixed a bug that could cause Akismet to claim that some comments are still waiting to be checked when no comments are waiting to be checked.
|
||||
|
||||
= 4.0.1 =
|
||||
*Release Date - 6 November 2017*
|
||||
|
||||
* Fixed a bug that could prevent some users from connecting Akismet via their Jetpack connection.
|
||||
* Ensured that any pending Akismet-related events are unscheduled if the plugin is deactivated.
|
||||
* Allow some JavaScript to be run asynchronously to avoid affecting page render speeds.
|
||||
|
||||
= 4.0 =
|
||||
*Release Date - 19 September 2017*
|
||||
|
||||
* Added REST API endpoints for configuring Akismet and retrieving stats.
|
||||
* Increased the minimum supported WordPress version to 4.0.
|
||||
* Added compatibility with comments submitted via the REST API.
|
||||
* Improved the progress indicator on the "Check for Spam" button.
|
||||
|
||||
= 3.3.4 =
|
||||
*Release Date - 3 August 2017*
|
||||
|
||||
* Disabled Akismet's debug log output by default unless AKISMET_DEBUG is defined.
|
||||
* URL previews now begin preloading when the mouse moves near them in the comments section of wp-admin.
|
||||
* When a comment is caught by the Comment Blacklist, Akismet will always allow it to stay in the trash even if it is spam as well.
|
||||
* Fixed a bug that was preventing an error from being shown when a site can't reach Akismet's servers.
|
||||
|
||||
= 3.3.3 =
|
||||
*Release Date - 13 July 2017*
|
||||
|
||||
* Reduced amount of bandwidth used by the URL Preview feature.
|
||||
* Improved the admin UI when the API key is manually pre-defined for the site.
|
||||
* Removed a workaround for WordPress installations older than 3.3 that will improve Akismet's compatibility with other plugins.
|
||||
* The number of spam blocked that is displayed on the WordPress dashboard will now be more accurate and updated more frequently.
|
||||
* Fixed a bug in the Akismet widget that could cause PHP warnings.
|
||||
|
||||
= 3.3.2 =
|
||||
*Release Date - 10 May 2017*
|
||||
|
||||
* Fixed a bug causing JavaScript errors in some browsers.
|
||||
|
||||
= 3.3.1 =
|
||||
*Release Date - 2 May 2017*
|
||||
|
||||
* Improve performance by only requesting the akismet_comment_nonce option when absolutely necessary.
|
||||
* Fixed two bugs that could cause PHP warnings.
|
||||
* Fixed a bug that was preventing the "Remove author URL" feature from working after a comment was edited using "Quick Edit."
|
||||
* Fixed a bug that was preventing the URL preview feature from working after a comment was edited using "Quick Edit."
|
||||
|
||||
= 3.3 =
|
||||
*Release Date - 23 February 2017*
|
||||
|
||||
* Updated the Akismet admin pages with a new clean design.
|
||||
* Fixed bugs preventing the `akismet_add_comment_nonce` and `akismet_update_alert` wrapper functions from working properly.
|
||||
* Fixed bug preventing the loading indicator from appearing when re-checking all comments for spam.
|
||||
* Added a progress indicator to the "Check for Spam" button.
|
||||
* Added a success message after manually rechecking the Pending queue for spam.
|
||||
|
||||
= 3.2 =
|
||||
*Release Date - 6 September 2016*
|
||||
|
||||
* Added a WP-CLI module. You can now check comments and recheck the moderation queue from the command line.
|
||||
* Stopped using the deprecated jQuery function `.live()`.
|
||||
* Fixed a bug in `remove_comment_author_url()` and `add_comment_author_url()` that could generate PHP notices.
|
||||
* Fixed a bug that could cause an infinite loop for sites with very very very large comment IDs.
|
||||
* Fixed a bug that could cause the Akismet widget title to be blank.
|
||||
|
||||
= 3.1.11 =
|
||||
*Release Date - 12 May 2016*
|
||||
|
||||
* Fixed a bug that could cause the "Check for Spam" button to skip some comments.
|
||||
* Fixed a bug that could prevent some spam submissions from being sent to Akismet.
|
||||
* Updated all links to use https:// when possible.
|
||||
* Disabled Akismet debug logging unless WP_DEBUG and WP_DEBUG_LOG are both enabled.
|
||||
|
||||
= 3.1.10 =
|
||||
*Release Date - 1 April 2016*
|
||||
|
||||
* Fixed a bug that could cause comments caught as spam to be placed in the Pending queue.
|
||||
* Fixed a bug that could have resulted in comments that were caught by the core WordPress comment blacklist not to have a corresponding History entry.
|
||||
* Fixed a bug that could have caused avoidable PHP warnings in the error log.
|
||||
|
||||
= 3.1.9 =
|
||||
*Release Date - 28 March 2016*
|
||||
|
||||
* Add compatibility with Jetpack so that Jetpack can automatically configure Akismet settings when appropriate.
|
||||
* Fixed a bug preventing some comment data from being sent to Akismet.
|
||||
|
||||
= 3.1.8 =
|
||||
*Release Date - 4 March 2016*
|
||||
|
||||
* Fixed a bug preventing Akismet from being used with some plugins that rewrite admin URLs.
|
||||
* Reduced the amount of bandwidth used on Akismet API calls
|
||||
* Reduced the amount of space Akismet uses in the database
|
||||
* Fixed a bug that could cause comments caught as spam to be placed in the Pending queue.
|
||||
|
||||
= 3.1.7 =
|
||||
*Release Date - 4 January 2016*
|
||||
|
||||
* Added documentation for the 'akismet_comment_nonce' filter.
|
||||
* The post-install activation button is now accessible to screen readers and keyboard-only users.
|
||||
* Fixed a bug that was preventing the "Remove author URL" feature from working in WordPress 4.4
|
||||
|
||||
= 3.1.6 =
|
||||
*Release Date - 14 December 2015*
|
||||
|
||||
* Improve the notices shown after activating Akismet.
|
||||
* Update some strings to allow for the proper plural forms in all languages.
|
||||
|
||||
= 3.1.5 =
|
||||
*Release Date - 13 October 2015*
|
||||
|
||||
* Closes a potential XSS vulnerability.
|
||||
|
||||
= 3.1.4 =
|
||||
*Release Date - 24 September 2015*
|
||||
|
||||
* Fixed a bug that was preventing some users from automatically connecting using Jetpack if they didn't have a current Akismet subscription.
|
||||
* Fixed a bug that could cause comments caught as spam to be placed in the Pending queue.
|
||||
* Error messages and instructions have been simplified to be more understandable.
|
||||
* Link previews are enabled for all links inside comments, not just the author's website link.
|
||||
|
||||
= 3.1.3 =
|
||||
*Release Date - 6 July 2015*
|
||||
|
||||
* Notify users when their account status changes after previously being successfully set up. This should help any users who are seeing blank Akismet settings screens.
|
||||
|
||||
= 3.1.2 =
|
||||
*Release Date - 7 June 2015*
|
||||
|
||||
* Reduced the amount of space Akismet uses in the commentmeta table.
|
||||
* Fixed a bug where some comments with quotes in the author name weren't getting history entries
|
||||
* Pre-emptive security improvements to ensure that the Akismet plugin can't be used by attackers to compromise a WordPress installation.
|
||||
* Better UI for the key entry field: allow whitespace to be included at the beginning or end of the key and strip it out automatically when the form is submitted.
|
||||
* When deactivating the plugin, notify the Akismet API so the site can be marked as inactive.
|
||||
* Clearer error messages.
|
||||
|
||||
= 3.1.1 =
|
||||
*Release Date - 17th March, 2015*
|
||||
|
||||
* Improvements to the "Remove comment author URL" JavaScript
|
||||
* Include the pingback pre-check from the 2.6 branch.
|
||||
|
||||
= 3.1 =
|
||||
*Release Date - 11th March, 2015*
|
||||
|
||||
* Use HTTPS by default for all requests to Akismet.
|
||||
* Fix for a situation where Akismet might strip HTML from a comment.
|
||||
|
||||
= 3.0.4 =
|
||||
*Release Date - 11th December, 2014*
|
||||
|
||||
* Fix to make .htaccess compatible with Apache 2.4.
|
||||
* Fix to allow removal of https author URLs.
|
||||
* Fix to avoid stripping part of the author URL when removing and re-adding.
|
||||
* Removed the "Check for Spam" button from the "Trash" and "Approved" queues, where it would have no effect.
|
||||
* Allow automatic API key configuration when Jetpack is installed and connected to a WordPress.com account
|
||||
|
||||
= 3.0.3 =
|
||||
*Release Date - 3rd November, 2014*
|
||||
|
||||
* Fix for sending the wrong data to delete_comment action that could have prevented old spam comments from being deleted.
|
||||
* Added a filter to disable logging of Akismet debugging information.
|
||||
* Added a filter for the maximum comment age when deleting old spam comments.
|
||||
* Added a filter for the number per batch when deleting old spam comments.
|
||||
* Removed the "Check for Spam" button from the Spam folder.
|
||||
|
||||
= 3.0.2 =
|
||||
*Release Date - 18th August, 2014*
|
||||
|
||||
* Performance improvements.
|
||||
* Fixed a bug that could truncate the comment data being sent to Akismet for checking.
|
||||
|
||||
= 3.0.1 =
|
||||
*Release Date - 9th July, 2014*
|
||||
|
||||
* Removed dependency on PHP's fsockopen function
|
||||
* Fix spam/ham reports to work when reported outside of the WP dashboard, e.g., from Notifications or the WP app
|
||||
* Remove jQuery dependency for comment form JavaScript
|
||||
* Remove unnecessary data from some Akismet comment meta
|
||||
* Suspended keys will now result in all comments being put in moderation, not spam.
|
||||
|
||||
= 3.0.0 =
|
||||
*Release Date - 15th April, 2014*
|
||||
|
||||
* Move Akismet to Settings menu
|
||||
* Drop Akismet Stats menu
|
||||
* Add stats snapshot to Akismet settings
|
||||
* Add Akismet subscription details and status to Akismet settings
|
||||
* Add contextual help for each page
|
||||
* Improve Akismet setup to use Jetpack to automate plugin setup
|
||||
* Fix "Check for Spam" to use AJAX to avoid page timing out
|
||||
* Fix Akismet settings page to be responsive
|
||||
* Drop legacy code
|
||||
* Tidy up CSS and Javascript
|
||||
* Replace the old discard setting with a new "discard pervasive spam" feature.
|
||||
|
||||
= 2.6.0 =
|
||||
*Release Date - 18th March, 2014*
|
||||
|
||||
* Add ajax paging to the check for spam button to handle large volumes of comments
|
||||
* Optimize javascript and add localization support
|
||||
* Fix bug in link to spam comments from right now dashboard widget
|
||||
* Fix bug with deleting old comments to avoid timeouts dealing with large volumes of comments
|
||||
* Include X-Pingback-Forwarded-For header in outbound WordPress pingback verifications
|
||||
* Add pre-check for pingbacks, to stop spam before an outbound verification request is made
|
||||
|
||||
= 2.5.9 =
|
||||
*Release Date - 1st August, 2013*
|
||||
|
||||
* Update 'Already have a key' link to redirect page rather than depend on javascript
|
||||
* Fix some non-translatable strings to be translatable
|
||||
* Update Activation banner in plugins page to redirect user to Akismet config page
|
||||
|
||||
= 2.5.8 =
|
||||
*Release Date - 20th January, 2013*
|
||||
|
||||
* Simplify the activation process for new users
|
||||
* Remove the reporter_ip parameter
|
||||
* Minor preventative security improvements
|
||||
|
||||
= 2.5.7 =
|
||||
*Release Date - 13th December, 2012*
|
||||
|
||||
* FireFox Stats iframe preview bug
|
||||
* Fix mshots preview when using https
|
||||
* Add .htaccess to block direct access to files
|
||||
* Prevent some PHP notices
|
||||
* Fix Check For Spam return location when referrer is empty
|
||||
* Fix Settings links for network admins
|
||||
* Fix prepare() warnings in WP 3.5
|
||||
|
||||
= 2.5.6 =
|
||||
*Release Date - 26th April, 2012*
|
||||
|
||||
* Prevent retry scheduling problems on sites where wp_cron is misbehaving
|
||||
* Preload mshot previews
|
||||
* Modernize the widget code
|
||||
* Fix a bug where comments were not held for moderation during an error condition
|
||||
* Improve the UX and display when comments are temporarily held due to an error
|
||||
* Make the Check For Spam button force a retry when comments are held due to an error
|
||||
* Handle errors caused by an invalid key
|
||||
* Don't retry comments that are too old
|
||||
* Improve error messages when verifying an API key
|
||||
|
||||
= 2.5.5 =
|
||||
*Release Date - 11th January, 2012*
|
||||
|
||||
* Add nonce check for comment author URL remove action
|
||||
* Fix the settings link
|
||||
|
||||
= 2.5.4 =
|
||||
*Release Date - 5th January, 2012*
|
||||
|
||||
* Limit Akismet CSS and Javascript loading in wp-admin to just the pages that need it
|
||||
* Added author URL quick removal functionality
|
||||
* Added mShot preview on Author URL hover
|
||||
* Added empty index.php to prevent directory listing
|
||||
* Move wp-admin menu items under Jetpack, if it is installed
|
||||
* Purge old Akismet comment meta data, default of 15 days
|
||||
|
||||
= 2.5.3 =
|
||||
*Release Date - 8th Febuary, 2011*
|
||||
|
||||
* Specify the license is GPL v2 or later
|
||||
* Fix a bug that could result in orphaned commentmeta entries
|
||||
* Include hotfix for WordPress 3.0.5 filter issue
|
||||
|
||||
= 2.5.2 =
|
||||
*Release Date - 14th January, 2011*
|
||||
|
||||
* Properly format the comment count for author counts
|
||||
* Look for super admins on multisite installs when looking up user roles
|
||||
* Increase the HTTP request timeout
|
||||
* Removed padding for author approved count
|
||||
* Fix typo in function name
|
||||
* Set Akismet stats iframe height to fixed 2500px. Better to have one tall scroll bar than two side by side.
|
||||
|
||||
= 2.5.1 =
|
||||
*Release Date - 17th December, 2010*
|
||||
|
||||
* Fix a bug that caused the "Auto delete" option to fail to discard comments correctly
|
||||
* Remove the comment nonce form field from the 'Akismet Configuration' page in favor of using a filter, akismet_comment_nonce
|
||||
* Fixed padding bug in "author" column of posts screen
|
||||
* Added margin-top to "cleared by ..." badges on dashboard
|
||||
* Fix possible error when calling akismet_cron_recheck()
|
||||
* Fix more PHP warnings
|
||||
* Clean up XHTML warnings for comment nonce
|
||||
* Fix for possible condition where scheduled comment re-checks could get stuck
|
||||
* Clean up the comment meta details after deleting a comment
|
||||
* Only show the status badge if the comment status has been changed by someone/something other than Akismet
|
||||
* Show a 'History' link in the row-actions
|
||||
* Translation fixes
|
||||
* Reduced font-size on author name
|
||||
* Moved "flagged by..." notification to top right corner of comment container and removed heavy styling
|
||||
* Hid "flagged by..." notification while on dashboard
|
||||
|
||||
= 2.5.0 =
|
||||
*Release Date - 7th December, 2010*
|
||||
|
||||
* Track comment actions under 'Akismet Status' on the edit comment screen
|
||||
* Fix a few remaining deprecated function calls ( props Mike Glendinning )
|
||||
* Use HTTPS for the stats IFRAME when wp-admin is using HTTPS
|
||||
* Use the WordPress HTTP class if available
|
||||
* Move the admin UI code to a separate file, only loaded when needed
|
||||
* Add cron retry feature, to replace the old connectivity check
|
||||
* Display Akismet status badge beside each comment
|
||||
* Record history for each comment, and display it on the edit page
|
||||
* Record the complete comment as originally submitted in comment_meta, to use when reporting spam and ham
|
||||
* Highlight links in comment content
|
||||
* New option, "Show the number of comments you've approved beside each comment author."
|
||||
* New option, "Use a nonce on the comment form."
|
||||
|
||||
= 2.4.0 =
|
||||
*Release Date - 23rd August, 2010*
|
||||
|
||||
* Spell out that the license is GPLv2
|
||||
* Fix PHP warnings
|
||||
* Fix WordPress deprecated function calls
|
||||
* Fire the delete_comment action when deleting comments
|
||||
* Move code specific for older WP versions to legacy.php
|
||||
* General code clean up
|
||||
|
||||
= 2.3.0 =
|
||||
*Release Date - 5th June, 2010*
|
||||
|
||||
* Fix "Are you sure" nonce message on config screen in WPMU
|
||||
* Fix XHTML compliance issue in sidebar widget
|
||||
* Change author link; remove some old references to WordPress.com accounts
|
||||
* Localize the widget title (core ticket #13879)
|
||||
|
||||
= 2.2.9 =
|
||||
*Release Date - 2nd June, 2010*
|
||||
|
||||
* Eliminate a potential conflict with some plugins that may cause spurious reports
|
||||
|
||||
= 2.2.8 =
|
||||
*Release Date - 27th May, 2010*
|
||||
|
||||
* Fix bug in initial comment check for ipv6 addresses
|
||||
* Report comments as ham when they are moved from spam to moderation
|
||||
* Report comments as ham when clicking undo after spam
|
||||
* Use transition_comment_status action when available instead of older actions for spam/ham submissions
|
||||
* Better diagnostic messages when PHP network functions are unavailable
|
||||
* Better handling of comments by logged-in users
|
||||
|
||||
= 2.2.7 =
|
||||
*Release Date - 17th December, 2009*
|
||||
|
||||
* Add a new AKISMET_VERSION constant
|
||||
* Reduce the possibility of over-counting spam when another spam filter plugin is in use
|
||||
* Disable the connectivity check when the API key is hard-coded for WPMU
|
||||
|
||||
= 2.2.6 =
|
||||
*Release Date - 20th July, 2009*
|
||||
|
||||
* Fix a global warning introduced in 2.2.5
|
||||
* Add changelog and additional readme.txt tags
|
||||
* Fix an array conversion warning in some versions of PHP
|
||||
* Support a new WPCOM_API_KEY constant for easier use with WordPress MU
|
||||
|
||||
= 2.2.5 =
|
||||
*Release Date - 13th July, 2009*
|
||||
|
||||
* Include a new Server Connectivity diagnostic check, to detect problems caused by firewalls
|
||||
|
||||
= 2.2.4 =
|
||||
*Release Date - 3rd June, 2009*
|
||||
|
||||
* Fixed a key problem affecting the stats feature in WordPress MU
|
||||
* Provide additional blog information in Akismet API calls
|
||||
1259
content/plugins/akismet/class.akismet-admin.php
Normal file
1259
content/plugins/akismet/class.akismet-admin.php
Normal file
File diff suppressed because it is too large
Load diff
185
content/plugins/akismet/class.akismet-cli.php
Normal file
185
content/plugins/akismet/class.akismet-cli.php
Normal file
|
|
@ -0,0 +1,185 @@
|
|||
<?php
|
||||
|
||||
WP_CLI::add_command( 'akismet', 'Akismet_CLI' );
|
||||
|
||||
/**
|
||||
* Filter spam comments.
|
||||
*/
|
||||
class Akismet_CLI extends WP_CLI_Command {
|
||||
/**
|
||||
* Checks one or more comments against the Akismet API.
|
||||
*
|
||||
* ## OPTIONS
|
||||
* <comment_id>...
|
||||
* : The ID(s) of the comment(s) to check.
|
||||
*
|
||||
* [--noaction]
|
||||
* : Don't change the status of the comment. Just report what Akismet thinks it is.
|
||||
*
|
||||
* ## EXAMPLES
|
||||
*
|
||||
* wp akismet check 12345
|
||||
*
|
||||
* @alias comment-check
|
||||
*/
|
||||
public function check( $args, $assoc_args ) {
|
||||
foreach ( $args as $comment_id ) {
|
||||
if ( isset( $assoc_args['noaction'] ) ) {
|
||||
// Check the comment, but don't reclassify it.
|
||||
$api_response = Akismet::check_db_comment( $comment_id, 'wp-cli' );
|
||||
}
|
||||
else {
|
||||
$api_response = Akismet::recheck_comment( $comment_id, 'wp-cli' );
|
||||
}
|
||||
|
||||
if ( 'true' === $api_response ) {
|
||||
WP_CLI::line( sprintf( __( "Comment #%d is spam.", 'akismet' ), $comment_id ) );
|
||||
}
|
||||
else if ( 'false' === $api_response ) {
|
||||
WP_CLI::line( sprintf( __( "Comment #%d is not spam.", 'akismet' ), $comment_id ) );
|
||||
}
|
||||
else {
|
||||
if ( false === $api_response ) {
|
||||
WP_CLI::error( __( "Failed to connect to Akismet.", 'akismet' ) );
|
||||
}
|
||||
else if ( is_wp_error( $api_response ) ) {
|
||||
WP_CLI::warning( sprintf( __( "Comment #%d could not be checked.", 'akismet' ), $comment_id ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Recheck all comments in the Pending queue.
|
||||
*
|
||||
* ## EXAMPLES
|
||||
*
|
||||
* wp akismet recheck_queue
|
||||
*
|
||||
* @alias recheck-queue
|
||||
*/
|
||||
public function recheck_queue() {
|
||||
$batch_size = 100;
|
||||
$start = 0;
|
||||
|
||||
$total_counts = array();
|
||||
|
||||
do {
|
||||
$result_counts = Akismet_Admin::recheck_queue_portion( $start, $batch_size );
|
||||
|
||||
if ( $result_counts['processed'] > 0 ) {
|
||||
foreach ( $result_counts as $key => $count ) {
|
||||
if ( ! isset( $total_counts[ $key ] ) ) {
|
||||
$total_counts[ $key ] = $count;
|
||||
}
|
||||
else {
|
||||
$total_counts[ $key ] += $count;
|
||||
}
|
||||
}
|
||||
$start += $batch_size;
|
||||
$start -= $result_counts['spam']; // These comments will have been removed from the queue.
|
||||
}
|
||||
} while ( $result_counts['processed'] > 0 );
|
||||
|
||||
WP_CLI::line( sprintf( _n( "Processed %d comment.", "Processed %d comments.", $total_counts['processed'], 'akismet' ), number_format( $total_counts['processed'] ) ) );
|
||||
WP_CLI::line( sprintf( _n( "%d comment moved to Spam.", "%d comments moved to Spam.", $total_counts['spam'], 'akismet' ), number_format( $total_counts['spam'] ) ) );
|
||||
|
||||
if ( $total_counts['error'] ) {
|
||||
WP_CLI::line( sprintf( _n( "%d comment could not be checked.", "%d comments could not be checked.", $total_counts['error'], 'akismet' ), number_format( $total_counts['error'] ) ) );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetches stats from the Akismet API.
|
||||
*
|
||||
* ## OPTIONS
|
||||
*
|
||||
* [<interval>]
|
||||
* : The time period for which to retrieve stats.
|
||||
* ---
|
||||
* default: all
|
||||
* options:
|
||||
* - days
|
||||
* - months
|
||||
* - all
|
||||
* ---
|
||||
*
|
||||
* [--format=<format>]
|
||||
* : Allows overriding the output of the command when listing connections.
|
||||
* ---
|
||||
* default: table
|
||||
* options:
|
||||
* - table
|
||||
* - json
|
||||
* - csv
|
||||
* - yaml
|
||||
* - count
|
||||
* ---
|
||||
*
|
||||
* [--summary]
|
||||
* : When set, will display a summary of the stats.
|
||||
*
|
||||
* ## EXAMPLES
|
||||
*
|
||||
* wp akismet stats
|
||||
* wp akismet stats all
|
||||
* wp akismet stats days
|
||||
* wp akismet stats months
|
||||
* wp akismet stats all --summary
|
||||
*/
|
||||
public function stats( $args, $assoc_args ) {
|
||||
$api_key = Akismet::get_api_key();
|
||||
|
||||
if ( empty( $api_key ) ) {
|
||||
WP_CLI::error( __( 'API key must be set to fetch stats.', 'akismet' ) );
|
||||
}
|
||||
|
||||
switch ( $args[0] ) {
|
||||
case 'days':
|
||||
$interval = '60-days';
|
||||
break;
|
||||
case 'months':
|
||||
$interval = '6-months';
|
||||
break;
|
||||
default:
|
||||
$interval = 'all';
|
||||
break;
|
||||
}
|
||||
|
||||
$response = Akismet::http_post(
|
||||
Akismet::build_query( array(
|
||||
'blog' => get_option( 'home' ),
|
||||
'key' => $api_key,
|
||||
'from' => $interval,
|
||||
) ),
|
||||
'get-stats'
|
||||
);
|
||||
|
||||
if ( empty( $response[1] ) ) {
|
||||
WP_CLI::error( __( 'Currently unable to fetch stats. Please try again.', 'akismet' ) );
|
||||
}
|
||||
|
||||
$response_body = json_decode( $response[1], true );
|
||||
|
||||
if ( is_null( $response_body ) ) {
|
||||
WP_CLI::error( __( 'Stats response could not be decoded.', 'akismet' ) );
|
||||
}
|
||||
|
||||
if ( isset( $assoc_args['summary'] ) ) {
|
||||
$keys = array(
|
||||
'spam',
|
||||
'ham',
|
||||
'missed_spam',
|
||||
'false_positives',
|
||||
'accuracy',
|
||||
'time_saved',
|
||||
);
|
||||
|
||||
WP_CLI\Utils\format_items( $assoc_args['format'], array( $response_body ), $keys );
|
||||
}
|
||||
else {
|
||||
$stats = $response_body['breakdown'];
|
||||
WP_CLI\Utils\format_items( $assoc_args['format'], $stats, array_keys( end( $stats ) ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
366
content/plugins/akismet/class.akismet-rest-api.php
Normal file
366
content/plugins/akismet/class.akismet-rest-api.php
Normal file
|
|
@ -0,0 +1,366 @@
|
|||
<?php
|
||||
|
||||
class Akismet_REST_API {
|
||||
/**
|
||||
* Register the REST API routes.
|
||||
*/
|
||||
public static function init() {
|
||||
if ( ! function_exists( 'register_rest_route' ) ) {
|
||||
// The REST API wasn't integrated into core until 4.4, and we support 4.0+ (for now).
|
||||
return false;
|
||||
}
|
||||
|
||||
register_rest_route( 'akismet/v1', '/key', array(
|
||||
array(
|
||||
'methods' => WP_REST_Server::READABLE,
|
||||
'permission_callback' => array( 'Akismet_REST_API', 'privileged_permission_callback' ),
|
||||
'callback' => array( 'Akismet_REST_API', 'get_key' ),
|
||||
), array(
|
||||
'methods' => WP_REST_Server::EDITABLE,
|
||||
'permission_callback' => array( 'Akismet_REST_API', 'privileged_permission_callback' ),
|
||||
'callback' => array( 'Akismet_REST_API', 'set_key' ),
|
||||
'args' => array(
|
||||
'key' => array(
|
||||
'required' => true,
|
||||
'type' => 'string',
|
||||
'sanitize_callback' => array( 'Akismet_REST_API', 'sanitize_key' ),
|
||||
'description' => __( 'A 12-character Akismet API key. Available at akismet.com/get/', 'akismet' ),
|
||||
),
|
||||
),
|
||||
), array(
|
||||
'methods' => WP_REST_Server::DELETABLE,
|
||||
'permission_callback' => array( 'Akismet_REST_API', 'privileged_permission_callback' ),
|
||||
'callback' => array( 'Akismet_REST_API', 'delete_key' ),
|
||||
)
|
||||
) );
|
||||
|
||||
register_rest_route( 'akismet/v1', '/settings/', array(
|
||||
array(
|
||||
'methods' => WP_REST_Server::READABLE,
|
||||
'permission_callback' => array( 'Akismet_REST_API', 'privileged_permission_callback' ),
|
||||
'callback' => array( 'Akismet_REST_API', 'get_settings' ),
|
||||
),
|
||||
array(
|
||||
'methods' => WP_REST_Server::EDITABLE,
|
||||
'permission_callback' => array( 'Akismet_REST_API', 'privileged_permission_callback' ),
|
||||
'callback' => array( 'Akismet_REST_API', 'set_boolean_settings' ),
|
||||
'args' => array(
|
||||
'akismet_strictness' => array(
|
||||
'required' => false,
|
||||
'type' => 'boolean',
|
||||
'description' => __( 'If true, Akismet will automatically discard the worst spam automatically rather than putting it in the spam folder.', 'akismet' ),
|
||||
),
|
||||
'akismet_show_user_comments_approved' => array(
|
||||
'required' => false,
|
||||
'type' => 'boolean',
|
||||
'description' => __( 'If true, show the number of approved comments beside each comment author in the comments list page.', 'akismet' ),
|
||||
),
|
||||
),
|
||||
)
|
||||
) );
|
||||
|
||||
register_rest_route( 'akismet/v1', '/stats', array(
|
||||
'methods' => WP_REST_Server::READABLE,
|
||||
'permission_callback' => array( 'Akismet_REST_API', 'privileged_permission_callback' ),
|
||||
'callback' => array( 'Akismet_REST_API', 'get_stats' ),
|
||||
'args' => array(
|
||||
'interval' => array(
|
||||
'required' => false,
|
||||
'type' => 'string',
|
||||
'sanitize_callback' => array( 'Akismet_REST_API', 'sanitize_interval' ),
|
||||
'description' => __( 'The time period for which to retrieve stats. Options: 60-days, 6-months, all', 'akismet' ),
|
||||
'default' => 'all',
|
||||
),
|
||||
),
|
||||
) );
|
||||
|
||||
register_rest_route( 'akismet/v1', '/stats/(?P<interval>[\w+])', array(
|
||||
'args' => array(
|
||||
'interval' => array(
|
||||
'description' => __( 'The time period for which to retrieve stats. Options: 60-days, 6-months, all', 'akismet' ),
|
||||
'type' => 'string',
|
||||
),
|
||||
),
|
||||
array(
|
||||
'methods' => WP_REST_Server::READABLE,
|
||||
'permission_callback' => array( 'Akismet_REST_API', 'privileged_permission_callback' ),
|
||||
'callback' => array( 'Akismet_REST_API', 'get_stats' ),
|
||||
)
|
||||
) );
|
||||
|
||||
register_rest_route( 'akismet/v1', '/alert', array(
|
||||
array(
|
||||
'methods' => WP_REST_Server::READABLE,
|
||||
'permission_callback' => array( 'Akismet_REST_API', 'remote_call_permission_callback' ),
|
||||
'callback' => array( 'Akismet_REST_API', 'get_alert' ),
|
||||
'args' => array(
|
||||
'key' => array(
|
||||
'required' => false,
|
||||
'type' => 'string',
|
||||
'sanitize_callback' => array( 'Akismet_REST_API', 'sanitize_key' ),
|
||||
'description' => __( 'A 12-character Akismet API key. Available at akismet.com/get/', 'akismet' ),
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'methods' => WP_REST_Server::EDITABLE,
|
||||
'permission_callback' => array( 'Akismet_REST_API', 'remote_call_permission_callback' ),
|
||||
'callback' => array( 'Akismet_REST_API', 'set_alert' ),
|
||||
'args' => array(
|
||||
'key' => array(
|
||||
'required' => false,
|
||||
'type' => 'string',
|
||||
'sanitize_callback' => array( 'Akismet_REST_API', 'sanitize_key' ),
|
||||
'description' => __( 'A 12-character Akismet API key. Available at akismet.com/get/', 'akismet' ),
|
||||
),
|
||||
),
|
||||
),
|
||||
array(
|
||||
'methods' => WP_REST_Server::DELETABLE,
|
||||
'permission_callback' => array( 'Akismet_REST_API', 'remote_call_permission_callback' ),
|
||||
'callback' => array( 'Akismet_REST_API', 'delete_alert' ),
|
||||
'args' => array(
|
||||
'key' => array(
|
||||
'required' => false,
|
||||
'type' => 'string',
|
||||
'sanitize_callback' => array( 'Akismet_REST_API', 'sanitize_key' ),
|
||||
'description' => __( 'A 12-character Akismet API key. Available at akismet.com/get/', 'akismet' ),
|
||||
),
|
||||
),
|
||||
)
|
||||
) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current Akismet API key.
|
||||
*
|
||||
* @param WP_REST_Request $request
|
||||
* @return WP_Error|WP_REST_Response
|
||||
*/
|
||||
public static function get_key( $request = null ) {
|
||||
return rest_ensure_response( Akismet::get_api_key() );
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the API key, if possible.
|
||||
*
|
||||
* @param WP_REST_Request $request
|
||||
* @return WP_Error|WP_REST_Response
|
||||
*/
|
||||
public static function set_key( $request ) {
|
||||
if ( defined( 'WPCOM_API_KEY' ) ) {
|
||||
return rest_ensure_response( new WP_Error( 'hardcoded_key', __( 'This site\'s API key is hardcoded and cannot be changed via the API.', 'akismet' ), array( 'status'=> 409 ) ) );
|
||||
}
|
||||
|
||||
$new_api_key = $request->get_param( 'key' );
|
||||
|
||||
if ( ! self::key_is_valid( $new_api_key ) ) {
|
||||
return rest_ensure_response( new WP_Error( 'invalid_key', __( 'The value provided is not a valid and registered API key.', 'akismet' ), array( 'status' => 400 ) ) );
|
||||
}
|
||||
|
||||
update_option( 'wordpress_api_key', $new_api_key );
|
||||
|
||||
return self::get_key();
|
||||
}
|
||||
|
||||
/**
|
||||
* Unset the API key, if possible.
|
||||
*
|
||||
* @param WP_REST_Request $request
|
||||
* @return WP_Error|WP_REST_Response
|
||||
*/
|
||||
public static function delete_key( $request ) {
|
||||
if ( defined( 'WPCOM_API_KEY' ) ) {
|
||||
return rest_ensure_response( new WP_Error( 'hardcoded_key', __( 'This site\'s API key is hardcoded and cannot be deleted.', 'akismet' ), array( 'status'=> 409 ) ) );
|
||||
}
|
||||
|
||||
delete_option( 'wordpress_api_key' );
|
||||
|
||||
return rest_ensure_response( true );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Akismet settings.
|
||||
*
|
||||
* @param WP_REST_Request $request
|
||||
* @return WP_Error|WP_REST_Response
|
||||
*/
|
||||
public static function get_settings( $request = null ) {
|
||||
return rest_ensure_response( array(
|
||||
'akismet_strictness' => ( get_option( 'akismet_strictness', '1' ) === '1' ),
|
||||
'akismet_show_user_comments_approved' => ( get_option( 'akismet_show_user_comments_approved', '1' ) === '1' ),
|
||||
) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the Akismet settings.
|
||||
*
|
||||
* @param WP_REST_Request $request
|
||||
* @return WP_Error|WP_REST_Response
|
||||
*/
|
||||
public static function set_boolean_settings( $request ) {
|
||||
foreach ( array(
|
||||
'akismet_strictness',
|
||||
'akismet_show_user_comments_approved',
|
||||
) as $setting_key ) {
|
||||
|
||||
$setting_value = $request->get_param( $setting_key );
|
||||
if ( is_null( $setting_value ) ) {
|
||||
// This setting was not specified.
|
||||
continue;
|
||||
}
|
||||
|
||||
// From 4.7+, WP core will ensure that these are always boolean
|
||||
// values because they are registered with 'type' => 'boolean',
|
||||
// but we need to do this ourselves for prior versions.
|
||||
$setting_value = Akismet_REST_API::parse_boolean( $setting_value );
|
||||
|
||||
update_option( $setting_key, $setting_value ? '1' : '0' );
|
||||
}
|
||||
|
||||
return self::get_settings();
|
||||
}
|
||||
|
||||
/**
|
||||
* Parse a numeric or string boolean value into a boolean.
|
||||
*
|
||||
* @param mixed $value The value to convert into a boolean.
|
||||
* @return bool The converted value.
|
||||
*/
|
||||
public static function parse_boolean( $value ) {
|
||||
switch ( $value ) {
|
||||
case true:
|
||||
case 'true':
|
||||
case '1':
|
||||
case 1:
|
||||
return true;
|
||||
|
||||
case false:
|
||||
case 'false':
|
||||
case '0':
|
||||
case 0:
|
||||
return false;
|
||||
|
||||
default:
|
||||
return (bool) $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Akismet stats for a given time period.
|
||||
*
|
||||
* Possible `interval` values:
|
||||
* - all
|
||||
* - 60-days
|
||||
* - 6-months
|
||||
*
|
||||
* @param WP_REST_Request $request
|
||||
* @return WP_Error|WP_REST_Response
|
||||
*/
|
||||
public static function get_stats( $request ) {
|
||||
$api_key = Akismet::get_api_key();
|
||||
|
||||
$interval = $request->get_param( 'interval' );
|
||||
|
||||
$stat_totals = array();
|
||||
|
||||
$response = Akismet::http_post( Akismet::build_query( array( 'blog' => get_option( 'home' ), 'key' => $api_key, 'from' => $interval ) ), 'get-stats' );
|
||||
|
||||
if ( ! empty( $response[1] ) ) {
|
||||
$stat_totals[$interval] = json_decode( $response[1] );
|
||||
}
|
||||
|
||||
return rest_ensure_response( $stat_totals );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current alert code and message. Alert codes are used to notify the site owner
|
||||
* if there's a problem, like a connection issue between their site and the Akismet API,
|
||||
* invalid requests being sent, etc.
|
||||
*
|
||||
* @param WP_REST_Request $request
|
||||
* @return WP_Error|WP_REST_Response
|
||||
*/
|
||||
public static function get_alert( $request ) {
|
||||
return rest_ensure_response( array(
|
||||
'code' => get_option( 'akismet_alert_code' ),
|
||||
'message' => get_option( 'akismet_alert_msg' ),
|
||||
) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the current alert code and message by triggering a call to the Akismet server.
|
||||
*
|
||||
* @param WP_REST_Request $request
|
||||
* @return WP_Error|WP_REST_Response
|
||||
*/
|
||||
public static function set_alert( $request ) {
|
||||
delete_option( 'akismet_alert_code' );
|
||||
delete_option( 'akismet_alert_msg' );
|
||||
|
||||
// Make a request so the most recent alert code and message are retrieved.
|
||||
Akismet::verify_key( Akismet::get_api_key() );
|
||||
|
||||
return self::get_alert( $request );
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear the current alert code and message.
|
||||
*
|
||||
* @param WP_REST_Request $request
|
||||
* @return WP_Error|WP_REST_Response
|
||||
*/
|
||||
public static function delete_alert( $request ) {
|
||||
delete_option( 'akismet_alert_code' );
|
||||
delete_option( 'akismet_alert_msg' );
|
||||
|
||||
return self::get_alert( $request );
|
||||
}
|
||||
|
||||
private static function key_is_valid( $key ) {
|
||||
$response = Akismet::http_post(
|
||||
Akismet::build_query(
|
||||
array(
|
||||
'key' => $key,
|
||||
'blog' => get_option( 'home' )
|
||||
)
|
||||
),
|
||||
'verify-key'
|
||||
);
|
||||
|
||||
if ( $response[1] == 'valid' ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function privileged_permission_callback() {
|
||||
return current_user_can( 'manage_options' );
|
||||
}
|
||||
|
||||
/**
|
||||
* For calls that Akismet.com makes to the site to clear outdated alert codes, use the API key for authorization.
|
||||
*/
|
||||
public static function remote_call_permission_callback( $request ) {
|
||||
$local_key = Akismet::get_api_key();
|
||||
|
||||
return $local_key && ( strtolower( $request->get_param( 'key' ) ) === strtolower( $local_key ) );
|
||||
}
|
||||
|
||||
public static function sanitize_interval( $interval, $request, $param ) {
|
||||
$interval = trim( $interval );
|
||||
|
||||
$valid_intervals = array( '60-days', '6-months', 'all', );
|
||||
|
||||
if ( ! in_array( $interval, $valid_intervals ) ) {
|
||||
$interval = 'all';
|
||||
}
|
||||
|
||||
return $interval;
|
||||
}
|
||||
|
||||
public static function sanitize_key( $key, $request, $param ) {
|
||||
return trim( $key );
|
||||
}
|
||||
}
|
||||
114
content/plugins/akismet/class.akismet-widget.php
Normal file
114
content/plugins/akismet/class.akismet-widget.php
Normal file
|
|
@ -0,0 +1,114 @@
|
|||
<?php
|
||||
/**
|
||||
* @package Akismet
|
||||
*/
|
||||
class Akismet_Widget extends WP_Widget {
|
||||
|
||||
function __construct() {
|
||||
load_plugin_textdomain( 'akismet' );
|
||||
|
||||
parent::__construct(
|
||||
'akismet_widget',
|
||||
__( 'Akismet Widget' , 'akismet'),
|
||||
array( 'description' => __( 'Display the number of spam comments Akismet has caught' , 'akismet') )
|
||||
);
|
||||
|
||||
if ( is_active_widget( false, false, $this->id_base ) ) {
|
||||
add_action( 'wp_head', array( $this, 'css' ) );
|
||||
}
|
||||
}
|
||||
|
||||
function css() {
|
||||
?>
|
||||
|
||||
<style type="text/css">
|
||||
.a-stats {
|
||||
width: auto;
|
||||
}
|
||||
.a-stats a {
|
||||
background: #7CA821;
|
||||
background-image:-moz-linear-gradient(0% 100% 90deg,#5F8E14,#7CA821);
|
||||
background-image:-webkit-gradient(linear,0% 0,0% 100%,from(#7CA821),to(#5F8E14));
|
||||
border: 1px solid #5F8E14;
|
||||
border-radius:3px;
|
||||
color: #CFEA93;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
font-weight: normal;
|
||||
height: 100%;
|
||||
-moz-border-radius:3px;
|
||||
padding: 7px 0 8px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
-webkit-border-radius:3px;
|
||||
width: 100%;
|
||||
}
|
||||
.a-stats a:hover {
|
||||
text-decoration: none;
|
||||
background-image:-moz-linear-gradient(0% 100% 90deg,#6F9C1B,#659417);
|
||||
background-image:-webkit-gradient(linear,0% 0,0% 100%,from(#659417),to(#6F9C1B));
|
||||
}
|
||||
.a-stats .count {
|
||||
color: #FFF;
|
||||
display: block;
|
||||
font-size: 15px;
|
||||
line-height: 16px;
|
||||
padding: 0 13px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
</style>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
function form( $instance ) {
|
||||
if ( $instance && isset( $instance['title'] ) ) {
|
||||
$title = $instance['title'];
|
||||
}
|
||||
else {
|
||||
$title = __( 'Spam Blocked' , 'akismet' );
|
||||
}
|
||||
?>
|
||||
|
||||
<p>
|
||||
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title:' , 'akismet'); ?></label>
|
||||
<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
|
||||
</p>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
function update( $new_instance, $old_instance ) {
|
||||
$instance['title'] = strip_tags( $new_instance['title'] );
|
||||
return $instance;
|
||||
}
|
||||
|
||||
function widget( $args, $instance ) {
|
||||
$count = get_option( 'akismet_spam_count' );
|
||||
|
||||
if ( ! isset( $instance['title'] ) ) {
|
||||
$instance['title'] = __( 'Spam Blocked' , 'akismet' );
|
||||
}
|
||||
|
||||
echo $args['before_widget'];
|
||||
if ( ! empty( $instance['title'] ) ) {
|
||||
echo $args['before_title'];
|
||||
echo esc_html( $instance['title'] );
|
||||
echo $args['after_title'];
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="a-stats">
|
||||
<a href="https://akismet.com" target="_blank" title=""><?php printf( _n( '<strong class="count">%1$s spam</strong> blocked by <strong>Akismet</strong>', '<strong class="count">%1$s spam</strong> blocked by <strong>Akismet</strong>', $count , 'akismet'), number_format_i18n( $count ) ); ?></a>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
echo $args['after_widget'];
|
||||
}
|
||||
}
|
||||
|
||||
function akismet_register_widgets() {
|
||||
register_widget( 'Akismet_Widget' );
|
||||
}
|
||||
|
||||
add_action( 'widgets_init', 'akismet_register_widgets' );
|
||||
1496
content/plugins/akismet/class.akismet.php
Normal file
1496
content/plugins/akismet/class.akismet.php
Normal file
File diff suppressed because it is too large
Load diff
2
content/plugins/akismet/index.php
Normal file
2
content/plugins/akismet/index.php
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
# Silence is golden.
|
||||
80
content/plugins/akismet/readme.txt
Normal file
80
content/plugins/akismet/readme.txt
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
=== Akismet Anti-Spam ===
|
||||
Contributors: matt, ryan, andy, mdawaffe, tellyworth, josephscott, lessbloat, eoigal, cfinke, automattic, jgs, procifer, stephdau
|
||||
Tags: akismet, comments, spam, antispam, anti-spam, anti spam, comment moderation, comment spam, contact form spam, spam comments
|
||||
Requires at least: 4.6
|
||||
Tested up to: 5.4
|
||||
Stable tag: 4.1.5
|
||||
License: GPLv2 or later
|
||||
|
||||
Akismet checks your comments and contact form submissions against our global database of spam to protect you and your site from malicious content.
|
||||
|
||||
== Description ==
|
||||
|
||||
Akismet checks your comments and contact form submissions against our global database of spam to prevent your site from publishing malicious content. You can review the comment spam it catches on your blog's "Comments" admin screen.
|
||||
|
||||
Major features in Akismet include:
|
||||
|
||||
* Automatically checks all comments and filters out the ones that look like spam.
|
||||
* Each comment has a status history, so you can easily see which comments were caught or cleared by Akismet and which were spammed or unspammed by a moderator.
|
||||
* URLs are shown in the comment body to reveal hidden or misleading links.
|
||||
* Moderators can see the number of approved comments for each user.
|
||||
* A discard feature that outright blocks the worst spam, saving you disk space and speeding up your site.
|
||||
|
||||
PS: You'll be prompted to get an Akismet.com API key to use it, once activated. Keys are free for personal blogs; paid subscriptions are available for businesses and commercial sites.
|
||||
|
||||
== Installation ==
|
||||
|
||||
Upload the Akismet plugin to your blog, activate it, and then enter your Akismet.com API key.
|
||||
|
||||
1, 2, 3: You're done!
|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 4.1.5 =
|
||||
*Release Date - 29 April 2020*
|
||||
|
||||
* Based on user feedback, we have dropped the in-admin notice explaining the availability of the "privacy notice" option in the AKismet settings screen. The option itself is available, but after displaying the notice for the last 2 years, it is now considered a known fact.
|
||||
* Updated the "Requires at least" to WP 4.6, based on recommendations from https://wp-info.org/tools/checkplugini18n.php?slug=akismet
|
||||
* Moved older changelog entries to a separate file to keep the size of this readme reasonable, also based on recommendations from https://wp-info.org/tools/checkplugini18n.php?slug=akismet
|
||||
|
||||
= 4.1.4 =
|
||||
*Release Date - 17 March 2020*
|
||||
|
||||
* Only redirect to the Akismet setup screen upon plugin activation if the plugin was activated manually from within the plugin-related screens, to help users with non-standard install workflows, like WP-CLI.
|
||||
* Update the layout of the initial setup screen to be more readable on small screens.
|
||||
* If no API key has been entered, don't run code that expects an API key.
|
||||
* Improve the readability of the comment history entries.
|
||||
* Don't modify the comment form HTML if no API key has been set.
|
||||
|
||||
= 4.1.3 =
|
||||
*Release Date - 31 October 2019*
|
||||
|
||||
* Prevented an attacker from being able to cause a user to unknowingly recheck their Pending comments for spam.
|
||||
* Improved compatibility with Jetpack 7.7+.
|
||||
* Updated the plugin activation page to use consistent language and markup.
|
||||
* Redirecting users to the Akismet connnection/settings screen upon plugin activation, in an effort to make it easier for people to get setup.
|
||||
|
||||
= 4.1.2 =
|
||||
*Release Date - 14 May 2019*
|
||||
|
||||
* Fixed a conflict between the Akismet setup banner and other plugin notices.
|
||||
* Reduced the number of API requests made by the plugin when attempting to verify the API key.
|
||||
* Include additional data in the pingback pre-check API request to help make the stats more accurate.
|
||||
* Fixed a bug that was enabling the "Check for Spam" button when no comments were eligible to be checked.
|
||||
* Improved Akismet's AMP compatibility.
|
||||
|
||||
= 4.1.1 =
|
||||
*Release Date - 31 January 2019*
|
||||
|
||||
* Fixed the "Setup Akismet" notice so it resizes responsively.
|
||||
* Only highlight the "Save Changes" button in the Akismet config when changes have been made.
|
||||
* The count of comments in your spam queue shown on the dashboard show now always be up-to-date.
|
||||
|
||||
= 4.1 =
|
||||
*Release Date - 12 November 2018*
|
||||
|
||||
* Added a WP-CLI method for retrieving stats.
|
||||
* Hooked into the new "Personal Data Eraser" functionality from WordPress 4.9.6.
|
||||
* Added functionality to clear outdated alerts from Akismet.com.
|
||||
|
||||
For older changelog entries, please see the [additional changelog.txt file](https://plugins.svn.wordpress.org/akismet/trunk/changelog.txt) delivered with the plugin.
|
||||
8
content/plugins/akismet/views/activate.php
Normal file
8
content/plugins/akismet/views/activate.php
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<div class="akismet-box">
|
||||
<?php Akismet::view( 'title' ); ?>
|
||||
<?php Akismet::view( 'setup' );?>
|
||||
</div>
|
||||
<br/>
|
||||
<div class="akismet-box">
|
||||
<?php Akismet::view( 'enter' );?>
|
||||
</div>
|
||||
242
content/plugins/akismet/views/config.php
Normal file
242
content/plugins/akismet/views/config.php
Normal file
|
|
@ -0,0 +1,242 @@
|
|||
<div id="akismet-plugin-container">
|
||||
<div class="akismet-masthead">
|
||||
<div class="akismet-masthead__inside-container">
|
||||
<div class="akismet-masthead__logo-container">
|
||||
<img class="akismet-masthead__logo" src="<?php echo esc_url( plugins_url( '../_inc/img/logo-full-2x.png', __FILE__ ) ); ?>" alt="Akismet" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="akismet-lower">
|
||||
<?php if ( Akismet::get_api_key() ) { ?>
|
||||
<?php Akismet_Admin::display_status(); ?>
|
||||
<?php } ?>
|
||||
<?php if ( ! empty( $notices ) ) { ?>
|
||||
<?php foreach ( $notices as $notice ) { ?>
|
||||
<?php Akismet::view( 'notice', $notice ); ?>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php if ( $stat_totals && isset( $stat_totals['all'] ) && (int) $stat_totals['all']->spam > 0 ) : ?>
|
||||
<div class="akismet-card">
|
||||
<div class="akismet-section-header">
|
||||
<div class="akismet-section-header__label">
|
||||
<span><?php esc_html_e( 'Statistics' , 'akismet'); ?></span>
|
||||
</div>
|
||||
<div class="akismet-section-header__actions">
|
||||
<a href="<?php echo esc_url( Akismet_Admin::get_page_url( 'stats' ) ); ?>">
|
||||
<?php esc_html_e( 'Detailed Stats' , 'akismet');?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="akismet-new-snapshot">
|
||||
<iframe allowtransparency="true" scrolling="no" frameborder="0" style="width: 100%; height: 220px; overflow: hidden;" src="<?php printf( '//akismet.com/web/1.0/snapshot.php?blog=%s&api_key=%s&height=200&locale=%s', urlencode( get_option( 'home' ) ), Akismet::get_api_key(), get_locale() );?>"></iframe>
|
||||
<ul>
|
||||
<li>
|
||||
<h3><?php esc_html_e( 'Past six months' , 'akismet');?></h3>
|
||||
<span><?php echo number_format( $stat_totals['6-months']->spam );?></span>
|
||||
<?php echo esc_html( _n( 'Spam blocked', 'Spam blocked', $stat_totals['6-months']->spam, 'akismet' ) ); ?>
|
||||
</li>
|
||||
<li>
|
||||
<h3><?php esc_html_e( 'All time' , 'akismet');?></h3>
|
||||
<span><?php echo number_format( $stat_totals['all']->spam );?></span>
|
||||
<?php echo esc_html( _n( 'Spam blocked', 'Spam blocked', $stat_totals['all']->spam, 'akismet' ) ); ?>
|
||||
</li>
|
||||
<li>
|
||||
<h3><?php esc_html_e( 'Accuracy' , 'akismet');?></h3>
|
||||
<span><?php echo floatval( $stat_totals['all']->accuracy ); ?>%</span>
|
||||
<?php printf( _n( '%s missed spam', '%s missed spam', $stat_totals['all']->missed_spam, 'akismet' ), number_format( $stat_totals['all']->missed_spam ) ); ?>
|
||||
|
|
||||
<?php printf( _n( '%s false positive', '%s false positives', $stat_totals['all']->false_positives, 'akismet' ), number_format( $stat_totals['all']->false_positives ) ); ?>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
|
||||
<?php if ( $akismet_user ):?>
|
||||
<div class="akismet-card">
|
||||
<div class="akismet-section-header">
|
||||
<div class="akismet-section-header__label">
|
||||
<span><?php esc_html_e( 'Settings' , 'akismet'); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inside">
|
||||
<form action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="POST">
|
||||
<table cellspacing="0" class="akismet-settings">
|
||||
<tbody>
|
||||
<?php if ( ! Akismet::predefined_api_key() ) { ?>
|
||||
<tr>
|
||||
<th class="akismet-api-key" width="10%" align="left" scope="row"><?php esc_html_e('API Key', 'akismet');?></th>
|
||||
<td width="5%"/>
|
||||
<td align="left">
|
||||
<span class="api-key"><input id="key" name="key" type="text" size="15" value="<?php echo esc_attr( get_option('wordpress_api_key') ); ?>" class="<?php echo esc_attr( 'regular-text code ' . $akismet_user->status ); ?>"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if ( isset( $_GET['ssl_status'] ) ) { ?>
|
||||
<tr>
|
||||
<th align="left" scope="row"><?php esc_html_e( 'SSL Status', 'akismet' ); ?></th>
|
||||
<td></td>
|
||||
<td align="left">
|
||||
<p>
|
||||
<?php
|
||||
|
||||
if ( ! wp_http_supports( array( 'ssl' ) ) ) {
|
||||
?><b><?php esc_html_e( 'Disabled.', 'akismet' ); ?></b> <?php esc_html_e( 'Your Web server cannot make SSL requests; contact your Web host and ask them to add support for SSL requests.', 'akismet' ); ?><?php
|
||||
}
|
||||
else {
|
||||
$ssl_disabled = get_option( 'akismet_ssl_disabled' );
|
||||
|
||||
if ( $ssl_disabled ) {
|
||||
?><b><?php esc_html_e( 'Temporarily disabled.', 'akismet' ); ?></b> <?php esc_html_e( 'Akismet encountered a problem with a previous SSL request and disabled it temporarily. It will begin using SSL for requests again shortly.', 'akismet' ); ?><?php
|
||||
}
|
||||
else {
|
||||
?><b><?php esc_html_e( 'Enabled.', 'akismet' ); ?></b> <?php esc_html_e( 'All systems functional.', 'akismet' ); ?><?php
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<th align="left" scope="row"><?php esc_html_e('Comments', 'akismet');?></th>
|
||||
<td></td>
|
||||
<td align="left">
|
||||
<p>
|
||||
<label for="akismet_show_user_comments_approved" title="<?php esc_attr_e( 'Show approved comments' , 'akismet'); ?>">
|
||||
<input
|
||||
name="akismet_show_user_comments_approved"
|
||||
id="akismet_show_user_comments_approved"
|
||||
value="1"
|
||||
type="checkbox"
|
||||
<?php
|
||||
|
||||
// If the option isn't set, or if it's enabled ('1'), or if it was enabled a long time ago ('true'), check the checkbox.
|
||||
checked( true, ( in_array( get_option( 'akismet_show_user_comments_approved' ), array( false, '1', 'true' ), true ) ) );
|
||||
|
||||
?>
|
||||
/>
|
||||
<?php esc_html_e( 'Show the number of approved comments beside each comment author', 'akismet' ); ?>
|
||||
</label>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="strictness" align="left" scope="row"><?php esc_html_e('Strictness', 'akismet'); ?></th>
|
||||
<td></td>
|
||||
<td align="left">
|
||||
<fieldset><legend class="screen-reader-text"><span><?php esc_html_e('Akismet anti-spam strictness', 'akismet'); ?></span></legend>
|
||||
<p><label for="akismet_strictness_1"><input type="radio" name="akismet_strictness" id="akismet_strictness_1" value="1" <?php checked('1', get_option('akismet_strictness')); ?> /> <?php esc_html_e('Silently discard the worst and most pervasive spam so I never see it.', 'akismet'); ?></label></p>
|
||||
<p><label for="akismet_strictness_0"><input type="radio" name="akismet_strictness" id="akismet_strictness_0" value="0" <?php checked('0', get_option('akismet_strictness')); ?> /> <?php esc_html_e('Always put spam in the Spam folder for review.', 'akismet'); ?></label></p>
|
||||
</fieldset>
|
||||
<span class="akismet-note"><strong><?php esc_html_e('Note:', 'akismet');?></strong>
|
||||
<?php
|
||||
|
||||
$delete_interval = max( 1, intval( apply_filters( 'akismet_delete_comment_interval', 15 ) ) );
|
||||
|
||||
printf(
|
||||
_n(
|
||||
'Spam in the <a href="%1$s">spam folder</a> older than 1 day is deleted automatically.',
|
||||
'Spam in the <a href="%1$s">spam folder</a> older than %2$d days is deleted automatically.',
|
||||
$delete_interval,
|
||||
'akismet'
|
||||
),
|
||||
admin_url( 'edit-comments.php?comment_status=spam' ),
|
||||
$delete_interval
|
||||
);
|
||||
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="comment-form-privacy-notice" align="left" scope="row"><?php esc_html_e('Privacy', 'akismet'); ?></th>
|
||||
<td></td>
|
||||
<td align="left">
|
||||
<fieldset><legend class="screen-reader-text"><span><?php esc_html_e('Akismet privacy notice', 'akismet'); ?></span></legend>
|
||||
<p><label for="akismet_comment_form_privacy_notice_display"><input type="radio" name="akismet_comment_form_privacy_notice" id="akismet_comment_form_privacy_notice_display" value="display" <?php checked('display', get_option('akismet_comment_form_privacy_notice')); ?> /> <?php esc_html_e('Display a privacy notice under your comment forms.', 'akismet'); ?></label></p>
|
||||
<p><label for="akismet_comment_form_privacy_notice_hide"><input type="radio" name="akismet_comment_form_privacy_notice" id="akismet_comment_form_privacy_notice_hide" value="hide" <?php echo in_array( get_option('akismet_comment_form_privacy_notice'), array('display', 'hide') ) ? checked('hide', get_option('akismet_comment_form_privacy_notice'), false) : 'checked="checked"'; ?> /> <?php esc_html_e('Do not display privacy notice.', 'akismet'); ?></label></p>
|
||||
</fieldset>
|
||||
<span class="akismet-note"><?php esc_html_e( 'To help your site with transparency under privacy laws like the GDPR, Akismet can display a notice to your users under your comment forms. This feature is disabled by default, however, you can turn it on above.', 'akismet' );?></span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="akismet-card-actions">
|
||||
<?php if ( ! Akismet::predefined_api_key() ) { ?>
|
||||
<div id="delete-action">
|
||||
<a class="submitdelete deletion" href="<?php echo esc_url( Akismet_Admin::get_page_url( 'delete_key' ) ); ?>"><?php esc_html_e('Disconnect this account', 'akismet'); ?></a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php wp_nonce_field(Akismet_Admin::NONCE) ?>
|
||||
<div id="publishing-action">
|
||||
<input type="hidden" name="action" value="enter-key">
|
||||
<input type="submit" name="submit" id="submit" class="akismet-button akismet-could-be-primary" value="<?php esc_attr_e('Save Changes', 'akismet');?>">
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ( ! Akismet::predefined_api_key() ) { ?>
|
||||
<div class="akismet-card">
|
||||
<div class="akismet-section-header">
|
||||
<div class="akismet-section-header__label">
|
||||
<span><?php esc_html_e( 'Account' , 'akismet'); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="inside">
|
||||
<table cellspacing="0" border="0" class="akismet-settings">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row" align="left"><?php esc_html_e( 'Subscription Type' , 'akismet');?></th>
|
||||
<td width="5%"/>
|
||||
<td align="left">
|
||||
<p><?php echo esc_html( $akismet_user->account_name ); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" align="left"><?php esc_html_e( 'Status' , 'akismet');?></th>
|
||||
<td width="5%"/>
|
||||
<td align="left">
|
||||
<p><?php
|
||||
if ( 'cancelled' == $akismet_user->status ) :
|
||||
esc_html_e( 'Cancelled', 'akismet' );
|
||||
elseif ( 'suspended' == $akismet_user->status ) :
|
||||
esc_html_e( 'Suspended', 'akismet' );
|
||||
elseif ( 'missing' == $akismet_user->status ) :
|
||||
esc_html_e( 'Missing', 'akismet' );
|
||||
elseif ( 'no-sub' == $akismet_user->status ) :
|
||||
esc_html_e( 'No Subscription Found', 'akismet' );
|
||||
else :
|
||||
esc_html_e( 'Active', 'akismet' );
|
||||
endif; ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if ( $akismet_user->next_billing_date ) : ?>
|
||||
<tr>
|
||||
<th scope="row" align="left"><?php esc_html_e( 'Next Billing Date' , 'akismet');?></th>
|
||||
<td width="5%"/>
|
||||
<td align="left">
|
||||
<p><?php echo date( 'F j, Y', $akismet_user->next_billing_date ); ?></p>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="akismet-card-actions">
|
||||
<div id="publishing-action">
|
||||
<?php Akismet::view( 'get', array( 'text' => ( $akismet_user->account_type == 'free-api-key' && $akismet_user->status == 'active' ? __( 'Upgrade' , 'akismet') : __( 'Change' , 'akismet') ), 'redirect' => 'upgrade' ) ); ?>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
</div>
|
||||
72
content/plugins/akismet/views/connect-jp.php
Normal file
72
content/plugins/akismet/views/connect-jp.php
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
<?php
|
||||
|
||||
//phpcs:disable VariableAnalysis
|
||||
// There are "undefined" variables here because they're defined in the code that includes this file as a template.
|
||||
|
||||
?>
|
||||
<div class="akismet-box">
|
||||
<?php Akismet::view( 'title' ); ?>
|
||||
<div class="akismet-jp-connect">
|
||||
<h3><?php esc_html_e( 'Connect with Jetpack', 'akismet' ); ?></h3><?php
|
||||
if ( in_array( $akismet_user->status, array( 'no-sub', 'missing' ) ) ) {?>
|
||||
<p><?php esc_html_e( 'Use your Jetpack connection to set up Akismet.', 'akismet' ); ?></p>
|
||||
<form name="akismet_activate" id="akismet_activate" action="https://akismet.com/get/" method="post" class="akismet-right" target="_blank">
|
||||
<input type="hidden" name="passback_url" value="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>"/>
|
||||
<input type="hidden" name="blog" value="<?php echo esc_url( get_option( 'home' ) ); ?>"/>
|
||||
<input type="hidden" name="auto-connect" value="<?php echo esc_attr( $akismet_user->ID ); ?>"/>
|
||||
<input type="hidden" name="redirect" value="plugin-signup"/>
|
||||
<input type="submit" class="akismet-button akismet-is-primary" value="<?php esc_attr_e( 'Connect with Jetpack' , 'akismet' ); ?>"/>
|
||||
</form>
|
||||
<?php echo get_avatar( $akismet_user->user_email, null, null, null, array( 'class' => 'akismet-jetpack-gravatar' ) ); ?>
|
||||
<p><?php
|
||||
/* translators: %s is the WordPress.com username */
|
||||
echo sprintf( esc_html( __( 'You are connected as %s.', 'akismet' ) ), '<b>' . esc_html( $akismet_user->user_login ) . '</b>' ); ?><br /><span class="akismet-jetpack-email"><?php echo esc_html( $akismet_user->user_email ); ?></span></p>
|
||||
<?php } elseif ( $akismet_user->status == 'cancelled' ) { ?>
|
||||
<p><?php esc_html_e( 'Use your Jetpack connection to set up Akismet.', 'akismet' ); ?></p>
|
||||
<form name="akismet_activate" id="akismet_activate" action="https://akismet.com/get/" method="post" class="akismet-right" target="_blank">
|
||||
<input type="hidden" name="passback_url" value="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>"/>
|
||||
<input type="hidden" name="blog" value="<?php echo esc_url( get_option( 'home' ) ); ?>"/>
|
||||
<input type="hidden" name="user_id" value="<?php echo esc_attr( $akismet_user->ID ); ?>"/>
|
||||
<input type="hidden" name="redirect" value="upgrade"/>
|
||||
<input type="submit" class="akismet-button akismet-is-primary" value="<?php esc_attr_e( 'Connect with Jetpack' , 'akismet' ); ?>"/>
|
||||
</form>
|
||||
<?php echo get_avatar( $akismet_user->user_email, null, null, null, array( 'class' => 'akismet-jetpack-gravatar' ) ); ?>
|
||||
<p><?php
|
||||
/* translators: %s is the WordPress.com email address */
|
||||
echo esc_html( sprintf( __( 'Your subscription for %s is cancelled.' , 'akismet' ), $akismet_user->user_email ) ); ?><br /><span class="akismet-jetpack-email"><?php echo esc_html( $akismet_user->user_email ); ?></span></p>
|
||||
<?php } elseif ( $akismet_user->status == 'suspended' ) { ?>
|
||||
<div class="akismet-right">
|
||||
<p><a href="https://akismet.com/contact" class="akismet-button akismet-is-primary"><?php esc_html_e( 'Contact Akismet support' , 'akismet' ); ?></a></p>
|
||||
</div>
|
||||
<p>
|
||||
<span class="akismet-alert-text"><?php
|
||||
/* translators: %s is the WordPress.com email address */
|
||||
echo esc_html( sprintf( __( 'Your subscription for %s is suspended.' , 'akismet' ), $akismet_user->user_email ) ); ?></span>
|
||||
<?php esc_html_e( 'No worries! Get in touch and we’ll sort this out.', 'akismet' ); ?>
|
||||
</p>
|
||||
<?php } else { // ask do they want to use akismet account found using jetpack wpcom connection ?>
|
||||
<p><?php esc_html_e( 'Use your Jetpack connection to set up Akismet.', 'akismet' ); ?></p>
|
||||
<form name="akismet_use_wpcom_key" action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="post" id="akismet-activate" class="akismet-right">
|
||||
<input type="hidden" name="key" value="<?php echo esc_attr( $akismet_user->api_key );?>"/>
|
||||
<input type="hidden" name="action" value="enter-key">
|
||||
<?php wp_nonce_field( Akismet_Admin::NONCE ) ?>
|
||||
<input type="submit" class="akismet-button akismet-is-primary" value="<?php esc_attr_e( 'Connect with Jetpack' , 'akismet' ); ?>"/>
|
||||
</form>
|
||||
<?php echo get_avatar( $akismet_user->user_email, null, null, null, array( 'class' => 'akismet-jetpack-gravatar' ) ); ?>
|
||||
<p><?php
|
||||
/* translators: %s is the WordPress.com username */
|
||||
echo sprintf( esc_html( __( 'You are connected as %s.', 'akismet' ) ), '<b>' . esc_html( $akismet_user->user_login ) . '</b>' ); ?><br /><span class="akismet-jetpack-email"><?php echo esc_html( $akismet_user->user_email ); ?></span></p>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="akismet-ak-connect">
|
||||
<?php Akismet::view( 'setup' );?>
|
||||
</div>
|
||||
<div class="centered akismet-toggles">
|
||||
<a href="#" class="toggle-jp-connect"><?php esc_html_e( 'Connect with Jetpack' ); ?></a>
|
||||
<a href="#" class="toggle-ak-connect"><?php esc_html_e( 'Set up a different account' ); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<div class="akismet-box">
|
||||
<?php Akismet::view( 'enter' );?>
|
||||
</div>
|
||||
13
content/plugins/akismet/views/enter.php
Normal file
13
content/plugins/akismet/views/enter.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<div class="akismet-enter-api-key-box centered">
|
||||
<a href="#"><?php esc_html_e( 'Manually enter an API key' ); ?></a>
|
||||
<div class="enter-api-key">
|
||||
<form action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="post">
|
||||
<?php wp_nonce_field( Akismet_Admin::NONCE ) ?>
|
||||
<input type="hidden" name="action" value="enter-key">
|
||||
<p style="width: 100%; display: flex; flex-wrap: nowrap; box-sizing: border-box;">
|
||||
<input id="key" name="key" type="text" size="15" value="" placeholder="<?php esc_attr_e( 'Enter your API key' , 'akismet' ); ?>" class="regular-text code" style="flex-grow: 1; margin-right: 1rem;">
|
||||
<input type="submit" name="submit" id="submit" class="akismet-button" value="<?php esc_attr_e( 'Connect with API key', 'akismet' );?>">
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
12
content/plugins/akismet/views/get.php
Normal file
12
content/plugins/akismet/views/get.php
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
//phpcs:disable VariableAnalysis
|
||||
// There are "undefined" variables here because they're defined in the code that includes this file as a template.
|
||||
|
||||
?>
|
||||
<form name="akismet_activate" action="https://akismet.com/get/" method="POST" target="_blank">
|
||||
<input type="hidden" name="passback_url" value="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>"/>
|
||||
<input type="hidden" name="blog" value="<?php echo esc_url( get_option( 'home' ) ); ?>"/>
|
||||
<input type="hidden" name="redirect" value="<?php echo isset( $redirect ) ? $redirect : 'plugin-signup'; ?>"/>
|
||||
<input type="submit" class="<?php echo isset( $classes ) && count( $classes ) > 0 ? implode( ' ', $classes ) : 'akismet-button';?>" value="<?php echo esc_attr( $text ); ?>"/>
|
||||
</form>
|
||||
141
content/plugins/akismet/views/notice.php
Normal file
141
content/plugins/akismet/views/notice.php
Normal file
|
|
@ -0,0 +1,141 @@
|
|||
<?php
|
||||
|
||||
//phpcs:disable VariableAnalysis
|
||||
// There are "undefined" variables here because they're defined in the code that includes this file as a template.
|
||||
|
||||
?>
|
||||
<?php if ( $type == 'plugin' ) :?>
|
||||
<div class="updated" id="akismet_setup_prompt">
|
||||
<form name="akismet_activate" action="<?php echo esc_url( Akismet_Admin::get_page_url() ); ?>" method="POST">
|
||||
<div class="akismet_activate">
|
||||
<div class="aa_a">A</div>
|
||||
<div class="aa_button_container">
|
||||
<div class="aa_button_border">
|
||||
<input type="submit" class="aa_button" value="<?php esc_attr_e( 'Set up your Akismet account', 'akismet' ); ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="aa_description"><?php _e('<strong>Almost done</strong> - configure Akismet and say goodbye to spam', 'akismet');?></div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php elseif ( $type == 'spam-check' ) :?>
|
||||
<div class="notice notice-warning">
|
||||
<p><strong><?php esc_html_e( 'Akismet has detected a problem.', 'akismet' );?></strong></p>
|
||||
<p><?php esc_html_e( 'Some comments have not yet been checked for spam by Akismet. They have been temporarily held for moderation and will automatically be rechecked later.', 'akismet' ); ?></p>
|
||||
<?php if ( $link_text ) { ?>
|
||||
<p><?php echo $link_text; ?></p>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php elseif ( $type == 'alert' ) :?>
|
||||
<div class='error'>
|
||||
<p><strong><?php printf( esc_html__( 'Akismet Error Code: %s', 'akismet' ), $code ); ?></strong></p>
|
||||
<p><?php echo esc_html( $msg ); ?></p>
|
||||
<p><?php
|
||||
|
||||
/* translators: the placeholder is a clickable URL that leads to more information regarding an error code. */
|
||||
printf( esc_html__( 'For more information: %s' , 'akismet'), '<a href="https://akismet.com/errors/' . $code . '">https://akismet.com/errors/' . $code . '</a>' );
|
||||
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
<?php elseif ( $type == 'notice' ) :?>
|
||||
<div class="akismet-alert akismet-critical">
|
||||
<h3 class="akismet-key-status failed"><?php echo $notice_header; ?></h3>
|
||||
<p class="akismet-description">
|
||||
<?php echo $notice_text; ?>
|
||||
</p>
|
||||
</div>
|
||||
<?php elseif ( $type == 'missing-functions' ) :?>
|
||||
<div class="akismet-alert akismet-critical">
|
||||
<h3 class="akismet-key-status failed"><?php esc_html_e('Network functions are disabled.', 'akismet'); ?></h3>
|
||||
<p class="akismet-description"><?php printf( __('Your web host or server administrator has disabled PHP’s <code>gethostbynamel</code> function. <strong>Akismet cannot work correctly until this is fixed.</strong> Please contact your web host or firewall administrator and give them <a href="%s" target="_blank">this information about Akismet’s system requirements</a>.', 'akismet'), 'https://blog.akismet.com/akismet-hosting-faq/'); ?></p>
|
||||
</div>
|
||||
<?php elseif ( $type == 'servers-be-down' ) :?>
|
||||
<div class="akismet-alert akismet-critical">
|
||||
<h3 class="akismet-key-status failed"><?php esc_html_e("Your site can’t connect to the Akismet servers.", 'akismet'); ?></h3>
|
||||
<p class="akismet-description"><?php printf( __('Your firewall may be blocking Akismet from connecting to its API. Please contact your host and refer to <a href="%s" target="_blank">our guide about firewalls</a>.', 'akismet'), 'https://blog.akismet.com/akismet-hosting-faq/'); ?></p>
|
||||
</div>
|
||||
<?php elseif ( $type == 'active-dunning' ) :?>
|
||||
<div class="akismet-alert akismet-critical">
|
||||
<h3 class="akismet-key-status"><?php esc_html_e("Please update your payment information.", 'akismet'); ?></h3>
|
||||
<p class="akismet-description"><?php printf( __('We cannot process your payment. Please <a href="%s" target="_blank">update your payment details</a>.', 'akismet'), 'https://akismet.com/account/'); ?></p>
|
||||
</div>
|
||||
<?php elseif ( $type == 'cancelled' ) :?>
|
||||
<div class="akismet-alert akismet-critical">
|
||||
<h3 class="akismet-key-status"><?php esc_html_e("Your Akismet plan has been cancelled.", 'akismet'); ?></h3>
|
||||
<p class="akismet-description"><?php printf( __('Please visit your <a href="%s" target="_blank">Akismet account page</a> to reactivate your subscription.', 'akismet'), 'https://akismet.com/account/'); ?></p>
|
||||
</div>
|
||||
<?php elseif ( $type == 'suspended' ) :?>
|
||||
<div class="akismet-alert akismet-critical">
|
||||
<h3 class="akismet-key-status failed"><?php esc_html_e("Your Akismet subscription is suspended.", 'akismet'); ?></h3>
|
||||
<p class="akismet-description"><?php printf( __('Please contact <a href="%s" target="_blank">Akismet support</a> for assistance.', 'akismet'), 'https://akismet.com/contact/'); ?></p>
|
||||
</div>
|
||||
<?php elseif ( $type == 'active-notice' && $time_saved ) :?>
|
||||
<div class="akismet-alert akismet-active">
|
||||
<h3 class="akismet-key-status"><?php echo esc_html( $time_saved ); ?></h3>
|
||||
<p class="akismet-description"><?php printf( __('You can help us fight spam and upgrade your account by <a href="%s" target="_blank">contributing a token amount</a>.', 'akismet'), 'https://akismet.com/account/upgrade/'); ?></p>
|
||||
</div>
|
||||
<?php elseif ( $type == 'missing' ) :?>
|
||||
<div class="akismet-alert akismet-critical">
|
||||
<h3 class="akismet-key-status failed"><?php esc_html_e( 'There is a problem with your API key.', 'akismet'); ?></h3>
|
||||
<p class="akismet-description"><?php printf( __('Please contact <a href="%s" target="_blank">Akismet support</a> for assistance.', 'akismet'), 'https://akismet.com/contact/'); ?></p>
|
||||
</div>
|
||||
<?php elseif ( $type == 'no-sub' ) :?>
|
||||
<div class="akismet-alert akismet-critical">
|
||||
<h3 class="akismet-key-status failed"><?php esc_html_e( 'You don’t have an Akismet plan.', 'akismet'); ?></h3>
|
||||
<p class="akismet-description">
|
||||
<?php printf( __( 'In 2012, Akismet began using subscription plans for all accounts (even free ones). A plan has not been assigned to your account, and we’d appreciate it if you’d <a href="%s" target="_blank">sign into your account</a> and choose one.', 'akismet'), 'https://akismet.com/account/upgrade/' ); ?>
|
||||
<br /><br />
|
||||
<?php printf( __( 'Please <a href="%s" target="_blank">contact our support team</a> with any questions.', 'akismet' ), 'https://akismet.com/contact/' ); ?>
|
||||
</p>
|
||||
</div>
|
||||
<?php elseif ( $type == 'new-key-valid' ) :
|
||||
global $wpdb;
|
||||
|
||||
$check_pending_link = false;
|
||||
|
||||
$at_least_one_comment_in_moderation = !! $wpdb->get_var( "SELECT comment_ID FROM {$wpdb->comments} WHERE comment_approved = '0' LIMIT 1" );
|
||||
|
||||
if ( $at_least_one_comment_in_moderation) {
|
||||
$check_pending_link = 'edit-comments.php?akismet_recheck=' . wp_create_nonce( 'akismet_recheck' );
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="akismet-alert akismet-active">
|
||||
<h3 class="akismet-key-status"><?php esc_html_e( 'Akismet is now protecting your site from spam. Happy blogging!', 'akismet' ); ?></h3>
|
||||
<?php if ( $check_pending_link ) { ?>
|
||||
<p class="akismet-description"><?php printf( __( 'Would you like to <a href="%s">check pending comments</a>?', 'akismet' ), esc_url( $check_pending_link ) ); ?></p>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php elseif ( $type == 'new-key-invalid' ) :?>
|
||||
<div class="akismet-alert akismet-critical">
|
||||
<h3 class="akismet-key-status"><?php esc_html_e( 'The key you entered is invalid. Please double-check it.' , 'akismet'); ?></h3>
|
||||
</div>
|
||||
<?php elseif ( $type == 'existing-key-invalid' ) :?>
|
||||
<div class="akismet-alert akismet-critical">
|
||||
<h3 class="akismet-key-status"><?php esc_html_e( 'Your API key is no longer valid. Please enter a new key or contact support@akismet.com.' , 'akismet'); ?></h3>
|
||||
</div>
|
||||
<?php elseif ( $type == 'new-key-failed' ) :?>
|
||||
<div class="akismet-alert akismet-critical">
|
||||
<h3 class="akismet-key-status"><?php esc_html_e( 'The API key you entered could not be verified.' , 'akismet'); ?></h3>
|
||||
<p class="akismet-description"><?php printf( __('The connection to akismet.com could not be established. Please refer to <a href="%s" target="_blank">our guide about firewalls</a> and check your server configuration.', 'akismet'), 'https://blog.akismet.com/akismet-hosting-faq/'); ?></p>
|
||||
</div>
|
||||
<?php elseif ( $type == 'limit-reached' && in_array( $level, array( 'yellow', 'red' ) ) ) :?>
|
||||
<div class="akismet-alert akismet-critical">
|
||||
<?php if ( $level == 'yellow' ): ?>
|
||||
<h3 class="akismet-key-status failed"><?php esc_html_e( 'You’re using your Akismet key on more sites than your Pro subscription allows.', 'akismet' ); ?></h3>
|
||||
<p class="akismet-description">
|
||||
<?php printf( __( 'Your Pro subscription allows the use of Akismet on only one site. Please <a href="%s" target="_blank">purchase additional Pro subscriptions</a> or upgrade to an Enterprise subscription that allows the use of Akismet on unlimited sites.', 'akismet' ), 'https://docs.akismet.com/billing/add-more-sites/' ); ?>
|
||||
<br /><br />
|
||||
<?php printf( __( 'Please <a href="%s" target="_blank">contact our support team</a> with any questions.', 'akismet' ), 'https://akismet.com/contact/'); ?>
|
||||
</p>
|
||||
<?php elseif ( $level == 'red' ): ?>
|
||||
<h3 class="akismet-key-status failed"><?php esc_html_e( 'You’re using Akismet on far too many sites for your Pro subscription.', 'akismet' ); ?></h3>
|
||||
<p class="akismet-description">
|
||||
<?php printf( __( 'To continue your service, <a href="%s" target="_blank">upgrade to an Enterprise subscription</a>, which covers an unlimited number of sites.', 'akismet'), 'https://akismet.com/account/upgrade/' ); ?>
|
||||
<br /><br />
|
||||
<?php printf( __( 'Please <a href="%s" target="_blank">contact our support team</a> with any questions.', 'akismet' ), 'https://akismet.com/contact/'); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
11
content/plugins/akismet/views/predefined.php
Normal file
11
content/plugins/akismet/views/predefined.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<div class="akismet-box">
|
||||
<h2><?php esc_html_e( 'Manual Configuration', 'akismet' ); ?></h2>
|
||||
<p>
|
||||
<?php
|
||||
|
||||
/* translators: %s is the wp-config.php file */
|
||||
echo sprintf( esc_html__( 'An Akismet API key has been defined in the %s file for this site.', 'akismet' ), '<code>wp-config.php</code>' );
|
||||
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
4
content/plugins/akismet/views/setup.php
Normal file
4
content/plugins/akismet/views/setup.php
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<div class="akismet-setup-instructions">
|
||||
<p><?php esc_html_e( 'Set up your Akismet account to enable spam filtering on this site.', 'akismet' ); ?></p>
|
||||
<?php Akismet::view( 'get', array( 'text' => __( 'Set up your Akismet account' , 'akismet' ), 'classes' => array( 'akismet-button', 'akismet-is-primary' ) ) ); ?>
|
||||
</div>
|
||||
31
content/plugins/akismet/views/start.php
Normal file
31
content/plugins/akismet/views/start.php
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
|
||||
//phpcs:disable VariableAnalysis
|
||||
// There are "undefined" variables here because they're defined in the code that includes this file as a template.
|
||||
|
||||
?>
|
||||
<div id="akismet-plugin-container">
|
||||
<div class="akismet-masthead">
|
||||
<div class="akismet-masthead__inside-container">
|
||||
<div class="akismet-masthead__logo-container">
|
||||
<img class="akismet-masthead__logo" src="<?php echo esc_url( plugins_url( '../_inc/img/logo-full-2x.png', __FILE__ ) ); ?>" alt="Akismet" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="akismet-lower">
|
||||
<?php Akismet_Admin::display_status();?>
|
||||
<div class="akismet-boxes">
|
||||
<?php
|
||||
|
||||
if ( Akismet::predefined_api_key() ) {
|
||||
Akismet::view( 'predefined' );
|
||||
} elseif ( $akismet_user && in_array( $akismet_user->status, array( 'active', 'active-dunning', 'no-sub', 'missing', 'cancelled', 'suspended' ) ) ) {
|
||||
Akismet::view( 'connect-jp', compact( 'akismet_user' ) );
|
||||
} else {
|
||||
Akismet::view( 'activate' );
|
||||
}
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
11
content/plugins/akismet/views/stats.php
Normal file
11
content/plugins/akismet/views/stats.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<div id="akismet-plugin-container">
|
||||
<div class="akismet-masthead">
|
||||
<div class="akismet-masthead__inside-container">
|
||||
<a href="<?php echo esc_url( Akismet_Admin::get_page_url() );?>" class="akismet-right"><?php esc_html_e( 'Akismet Settings' , 'akismet' ); ?></a>
|
||||
<div class="akismet-masthead__logo-container">
|
||||
<img class="akismet-masthead__logo" src="<?php echo esc_url( plugins_url( '../_inc/img/logo-full-2x.png', __FILE__ ) ); ?>" alt="Akismet" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<iframe src="<?php echo esc_url( sprintf( '//akismet.com/web/1.0/user-stats.php?blog=%s&api_key=%s&locale=%s', urlencode( get_option( 'home' ) ), Akismet::get_api_key(), get_locale() ) ); ?>" width="100%" height="2500px" frameborder="0"></iframe>
|
||||
</div>
|
||||
3
content/plugins/akismet/views/title.php
Normal file
3
content/plugins/akismet/views/title.php
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<div class="centered akismet-box-header">
|
||||
<h2><?php esc_html_e( 'Eliminate spam from your site', 'akismet' ); ?></h2>
|
||||
</div>
|
||||
214
content/plugins/akismet/wrapper.php
Normal file
214
content/plugins/akismet/wrapper.php
Normal file
|
|
@ -0,0 +1,214 @@
|
|||
<?php
|
||||
|
||||
global $wpcom_api_key, $akismet_api_host, $akismet_api_port;
|
||||
|
||||
$wpcom_api_key = defined( 'WPCOM_API_KEY' ) ? constant( 'WPCOM_API_KEY' ) : '';
|
||||
$akismet_api_host = Akismet::get_api_key() . '.rest.akismet.com';
|
||||
$akismet_api_port = 80;
|
||||
|
||||
function akismet_test_mode() {
|
||||
return Akismet::is_test_mode();
|
||||
}
|
||||
|
||||
function akismet_http_post( $request, $host, $path, $port = 80, $ip = null ) {
|
||||
$path = str_replace( '/1.1/', '', $path );
|
||||
|
||||
return Akismet::http_post( $request, $path, $ip );
|
||||
}
|
||||
|
||||
function akismet_microtime() {
|
||||
return Akismet::_get_microtime();
|
||||
}
|
||||
|
||||
function akismet_delete_old() {
|
||||
return Akismet::delete_old_comments();
|
||||
}
|
||||
|
||||
function akismet_delete_old_metadata() {
|
||||
return Akismet::delete_old_comments_meta();
|
||||
}
|
||||
|
||||
function akismet_check_db_comment( $id, $recheck_reason = 'recheck_queue' ) {
|
||||
return Akismet::check_db_comment( $id, $recheck_reason );
|
||||
}
|
||||
|
||||
function akismet_rightnow() {
|
||||
if ( !class_exists( 'Akismet_Admin' ) )
|
||||
return false;
|
||||
|
||||
return Akismet_Admin::rightnow_stats();
|
||||
}
|
||||
|
||||
function akismet_admin_init() {
|
||||
_deprecated_function( __FUNCTION__, '3.0' );
|
||||
}
|
||||
function akismet_version_warning() {
|
||||
_deprecated_function( __FUNCTION__, '3.0' );
|
||||
}
|
||||
function akismet_load_js_and_css() {
|
||||
_deprecated_function( __FUNCTION__, '3.0' );
|
||||
}
|
||||
function akismet_nonce_field( $action = -1 ) {
|
||||
return wp_nonce_field( $action );
|
||||
}
|
||||
function akismet_plugin_action_links( $links, $file ) {
|
||||
return Akismet_Admin::plugin_action_links( $links, $file );
|
||||
}
|
||||
function akismet_conf() {
|
||||
_deprecated_function( __FUNCTION__, '3.0' );
|
||||
}
|
||||
function akismet_stats_display() {
|
||||
_deprecated_function( __FUNCTION__, '3.0' );
|
||||
}
|
||||
function akismet_stats() {
|
||||
return Akismet_Admin::dashboard_stats();
|
||||
}
|
||||
function akismet_admin_warnings() {
|
||||
_deprecated_function( __FUNCTION__, '3.0' );
|
||||
}
|
||||
function akismet_comment_row_action( $a, $comment ) {
|
||||
return Akismet_Admin::comment_row_actions( $a, $comment );
|
||||
}
|
||||
function akismet_comment_status_meta_box( $comment ) {
|
||||
return Akismet_Admin::comment_status_meta_box( $comment );
|
||||
}
|
||||
function akismet_comments_columns( $columns ) {
|
||||
_deprecated_function( __FUNCTION__, '3.0' );
|
||||
|
||||
return $columns;
|
||||
}
|
||||
function akismet_comment_column_row( $column, $comment_id ) {
|
||||
_deprecated_function( __FUNCTION__, '3.0' );
|
||||
}
|
||||
function akismet_text_add_link_callback( $m ) {
|
||||
return Akismet_Admin::text_add_link_callback( $m );
|
||||
}
|
||||
function akismet_text_add_link_class( $comment_text ) {
|
||||
return Akismet_Admin::text_add_link_class( $comment_text );
|
||||
}
|
||||
function akismet_check_for_spam_button( $comment_status ) {
|
||||
return Akismet_Admin::check_for_spam_button( $comment_status );
|
||||
}
|
||||
function akismet_submit_nonspam_comment( $comment_id ) {
|
||||
return Akismet::submit_nonspam_comment( $comment_id );
|
||||
}
|
||||
function akismet_submit_spam_comment( $comment_id ) {
|
||||
return Akismet::submit_spam_comment( $comment_id );
|
||||
}
|
||||
function akismet_transition_comment_status( $new_status, $old_status, $comment ) {
|
||||
return Akismet::transition_comment_status( $new_status, $old_status, $comment );
|
||||
}
|
||||
function akismet_spam_count( $type = false ) {
|
||||
return Akismet_Admin::get_spam_count( $type );
|
||||
}
|
||||
function akismet_recheck_queue() {
|
||||
return Akismet_Admin::recheck_queue();
|
||||
}
|
||||
function akismet_remove_comment_author_url() {
|
||||
return Akismet_Admin::remove_comment_author_url();
|
||||
}
|
||||
function akismet_add_comment_author_url() {
|
||||
return Akismet_Admin::add_comment_author_url();
|
||||
}
|
||||
function akismet_check_server_connectivity() {
|
||||
return Akismet_Admin::check_server_connectivity();
|
||||
}
|
||||
function akismet_get_server_connectivity( $cache_timeout = 86400 ) {
|
||||
return Akismet_Admin::get_server_connectivity( $cache_timeout );
|
||||
}
|
||||
function akismet_server_connectivity_ok() {
|
||||
_deprecated_function( __FUNCTION__, '3.0' );
|
||||
|
||||
return true;
|
||||
}
|
||||
function akismet_admin_menu() {
|
||||
return Akismet_Admin::admin_menu();
|
||||
}
|
||||
function akismet_load_menu() {
|
||||
return Akismet_Admin::load_menu();
|
||||
}
|
||||
function akismet_init() {
|
||||
_deprecated_function( __FUNCTION__, '3.0' );
|
||||
}
|
||||
function akismet_get_key() {
|
||||
return Akismet::get_api_key();
|
||||
}
|
||||
function akismet_check_key_status( $key, $ip = null ) {
|
||||
return Akismet::check_key_status( $key, $ip );
|
||||
}
|
||||
function akismet_update_alert( $response ) {
|
||||
return Akismet::update_alert( $response );
|
||||
}
|
||||
function akismet_verify_key( $key, $ip = null ) {
|
||||
return Akismet::verify_key( $key, $ip );
|
||||
}
|
||||
function akismet_get_user_roles( $user_id ) {
|
||||
return Akismet::get_user_roles( $user_id );
|
||||
}
|
||||
function akismet_result_spam( $approved ) {
|
||||
return Akismet::comment_is_spam( $approved );
|
||||
}
|
||||
function akismet_result_hold( $approved ) {
|
||||
return Akismet::comment_needs_moderation( $approved );
|
||||
}
|
||||
function akismet_get_user_comments_approved( $user_id, $comment_author_email, $comment_author, $comment_author_url ) {
|
||||
return Akismet::get_user_comments_approved( $user_id, $comment_author_email, $comment_author, $comment_author_url );
|
||||
}
|
||||
function akismet_update_comment_history( $comment_id, $message, $event = null ) {
|
||||
return Akismet::update_comment_history( $comment_id, $message, $event );
|
||||
}
|
||||
function akismet_get_comment_history( $comment_id ) {
|
||||
return Akismet::get_comment_history( $comment_id );
|
||||
}
|
||||
function akismet_cmp_time( $a, $b ) {
|
||||
return Akismet::_cmp_time( $a, $b );
|
||||
}
|
||||
function akismet_auto_check_update_meta( $id, $comment ) {
|
||||
return Akismet::auto_check_update_meta( $id, $comment );
|
||||
}
|
||||
function akismet_auto_check_comment( $commentdata ) {
|
||||
return Akismet::auto_check_comment( $commentdata );
|
||||
}
|
||||
function akismet_get_ip_address() {
|
||||
return Akismet::get_ip_address();
|
||||
}
|
||||
function akismet_cron_recheck() {
|
||||
return Akismet::cron_recheck();
|
||||
}
|
||||
function akismet_add_comment_nonce( $post_id ) {
|
||||
return Akismet::add_comment_nonce( $post_id );
|
||||
}
|
||||
function akismet_fix_scheduled_recheck() {
|
||||
return Akismet::fix_scheduled_recheck();
|
||||
}
|
||||
function akismet_spam_comments() {
|
||||
_deprecated_function( __FUNCTION__, '3.0' );
|
||||
|
||||
return array();
|
||||
}
|
||||
function akismet_spam_totals() {
|
||||
_deprecated_function( __FUNCTION__, '3.0' );
|
||||
|
||||
return array();
|
||||
}
|
||||
function akismet_manage_page() {
|
||||
_deprecated_function( __FUNCTION__, '3.0' );
|
||||
}
|
||||
function akismet_caught() {
|
||||
_deprecated_function( __FUNCTION__, '3.0' );
|
||||
}
|
||||
function redirect_old_akismet_urls() {
|
||||
_deprecated_function( __FUNCTION__, '3.0' );
|
||||
}
|
||||
function akismet_kill_proxy_check( $option ) {
|
||||
_deprecated_function( __FUNCTION__, '3.0' );
|
||||
|
||||
return 0;
|
||||
}
|
||||
function akismet_pingback_forwarded_for( $r, $url ) {
|
||||
// This functionality is now in core.
|
||||
return false;
|
||||
}
|
||||
function akismet_pre_check_pingback( $method ) {
|
||||
return Akismet::pre_check_pingback( $method );
|
||||
}
|
||||
100
content/plugins/hello.php
Normal file
100
content/plugins/hello.php
Normal file
|
|
@ -0,0 +1,100 @@
|
|||
<?php
|
||||
/**
|
||||
* @package Hello_Dolly
|
||||
* @version 1.7.2
|
||||
*/
|
||||
/*
|
||||
Plugin Name: Hello Dolly
|
||||
Plugin URI: http://wordpress.org/plugins/hello-dolly/
|
||||
Description: This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from <cite>Hello, Dolly</cite> in the upper right of your admin screen on every page.
|
||||
Author: Matt Mullenweg
|
||||
Version: 1.7.2
|
||||
Author URI: http://ma.tt/
|
||||
*/
|
||||
|
||||
function hello_dolly_get_lyric() {
|
||||
/** These are the lyrics to Hello Dolly */
|
||||
$lyrics = "Hello, Dolly
|
||||
Well, hello, Dolly
|
||||
It's so nice to have you back where you belong
|
||||
You're lookin' swell, Dolly
|
||||
I can tell, Dolly
|
||||
You're still glowin', you're still crowin'
|
||||
You're still goin' strong
|
||||
I feel the room swayin'
|
||||
While the band's playin'
|
||||
One of our old favorite songs from way back when
|
||||
So, take her wrap, fellas
|
||||
Dolly, never go away again
|
||||
Hello, Dolly
|
||||
Well, hello, Dolly
|
||||
It's so nice to have you back where you belong
|
||||
You're lookin' swell, Dolly
|
||||
I can tell, Dolly
|
||||
You're still glowin', you're still crowin'
|
||||
You're still goin' strong
|
||||
I feel the room swayin'
|
||||
While the band's playin'
|
||||
One of our old favorite songs from way back when
|
||||
So, golly, gee, fellas
|
||||
Have a little faith in me, fellas
|
||||
Dolly, never go away
|
||||
Promise, you'll never go away
|
||||
Dolly'll never go away again";
|
||||
|
||||
// Here we split it into lines.
|
||||
$lyrics = explode( "\n", $lyrics );
|
||||
|
||||
// And then randomly choose a line.
|
||||
return wptexturize( $lyrics[ mt_rand( 0, count( $lyrics ) - 1 ) ] );
|
||||
}
|
||||
|
||||
// This just echoes the chosen line, we'll position it later.
|
||||
function hello_dolly() {
|
||||
$chosen = hello_dolly_get_lyric();
|
||||
$lang = '';
|
||||
if ( 'en_' !== substr( get_user_locale(), 0, 3 ) ) {
|
||||
$lang = ' lang="en"';
|
||||
}
|
||||
|
||||
printf(
|
||||
'<p id="dolly"><span class="screen-reader-text">%s </span><span dir="ltr"%s>%s</span></p>',
|
||||
__( 'Quote from Hello Dolly song, by Jerry Herman:' ),
|
||||
$lang,
|
||||
$chosen
|
||||
);
|
||||
}
|
||||
|
||||
// Now we set that function up to execute when the admin_notices action is called.
|
||||
add_action( 'admin_notices', 'hello_dolly' );
|
||||
|
||||
// We need some CSS to position the paragraph.
|
||||
function dolly_css() {
|
||||
echo "
|
||||
<style type='text/css'>
|
||||
#dolly {
|
||||
float: right;
|
||||
padding: 5px 10px;
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
line-height: 1.6666;
|
||||
}
|
||||
.rtl #dolly {
|
||||
float: left;
|
||||
}
|
||||
.block-editor-page #dolly {
|
||||
display: none;
|
||||
}
|
||||
@media screen and (max-width: 782px) {
|
||||
#dolly,
|
||||
.rtl #dolly {
|
||||
float: none;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
";
|
||||
}
|
||||
|
||||
add_action( 'admin_head', 'dolly_css' );
|
||||
2
content/plugins/index.php
Normal file
2
content/plugins/index.php
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
// Silence is golden.
|
||||
2
content/themes/index.php
Normal file
2
content/themes/index.php
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
// Silence is golden.
|
||||
33
content/themes/twentynineteen/404.php
Normal file
33
content/themes/twentynineteen/404.php
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
/**
|
||||
* The template for displaying 404 pages (not found)
|
||||
*
|
||||
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Nineteen
|
||||
* @since Twenty Nineteen 1.0
|
||||
*/
|
||||
|
||||
get_header();
|
||||
?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<div class="error-404 not-found">
|
||||
<header class="page-header">
|
||||
<h1 class="page-title"><?php _e( 'Oops! That page can’t be found.', 'twentynineteen' ); ?></h1>
|
||||
</header><!-- .page-header -->
|
||||
|
||||
<div class="page-content">
|
||||
<p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'twentynineteen' ); ?></p>
|
||||
<?php get_search_form(); ?>
|
||||
</div><!-- .page-content -->
|
||||
</div><!-- .error-404 -->
|
||||
|
||||
</main><!-- #main -->
|
||||
</div><!-- #primary -->
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
55
content/themes/twentynineteen/archive.php
Normal file
55
content/themes/twentynineteen/archive.php
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
<?php
|
||||
/**
|
||||
* The template for displaying archive pages
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Nineteen
|
||||
* @since Twenty Nineteen 1.0
|
||||
*/
|
||||
|
||||
get_header();
|
||||
?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php if ( have_posts() ) : ?>
|
||||
|
||||
<header class="page-header">
|
||||
<?php
|
||||
the_archive_title( '<h1 class="page-title">', '</h1>' );
|
||||
?>
|
||||
</header><!-- .page-header -->
|
||||
|
||||
<?php
|
||||
// Start the Loop.
|
||||
while ( have_posts() ) :
|
||||
the_post();
|
||||
|
||||
/*
|
||||
* Include the Post-Format-specific template for the content.
|
||||
* If you want to override this in a child theme, then include a file
|
||||
* called content-___.php (where ___ is the Post Format name) and that
|
||||
* will be used instead.
|
||||
*/
|
||||
get_template_part( 'template-parts/content/content', 'excerpt' );
|
||||
|
||||
// End the loop.
|
||||
endwhile;
|
||||
|
||||
// Previous/next page navigation.
|
||||
twentynineteen_the_posts_navigation();
|
||||
|
||||
// If no content, include the "No posts found" template.
|
||||
else :
|
||||
get_template_part( 'template-parts/content/content', 'none' );
|
||||
|
||||
endif;
|
||||
?>
|
||||
</main><!-- #main -->
|
||||
</div><!-- #primary -->
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
|
|
@ -0,0 +1,458 @@
|
|||
<?php
|
||||
/**
|
||||
* SVG Icons class
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Nineteen
|
||||
* @since Twenty Nineteen 1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class is in charge of displaying SVG icons across the site.
|
||||
*
|
||||
* Place each <svg> source on its own array key, without adding the
|
||||
* both `width` and `height` attributes, since these are added dynamically,
|
||||
* before rendering the SVG code.
|
||||
*
|
||||
* All icons are assumed to have equal width and height, hence the option
|
||||
* to only specify a `$size` parameter in the svg methods.
|
||||
*
|
||||
* @since Twenty Nineteen 1.0
|
||||
*/
|
||||
class TwentyNineteen_SVG_Icons {
|
||||
|
||||
/**
|
||||
* Gets the SVG code for a given icon.
|
||||
*/
|
||||
public static function get_svg( $group, $icon, $size ) {
|
||||
if ( 'ui' == $group ) {
|
||||
$arr = self::$ui_icons;
|
||||
} elseif ( 'social' == $group ) {
|
||||
$arr = self::$social_icons;
|
||||
} else {
|
||||
$arr = array();
|
||||
}
|
||||
if ( array_key_exists( $icon, $arr ) ) {
|
||||
$repl = sprintf( '<svg class="svg-icon" width="%d" height="%d" aria-hidden="true" role="img" focusable="false" ', $size, $size );
|
||||
$svg = preg_replace( '/^<svg /', $repl, trim( $arr[ $icon ] ) ); // Add extra attributes to SVG code.
|
||||
$svg = preg_replace( "/([\n\t]+)/", ' ', $svg ); // Remove newlines & tabs.
|
||||
$svg = preg_replace( '/>\s*</', '><', $svg ); // Remove whitespace between SVG tags.
|
||||
return $svg;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Detects the social network from a URL and returns the SVG code for its icon.
|
||||
*/
|
||||
public static function get_social_link_svg( $uri, $size ) {
|
||||
static $regex_map; // Only compute regex map once, for performance.
|
||||
if ( ! isset( $regex_map ) ) {
|
||||
$regex_map = array();
|
||||
$map = &self::$social_icons_map; // Use reference instead of copy, to save memory.
|
||||
foreach ( array_keys( self::$social_icons ) as $icon ) {
|
||||
$domains = array_key_exists( $icon, $map ) ? $map[ $icon ] : array( sprintf( '%s.com', $icon ) );
|
||||
$domains = array_map( 'trim', $domains ); // Remove leading/trailing spaces, to prevent regex from failing to match.
|
||||
$domains = array_map( 'preg_quote', $domains );
|
||||
$regex_map[ $icon ] = sprintf( '/(%s)/i', implode( '|', $domains ) );
|
||||
}
|
||||
}
|
||||
foreach ( $regex_map as $icon => $regex ) {
|
||||
if ( preg_match( $regex, $uri ) ) {
|
||||
return self::get_svg( 'social', $icon, $size );
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* User Interface icons – svg sources.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
static $ui_icons = array(
|
||||
'link' => /* material-design – link */ '
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||||
<path d="M0 0h24v24H0z" fill="none"></path>
|
||||
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path>
|
||||
</svg>',
|
||||
|
||||
'watch' => /* material-design – watch-later */ '
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||||
<defs>
|
||||
<path id="a" d="M0 0h24v24H0V0z"></path>
|
||||
</defs>
|
||||
<clipPath id="b">
|
||||
<use xlink:href="#a" overflow="visible"></use>
|
||||
</clipPath>
|
||||
<path clip-path="url(#b)" d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"></path>
|
||||
</svg>',
|
||||
|
||||
'archive' => /* material-design – folder */ '
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||||
<path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"></path>
|
||||
<path d="M0 0h24v24H0z" fill="none"></path>
|
||||
</svg>',
|
||||
|
||||
'tag' => /* material-design – local_offer */ '
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||||
<path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1.06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7z"></path>
|
||||
<path d="M0 0h24v24H0z" fill="none"></path>
|
||||
</svg>',
|
||||
|
||||
'comment' => /* material-design – comment */ '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18z"></path>
|
||||
<path d="M0 0h24v24H0z" fill="none"></path>
|
||||
</svg>',
|
||||
|
||||
'person' => /* material-design – person */ '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"></path>
|
||||
<path d="M0 0h24v24H0z" fill="none"></path>
|
||||
</svg>',
|
||||
|
||||
'edit' => /* material-design – edit */ '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"></path>
|
||||
<path d="M0 0h24v24H0z" fill="none"></path>
|
||||
</svg>',
|
||||
|
||||
'chevron_left' => /* material-design – chevron_left */ '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"></path>
|
||||
<path d="M0 0h24v24H0z" fill="none"></path>
|
||||
</svg>',
|
||||
|
||||
'chevron_right' => /* material-design – chevron_right */ '
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||||
<path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"></path>
|
||||
<path d="M0 0h24v24H0z" fill="none"></path>
|
||||
</svg>',
|
||||
|
||||
'check' => /* material-design – check */ '
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||||
<path d="M0 0h24v24H0z" fill="none"></path>
|
||||
<path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"></path>
|
||||
</svg>',
|
||||
|
||||
'arrow_drop_down_circle' => /* material-design – arrow_drop_down_circle */ '
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||||
<path d="M0 0h24v24H0z" fill="none"></path>
|
||||
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 12l-4-4h8l-4 4z"></path>
|
||||
</svg>',
|
||||
|
||||
'keyboard_arrow_down' => /* material-design – keyboard_arrow_down */ '
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||||
<path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"></path>
|
||||
<path fill="none" d="M0 0h24v24H0V0z"></path>
|
||||
</svg>',
|
||||
|
||||
'keyboard_arrow_right' => /* material-design – keyboard_arrow_right */ '
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||||
<path d="M10 17l5-5-5-5v10z"></path>
|
||||
<path fill="none" d="M0 24V0h24v24H0z"></path>
|
||||
</svg>',
|
||||
|
||||
'keyboard_arrow_left' => /* material-design – keyboard_arrow_left */ '
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||||
<path d="M14 7l-5 5 5 5V7z"></path>
|
||||
<path fill="none" d="M24 0v24H0V0h24z"></path>
|
||||
</svg>',
|
||||
|
||||
'arrow_drop_down_ellipsis' => /* custom – arrow_drop_down_ellipsis */ '
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<g fill="none" fill-rule="evenodd">
|
||||
<path d="M0 0h24v24H0z"/>
|
||||
<path fill="currentColor" fill-rule="nonzero" d="M12 2c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2zM6 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm6 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm6 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"/>
|
||||
</g>
|
||||
</svg>',
|
||||
|
||||
);
|
||||
|
||||
/**
|
||||
* Social Icons – domain mappings.
|
||||
*
|
||||
* By default, each Icon ID is matched against a .com TLD. To override this behavior,
|
||||
* specify all the domains it covers (including the .com TLD too, if applicable).
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
static $social_icons_map = array(
|
||||
'amazon' => array(
|
||||
'amazon.com',
|
||||
'amazon.cn',
|
||||
'amazon.in',
|
||||
'amazon.fr',
|
||||
'amazon.de',
|
||||
'amazon.it',
|
||||
'amazon.nl',
|
||||
'amazon.es',
|
||||
'amazon.co',
|
||||
'amazon.ca',
|
||||
),
|
||||
'apple' => array(
|
||||
'apple.com',
|
||||
'itunes.com',
|
||||
),
|
||||
'behance' => array(
|
||||
'behance.net',
|
||||
),
|
||||
'codepen' => array(
|
||||
'codepen.io',
|
||||
),
|
||||
'facebook' => array(
|
||||
'facebook.com',
|
||||
'fb.me',
|
||||
),
|
||||
'feed' => array(
|
||||
'feed',
|
||||
),
|
||||
'google-plus' => array(
|
||||
'plus.google.com',
|
||||
),
|
||||
'lastfm' => array(
|
||||
'last.fm',
|
||||
),
|
||||
'mail' => array(
|
||||
'mailto:',
|
||||
),
|
||||
'slideshare' => array(
|
||||
'slideshare.net',
|
||||
),
|
||||
'pocket' => array(
|
||||
'getpocket.com',
|
||||
),
|
||||
'twitch' => array(
|
||||
'twitch.tv',
|
||||
),
|
||||
'wordpress' => array(
|
||||
'wordpress.com',
|
||||
'wordpress.org',
|
||||
),
|
||||
);
|
||||
|
||||
/**
|
||||
* Social Icons – svg sources.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
static $social_icons = array(
|
||||
'500px' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M6.94026,15.1412c.00437.01213.108.29862.168.44064a6.55008,6.55008,0,1,0,6.03191-9.09557,6.68654,6.68654,0,0,0-2.58357.51467A8.53914,8.53914,0,0,0,8.21268,8.61344L8.209,8.61725V3.22948l9.0504-.00008c.32934-.0036.32934-.46353.32934-.61466s0-.61091-.33035-.61467L7.47248,2a.43.43,0,0,0-.43131.42692v7.58355c0,.24466.30476.42131.58793.4819.553.11812.68074-.05864.81617-.2457l.018-.02481A10.52673,10.52673,0,0,1,9.32258,9.258a5.35268,5.35268,0,1,1,7.58985,7.54976,5.417,5.417,0,0,1-3.80867,1.56365,5.17483,5.17483,0,0,1-2.69822-.74478l.00342-4.61111a2.79372,2.79372,0,0,1,.71372-1.78792,2.61611,2.61611,0,0,1,1.98282-.89477,2.75683,2.75683,0,0,1,1.95525.79477,2.66867,2.66867,0,0,1,.79656,1.909,2.724,2.724,0,0,1-2.75849,2.748,4.94651,4.94651,0,0,1-.86254-.13719c-.31234-.093-.44519.34058-.48892.48349-.16811.54966.08453.65862.13687.67489a3.75751,3.75751,0,0,0,1.25234.18375,3.94634,3.94634,0,1,0-2.82444-6.742,3.67478,3.67478,0,0,0-1.13028,2.584l-.00041.02323c-.0035.11667-.00579,2.881-.00644,3.78811l-.00407-.00451a6.18521,6.18521,0,0,1-1.0851-1.86092c-.10544-.27856-.34358-.22925-.66857-.12917-.14192.04372-.57386.17677-.47833.489Zm4.65165-1.08338a.51346.51346,0,0,0,.19513.31818l.02276.022a.52945.52945,0,0,0,.3517.18416.24242.24242,0,0,0,.16577-.0611c.05473-.05082.67382-.67812.73287-.738l.69041.68819a.28978.28978,0,0,0,.21437.11032.53239.53239,0,0,0,.35708-.19486c.29792-.30419.14885-.46821.07676-.54751l-.69954-.69975.72952-.73469c.16-.17311.01874-.35708-.12218-.498-.20461-.20461-.402-.25742-.52855-.14083l-.7254.72665-.73354-.73375a.20128.20128,0,0,0-.14179-.05695.54135.54135,0,0,0-.34379.19648c-.22561.22555-.274.38149-.15656.5059l.73374.7315-.72942.73072A.26589.26589,0,0,0,11.59191,14.05782Zm1.59866-9.915A8.86081,8.86081,0,0,0,9.854,4.776a.26169.26169,0,0,0-.16938.22759.92978.92978,0,0,0,.08619.42094c.05682.14524.20779.531.50006.41955a8.40969,8.40969,0,0,1,2.91968-.55484,7.87875,7.87875,0,0,1,3.086.62286,8.61817,8.61817,0,0,1,2.30562,1.49315.2781.2781,0,0,0,.18318.07586c.15529,0,.30425-.15253.43167-.29551.21268-.23861.35873-.4369.1492-.63538a8.50425,8.50425,0,0,0-2.62312-1.694A9.0177,9.0177,0,0,0,13.19058,4.14283ZM19.50945,18.6236h0a.93171.93171,0,0,0-.36642-.25406.26589.26589,0,0,0-.27613.06613l-.06943.06929A7.90606,7.90606,0,0,1,7.60639,18.505a7.57284,7.57284,0,0,1-1.696-2.51537,8.58715,8.58715,0,0,1-.5147-1.77754l-.00871-.04864c-.04939-.25873-.28755-.27684-.62981-.22448-.14234.02178-.5755.088-.53426.39969l.001.00712a9.08807,9.08807,0,0,0,15.406,4.99094c.00193-.00192.04753-.04718.0725-.07436C19.79425,19.16234,19.87422,18.98728,19.50945,18.6236Z"></path>
|
||||
</svg>',
|
||||
|
||||
'amazon' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M13.582,8.182C11.934,8.367,9.78,8.49,8.238,9.166c-1.781,0.769-3.03,2.337-3.03,4.644 c0,2.953,1.86,4.429,4.253,4.429c2.02,0,3.125-0.477,4.685-2.065c0.516,0.747,0.685,1.109,1.629,1.894 c0.212,0.114,0.483,0.103,0.672-0.066l0.006,0.006c0.567-0.505,1.599-1.401,2.18-1.888c0.231-0.188,0.19-0.496,0.009-0.754 c-0.52-0.718-1.072-1.303-1.072-2.634V8.305c0-1.876,0.133-3.599-1.249-4.891C15.23,2.369,13.422,2,12.04,2 C9.336,2,6.318,3.01,5.686,6.351C5.618,6.706,5.877,6.893,6.109,6.945l2.754,0.298C9.121,7.23,9.308,6.977,9.357,6.72 c0.236-1.151,1.2-1.706,2.284-1.706c0.584,0,1.249,0.215,1.595,0.738c0.398,0.584,0.346,1.384,0.346,2.061V8.182z M13.049,14.088 c-0.451,0.8-1.169,1.291-1.967,1.291c-1.09,0-1.728-0.83-1.728-2.061c0-2.42,2.171-2.86,4.227-2.86v0.615 C13.582,12.181,13.608,13.104,13.049,14.088z M20.683,19.339C18.329,21.076,14.917,22,11.979,22c-4.118,0-7.826-1.522-10.632-4.057 c-0.22-0.199-0.024-0.471,0.241-0.317c3.027,1.762,6.771,2.823,10.639,2.823c2.608,0,5.476-0.541,8.115-1.66 C20.739,18.62,21.072,19.051,20.683,19.339z M21.336,21.043c-0.194,0.163-0.379,0.076-0.293-0.139 c0.284-0.71,0.92-2.298,0.619-2.684c-0.301-0.386-1.99-0.183-2.749-0.092c-0.23,0.027-0.266-0.173-0.059-0.319 c1.348-0.946,3.555-0.673,3.811-0.356C22.925,17.773,22.599,19.986,21.336,21.043z"></path>
|
||||
</svg>',
|
||||
|
||||
'apple' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M20.07,17.586a10.874,10.874,0,0,1-1.075,1.933,9.822,9.822,0,0,1-1.385,1.674,2.687,2.687,0,0,1-1.78.784,4.462,4.462,0,0,1-1.644-.393,4.718,4.718,0,0,0-1.77-.391,4.878,4.878,0,0,0-1.82.391A4.9,4.9,0,0,1,9.021,22a2.53,2.53,0,0,1-1.82-.8A10.314,10.314,0,0,1,5.752,19.46,11.987,11.987,0,0,1,4.22,16.417a11.143,11.143,0,0,1-.643-3.627,6.623,6.623,0,0,1,.87-3.465A5.1,5.1,0,0,1,6.268,7.483a4.9,4.9,0,0,1,2.463-.695,5.8,5.8,0,0,1,1.9.443,6.123,6.123,0,0,0,1.511.444,9.04,9.04,0,0,0,1.675-.523,5.537,5.537,0,0,1,2.277-.4,4.835,4.835,0,0,1,3.788,1.994,4.213,4.213,0,0,0-2.235,3.827,4.222,4.222,0,0,0,1.386,3.181,4.556,4.556,0,0,0,1.385.909q-.167.483-.353.927ZM16.211,2.4a4.267,4.267,0,0,1-1.094,2.8,3.726,3.726,0,0,1-3.1,1.528A3.114,3.114,0,0,1,12,6.347a4.384,4.384,0,0,1,1.16-2.828,4.467,4.467,0,0,1,1.414-1.061A4.215,4.215,0,0,1,16.19,2a3.633,3.633,0,0,1,.021.4Z"></path>
|
||||
</svg>',
|
||||
|
||||
'bandcamp' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"></path>
|
||||
</svg>',
|
||||
|
||||
'behance' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M7.799,5.698c0.589,0,1.12,0.051,1.606,0.156c0.482,0.102,0.894,0.273,1.241,0.507c0.344,0.235,0.612,0.546,0.804,0.938 c0.188,0.387,0.281,0.871,0.281,1.443c0,0.619-0.141,1.137-0.421,1.551c-0.284,0.413-0.7,0.751-1.255,1.014 c0.756,0.218,1.317,0.601,1.689,1.146c0.374,0.549,0.557,1.205,0.557,1.975c0,0.623-0.12,1.161-0.359,1.612 c-0.241,0.457-0.569,0.828-0.973,1.114c-0.408,0.288-0.876,0.5-1.399,0.637C9.052,17.931,8.514,18,7.963,18H2V5.698H7.799 M7.449,10.668c0.481,0,0.878-0.114,1.192-0.345c0.311-0.228,0.463-0.603,0.463-1.119c0-0.286-0.051-0.523-0.152-0.707 C8.848,8.315,8.711,8.171,8.536,8.07C8.362,7.966,8.166,7.894,7.94,7.854c-0.224-0.044-0.457-0.06-0.697-0.06H4.709v2.874H7.449z M7.6,15.905c0.267,0,0.521-0.024,0.759-0.077c0.243-0.053,0.457-0.137,0.637-0.261c0.182-0.12,0.332-0.283,0.441-0.491 C9.547,14.87,9.6,14.602,9.6,14.278c0-0.633-0.18-1.084-0.533-1.357c-0.356-0.27-0.83-0.404-1.413-0.404H4.709v3.388L7.6,15.905z M16.162,15.864c0.367,0.358,0.897,0.538,1.583,0.538c0.493,0,0.92-0.125,1.277-0.374c0.354-0.248,0.571-0.514,0.654-0.79h2.155 c-0.347,1.072-0.872,1.838-1.589,2.299C19.534,18,18.67,18.23,17.662,18.23c-0.701,0-1.332-0.113-1.899-0.337 c-0.567-0.227-1.041-0.544-1.439-0.958c-0.389-0.415-0.689-0.907-0.904-1.484c-0.213-0.574-0.32-1.21-0.32-1.899 c0-0.666,0.11-1.288,0.329-1.863c0.222-0.577,0.529-1.075,0.933-1.492c0.406-0.42,0.885-0.751,1.444-0.994 c0.558-0.241,1.175-0.363,1.857-0.363c0.754,0,1.414,0.145,1.98,0.44c0.563,0.291,1.026,0.686,1.389,1.181 c0.363,0.493,0.622,1.057,0.783,1.69c0.16,0.632,0.217,1.292,0.171,1.983h-6.428C15.557,14.84,15.795,15.506,16.162,15.864 M18.973,11.184c-0.291-0.321-0.783-0.496-1.384-0.496c-0.39,0-0.714,0.066-0.973,0.2c-0.254,0.132-0.461,0.297-0.621,0.491 c-0.157,0.197-0.265,0.405-0.328,0.628c-0.063,0.217-0.101,0.413-0.111,0.587h3.98C19.478,11.969,19.265,11.509,18.973,11.184z M15.057,7.738h4.985V6.524h-4.985L15.057,7.738z"></path>
|
||||
</svg>',
|
||||
|
||||
'chain' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M19.647,16.706a1.134,1.134,0,0,0-.343-.833l-2.549-2.549a1.134,1.134,0,0,0-.833-.343,1.168,1.168,0,0,0-.883.392l.233.226q.2.189.264.264a2.922,2.922,0,0,1,.184.233.986.986,0,0,1,.159.312,1.242,1.242,0,0,1,.043.337,1.172,1.172,0,0,1-1.176,1.176,1.237,1.237,0,0,1-.337-.043,1,1,0,0,1-.312-.159,2.76,2.76,0,0,1-.233-.184q-.073-.068-.264-.264l-.226-.233a1.19,1.19,0,0,0-.4.895,1.134,1.134,0,0,0,.343.833L15.837,19.3a1.13,1.13,0,0,0,.833.331,1.18,1.18,0,0,0,.833-.318l1.8-1.789a1.12,1.12,0,0,0,.343-.821Zm-8.615-8.64a1.134,1.134,0,0,0-.343-.833L8.163,4.7a1.134,1.134,0,0,0-.833-.343,1.184,1.184,0,0,0-.833.331L4.7,6.473a1.12,1.12,0,0,0-.343.821,1.134,1.134,0,0,0,.343.833l2.549,2.549a1.13,1.13,0,0,0,.833.331,1.184,1.184,0,0,0,.883-.38L8.728,10.4q-.2-.189-.264-.264A2.922,2.922,0,0,1,8.28,9.9a.986.986,0,0,1-.159-.312,1.242,1.242,0,0,1-.043-.337A1.172,1.172,0,0,1,9.254,8.079a1.237,1.237,0,0,1,.337.043,1,1,0,0,1,.312.159,2.761,2.761,0,0,1,.233.184q.073.068.264.264l.226.233a1.19,1.19,0,0,0,.4-.895ZM22,16.706a3.343,3.343,0,0,1-1.042,2.488l-1.8,1.789a3.536,3.536,0,0,1-4.988-.025l-2.525-2.537a3.384,3.384,0,0,1-1.017-2.488,3.448,3.448,0,0,1,1.078-2.561l-1.078-1.078a3.434,3.434,0,0,1-2.549,1.078,3.4,3.4,0,0,1-2.5-1.029L3.029,9.794A3.4,3.4,0,0,1,2,7.294,3.343,3.343,0,0,1,3.042,4.806l1.8-1.789A3.384,3.384,0,0,1,7.331,2a3.357,3.357,0,0,1,2.5,1.042l2.525,2.537a3.384,3.384,0,0,1,1.017,2.488,3.448,3.448,0,0,1-1.078,2.561l1.078,1.078a3.551,3.551,0,0,1,5.049-.049l2.549,2.549A3.4,3.4,0,0,1,22,16.706Z"></path>
|
||||
</svg>',
|
||||
|
||||
'codepen' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M22.016,8.84c-0.002-0.013-0.005-0.025-0.007-0.037c-0.005-0.025-0.008-0.048-0.015-0.072 c-0.003-0.015-0.01-0.028-0.013-0.042c-0.008-0.02-0.015-0.04-0.023-0.062c-0.007-0.015-0.013-0.028-0.02-0.042 c-0.008-0.02-0.018-0.037-0.03-0.057c-0.007-0.013-0.017-0.027-0.025-0.038c-0.012-0.018-0.023-0.035-0.035-0.052 c-0.01-0.013-0.02-0.025-0.03-0.037c-0.015-0.017-0.028-0.032-0.043-0.045c-0.01-0.012-0.022-0.023-0.035-0.035 c-0.015-0.015-0.032-0.028-0.048-0.04c-0.012-0.01-0.025-0.02-0.037-0.03c-0.005-0.003-0.01-0.008-0.015-0.012l-9.161-6.096 c-0.289-0.192-0.666-0.192-0.955,0L2.359,8.237C2.354,8.24,2.349,8.245,2.344,8.249L2.306,8.277 c-0.017,0.013-0.033,0.027-0.048,0.04C2.246,8.331,2.234,8.342,2.222,8.352c-0.015,0.015-0.028,0.03-0.042,0.047 c-0.012,0.013-0.022,0.023-0.03,0.037C2.139,8.453,2.125,8.471,2.115,8.488C2.107,8.501,2.099,8.514,2.09,8.526 C2.079,8.548,2.069,8.565,2.06,8.585C2.054,8.6,2.047,8.613,2.04,8.626C2.032,8.648,2.025,8.67,2.019,8.69 c-0.005,0.013-0.01,0.027-0.013,0.042C1.999,8.755,1.995,8.778,1.99,8.803C1.989,8.817,1.985,8.828,1.984,8.84 C1.978,8.879,1.975,8.915,1.975,8.954v6.093c0,0.037,0.003,0.075,0.008,0.112c0.002,0.012,0.005,0.025,0.007,0.038 c0.005,0.023,0.008,0.047,0.015,0.072c0.003,0.015,0.008,0.028,0.013,0.04c0.007,0.022,0.013,0.042,0.022,0.063 c0.007,0.015,0.013,0.028,0.02,0.04c0.008,0.02,0.018,0.038,0.03,0.058c0.007,0.013,0.015,0.027,0.025,0.038 c0.012,0.018,0.023,0.035,0.035,0.052c0.01,0.013,0.02,0.025,0.03,0.037c0.013,0.015,0.028,0.032,0.042,0.045 c0.012,0.012,0.023,0.023,0.035,0.035c0.015,0.013,0.032,0.028,0.048,0.04l0.038,0.03c0.005,0.003,0.01,0.007,0.013,0.01 l9.163,6.095C11.668,21.953,11.833,22,12,22c0.167,0,0.332-0.047,0.478-0.144l9.163-6.095l0.015-0.01 c0.013-0.01,0.027-0.02,0.037-0.03c0.018-0.013,0.035-0.028,0.048-0.04c0.013-0.012,0.025-0.023,0.035-0.035 c0.017-0.015,0.03-0.032,0.043-0.045c0.01-0.013,0.02-0.025,0.03-0.037c0.013-0.018,0.025-0.035,0.035-0.052 c0.008-0.013,0.018-0.027,0.025-0.038c0.012-0.02,0.022-0.038,0.03-0.058c0.007-0.013,0.013-0.027,0.02-0.04 c0.008-0.022,0.015-0.042,0.023-0.063c0.003-0.013,0.01-0.027,0.013-0.04c0.007-0.025,0.01-0.048,0.015-0.072 c0.002-0.013,0.005-0.027,0.007-0.037c0.003-0.042,0.007-0.079,0.007-0.117V8.954C22.025,8.915,22.022,8.879,22.016,8.84z M12.862,4.464l6.751,4.49l-3.016,2.013l-3.735-2.492V4.464z M11.138,4.464v4.009l-3.735,2.494L4.389,8.954L11.138,4.464z M3.699,10.562L5.853,12l-2.155,1.438V10.562z M11.138,19.536l-6.749-4.491l3.015-2.011l3.735,2.492V19.536z M12,14.035L8.953,12 L12,9.966L15.047,12L12,14.035z M12.862,19.536v-4.009l3.735-2.492l3.016,2.011L12.862,19.536z M20.303,13.438L18.147,12 l2.156-1.438L20.303,13.438z"></path>
|
||||
</svg>',
|
||||
|
||||
'deviantart' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M 18.19 5.636 18.19 2 18.188 2 14.553 2 14.19 2.366 12.474 5.636 11.935 6 5.81 6 5.81 10.994 9.177 10.994 9.477 11.357 5.81 18.363 5.81 22 5.811 22 9.447 22 9.81 21.634 11.526 18.364 12.065 18 18.19 18 18.19 13.006 14.823 13.006 14.523 12.641 18.19 5.636z"></path>
|
||||
</svg>',
|
||||
|
||||
'digg' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M4.5,5.4h2.2V16H1V8.5h3.5V5.4L4.5,5.4z M4.5,14.2v-4H3.2v4H4.5z M7.6,8.5V16h2.2V8.5C9.8,8.5,7.6,8.5,7.6,8.5z M7.6,5.4 v2.2h2.2V5.4C9.8,5.4,7.6,5.4,7.6,5.4z M10.7,8.5h5.7v10.1h-5.7v-1.8h3.5V16h-3.5C10.7,16,10.7,8.5,10.7,8.5z M14.2,14.2v-4h-1.3v4 H14.2z M17.3,8.5H23v10.1h-5.7v-1.8h3.5V16h-3.5C17.3,16,17.3,8.5,17.3,8.5z M20.8,14.2v-4h-1.3v4H20.8z"></path>
|
||||
</svg>',
|
||||
|
||||
'dribbble' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M12,22C6.486,22,2,17.514,2,12S6.486,2,12,2c5.514,0,10,4.486,10,10S17.514,22,12,22z M20.434,13.369 c-0.292-0.092-2.644-0.794-5.32-0.365c1.117,3.07,1.572,5.57,1.659,6.09C18.689,17.798,20.053,15.745,20.434,13.369z M15.336,19.876c-0.127-0.749-0.623-3.361-1.822-6.477c-0.019,0.006-0.038,0.013-0.056,0.019c-4.818,1.679-6.547,5.02-6.701,5.334 c1.448,1.129,3.268,1.803,5.243,1.803C13.183,20.555,14.311,20.313,15.336,19.876z M5.654,17.724 c0.193-0.331,2.538-4.213,6.943-5.637c0.111-0.036,0.224-0.07,0.337-0.102c-0.214-0.485-0.448-0.971-0.692-1.45 c-4.266,1.277-8.405,1.223-8.778,1.216c-0.003,0.087-0.004,0.174-0.004,0.261C3.458,14.207,4.29,16.21,5.654,17.724z M3.639,10.264 c0.382,0.005,3.901,0.02,7.897-1.041c-1.415-2.516-2.942-4.631-3.167-4.94C5.979,5.41,4.193,7.613,3.639,10.264z M9.998,3.709 c0.236,0.316,1.787,2.429,3.187,5c3.037-1.138,4.323-2.867,4.477-3.085C16.154,4.286,14.17,3.471,12,3.471 C11.311,3.471,10.641,3.554,9.998,3.709z M18.612,6.612C18.432,6.855,17,8.69,13.842,9.979c0.199,0.407,0.389,0.821,0.567,1.237 c0.063,0.148,0.124,0.295,0.184,0.441c2.842-0.357,5.666,0.215,5.948,0.275C20.522,9.916,19.801,8.065,18.612,6.612z"></path>
|
||||
</svg>',
|
||||
|
||||
'dropbox' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M12,6.134L6.069,9.797L2,6.54l5.883-3.843L12,6.134z M2,13.054l5.883,3.843L12,13.459L6.069,9.797L2,13.054z M12,13.459 l4.116,3.439L22,13.054l-4.069-3.257L12,13.459z M22,6.54l-5.884-3.843L12,6.134l5.931,3.663L22,6.54z M12.011,14.2l-4.129,3.426 l-1.767-1.153v1.291l5.896,3.539l5.897-3.539v-1.291l-1.769,1.153L12.011,14.2z"></path>
|
||||
</svg>',
|
||||
|
||||
'etsy' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M9.16033,4.038c0-.27174.02717-.43478.48913-.43478h6.22283c1.087,0,1.68478.92391,2.11957,2.663l.35326,1.38587h1.05978C19.59511,3.712,19.75815,2,19.75815,2s-2.663.29891-4.23913.29891h-7.962L3.29076,2.163v1.1413L4.731,3.57609c1.00543.19022,1.25.40761,1.33152,1.33152,0,0,.08152,2.71739.08152,7.20109s-.08152,7.17391-.08152,7.17391c0,.81522-.32609,1.11413-1.33152,1.30435l-1.44022.27174V22l4.2663-.13587h7.11957c1.60326,0,5.32609.13587,5.32609.13587.08152-.97826.625-5.40761.70652-5.89674H19.7038L18.644,18.52174c-.84239,1.90217-2.06522,2.038-3.42391,2.038H11.1712c-1.3587,0-2.01087-.54348-2.01087-1.712V12.65217s3.0163,0,3.99457.08152c.76087.05435,1.22283.27174,1.46739,1.33152l.32609,1.413h1.16848l-.08152-3.55978.163-3.587H15.02989l-.38043,1.57609c-.24457,1.03261-.40761,1.22283-1.46739,1.33152-1.38587.13587-4.02174.1087-4.02174.1087Z"></path>
|
||||
</svg>',
|
||||
|
||||
'facebook' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M20.007,3H3.993C3.445,3,3,3.445,3,3.993v16.013C3,20.555,3.445,21,3.993,21h8.621v-6.971h-2.346v-2.717h2.346V9.31 c0-2.325,1.42-3.591,3.494-3.591c0.993,0,1.847,0.074,2.096,0.107v2.43l-1.438,0.001c-1.128,0-1.346,0.536-1.346,1.323v1.734h2.69 l-0.35,2.717h-2.34V21h4.587C20.555,21,21,20.555,21,20.007V3.993C21,3.445,20.555,3,20.007,3z"></path>
|
||||
</svg>',
|
||||
|
||||
'feed' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M2,8.667V12c5.515,0,10,4.485,10,10h3.333C15.333,14.637,9.363,8.667,2,8.667z M2,2v3.333 c9.19,0,16.667,7.477,16.667,16.667H22C22,10.955,13.045,2,2,2z M4.5,17C3.118,17,2,18.12,2,19.5S3.118,22,4.5,22S7,20.88,7,19.5 S5.882,17,4.5,17z"></path>
|
||||
</svg>',
|
||||
|
||||
'flickr' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M6.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5S9.25,7,6.5,7z M17.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5 S20.25,7,17.5,7z"></path>
|
||||
</svg>',
|
||||
|
||||
'foursquare' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M17.573,2c0,0-9.197,0-10.668,0S5,3.107,5,3.805s0,16.948,0,16.948c0,0.785,0.422,1.077,0.66,1.172 c0.238,0.097,0.892,0.177,1.285-0.275c0,0,5.035-5.843,5.122-5.93c0.132-0.132,0.132-0.132,0.262-0.132h3.26 c1.368,0,1.588-0.977,1.732-1.552c0.078-0.318,0.692-3.428,1.225-6.122l0.675-3.368C19.56,2.893,19.14,2,17.573,2z M16.495,7.22 c-0.053,0.252-0.372,0.518-0.665,0.518c-0.293,0-4.157,0-4.157,0c-0.467,0-0.802,0.318-0.802,0.787v0.508 c0,0.467,0.337,0.798,0.805,0.798c0,0,3.197,0,3.528,0s0.655,0.362,0.583,0.715c-0.072,0.353-0.407,2.102-0.448,2.295 c-0.04,0.193-0.262,0.523-0.655,0.523c-0.33,0-2.88,0-2.88,0c-0.523,0-0.683,0.068-1.033,0.503 c-0.35,0.437-3.505,4.223-3.505,4.223c-0.032,0.035-0.063,0.027-0.063-0.015V4.852c0-0.298,0.26-0.648,0.648-0.648 c0,0,8.228,0,8.562,0c0.315,0,0.61,0.297,0.528,0.683L16.495,7.22z"></path>
|
||||
</svg>',
|
||||
|
||||
'goodreads' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M17.3,17.5c-0.2,0.8-0.5,1.4-1,1.9c-0.4,0.5-1,0.9-1.7,1.2C13.9,20.9,13.1,21,12,21c-0.6,0-1.3-0.1-1.9-0.2 c-0.6-0.1-1.1-0.4-1.6-0.7c-0.5-0.3-0.9-0.7-1.2-1.2c-0.3-0.5-0.5-1.1-0.5-1.7h1.5c0.1,0.5,0.2,0.9,0.5,1.2 c0.2,0.3,0.5,0.6,0.9,0.8c0.3,0.2,0.7,0.3,1.1,0.4c0.4,0.1,0.8,0.1,1.2,0.1c1.4,0,2.5-0.4,3.1-1.2c0.6-0.8,1-2,1-3.5v-1.7h0 c-0.4,0.8-0.9,1.4-1.6,1.9c-0.7,0.5-1.5,0.7-2.4,0.7c-1,0-1.9-0.2-2.6-0.5C8.7,15,8.1,14.5,7.7,14c-0.5-0.6-0.8-1.3-1-2.1 c-0.2-0.8-0.3-1.6-0.3-2.5c0-0.9,0.1-1.7,0.4-2.5c0.3-0.8,0.6-1.5,1.1-2c0.5-0.6,1.1-1,1.8-1.4C10.3,3.2,11.1,3,12,3 c0.5,0,0.9,0.1,1.3,0.2c0.4,0.1,0.8,0.3,1.1,0.5c0.3,0.2,0.6,0.5,0.9,0.8c0.3,0.3,0.5,0.6,0.6,1h0V3.4h1.5V15 C17.6,15.9,17.5,16.7,17.3,17.5z M13.8,14.1c0.5-0.3,0.9-0.7,1.3-1.1c0.3-0.5,0.6-1,0.8-1.6c0.2-0.6,0.3-1.2,0.3-1.9 c0-0.6-0.1-1.2-0.2-1.9c-0.1-0.6-0.4-1.2-0.7-1.7c-0.3-0.5-0.7-0.9-1.3-1.2c-0.5-0.3-1.1-0.5-1.9-0.5s-1.4,0.2-1.9,0.5 c-0.5,0.3-1,0.7-1.3,1.2C8.5,6.4,8.3,7,8.1,7.6C8,8.2,7.9,8.9,7.9,9.5c0,0.6,0.1,1.3,0.2,1.9C8.3,12,8.6,12.5,8.9,13 c0.3,0.5,0.8,0.8,1.3,1.1c0.5,0.3,1.1,0.4,1.9,0.4C12.7,14.5,13.3,14.4,13.8,14.1z"></path>
|
||||
</svg>',
|
||||
|
||||
'google-plus' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M8,11h6.61c0.06,0.35,0.11,0.7,0.11,1.16c0,4-2.68,6.84-6.72,6.84c-3.87,0-7-3.13-7-7s3.13-7,7-7 c1.89,0,3.47,0.69,4.69,1.83l-1.9,1.83C10.27,8.16,9.36,7.58,8,7.58c-2.39,0-4.34,1.98-4.34,4.42S5.61,16.42,8,16.42 c2.77,0,3.81-1.99,3.97-3.02H8V11L8,11z M23,11h-2V9h-2v2h-2v2h2v2h2v-2h2"></path>
|
||||
</svg>',
|
||||
|
||||
'google' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M12.02,10.18v3.72v0.01h5.51c-0.26,1.57-1.67,4.22-5.5,4.22c-3.31,0-6.01-2.75-6.01-6.12s2.7-6.12,6.01-6.12 c1.87,0,3.13,0.8,3.85,1.48l2.84-2.76C16.99,2.99,14.73,2,12.03,2c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.77,0,9.6-4.06,9.6-9.77 c0-0.83-0.11-1.42-0.25-2.05H12.02z"></path>
|
||||
</svg>',
|
||||
|
||||
'github' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z"></path>
|
||||
</svg>',
|
||||
|
||||
'instagram' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"></path>
|
||||
</svg>',
|
||||
|
||||
'lastfm' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M10.5002,0 C4.7006,0 0,4.70109753 0,10.4998496 C0,16.2989526 4.7006,21 10.5002,21 C16.299,21 21,16.2989526 21,10.4998496 C21,4.70109753 16.299,0 10.5002,0 Z M14.69735,14.7204413 C13.3164,14.7151781 12.4346,14.0870017 11.83445,12.6859357 L11.6816001,12.3451305 L10.35405,9.31011397 C9.92709997,8.26875064 8.85260001,7.57120012 7.68010001,7.57120012 C6.06945001,7.57120012 4.75925001,8.88509738 4.75925001,10.5009524 C4.75925001,12.1164565 6.06945001,13.4303036 7.68010001,13.4303036 C8.77200001,13.4303036 9.76514999,12.827541 10.2719501,11.8567047 C10.2893,11.8235214 10.3239,11.8019673 10.36305,11.8038219 C10.4007,11.8053759 10.43535,11.8287847 10.4504,11.8631709 L10.98655,13.1045863 C11.0016,13.1389726 10.9956,13.17782 10.97225,13.2068931 C10.1605001,14.1995341 8.96020001,14.7683115 7.68010001,14.7683115 C5.33305,14.7683115 3.42340001,12.8535563 3.42340001,10.5009524 C3.42340001,8.14679459 5.33300001,6.23203946 7.68010001,6.23203946 C9.45720002,6.23203946 10.8909,7.19074535 11.6138,8.86359341 C11.6205501,8.88018505 12.3412,10.5707777 12.97445,12.0190621 C13.34865,12.8739575 13.64615,13.3959676 14.6288,13.4291508 C15.5663001,13.4612814 16.25375,12.9121534 16.25375,12.1484869 C16.25375,11.4691321 15.8320501,11.3003585 14.8803,10.98216 C13.2365,10.4397989 12.34495,9.88605929 12.34495,8.51817658 C12.34495,7.1809207 13.26665,6.31615054 14.692,6.31615054 C15.62875,6.31615054 16.3155,6.7286858 16.79215,7.5768142 C16.80495,7.60062396 16.8079001,7.62814302 16.8004001,7.65420843 C16.7929,7.68027384 16.7748,7.70212868 16.7507001,7.713808 L15.86145,8.16900031 C15.8178001,8.19200805 15.7643,8.17807308 15.73565,8.13847371 C15.43295,7.71345711 15.0956,7.52513451 14.6423,7.52513451 C14.05125,7.52513451 13.6220001,7.92899802 13.6220001,8.48649708 C13.6220001,9.17382194 14.1529001,9.34144259 15.0339,9.61923972 C15.14915,9.65578139 15.26955,9.69397731 15.39385,9.73432853 C16.7763,10.1865133 17.57675,10.7311301 17.57675,12.1836251 C17.57685,13.629654 16.3389,14.7204413 14.69735,14.7204413 Z"></path>
|
||||
</svg>',
|
||||
|
||||
'linkedin' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"></path>
|
||||
</svg>',
|
||||
|
||||
'mail' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M20,4H4C2.895,4,2,4.895,2,6v12c0,1.105,0.895,2,2,2h16c1.105,0,2-0.895,2-2V6C22,4.895,21.105,4,20,4z M20,8.236l-8,4.882 L4,8.236V6h16V8.236z"></path>
|
||||
</svg>',
|
||||
|
||||
'meetup' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M19.24775,14.722a3.57032,3.57032,0,0,1-2.94457,3.52073,3.61886,3.61886,0,0,1-.64652.05634c-.07314-.0008-.10187.02846-.12507.09547A2.38881,2.38881,0,0,1,13.49453,20.094a2.33092,2.33092,0,0,1-1.827-.50716.13635.13635,0,0,0-.19878-.00408,3.191,3.191,0,0,1-2.104.60248,3.26309,3.26309,0,0,1-3.00324-2.71993,2.19076,2.19076,0,0,1-.03512-.30865c-.00156-.08579-.03413-.1189-.11608-.13493a2.86421,2.86421,0,0,1-1.23189-.56111,2.945,2.945,0,0,1-1.166-2.05749,2.97484,2.97484,0,0,1,.87524-2.50774.112.112,0,0,0,.02091-.16107,2.7213,2.7213,0,0,1-.36648-1.48A2.81256,2.81256,0,0,1,6.57673,7.58838a.35764.35764,0,0,0,.28869-.22819,4.2208,4.2208,0,0,1,6.02892-1.90111.25161.25161,0,0,0,.22023.0243,3.65608,3.65608,0,0,1,3.76031.90678A3.57244,3.57244,0,0,1,17.95918,8.626a2.97339,2.97339,0,0,1,.01829.57356.10637.10637,0,0,0,.0853.12792,1.97669,1.97669,0,0,1,1.27939,1.33733,2.00266,2.00266,0,0,1-.57112,2.12652c-.05284.05166-.04168.08328-.01173.13489A3.51189,3.51189,0,0,1,19.24775,14.722Zm-6.35959-.27836a1.6984,1.6984,0,0,0,1.14556,1.61113,3.82039,3.82039,0,0,0,1.036.17935,1.46888,1.46888,0,0,0,.73509-.12255.44082.44082,0,0,0,.26057-.44274.45312.45312,0,0,0-.29211-.43375.97191.97191,0,0,0-.20678-.063c-.21326-.03806-.42754-.0701-.63973-.11215a.54787.54787,0,0,1-.50172-.60926,2.75864,2.75864,0,0,1,.1773-.901c.1763-.535.414-1.045.64183-1.55913A12.686,12.686,0,0,0,15.85,10.47863a1.58461,1.58461,0,0,0,.04861-.87208,1.04531,1.04531,0,0,0-.85432-.83981,1.60658,1.60658,0,0,0-1.23654.16594.27593.27593,0,0,1-.36286-.03413c-.085-.0747-.16594-.15379-.24918-.23055a.98682.98682,0,0,0-1.33577-.04933,6.1468,6.1468,0,0,1-.4989.41615.47762.47762,0,0,1-.51535.03566c-.17448-.09307-.35512-.175-.53531-.25665a1.74949,1.74949,0,0,0-.56476-.2016,1.69943,1.69943,0,0,0-1.61654.91787,8.05815,8.05815,0,0,0-.32952.80126c-.45471,1.2557-.82507,2.53825-1.20838,3.81639a1.24151,1.24151,0,0,0,.51532,1.44389,1.42659,1.42659,0,0,0,1.22008.17166,1.09728,1.09728,0,0,0,.66994-.69764c.44145-1.04111.839-2.09989,1.25981-3.14926.11581-.28876.22792-.57874.35078-.86438a.44548.44548,0,0,1,.69189-.19539.50521.50521,0,0,1,.15044.43836,1.75625,1.75625,0,0,1-.14731.50453c-.27379.69219-.55265,1.38236-.82766,2.074a2.0836,2.0836,0,0,0-.14038.42876.50719.50719,0,0,0,.27082.57722.87236.87236,0,0,0,.66145.02739.99137.99137,0,0,0,.53406-.532q.61571-1.20914,1.228-2.42031.28423-.55863.57585-1.1133a.87189.87189,0,0,1,.29055-.35253.34987.34987,0,0,1,.37634-.01265.30291.30291,0,0,1,.12434.31459.56716.56716,0,0,1-.04655.1915c-.05318.12739-.10286.25669-.16183.38156-.34118.71775-.68754,1.43273-1.02568,2.152A2.00213,2.00213,0,0,0,12.88816,14.44366Zm4.78568,5.28972a.88573.88573,0,0,0-1.77139.00465.8857.8857,0,0,0,1.77139-.00465Zm-14.83838-7.296a.84329.84329,0,1,0,.00827-1.68655.8433.8433,0,0,0-.00827,1.68655Zm10.366-9.43673a.83506.83506,0,1,0-.0091,1.67.83505.83505,0,0,0,.0091-1.67Zm6.85014,5.22a.71651.71651,0,0,0-1.433.0093.71656.71656,0,0,0,1.433-.0093ZM5.37528,6.17908A.63823.63823,0,1,0,6.015,5.54483.62292.62292,0,0,0,5.37528,6.17908Zm6.68214,14.80843a.54949.54949,0,1,0-.55052.541A.54556.54556,0,0,0,12.05742,20.98752Zm8.53235-8.49689a.54777.54777,0,0,0-.54027.54023.53327.53327,0,0,0,.532.52293.51548.51548,0,0,0,.53272-.5237A.53187.53187,0,0,0,20.58977,12.49063ZM7.82846,2.4715a.44927.44927,0,1,0,.44484.44766A.43821.43821,0,0,0,7.82846,2.4715Zm13.775,7.60492a.41186.41186,0,0,0-.40065.39623.40178.40178,0,0,0,.40168.40168A.38994.38994,0,0,0,22,10.48172.39946.39946,0,0,0,21.60349,10.07642ZM5.79193,17.96207a.40469.40469,0,0,0-.397-.39646.399.399,0,0,0-.396.405.39234.39234,0,0,0,.39939.389A.39857.39857,0,0,0,5.79193,17.96207Z"></path>
|
||||
</svg>',
|
||||
|
||||
'medium' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M20.962,7.257l-5.457,8.867l-3.923-6.375l3.126-5.08c0.112-0.182,0.319-0.286,0.527-0.286c0.05,0,0.1,0.008,0.149,0.02 c0.039,0.01,0.078,0.023,0.114,0.041l5.43,2.715l0.006,0.003c0.004,0.002,0.007,0.006,0.011,0.008 C20.971,7.191,20.98,7.227,20.962,7.257z M9.86,8.592v5.783l5.14,2.57L9.86,8.592z M15.772,17.331l4.231,2.115 C20.554,19.721,21,19.529,21,19.016V8.835L15.772,17.331z M8.968,7.178L3.665,4.527C3.569,4.479,3.478,4.456,3.395,4.456 C3.163,4.456,3,4.636,3,4.938v11.45c0,0.306,0.224,0.669,0.498,0.806l4.671,2.335c0.12,0.06,0.234,0.088,0.337,0.088 c0.29,0,0.494-0.225,0.494-0.602V7.231C9,7.208,8.988,7.188,8.968,7.178z"></path>
|
||||
</svg>',
|
||||
|
||||
'pinterest' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"></path>
|
||||
</svg>',
|
||||
|
||||
'pocket' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M21.927,4.194C21.667,3.48,20.982,3,20.222,3h-0.01h-1.721H3.839C3.092,3,2.411,3.47,2.145,4.17 C2.066,4.378,2.026,4.594,2.026,4.814v6.035l0.069,1.2c0.29,2.73,1.707,5.115,3.899,6.778c0.039,0.03,0.079,0.059,0.119,0.089 l0.025,0.018c1.175,0.859,2.491,1.441,3.91,1.727c0.655,0.132,1.325,0.2,1.991,0.2c0.615,0,1.232-0.057,1.839-0.17 c0.073-0.014,0.145-0.028,0.219-0.044c0.02-0.004,0.042-0.012,0.064-0.023c1.359-0.297,2.621-0.864,3.753-1.691l0.025-0.018 c0.04-0.029,0.08-0.058,0.119-0.089c2.192-1.664,3.609-4.049,3.898-6.778l0.069-1.2V4.814C22.026,4.605,22,4.398,21.927,4.194z M17.692,10.481l-4.704,4.512c-0.266,0.254-0.608,0.382-0.949,0.382c-0.342,0-0.684-0.128-0.949-0.382l-4.705-4.512 C5.838,9.957,5.82,9.089,6.344,8.542c0.524-0.547,1.392-0.565,1.939-0.04l3.756,3.601l3.755-3.601 c0.547-0.524,1.415-0.506,1.939,0.04C18.256,9.089,18.238,9.956,17.692,10.481z"></path>
|
||||
</svg>',
|
||||
|
||||
'reddit' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M22,11.816c0-1.256-1.021-2.277-2.277-2.277c-0.593,0-1.122,0.24-1.526,0.614c-1.481-0.965-3.455-1.594-5.647-1.69 l1.171-3.702l3.18,0.748c0.008,1.028,0.846,1.862,1.876,1.862c1.035,0,1.877-0.842,1.877-1.878c0-1.035-0.842-1.877-1.877-1.877 c-0.769,0-1.431,0.466-1.72,1.13l-3.508-0.826c-0.203-0.047-0.399,0.067-0.46,0.261l-1.35,4.268 c-2.316,0.038-4.411,0.67-5.97,1.671C5.368,9.765,4.853,9.539,4.277,9.539C3.021,9.539,2,10.56,2,11.816 c0,0.814,0.433,1.523,1.078,1.925c-0.037,0.221-0.061,0.444-0.061,0.672c0,3.292,4.011,5.97,8.941,5.97s8.941-2.678,8.941-5.97 c0-0.214-0.02-0.424-0.053-0.632C21.533,13.39,22,12.661,22,11.816z M18.776,4.394c0.606,0,1.1,0.493,1.1,1.1s-0.493,1.1-1.1,1.1 s-1.1-0.494-1.1-1.1S18.169,4.394,18.776,4.394z M2.777,11.816c0-0.827,0.672-1.5,1.499-1.5c0.313,0,0.598,0.103,0.838,0.269 c-0.851,0.676-1.477,1.479-1.812,2.36C2.983,12.672,2.777,12.27,2.777,11.816z M11.959,19.606c-4.501,0-8.164-2.329-8.164-5.193 S7.457,9.22,11.959,9.22s8.164,2.329,8.164,5.193S16.46,19.606,11.959,19.606z M20.636,13.001c-0.326-0.89-0.948-1.701-1.797-2.384 c0.248-0.186,0.55-0.301,0.883-0.301c0.827,0,1.5,0.673,1.5,1.5C21.223,12.299,20.992,12.727,20.636,13.001z M8.996,14.704 c-0.76,0-1.397-0.616-1.397-1.376c0-0.76,0.637-1.397,1.397-1.397c0.76,0,1.376,0.637,1.376,1.397 C10.372,14.088,9.756,14.704,8.996,14.704z M16.401,13.328c0,0.76-0.616,1.376-1.376,1.376c-0.76,0-1.399-0.616-1.399-1.376 c0-0.76,0.639-1.397,1.399-1.397C15.785,11.931,16.401,12.568,16.401,13.328z M15.229,16.708c0.152,0.152,0.152,0.398,0,0.55 c-0.674,0.674-1.727,1.002-3.219,1.002c-0.004,0-0.007-0.002-0.011-0.002c-0.004,0-0.007,0.002-0.011,0.002 c-1.492,0-2.544-0.328-3.218-1.002c-0.152-0.152-0.152-0.398,0-0.55c0.152-0.152,0.399-0.151,0.55,0 c0.521,0.521,1.394,0.775,2.669,0.775c0.004,0,0.007,0.002,0.011,0.002c0.004,0,0.007-0.002,0.011-0.002 c1.275,0,2.148-0.253,2.669-0.775C14.831,16.556,15.078,16.556,15.229,16.708z"></path>
|
||||
</svg>',
|
||||
|
||||
'skype' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M10.113,2.699c0.033-0.006,0.067-0.013,0.1-0.02c0.033,0.017,0.066,0.033,0.098,0.051L10.113,2.699z M2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223z M21.275,13.771 c0.007-0.035,0.011-0.071,0.018-0.106c-0.018-0.031-0.033-0.064-0.052-0.095L21.275,13.771z M13.563,21.199 c0.032,0.019,0.065,0.035,0.096,0.053c0.036-0.006,0.071-0.011,0.105-0.017L13.563,21.199z M22,16.386 c0,1.494-0.581,2.898-1.637,3.953c-1.056,1.057-2.459,1.637-3.953,1.637c-0.967,0-1.914-0.251-2.75-0.725 c0.036-0.006,0.071-0.011,0.105-0.017l-0.202-0.035c0.032,0.019,0.065,0.035,0.096,0.053c-0.543,0.096-1.099,0.147-1.654,0.147 c-1.275,0-2.512-0.25-3.676-0.743c-1.125-0.474-2.135-1.156-3.002-2.023c-0.867-0.867-1.548-1.877-2.023-3.002 c-0.493-1.164-0.743-2.401-0.743-3.676c0-0.546,0.049-1.093,0.142-1.628c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103C2.244,9.5,2,8.566,2,7.615c0-1.493,0.582-2.898,1.637-3.953 c1.056-1.056,2.46-1.638,3.953-1.638c0.915,0,1.818,0.228,2.622,0.655c-0.033,0.007-0.067,0.013-0.1,0.02l0.199,0.031 c-0.032-0.018-0.066-0.034-0.098-0.051c0.002,0,0.003-0.001,0.004-0.001c0.586-0.112,1.187-0.169,1.788-0.169 c1.275,0,2.512,0.249,3.676,0.742c1.124,0.476,2.135,1.156,3.002,2.024c0.868,0.867,1.548,1.877,2.024,3.002 c0.493,1.164,0.743,2.401,0.743,3.676c0,0.575-0.054,1.15-0.157,1.712c-0.018-0.031-0.033-0.064-0.052-0.095l0.034,0.201 c0.007-0.035,0.011-0.071,0.018-0.106C21.754,14.494,22,15.432,22,16.386z M16.817,14.138c0-1.331-0.613-2.743-3.033-3.282 l-2.209-0.49c-0.84-0.192-1.807-0.444-1.807-1.237c0-0.794,0.679-1.348,1.903-1.348c2.468,0,2.243,1.696,3.468,1.696 c0.645,0,1.209-0.379,1.209-1.031c0-1.521-2.435-2.663-4.5-2.663c-2.242,0-4.63,0.952-4.63,3.488c0,1.221,0.436,2.521,2.839,3.123 l2.984,0.745c0.903,0.223,1.129,0.731,1.129,1.189c0,0.762-0.758,1.507-2.129,1.507c-2.679,0-2.307-2.062-3.743-2.062 c-0.645,0-1.113,0.444-1.113,1.078c0,1.236,1.501,2.886,4.856,2.886C15.236,17.737,16.817,16.199,16.817,14.138z"></path>
|
||||
</svg>',
|
||||
|
||||
'slideshare' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M11.738,10.232a2.142,2.142,0,0,1-.721,1.619,2.556,2.556,0,0,1-3.464,0,2.183,2.183,0,0,1,0-3.243,2.572,2.572,0,0,1,3.464,0A2.136,2.136,0,0,1,11.738,10.232Zm5.7,0a2.15,2.15,0,0,1-.715,1.619,2.563,2.563,0,0,1-3.469,0,2.183,2.183,0,0,1,0-3.243,2.58,2.58,0,0,1,3.469,0A2.144,2.144,0,0,1,17.439,10.232Zm2.555,2.045V4.7a2.128,2.128,0,0,0-.363-1.4,1.614,1.614,0,0,0-1.261-.415H5.742a1.656,1.656,0,0,0-1.278.386A2.246,2.246,0,0,0,4.129,4.7v7.643a8.212,8.212,0,0,0,1,.454q.516.193.92.318a6.847,6.847,0,0,0,.92.21q.516.085.806.125a6.615,6.615,0,0,0,.795.045l.665.006q.16,0,.642-.023t.506-.023a1.438,1.438,0,0,1,1.079.307,1.134,1.134,0,0,0,.114.1,7.215,7.215,0,0,0,.693.579q.079-1.033,1.34-.988.057,0,.415.017l.488.023q.13.006.517.011t.6-.011l.619-.051a5.419,5.419,0,0,0,.693-.1l.7-.153a5.353,5.353,0,0,0,.761-.221q.345-.131.766-.307a8.727,8.727,0,0,0,.818-.392Zm1.851-.057a10.4,10.4,0,0,1-4.225,2.862,6.5,6.5,0,0,1-.261,5.281,3.524,3.524,0,0,1-2.078,1.681,2.452,2.452,0,0,1-2.067-.17,1.915,1.915,0,0,1-.931-1.863l-.011-3.7V16.3l-.279-.068q-.188-.045-.267-.057l-.011,3.839a1.9,1.9,0,0,1-.943,1.863,2.481,2.481,0,0,1-2.078.17,3.519,3.519,0,0,1-2.067-1.7,6.546,6.546,0,0,1-.25-5.258A10.4,10.4,0,0,1,2.152,12.22a.56.56,0,0,1-.045-.715q.238-.3.681.011l.125.079a.767.767,0,0,1,.125.091V3.8a1.987,1.987,0,0,1,.534-1.4,1.7,1.7,0,0,1,1.295-.579H19.141a1.7,1.7,0,0,1,1.295.579,1.985,1.985,0,0,1,.534,1.4v7.882l.238-.17q.443-.307.681-.011a.56.56,0,0,1-.045.715Z"></path>
|
||||
</svg>',
|
||||
|
||||
'snapchat' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M12.065,2a5.526,5.526,0,0,1,3.132.892A5.854,5.854,0,0,1,17.326,5.4a5.821,5.821,0,0,1,.351,2.33q0,.612-.117,2.487a.809.809,0,0,0,.365.091,1.93,1.93,0,0,0,.664-.176,1.93,1.93,0,0,1,.664-.176,1.3,1.3,0,0,1,.729.234.7.7,0,0,1,.351.6.839.839,0,0,1-.41.7,2.732,2.732,0,0,1-.9.41,3.192,3.192,0,0,0-.9.378.728.728,0,0,0-.41.618,1.575,1.575,0,0,0,.156.56,6.9,6.9,0,0,0,1.334,1.953,5.6,5.6,0,0,0,1.881,1.315,5.875,5.875,0,0,0,1.042.3.42.42,0,0,1,.365.456q0,.911-2.852,1.341a1.379,1.379,0,0,0-.143.507,1.8,1.8,0,0,1-.182.605.451.451,0,0,1-.429.241,5.878,5.878,0,0,1-.807-.085,5.917,5.917,0,0,0-.833-.085,4.217,4.217,0,0,0-.807.065,2.42,2.42,0,0,0-.82.293,6.682,6.682,0,0,0-.755.5q-.351.267-.755.527a3.886,3.886,0,0,1-.989.436A4.471,4.471,0,0,1,11.831,22a4.307,4.307,0,0,1-1.256-.176,3.784,3.784,0,0,1-.976-.436q-.4-.26-.749-.527a6.682,6.682,0,0,0-.755-.5,2.422,2.422,0,0,0-.807-.293,4.432,4.432,0,0,0-.82-.065,5.089,5.089,0,0,0-.853.1,5,5,0,0,1-.762.1.474.474,0,0,1-.456-.241,1.819,1.819,0,0,1-.182-.618,1.411,1.411,0,0,0-.143-.521q-2.852-.429-2.852-1.341a.42.42,0,0,1,.365-.456,5.793,5.793,0,0,0,1.042-.3,5.524,5.524,0,0,0,1.881-1.315,6.789,6.789,0,0,0,1.334-1.953A1.575,1.575,0,0,0,6,12.9a.728.728,0,0,0-.41-.618,3.323,3.323,0,0,0-.9-.384,2.912,2.912,0,0,1-.9-.41.814.814,0,0,1-.41-.684.71.71,0,0,1,.338-.593,1.208,1.208,0,0,1,.716-.241,1.976,1.976,0,0,1,.625.169,2.008,2.008,0,0,0,.69.169.919.919,0,0,0,.416-.091q-.117-1.849-.117-2.474A5.861,5.861,0,0,1,6.385,5.4,5.516,5.516,0,0,1,8.625,2.819,7.075,7.075,0,0,1,12.062,2Z"></path>
|
||||
</svg>',
|
||||
|
||||
'soundcloud' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M8.9,16.1L9,14L8.9,9.5c0-0.1,0-0.1-0.1-0.1c0,0-0.1-0.1-0.1-0.1c-0.1,0-0.1,0-0.1,0.1c0,0-0.1,0.1-0.1,0.1L8.3,14l0.1,2.1 c0,0.1,0,0.1,0.1,0.1c0,0,0.1,0.1,0.1,0.1C8.8,16.3,8.9,16.3,8.9,16.1z M11.4,15.9l0.1-1.8L11.4,9c0-0.1,0-0.2-0.1-0.2 c0,0-0.1,0-0.1,0s-0.1,0-0.1,0c-0.1,0-0.1,0.1-0.1,0.2l0,0.1l-0.1,5c0,0,0,0.7,0.1,2v0c0,0.1,0,0.1,0.1,0.1c0.1,0.1,0.1,0.1,0.2,0.1 c0.1,0,0.1,0,0.2-0.1c0.1,0,0.1-0.1,0.1-0.2L11.4,15.9z M2.4,12.9L2.5,14l-0.2,1.1c0,0.1,0,0.1-0.1,0.1c0,0-0.1,0-0.1-0.1L2.1,14 l0.1-1.1C2.2,12.9,2.3,12.9,2.4,12.9C2.3,12.9,2.4,12.9,2.4,12.9z M3.1,12.2L3.3,14l-0.2,1.8c0,0.1,0,0.1-0.1,0.1 c-0.1,0-0.1,0-0.1-0.1L2.8,14L3,12.2C3,12.2,3,12.2,3.1,12.2C3.1,12.2,3.1,12.2,3.1,12.2z M3.9,11.9L4.1,14l-0.2,2.1 c0,0.1,0,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L3.5,14l0.2-2.1c0-0.1,0-0.1,0.1-0.1C3.9,11.8,3.9,11.8,3.9,11.9z M4.7,11.9L4.9,14 l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L4.3,14l0.2-2.2c0-0.1,0-0.1,0.1-0.1C4.7,11.7,4.7,11.8,4.7,11.9z M5.6,12 l0.2,2l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c0,0-0.1,0-0.1,0c0,0,0-0.1,0-0.1L5.1,14l0.2-2c0,0,0-0.1,0-0.1s0.1,0,0.1,0 C5.5,11.9,5.5,11.9,5.6,12L5.6,12z M6.4,10.7L6.6,14l-0.2,2.1c0,0,0,0.1,0,0.1c0,0-0.1,0-0.1,0c-0.1,0-0.1-0.1-0.2-0.2L5.9,14 l0.2-3.3c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0C6.4,10.7,6.4,10.7,6.4,10.7z M7.2,10l0.2,4.1l-0.2,2.1c0,0,0,0.1,0,0.1 c0,0-0.1,0-0.1,0c-0.1,0-0.2-0.1-0.2-0.2l-0.1-2.1L6.8,10c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0S7.2,9.9,7.2,10z M8,9.6L8.2,14 L8,16.1c0,0.1-0.1,0.2-0.2,0.2c-0.1,0-0.2-0.1-0.2-0.2L7.5,14l0.1-4.4c0-0.1,0-0.1,0.1-0.1c0,0,0.1-0.1,0.1-0.1c0.1,0,0.1,0,0.1,0.1 C8,9.6,8,9.6,8,9.6z M11.4,16.1L11.4,16.1L11.4,16.1z M9.7,9.6L9.8,14l-0.1,2.1c0,0.1,0,0.1-0.1,0.2s-0.1,0.1-0.2,0.1 c-0.1,0-0.1,0-0.1-0.1s-0.1-0.1-0.1-0.2L9.2,14l0.1-4.4c0-0.1,0-0.1,0.1-0.2s0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S9.7,9.5,9.7,9.6 L9.7,9.6z M10.6,9.8l0.1,4.3l-0.1,2c0,0.1,0,0.1-0.1,0.2c0,0-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c0,0-0.1-0.1-0.1-0.2L10,14 l0.1-4.3c0-0.1,0-0.1,0.1-0.2c0,0,0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S10.6,9.7,10.6,9.8z M12.4,14l-0.1,2c0,0.1,0,0.1-0.1,0.2 c-0.1,0.1-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2l-0.1-1l-0.1-1l0.1-5.5v0c0-0.1,0-0.2,0.1-0.2 c0.1,0,0.1-0.1,0.2-0.1c0,0,0.1,0,0.1,0c0.1,0,0.1,0.1,0.1,0.2L12.4,14z M22.1,13.9c0,0.7-0.2,1.3-0.7,1.7c-0.5,0.5-1.1,0.7-1.7,0.7 h-6.8c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2V8.2c0-0.1,0.1-0.2,0.2-0.3c0.5-0.2,1-0.3,1.6-0.3c1.1,0,2.1,0.4,2.9,1.1 c0.8,0.8,1.3,1.7,1.4,2.8c0.3-0.1,0.6-0.2,1-0.2c0.7,0,1.3,0.2,1.7,0.7C21.8,12.6,22.1,13.2,22.1,13.9L22.1,13.9z"></path>
|
||||
</svg>',
|
||||
|
||||
'spotify' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2 M16.586,16.424 c-0.18,0.295-0.563,0.387-0.857,0.207c-2.348-1.435-5.304-1.76-8.785-0.964c-0.335,0.077-0.67-0.133-0.746-0.469 c-0.077-0.335,0.132-0.67,0.469-0.746c3.809-0.871,7.077-0.496,9.713,1.115C16.673,15.746,16.766,16.13,16.586,16.424 M17.81,13.7 c-0.226,0.367-0.706,0.482-1.072,0.257c-2.687-1.652-6.785-2.131-9.965-1.166C6.36,12.917,5.925,12.684,5.8,12.273 C5.675,11.86,5.908,11.425,6.32,11.3c3.632-1.102,8.147-0.568,11.234,1.328C17.92,12.854,18.035,13.335,17.81,13.7 M17.915,10.865 c-3.223-1.914-8.54-2.09-11.618-1.156C5.804,9.859,5.281,9.58,5.131,9.086C4.982,8.591,5.26,8.069,5.755,7.919 c3.532-1.072,9.404-0.865,13.115,1.338c0.445,0.264,0.59,0.838,0.327,1.282C18.933,10.983,18.359,11.129,17.915,10.865"></path>
|
||||
</svg>',
|
||||
|
||||
'stumbleupon' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M12,4.294c-2.469,0-4.471,2.002-4.471,4.471v6.353c0,0.585-0.474,1.059-1.059,1.059c-0.585,0-1.059-0.474-1.059-1.059 v-2.824H2v2.941c0,2.469,2.002,4.471,4.471,4.471c2.469,0,4.471-2.002,4.471-4.471V8.765c0-0.585,0.474-1.059,1.059-1.059 s1.059,0.474,1.059,1.059v1.294l1.412,0.647l2-0.647V8.765C16.471,6.296,14.469,4.294,12,4.294z M13.059,12.353v2.882 c0,2.469,2.002,4.471,4.471,4.471S22,17.704,22,15.235v-2.824h-3.412v2.824c0,0.585-0.474,1.059-1.059,1.059 c-0.585,0-1.059-0.474-1.059-1.059v-2.882l-2,0.647L13.059,12.353z"></path>
|
||||
</svg>',
|
||||
|
||||
'tumblr' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M16.749,17.396c-0.357,0.17-1.041,0.319-1.551,0.332c-1.539,0.041-1.837-1.081-1.85-1.896V9.847h3.861V6.937h-3.847V2.039 c0,0-2.77,0-2.817,0c-0.046,0-0.127,0.041-0.138,0.144c-0.165,1.499-0.867,4.13-3.783,5.181v2.484h1.945v6.282 c0,2.151,1.587,5.206,5.775,5.135c1.413-0.024,2.982-0.616,3.329-1.126L16.749,17.396z"></path>
|
||||
</svg>',
|
||||
|
||||
'twitch' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M16.499,8.089h-1.636v4.91h1.636V8.089z M12,8.089h-1.637v4.91H12V8.089z M4.228,3.178L3,6.451v13.092h4.499V22h2.456 l2.454-2.456h3.681L21,14.636V3.178H4.228z M19.364,13.816l-2.864,2.865H12l-2.453,2.453V16.68H5.863V4.814h13.501V13.816z"></path>
|
||||
</svg>',
|
||||
|
||||
'twitter' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z"></path>
|
||||
</svg>',
|
||||
|
||||
'vimeo' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M22.396,7.164c-0.093,2.026-1.507,4.799-4.245,8.32C15.322,19.161,12.928,21,10.97,21c-1.214,0-2.24-1.119-3.079-3.359 c-0.56-2.053-1.119-4.106-1.68-6.159C5.588,9.243,4.921,8.122,4.206,8.122c-0.156,0-0.701,0.328-1.634,0.98L1.594,7.841 c1.027-0.902,2.04-1.805,3.037-2.708C6.001,3.95,7.03,3.327,7.715,3.264c1.619-0.156,2.616,0.951,2.99,3.321 c0.404,2.557,0.685,4.147,0.841,4.769c0.467,2.121,0.981,3.181,1.542,3.181c0.435,0,1.09-0.688,1.963-2.065 c0.871-1.376,1.338-2.422,1.401-3.142c0.125-1.187-0.343-1.782-1.401-1.782c-0.498,0-1.012,0.115-1.541,0.341 c1.023-3.35,2.977-4.977,5.862-4.884C21.511,3.066,22.52,4.453,22.396,7.164z"></path>
|
||||
</svg>',
|
||||
|
||||
'vk' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.4-0.1-0.5-0.2l-0.2-0.1 c-0.2-0.1-0.5-0.4-0.7-0.7s-0.5-0.6-0.7-0.8c-0.2-0.2-0.4-0.4-0.6-0.6C14.8,15,14.6,15,14.4,15c0,0,0,0-0.1,0c0,0-0.1,0.1-0.2,0.2 c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.1-0.1,0.3-0.2,0.5c-0.1,0.2-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.1-0.1,0.2-0.1,0.2l0,0.1 c-0.1,0.1-0.3,0.2-0.6,0.2h-1.2c-0.5,0-1,0-1.5-0.2c-0.5-0.1-1-0.3-1.4-0.6s-0.7-0.5-1.1-0.7s-0.6-0.4-0.7-0.6l-0.3-0.3 c-0.1-0.1-0.2-0.2-0.3-0.3s-0.4-0.5-0.7-0.9s-0.7-1-1.1-1.6c-0.4-0.6-0.8-1.3-1.3-2.2C2.9,9.4,2.5,8.5,2.1,7.5C2,7.4,2,7.3,2,7.2 c0-0.1,0-0.1,0-0.2l0-0.1c0.1-0.1,0.3-0.2,0.6-0.2l2.9,0c0.1,0,0.2,0,0.2,0.1S5.9,6.9,5.9,7L6,7c0.1,0.1,0.2,0.2,0.3,0.3 C6.4,7.7,6.5,8,6.7,8.4C6.9,8.8,7,9,7.1,9.2l0.2,0.3c0.2,0.4,0.4,0.8,0.6,1.1c0.2,0.3,0.4,0.5,0.5,0.7s0.3,0.3,0.4,0.4 c0.1,0.1,0.3,0.1,0.4,0.1c0.1,0,0.2,0,0.3-0.1c0,0,0,0,0.1-0.1c0,0,0.1-0.1,0.1-0.2c0.1-0.1,0.1-0.3,0.1-0.5c0-0.2,0.1-0.5,0.1-0.8 c0-0.4,0-0.8,0-1.3c0-0.3,0-0.5-0.1-0.8c0-0.2-0.1-0.4-0.1-0.5L9.6,7.6C9.4,7.3,9.1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"></path>
|
||||
</svg>',
|
||||
|
||||
'wordpress' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.51 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z"></path>
|
||||
</svg>',
|
||||
|
||||
'yelp' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M12.271,16.718v1.417q-.011,3.257-.067,3.4a.707.707,0,0,1-.569.446,4.637,4.637,0,0,1-2.024-.424A4.609,4.609,0,0,1,7.8,20.565a.844.844,0,0,1-.19-.4.692.692,0,0,1,.044-.29,3.181,3.181,0,0,1,.379-.524q.335-.412,2.019-2.409.011,0,.669-.781a.757.757,0,0,1,.44-.274.965.965,0,0,1,.552.039.945.945,0,0,1,.418.324.732.732,0,0,1,.139.468Zm-1.662-2.8a.783.783,0,0,1-.58.781l-1.339.435q-3.067.981-3.257.981a.711.711,0,0,1-.6-.4,2.636,2.636,0,0,1-.19-.836,9.134,9.134,0,0,1,.011-1.857,3.559,3.559,0,0,1,.335-1.389.659.659,0,0,1,.625-.357,22.629,22.629,0,0,1,2.253.859q.781.324,1.283.524l.937.379a.771.771,0,0,1,.4.34A.982.982,0,0,1,10.609,13.917Zm9.213,3.313a4.467,4.467,0,0,1-1.021,1.8,4.559,4.559,0,0,1-1.512,1.417.671.671,0,0,1-.7-.078q-.156-.112-2.052-3.2l-.524-.859a.761.761,0,0,1-.128-.513.957.957,0,0,1,.217-.513.774.774,0,0,1,.926-.29q.011.011,1.327.446,2.264.736,2.7.887a2.082,2.082,0,0,1,.524.229.673.673,0,0,1,.245.68Zm-7.5-7.049q.056,1.137-.6,1.361-.647.19-1.272-.792L6.237,4.08a.7.7,0,0,1,.212-.691,5.788,5.788,0,0,1,2.314-1,5.928,5.928,0,0,1,2.5-.352.681.681,0,0,1,.547.5q.034.2.245,3.407T12.327,10.181Zm7.384,1.2a.679.679,0,0,1-.29.658q-.167.112-3.67.959-.747.167-1.015.257l.011-.022a.769.769,0,0,1-.513-.044.914.914,0,0,1-.413-.357.786.786,0,0,1,0-.971q.011-.011.836-1.137,1.394-1.908,1.673-2.275a2.423,2.423,0,0,1,.379-.435A.7.7,0,0,1,17.435,8a4.482,4.482,0,0,1,1.372,1.489,4.81,4.81,0,0,1,.9,1.868v.034Z"></path>
|
||||
</svg>',
|
||||
|
||||
'youtube' => '
|
||||
<svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<path d="M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"></path>
|
||||
</svg>',
|
||||
|
||||
);
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,128 @@
|
|||
<?php
|
||||
/**
|
||||
* Custom comment walker for this theme
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Nineteen
|
||||
* @since Twenty Nineteen 1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class outputs custom comment walker for HTML5 friendly WordPress comment and threaded replies.
|
||||
*
|
||||
* @since Twenty Nineteen 1.0
|
||||
*/
|
||||
class TwentyNineteen_Walker_Comment extends Walker_Comment {
|
||||
|
||||
/**
|
||||
* Outputs a comment in the HTML5 format.
|
||||
*
|
||||
* @see wp_list_comments()
|
||||
*
|
||||
* @param WP_Comment $comment Comment to display.
|
||||
* @param int $depth Depth of the current comment.
|
||||
* @param array $args An array of arguments.
|
||||
*/
|
||||
protected function html5_comment( $comment, $depth, $args ) {
|
||||
|
||||
$tag = ( 'div' === $args['style'] ) ? 'div' : 'li';
|
||||
|
||||
?>
|
||||
<<?php echo $tag; ?> id="comment-<?php comment_ID(); ?>" <?php comment_class( $this->has_children ? 'parent' : '', $comment ); ?>>
|
||||
<article id="div-comment-<?php comment_ID(); ?>" class="comment-body">
|
||||
<footer class="comment-meta">
|
||||
<div class="comment-author vcard">
|
||||
<?php
|
||||
$comment_author_url = get_comment_author_url( $comment );
|
||||
$comment_author = get_comment_author( $comment );
|
||||
$avatar = get_avatar( $comment, $args['avatar_size'] );
|
||||
if ( 0 != $args['avatar_size'] ) {
|
||||
if ( empty( $comment_author_url ) ) {
|
||||
echo $avatar;
|
||||
} else {
|
||||
printf( '<a href="%s" rel="external nofollow" class="url">', $comment_author_url );
|
||||
echo $avatar;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Using the `check` icon instead of `check_circle`, since we can't add a
|
||||
* fill color to the inner check shape when in circle form.
|
||||
*/
|
||||
if ( twentynineteen_is_comment_by_post_author( $comment ) ) {
|
||||
printf( '<span class="post-author-badge" aria-hidden="true">%s</span>', twentynineteen_get_icon_svg( 'check', 24 ) );
|
||||
}
|
||||
|
||||
printf(
|
||||
wp_kses(
|
||||
/* translators: %s: Comment author link. */
|
||||
__( '%s <span class="screen-reader-text says">says:</span>', 'twentynineteen' ),
|
||||
array(
|
||||
'span' => array(
|
||||
'class' => array(),
|
||||
),
|
||||
)
|
||||
),
|
||||
'<b class="fn">' . $comment_author . '</b>'
|
||||
);
|
||||
|
||||
if ( ! empty( $comment_author_url ) ) {
|
||||
echo '</a>';
|
||||
}
|
||||
?>
|
||||
</div><!-- .comment-author -->
|
||||
|
||||
<div class="comment-metadata">
|
||||
<a href="<?php echo esc_url( get_comment_link( $comment, $args ) ); ?>">
|
||||
<?php
|
||||
/* translators: 1: Comment date, 2: Comment time. */
|
||||
$comment_timestamp = sprintf( __( '%1$s at %2$s', 'twentynineteen' ), get_comment_date( '', $comment ), get_comment_time() );
|
||||
?>
|
||||
<time datetime="<?php comment_time( 'c' ); ?>" title="<?php echo $comment_timestamp; ?>">
|
||||
<?php echo $comment_timestamp; ?>
|
||||
</time>
|
||||
</a>
|
||||
<?php
|
||||
$edit_comment_icon = twentynineteen_get_icon_svg( 'edit', 16 );
|
||||
edit_comment_link( __( 'Edit', 'twentynineteen' ), '<span class="edit-link-sep">—</span> <span class="edit-link">' . $edit_comment_icon, '</span>' );
|
||||
?>
|
||||
</div><!-- .comment-metadata -->
|
||||
|
||||
<?php
|
||||
$commenter = wp_get_current_commenter();
|
||||
if ( $commenter['comment_author_email'] ) {
|
||||
$moderation_note = __( 'Your comment is awaiting moderation.', 'twentynineteen' );
|
||||
} else {
|
||||
$moderation_note = __( 'Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.', 'twentynineteen' );
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if ( '0' == $comment->comment_approved ) : ?>
|
||||
<p class="comment-awaiting-moderation"><?php echo $moderation_note; ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
</footer><!-- .comment-meta -->
|
||||
|
||||
<div class="comment-content">
|
||||
<?php comment_text(); ?>
|
||||
</div><!-- .comment-content -->
|
||||
|
||||
</article><!-- .comment-body -->
|
||||
|
||||
<?php
|
||||
comment_reply_link(
|
||||
array_merge(
|
||||
$args,
|
||||
array(
|
||||
'add_below' => 'div-comment',
|
||||
'depth' => $depth,
|
||||
'max_depth' => $args['max_depth'],
|
||||
'before' => '<div class="comment-reply">',
|
||||
'after' => '</div>',
|
||||
)
|
||||
)
|
||||
);
|
||||
?>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
128
content/themes/twentynineteen/comments.php
Normal file
128
content/themes/twentynineteen/comments.php
Normal file
|
|
@ -0,0 +1,128 @@
|
|||
<?php
|
||||
/**
|
||||
* The template for displaying comments
|
||||
*
|
||||
* This is the template that displays the area of the page that contains both the current comments
|
||||
* and the comment form.
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Nineteen
|
||||
* @since Twenty Nineteen 1.0
|
||||
*/
|
||||
|
||||
/*
|
||||
* If the current post is protected by a password and
|
||||
* the visitor has not yet entered the password we will
|
||||
* return early without loading the comments.
|
||||
*/
|
||||
if ( post_password_required() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$discussion = twentynineteen_get_discussion_data();
|
||||
?>
|
||||
|
||||
<div id="comments" class="<?php echo comments_open() ? 'comments-area' : 'comments-area comments-closed'; ?>">
|
||||
<div class="<?php echo $discussion->responses > 0 ? 'comments-title-wrap' : 'comments-title-wrap no-responses'; ?>">
|
||||
<h2 class="comments-title">
|
||||
<?php
|
||||
if ( comments_open() ) {
|
||||
if ( have_comments() ) {
|
||||
_e( 'Join the Conversation', 'twentynineteen' );
|
||||
} else {
|
||||
_e( 'Leave a comment', 'twentynineteen' );
|
||||
}
|
||||
} else {
|
||||
if ( '1' == $discussion->responses ) {
|
||||
/* translators: %s: Post title. */
|
||||
printf( _x( 'One reply on “%s”', 'comments title', 'twentynineteen' ), get_the_title() );
|
||||
} else {
|
||||
printf(
|
||||
/* translators: 1: Number of comments, 2: Post title. */
|
||||
_nx(
|
||||
'%1$s reply on “%2$s”',
|
||||
'%1$s replies on “%2$s”',
|
||||
$discussion->responses,
|
||||
'comments title',
|
||||
'twentynineteen'
|
||||
),
|
||||
number_format_i18n( $discussion->responses ),
|
||||
get_the_title()
|
||||
);
|
||||
}
|
||||
}
|
||||
?>
|
||||
</h2><!-- .comments-title -->
|
||||
<?php
|
||||
// Only show discussion meta information when comments are open and available.
|
||||
if ( have_comments() && comments_open() ) {
|
||||
get_template_part( 'template-parts/post/discussion', 'meta' );
|
||||
}
|
||||
?>
|
||||
</div><!-- .comments-title-flex -->
|
||||
<?php
|
||||
if ( have_comments() ) :
|
||||
|
||||
// Show comment form at top if showing newest comments at the top.
|
||||
if ( comments_open() ) {
|
||||
twentynineteen_comment_form( 'desc' );
|
||||
}
|
||||
|
||||
?>
|
||||
<ol class="comment-list">
|
||||
<?php
|
||||
wp_list_comments(
|
||||
array(
|
||||
'walker' => new TwentyNineteen_Walker_Comment(),
|
||||
'avatar_size' => twentynineteen_get_avatar_size(),
|
||||
'short_ping' => true,
|
||||
'style' => 'ol',
|
||||
)
|
||||
);
|
||||
?>
|
||||
</ol><!-- .comment-list -->
|
||||
<?php
|
||||
|
||||
// Show comment navigation.
|
||||
if ( have_comments() ) :
|
||||
$prev_icon = twentynineteen_get_icon_svg( 'chevron_left', 22 );
|
||||
$next_icon = twentynineteen_get_icon_svg( 'chevron_right', 22 );
|
||||
$comments_text = __( 'Comments', 'twentynineteen' );
|
||||
the_comments_navigation(
|
||||
array(
|
||||
'prev_text' => sprintf( '%s <span class="nav-prev-text"><span class="primary-text">%s</span> <span class="secondary-text">%s</span></span>', $prev_icon, __( 'Previous', 'twentynineteen' ), __( 'Comments', 'twentynineteen' ) ),
|
||||
'next_text' => sprintf( '<span class="nav-next-text"><span class="primary-text">%s</span> <span class="secondary-text">%s</span></span> %s', __( 'Next', 'twentynineteen' ), __( 'Comments', 'twentynineteen' ), $next_icon ),
|
||||
)
|
||||
);
|
||||
endif;
|
||||
|
||||
// Show comment form at bottom if showing newest comments at the bottom.
|
||||
if ( comments_open() && 'asc' === strtolower( get_option( 'comment_order', 'asc' ) ) ) :
|
||||
?>
|
||||
<div class="comment-form-flex">
|
||||
<span class="screen-reader-text"><?php _e( 'Leave a comment', 'twentynineteen' ); ?></span>
|
||||
<?php twentynineteen_comment_form( 'asc' ); ?>
|
||||
<h2 class="comments-title" aria-hidden="true"><?php _e( 'Leave a comment', 'twentynineteen' ); ?></h2>
|
||||
</div>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
// If comments are closed and there are comments, let's leave a little note, shall we?
|
||||
if ( ! comments_open() ) :
|
||||
?>
|
||||
<p class="no-comments">
|
||||
<?php _e( 'Comments are closed.', 'twentynineteen' ); ?>
|
||||
</p>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
else :
|
||||
|
||||
// Show comment form.
|
||||
twentynineteen_comment_form( true );
|
||||
|
||||
endif; // if have_comments();
|
||||
?>
|
||||
</div><!-- #comments -->
|
||||
Binary file not shown.
Binary file not shown.
57
content/themes/twentynineteen/footer.php
Normal file
57
content/themes/twentynineteen/footer.php
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<?php
|
||||
/**
|
||||
* The template for displaying the footer
|
||||
*
|
||||
* Contains the closing of the #content div and all content after.
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Nineteen
|
||||
* @since Twenty Nineteen 1.0
|
||||
*/
|
||||
|
||||
?>
|
||||
|
||||
</div><!-- #content -->
|
||||
|
||||
<footer id="colophon" class="site-footer">
|
||||
<?php get_template_part( 'template-parts/footer/footer', 'widgets' ); ?>
|
||||
<div class="site-info">
|
||||
<?php $blog_info = get_bloginfo( 'name' ); ?>
|
||||
<?php if ( ! empty( $blog_info ) ) : ?>
|
||||
<a class="site-name" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>,
|
||||
<?php endif; ?>
|
||||
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentynineteen' ) ); ?>" class="imprint">
|
||||
<?php
|
||||
/* translators: %s: WordPress. */
|
||||
printf( __( 'Proudly powered by %s.', 'twentynineteen' ), 'WordPress' );
|
||||
?>
|
||||
</a>
|
||||
<?php
|
||||
if ( function_exists( 'the_privacy_policy_link' ) ) {
|
||||
the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
|
||||
}
|
||||
?>
|
||||
<?php if ( has_nav_menu( 'footer' ) ) : ?>
|
||||
<nav class="footer-navigation" aria-label="<?php esc_attr_e( 'Footer Menu', 'twentynineteen' ); ?>">
|
||||
<?php
|
||||
wp_nav_menu(
|
||||
array(
|
||||
'theme_location' => 'footer',
|
||||
'menu_class' => 'footer-menu',
|
||||
'depth' => 1,
|
||||
)
|
||||
);
|
||||
?>
|
||||
</nav><!-- .footer-navigation -->
|
||||
<?php endif; ?>
|
||||
</div><!-- .site-info -->
|
||||
</footer><!-- #colophon -->
|
||||
|
||||
</div><!-- #page -->
|
||||
|
||||
<?php wp_footer(); ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
330
content/themes/twentynineteen/functions.php
Normal file
330
content/themes/twentynineteen/functions.php
Normal file
|
|
@ -0,0 +1,330 @@
|
|||
<?php
|
||||
/**
|
||||
* Twenty Nineteen functions and definitions
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/theme-functions/
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Nineteen
|
||||
* @since Twenty Nineteen 1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Twenty Nineteen only works in WordPress 4.7 or later.
|
||||
*/
|
||||
if ( version_compare( $GLOBALS['wp_version'], '4.7', '<' ) ) {
|
||||
require get_template_directory() . '/inc/back-compat.php';
|
||||
return;
|
||||
}
|
||||
|
||||
if ( ! function_exists( 'twentynineteen_setup' ) ) :
|
||||
/**
|
||||
* Sets up theme defaults and registers support for various WordPress features.
|
||||
*
|
||||
* Note that this function is hooked into the after_setup_theme hook, which
|
||||
* runs before the init hook. The init hook is too late for some features, such
|
||||
* as indicating support for post thumbnails.
|
||||
*/
|
||||
function twentynineteen_setup() {
|
||||
/*
|
||||
* Make theme available for translation.
|
||||
* Translations can be filed in the /languages/ directory.
|
||||
* If you're building a theme based on Twenty Nineteen, use a find and replace
|
||||
* to change 'twentynineteen' to the name of your theme in all the template files.
|
||||
*/
|
||||
load_theme_textdomain( 'twentynineteen', get_template_directory() . '/languages' );
|
||||
|
||||
// Add default posts and comments RSS feed links to head.
|
||||
add_theme_support( 'automatic-feed-links' );
|
||||
|
||||
/*
|
||||
* Let WordPress manage the document title.
|
||||
* By adding theme support, we declare that this theme does not use a
|
||||
* hard-coded <title> tag in the document head, and expect WordPress to
|
||||
* provide it for us.
|
||||
*/
|
||||
add_theme_support( 'title-tag' );
|
||||
|
||||
/*
|
||||
* Enable support for Post Thumbnails on posts and pages.
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
|
||||
*/
|
||||
add_theme_support( 'post-thumbnails' );
|
||||
set_post_thumbnail_size( 1568, 9999 );
|
||||
|
||||
// This theme uses wp_nav_menu() in two locations.
|
||||
register_nav_menus(
|
||||
array(
|
||||
'menu-1' => __( 'Primary', 'twentynineteen' ),
|
||||
'footer' => __( 'Footer Menu', 'twentynineteen' ),
|
||||
'social' => __( 'Social Links Menu', 'twentynineteen' ),
|
||||
)
|
||||
);
|
||||
|
||||
/*
|
||||
* Switch default core markup for search form, comment form, and comments
|
||||
* to output valid HTML5.
|
||||
*/
|
||||
add_theme_support(
|
||||
'html5',
|
||||
array(
|
||||
'search-form',
|
||||
'comment-form',
|
||||
'comment-list',
|
||||
'gallery',
|
||||
'caption',
|
||||
'script',
|
||||
'style',
|
||||
)
|
||||
);
|
||||
|
||||
/**
|
||||
* Add support for core custom logo.
|
||||
*
|
||||
* @link https://codex.wordpress.org/Theme_Logo
|
||||
*/
|
||||
add_theme_support(
|
||||
'custom-logo',
|
||||
array(
|
||||
'height' => 190,
|
||||
'width' => 190,
|
||||
'flex-width' => false,
|
||||
'flex-height' => false,
|
||||
)
|
||||
);
|
||||
|
||||
// Add theme support for selective refresh for widgets.
|
||||
add_theme_support( 'customize-selective-refresh-widgets' );
|
||||
|
||||
// Add support for Block Styles.
|
||||
add_theme_support( 'wp-block-styles' );
|
||||
|
||||
// Add support for full and wide align images.
|
||||
add_theme_support( 'align-wide' );
|
||||
|
||||
// Add support for editor styles.
|
||||
add_theme_support( 'editor-styles' );
|
||||
|
||||
// Enqueue editor styles.
|
||||
add_editor_style( 'style-editor.css' );
|
||||
|
||||
// Add custom editor font sizes.
|
||||
add_theme_support(
|
||||
'editor-font-sizes',
|
||||
array(
|
||||
array(
|
||||
'name' => __( 'Small', 'twentynineteen' ),
|
||||
'shortName' => __( 'S', 'twentynineteen' ),
|
||||
'size' => 19.5,
|
||||
'slug' => 'small',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Normal', 'twentynineteen' ),
|
||||
'shortName' => __( 'M', 'twentynineteen' ),
|
||||
'size' => 22,
|
||||
'slug' => 'normal',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Large', 'twentynineteen' ),
|
||||
'shortName' => __( 'L', 'twentynineteen' ),
|
||||
'size' => 36.5,
|
||||
'slug' => 'large',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Huge', 'twentynineteen' ),
|
||||
'shortName' => __( 'XL', 'twentynineteen' ),
|
||||
'size' => 49.5,
|
||||
'slug' => 'huge',
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
// Editor color palette.
|
||||
add_theme_support(
|
||||
'editor-color-palette',
|
||||
array(
|
||||
array(
|
||||
'name' => 'default' === get_theme_mod( 'primary_color' ) ? __( 'Blue', 'twentynineteen' ) : null,
|
||||
'slug' => 'primary',
|
||||
'color' => twentynineteen_hsl_hex( 'default' === get_theme_mod( 'primary_color' ) ? 199 : get_theme_mod( 'primary_color_hue', 199 ), 100, 33 ),
|
||||
),
|
||||
array(
|
||||
'name' => 'default' === get_theme_mod( 'primary_color' ) ? __( 'Dark Blue', 'twentynineteen' ) : null,
|
||||
'slug' => 'secondary',
|
||||
'color' => twentynineteen_hsl_hex( 'default' === get_theme_mod( 'primary_color' ) ? 199 : get_theme_mod( 'primary_color_hue', 199 ), 100, 23 ),
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Dark Gray', 'twentynineteen' ),
|
||||
'slug' => 'dark-gray',
|
||||
'color' => '#111',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Light Gray', 'twentynineteen' ),
|
||||
'slug' => 'light-gray',
|
||||
'color' => '#767676',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'White', 'twentynineteen' ),
|
||||
'slug' => 'white',
|
||||
'color' => '#FFF',
|
||||
),
|
||||
)
|
||||
);
|
||||
|
||||
// Add support for responsive embedded content.
|
||||
add_theme_support( 'responsive-embeds' );
|
||||
}
|
||||
endif;
|
||||
add_action( 'after_setup_theme', 'twentynineteen_setup' );
|
||||
|
||||
/**
|
||||
* Register widget area.
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
|
||||
*/
|
||||
function twentynineteen_widgets_init() {
|
||||
|
||||
register_sidebar(
|
||||
array(
|
||||
'name' => __( 'Footer', 'twentynineteen' ),
|
||||
'id' => 'sidebar-1',
|
||||
'description' => __( 'Add widgets here to appear in your footer.', 'twentynineteen' ),
|
||||
'before_widget' => '<section id="%1$s" class="widget %2$s">',
|
||||
'after_widget' => '</section>',
|
||||
'before_title' => '<h2 class="widget-title">',
|
||||
'after_title' => '</h2>',
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
add_action( 'widgets_init', 'twentynineteen_widgets_init' );
|
||||
|
||||
/**
|
||||
* Set the content width in pixels, based on the theme's design and stylesheet.
|
||||
*
|
||||
* Priority 0 to make it available to lower priority callbacks.
|
||||
*
|
||||
* @global int $content_width Content width.
|
||||
*/
|
||||
function twentynineteen_content_width() {
|
||||
// This variable is intended to be overruled from themes.
|
||||
// Open WPCS issue: {@link https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/1043}.
|
||||
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
|
||||
$GLOBALS['content_width'] = apply_filters( 'twentynineteen_content_width', 640 );
|
||||
}
|
||||
add_action( 'after_setup_theme', 'twentynineteen_content_width', 0 );
|
||||
|
||||
/**
|
||||
* Enqueue scripts and styles.
|
||||
*/
|
||||
function twentynineteen_scripts() {
|
||||
wp_enqueue_style( 'twentynineteen-style', get_stylesheet_uri(), array(), wp_get_theme()->get( 'Version' ) );
|
||||
|
||||
wp_style_add_data( 'twentynineteen-style', 'rtl', 'replace' );
|
||||
|
||||
if ( has_nav_menu( 'menu-1' ) ) {
|
||||
wp_enqueue_script( 'twentynineteen-priority-menu', get_theme_file_uri( '/js/priority-menu.js' ), array(), '20181214', true );
|
||||
wp_enqueue_script( 'twentynineteen-touch-navigation', get_theme_file_uri( '/js/touch-keyboard-navigation.js' ), array(), '20181231', true );
|
||||
}
|
||||
|
||||
wp_enqueue_style( 'twentynineteen-print-style', get_template_directory_uri() . '/print.css', array(), wp_get_theme()->get( 'Version' ), 'print' );
|
||||
|
||||
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
|
||||
wp_enqueue_script( 'comment-reply' );
|
||||
}
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'twentynineteen_scripts' );
|
||||
|
||||
/**
|
||||
* Fix skip link focus in IE11.
|
||||
*
|
||||
* This does not enqueue the script because it is tiny and because it is only for IE11,
|
||||
* thus it does not warrant having an entire dedicated blocking script being loaded.
|
||||
*
|
||||
* @link https://git.io/vWdr2
|
||||
*/
|
||||
function twentynineteen_skip_link_focus_fix() {
|
||||
// The following is minified via `terser --compress --mangle -- js/skip-link-focus-fix.js`.
|
||||
?>
|
||||
<script>
|
||||
/(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())},!1);
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
add_action( 'wp_print_footer_scripts', 'twentynineteen_skip_link_focus_fix' );
|
||||
|
||||
/**
|
||||
* Enqueue supplemental block editor styles.
|
||||
*/
|
||||
function twentynineteen_editor_customizer_styles() {
|
||||
|
||||
wp_enqueue_style( 'twentynineteen-editor-customizer-styles', get_theme_file_uri( '/style-editor-customizer.css' ), false, '1.1', 'all' );
|
||||
|
||||
if ( 'custom' === get_theme_mod( 'primary_color' ) ) {
|
||||
// Include color patterns.
|
||||
require_once get_parent_theme_file_path( '/inc/color-patterns.php' );
|
||||
wp_add_inline_style( 'twentynineteen-editor-customizer-styles', twentynineteen_custom_colors_css() );
|
||||
}
|
||||
}
|
||||
add_action( 'enqueue_block_editor_assets', 'twentynineteen_editor_customizer_styles' );
|
||||
|
||||
/**
|
||||
* Display custom color CSS in customizer and on frontend.
|
||||
*/
|
||||
function twentynineteen_colors_css_wrap() {
|
||||
|
||||
// Only include custom colors in customizer or frontend.
|
||||
if ( ( ! is_customize_preview() && 'default' === get_theme_mod( 'primary_color', 'default' ) ) || is_admin() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
require_once get_parent_theme_file_path( '/inc/color-patterns.php' );
|
||||
|
||||
$primary_color = 199;
|
||||
if ( 'default' !== get_theme_mod( 'primary_color', 'default' ) ) {
|
||||
$primary_color = get_theme_mod( 'primary_color_hue', 199 );
|
||||
}
|
||||
?>
|
||||
|
||||
<style type="text/css" id="custom-theme-colors" <?php echo is_customize_preview() ? 'data-hue="' . absint( $primary_color ) . '"' : ''; ?>>
|
||||
<?php echo twentynineteen_custom_colors_css(); ?>
|
||||
</style>
|
||||
<?php
|
||||
}
|
||||
add_action( 'wp_head', 'twentynineteen_colors_css_wrap' );
|
||||
|
||||
/**
|
||||
* SVG Icons class.
|
||||
*/
|
||||
require get_template_directory() . '/classes/class-twentynineteen-svg-icons.php';
|
||||
|
||||
/**
|
||||
* Custom Comment Walker template.
|
||||
*/
|
||||
require get_template_directory() . '/classes/class-twentynineteen-walker-comment.php';
|
||||
|
||||
/**
|
||||
* Common theme functions.
|
||||
*/
|
||||
require get_template_directory() . '/inc/helper-functions.php';
|
||||
|
||||
/**
|
||||
* SVG Icons related functions.
|
||||
*/
|
||||
require get_template_directory() . '/inc/icon-functions.php';
|
||||
|
||||
/**
|
||||
* Enhance the theme by hooking into WordPress.
|
||||
*/
|
||||
require get_template_directory() . '/inc/template-functions.php';
|
||||
|
||||
/**
|
||||
* Custom template tags for the theme.
|
||||
*/
|
||||
require get_template_directory() . '/inc/template-tags.php';
|
||||
|
||||
/**
|
||||
* Customizer additions.
|
||||
*/
|
||||
require get_template_directory() . '/inc/customizer.php';
|
||||
53
content/themes/twentynineteen/header.php
Normal file
53
content/themes/twentynineteen/header.php
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
<?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
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Nineteen
|
||||
* @since Twenty Nineteen 1.0
|
||||
*/
|
||||
?><!doctype html>
|
||||
<html <?php language_attributes(); ?>>
|
||||
<head>
|
||||
<meta charset="<?php bloginfo( 'charset' ); ?>" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="profile" href="https://gmpg.org/xfn/11" />
|
||||
<?php wp_head(); ?>
|
||||
</head>
|
||||
|
||||
<body <?php body_class(); ?>>
|
||||
<?php wp_body_open(); ?>
|
||||
<div id="page" class="site">
|
||||
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentynineteen' ); ?></a>
|
||||
|
||||
<header id="masthead" class="<?php echo is_singular() && twentynineteen_can_show_post_thumbnail() ? 'site-header featured-image' : 'site-header'; ?>">
|
||||
|
||||
<div class="site-branding-container">
|
||||
<?php get_template_part( 'template-parts/header/site', 'branding' ); ?>
|
||||
</div><!-- .site-branding-container -->
|
||||
|
||||
<?php if ( is_singular() && twentynineteen_can_show_post_thumbnail() ) : ?>
|
||||
<div class="site-featured-image">
|
||||
<?php
|
||||
twentynineteen_post_thumbnail();
|
||||
the_post();
|
||||
$discussion = ! is_page() && twentynineteen_can_show_post_thumbnail() ? twentynineteen_get_discussion_data() : null;
|
||||
|
||||
$classes = 'entry-header';
|
||||
if ( ! empty( $discussion ) && absint( $discussion->responses ) > 0 ) {
|
||||
$classes = 'entry-header has-discussion';
|
||||
}
|
||||
?>
|
||||
<div class="<?php echo $classes; ?>">
|
||||
<?php get_template_part( 'template-parts/header/entry', 'header' ); ?>
|
||||
</div><!-- .entry-header -->
|
||||
<?php rewind_posts(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</header><!-- #masthead -->
|
||||
|
||||
<div id="content" class="site-content">
|
||||
104
content/themes/twentynineteen/image.php
Normal file
104
content/themes/twentynineteen/image.php
Normal file
|
|
@ -0,0 +1,104 @@
|
|||
<?php
|
||||
/**
|
||||
* The template for displaying image attachments
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Nineteen
|
||||
* @since Twenty Nineteen 1.0
|
||||
*/
|
||||
|
||||
get_header();
|
||||
?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php
|
||||
// Start the Loop.
|
||||
while ( have_posts() ) :
|
||||
the_post();
|
||||
?>
|
||||
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||
|
||||
<header class="entry-header">
|
||||
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
|
||||
</header><!-- .entry-header -->
|
||||
|
||||
<div class="entry-content">
|
||||
|
||||
<figure class="entry-attachment wp-block-image">
|
||||
<?php
|
||||
/**
|
||||
* Filter the default twentynineteen image attachment size.
|
||||
*
|
||||
* @since Twenty Sixteen 1.0
|
||||
*
|
||||
* @param string $image_size Image size. Default 'large'.
|
||||
*/
|
||||
$image_size = apply_filters( 'twentynineteen_attachment_size', 'full' );
|
||||
|
||||
echo wp_get_attachment_image( get_the_ID(), $image_size );
|
||||
?>
|
||||
|
||||
<figcaption class="wp-caption-text"><?php the_excerpt(); ?></figcaption>
|
||||
|
||||
</figure><!-- .entry-attachment -->
|
||||
|
||||
<?php
|
||||
the_content();
|
||||
wp_link_pages(
|
||||
array(
|
||||
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentynineteen' ) . '</span>',
|
||||
'after' => '</div>',
|
||||
'link_before' => '<span>',
|
||||
'link_after' => '</span>',
|
||||
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentynineteen' ) . ' </span>%',
|
||||
'separator' => '<span class="screen-reader-text">, </span>',
|
||||
)
|
||||
);
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<footer class="entry-footer">
|
||||
<?php
|
||||
// Retrieve attachment metadata.
|
||||
$metadata = wp_get_attachment_metadata();
|
||||
if ( $metadata ) {
|
||||
printf(
|
||||
'<span class="full-size-link"><span class="screen-reader-text">%1$s</span><a href="%2$s">%3$s × %4$s</a></span>',
|
||||
_x( 'Full size', 'Used before full size attachment link.', 'twentynineteen' ),
|
||||
esc_url( wp_get_attachment_url() ),
|
||||
absint( $metadata['width'] ),
|
||||
absint( $metadata['height'] )
|
||||
);
|
||||
}
|
||||
?>
|
||||
|
||||
<?php twentynineteen_entry_footer(); ?>
|
||||
|
||||
</footer><!-- .entry-footer -->
|
||||
</article><!-- #post-<?php the_ID(); ?> -->
|
||||
|
||||
<?php
|
||||
// Parent post navigation.
|
||||
the_post_navigation(
|
||||
array(
|
||||
'prev_text' => _x( '<span class="meta-nav">Published in</span><br><span class="post-title">%title</span>', 'Parent post link', 'twentynineteen' ),
|
||||
)
|
||||
);
|
||||
|
||||
// If comments are open or we have at least one comment, load up the comment template.
|
||||
if ( comments_open() || get_comments_number() ) {
|
||||
comments_template();
|
||||
}
|
||||
|
||||
// End the loop.
|
||||
endwhile;
|
||||
?>
|
||||
|
||||
</main><!-- .site-main -->
|
||||
</div><!-- .content-area -->
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
79
content/themes/twentynineteen/inc/back-compat.php
Normal file
79
content/themes/twentynineteen/inc/back-compat.php
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
<?php
|
||||
/**
|
||||
* Twenty Nineteen back compat functionality
|
||||
*
|
||||
* Prevents Twenty Nineteen from running on WordPress versions prior to 4.7,
|
||||
* since this theme is not meant to be backward compatible beyond that and
|
||||
* relies on many newer functions and markup changes introduced in 4.7.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Nineteen
|
||||
* @since Twenty Nineteen 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Prevent switching to Twenty Nineteen on old versions of WordPress.
|
||||
*
|
||||
* Switches to the default theme.
|
||||
*
|
||||
* @since Twenty Nineteen 1.0.0
|
||||
*/
|
||||
function twentynineteen_switch_theme() {
|
||||
switch_theme( WP_DEFAULT_THEME );
|
||||
unset( $_GET['activated'] );
|
||||
add_action( 'admin_notices', 'twentynineteen_upgrade_notice' );
|
||||
}
|
||||
add_action( 'after_switch_theme', 'twentynineteen_switch_theme' );
|
||||
|
||||
/**
|
||||
* Adds a message for unsuccessful theme switch.
|
||||
*
|
||||
* Prints an update nag after an unsuccessful attempt to switch to
|
||||
* Twenty Nineteen on WordPress versions prior to 4.7.
|
||||
*
|
||||
* @since Twenty Nineteen 1.0.0
|
||||
*
|
||||
* @global string $wp_version WordPress version.
|
||||
*/
|
||||
function twentynineteen_upgrade_notice() {
|
||||
/* translators: %s: WordPress version. */
|
||||
$message = sprintf( __( 'Twenty Nineteen requires at least WordPress version 4.7. You are running version %s. Please upgrade and try again.', 'twentynineteen' ), $GLOBALS['wp_version'] );
|
||||
printf( '<div class="error"><p>%s</p></div>', $message );
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevents the Customizer from being loaded on WordPress versions prior to 4.7.
|
||||
*
|
||||
* @since Twenty Nineteen 1.0.0
|
||||
*
|
||||
* @global string $wp_version WordPress version.
|
||||
*/
|
||||
function twentynineteen_customize() {
|
||||
wp_die(
|
||||
sprintf(
|
||||
/* translators: %s: WordPress version. */
|
||||
__( 'Twenty Nineteen requires at least WordPress version 4.7. You are running version %s. Please upgrade and try again.', 'twentynineteen' ),
|
||||
$GLOBALS['wp_version']
|
||||
),
|
||||
'',
|
||||
array(
|
||||
'back_link' => true,
|
||||
)
|
||||
);
|
||||
}
|
||||
add_action( 'load-customize.php', 'twentynineteen_customize' );
|
||||
|
||||
/**
|
||||
* Prevents the Theme Preview from being loaded on WordPress versions prior to 4.7.
|
||||
*
|
||||
* @since Twenty Nineteen 1.0.0
|
||||
*
|
||||
* @global string $wp_version WordPress version.
|
||||
*/
|
||||
function twentynineteen_preview() {
|
||||
if ( isset( $_GET['preview'] ) ) {
|
||||
/* translators: %s: WordPress version. */
|
||||
wp_die( sprintf( __( 'Twenty Nineteen requires at least WordPress version 4.7. You are running version %s. Please upgrade and try again.', 'twentynineteen' ), $GLOBALS['wp_version'] ) );
|
||||
}
|
||||
}
|
||||
add_action( 'template_redirect', 'twentynineteen_preview' );
|
||||
271
content/themes/twentynineteen/inc/color-patterns.php
Normal file
271
content/themes/twentynineteen/inc/color-patterns.php
Normal file
|
|
@ -0,0 +1,271 @@
|
|||
<?php
|
||||
/**
|
||||
* Twenty Nineteen: Color Patterns
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage TwentyNineteen
|
||||
* @since Twenty Nineteen 1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Generate the CSS for the current primary color.
|
||||
*/
|
||||
function twentynineteen_custom_colors_css() {
|
||||
|
||||
$primary_color = 199;
|
||||
if ( 'default' !== get_theme_mod( 'primary_color', 'default' ) ) {
|
||||
$primary_color = absint( get_theme_mod( 'primary_color_hue', 199 ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter Twenty Nineteen default saturation level.
|
||||
*
|
||||
* @since Twenty Nineteen 1.0
|
||||
*
|
||||
* @param int $saturation Color saturation level.
|
||||
*/
|
||||
$saturation = apply_filters( 'twentynineteen_custom_colors_saturation', 100 );
|
||||
$saturation = absint( $saturation ) . '%';
|
||||
|
||||
/**
|
||||
* Filter Twenty Nineteen default selection saturation level.
|
||||
*
|
||||
* @since Twenty Nineteen 1.0
|
||||
*
|
||||
* @param int $saturation_selection Selection color saturation level.
|
||||
*/
|
||||
$saturation_selection = absint( apply_filters( 'twentynineteen_custom_colors_saturation_selection', 50 ) );
|
||||
$saturation_selection = $saturation_selection . '%';
|
||||
|
||||
/**
|
||||
* Filter Twenty Nineteen default lightness level.
|
||||
*
|
||||
* @since Twenty Nineteen 1.0
|
||||
*
|
||||
* @param int $lightness Color lightness level.
|
||||
*/
|
||||
$lightness = apply_filters( 'twentynineteen_custom_colors_lightness', 33 );
|
||||
$lightness = absint( $lightness ) . '%';
|
||||
|
||||
/**
|
||||
* Filter Twenty Nineteen default hover lightness level.
|
||||
*
|
||||
* @since Twenty Nineteen 1.0
|
||||
*
|
||||
* @param int $lightness_hover Hover color lightness level.
|
||||
*/
|
||||
$lightness_hover = apply_filters( 'twentynineteen_custom_colors_lightness_hover', 23 );
|
||||
$lightness_hover = absint( $lightness_hover ) . '%';
|
||||
|
||||
/**
|
||||
* Filter Twenty Nineteen default selection lightness level.
|
||||
*
|
||||
* @since Twenty Nineteen 1.0
|
||||
*
|
||||
* @param int $lightness_selection Selection color lightness level.
|
||||
*/
|
||||
$lightness_selection = apply_filters( 'twentynineteen_custom_colors_lightness_selection', 90 );
|
||||
$lightness_selection = absint( $lightness_selection ) . '%';
|
||||
|
||||
$theme_css = '
|
||||
/*
|
||||
* Set background for:
|
||||
* - featured image :before
|
||||
* - featured image :before
|
||||
* - post thumbmail :before
|
||||
* - post thumbmail :before
|
||||
* - Submenu
|
||||
* - Sticky Post
|
||||
* - buttons
|
||||
* - WP Block Button
|
||||
* - Blocks
|
||||
*/
|
||||
.image-filters-enabled .site-header.featured-image .site-featured-image:before,
|
||||
.image-filters-enabled .site-header.featured-image .site-featured-image:after,
|
||||
.image-filters-enabled .entry .post-thumbnail:before,
|
||||
.image-filters-enabled .entry .post-thumbnail:after,
|
||||
.main-navigation .sub-menu,
|
||||
.sticky-post,
|
||||
.entry .entry-content .wp-block-button .wp-block-button__link:not(.has-background),
|
||||
.entry .button, button, input[type="button"], input[type="reset"], input[type="submit"],
|
||||
.entry .entry-content > .has-primary-background-color,
|
||||
.entry .entry-content > *[class^="wp-block-"].has-primary-background-color,
|
||||
.entry .entry-content > *[class^="wp-block-"] .has-primary-background-color,
|
||||
.entry .entry-content > *[class^="wp-block-"].is-style-solid-color,
|
||||
.entry .entry-content > *[class^="wp-block-"].is-style-solid-color.has-primary-background-color,
|
||||
.entry .entry-content .wp-block-file .wp-block-file__button {
|
||||
background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
|
||||
}
|
||||
|
||||
/*
|
||||
* Set Color for:
|
||||
* - all links
|
||||
* - main navigation links
|
||||
* - Post navigation links
|
||||
* - Post entry meta hover
|
||||
* - Post entry header more-link hover
|
||||
* - main navigation svg
|
||||
* - comment navigation
|
||||
* - Comment edit link hover
|
||||
* - Site Footer Link hover
|
||||
* - Widget links
|
||||
*/
|
||||
a,
|
||||
a:visited,
|
||||
.main-navigation .main-menu > li,
|
||||
.main-navigation ul.main-menu > li > a,
|
||||
.post-navigation .post-title,
|
||||
.entry .entry-meta a:hover,
|
||||
.entry .entry-footer a:hover,
|
||||
.entry .entry-content .more-link:hover,
|
||||
.main-navigation .main-menu > li > a + svg,
|
||||
.comment .comment-metadata > a:hover,
|
||||
.comment .comment-metadata .comment-edit-link:hover,
|
||||
#colophon .site-info a:hover,
|
||||
.widget a,
|
||||
.entry .entry-content .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color),
|
||||
.entry .entry-content > .has-primary-color,
|
||||
.entry .entry-content > *[class^="wp-block-"] .has-primary-color,
|
||||
.entry .entry-content > *[class^="wp-block-"].is-style-solid-color blockquote.has-primary-color,
|
||||
.entry .entry-content > *[class^="wp-block-"].is-style-solid-color blockquote.has-primary-color p {
|
||||
color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
|
||||
}
|
||||
|
||||
/*
|
||||
* Set border color for:
|
||||
* wp block quote
|
||||
* :focus
|
||||
*/
|
||||
blockquote,
|
||||
.entry .entry-content blockquote,
|
||||
.entry .entry-content .wp-block-quote:not(.is-large),
|
||||
.entry .entry-content .wp-block-quote:not(.is-style-large),
|
||||
input[type="text"]:focus,
|
||||
input[type="email"]:focus,
|
||||
input[type="url"]:focus,
|
||||
input[type="password"]:focus,
|
||||
input[type="search"]:focus,
|
||||
input[type="number"]:focus,
|
||||
input[type="tel"]:focus,
|
||||
input[type="range"]:focus,
|
||||
input[type="date"]:focus,
|
||||
input[type="month"]:focus,
|
||||
input[type="week"]:focus,
|
||||
input[type="time"]:focus,
|
||||
input[type="datetime"]:focus,
|
||||
input[type="datetime-local"]:focus,
|
||||
input[type="color"]:focus,
|
||||
textarea:focus {
|
||||
border-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
|
||||
}
|
||||
|
||||
.gallery-item > div > a:focus {
|
||||
box-shadow: 0 0 0 2px hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
|
||||
}
|
||||
|
||||
/* Hover colors */
|
||||
a:hover, a:active,
|
||||
.main-navigation .main-menu > li > a:hover,
|
||||
.main-navigation .main-menu > li > a:hover + svg,
|
||||
.post-navigation .nav-links a:hover,
|
||||
.post-navigation .nav-links a:hover .post-title,
|
||||
.author-bio .author-description .author-link:hover,
|
||||
.entry .entry-content > .has-secondary-color,
|
||||
.entry .entry-content > *[class^="wp-block-"] .has-secondary-color,
|
||||
.entry .entry-content > *[class^="wp-block-"].is-style-solid-color blockquote.has-secondary-color,
|
||||
.entry .entry-content > *[class^="wp-block-"].is-style-solid-color blockquote.has-secondary-color p,
|
||||
.comment .comment-author .fn a:hover,
|
||||
.comment-reply-link:hover,
|
||||
.comment-navigation .nav-previous a:hover,
|
||||
.comment-navigation .nav-next a:hover,
|
||||
#cancel-comment-reply-link:hover,
|
||||
.widget a:hover {
|
||||
color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness_hover . ' ); /* base: #005177; */
|
||||
}
|
||||
|
||||
.main-navigation .sub-menu > li > a:hover,
|
||||
.main-navigation .sub-menu > li > a:focus,
|
||||
.main-navigation .sub-menu > li > a:hover:after,
|
||||
.main-navigation .sub-menu > li > a:focus:after,
|
||||
.main-navigation .sub-menu > li > .menu-item-link-return:hover,
|
||||
.main-navigation .sub-menu > li > .menu-item-link-return:focus,
|
||||
.main-navigation .sub-menu > li > a:not(.submenu-expand):hover,
|
||||
.main-navigation .sub-menu > li > a:not(.submenu-expand):focus,
|
||||
.entry .entry-content > .has-secondary-background-color,
|
||||
.entry .entry-content > *[class^="wp-block-"].has-secondary-background-color,
|
||||
.entry .entry-content > *[class^="wp-block-"] .has-secondary-background-color,
|
||||
.entry .entry-content > *[class^="wp-block-"].is-style-solid-color.has-secondary-background-color {
|
||||
background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness_hover . ' ); /* base: #005177; */
|
||||
}
|
||||
|
||||
/* Text selection colors */
|
||||
::selection {
|
||||
background-color: hsl( ' . $primary_color . ', ' . $saturation_selection . ', ' . $lightness_selection . ' ); /* base: #005177; */
|
||||
}
|
||||
::-moz-selection {
|
||||
background-color: hsl( ' . $primary_color . ', ' . $saturation_selection . ', ' . $lightness_selection . ' ); /* base: #005177; */
|
||||
}';
|
||||
|
||||
$editor_css = '
|
||||
/*
|
||||
* Set colors for:
|
||||
* - links
|
||||
* - blockquote
|
||||
* - pullquote (solid color)
|
||||
* - buttons
|
||||
*/
|
||||
.editor-block-list__layout .editor-block-list__block a,
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color),
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-button.is-style-outline:hover .wp-block-button__link:not(.has-text-color),
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-button.is-style-outline:focus .wp-block-button__link:not(.has-text-color),
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-button.is-style-outline:active .wp-block-button__link:not(.has-text-color),
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-file .wp-block-file__textlink {
|
||||
color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
|
||||
}
|
||||
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large),
|
||||
.editor-styles-wrapper .editor-block-list__layout .wp-block-freeform blockquote {
|
||||
border-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
|
||||
}
|
||||
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-pullquote.is-style-solid-color:not(.has-background-color) {
|
||||
background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
|
||||
}
|
||||
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-file .wp-block-file__button,
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-button:not(.is-style-outline) .wp-block-button__link,
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-button:not(.is-style-outline) .wp-block-button__link:active,
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-button:not(.is-style-outline) .wp-block-button__link:focus,
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
|
||||
background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
|
||||
}
|
||||
|
||||
/* Hover colors */
|
||||
.editor-block-list__layout .editor-block-list__block a:hover,
|
||||
.editor-block-list__layout .editor-block-list__block a:active,
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-file .wp-block-file__textlink:hover {
|
||||
color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness_hover . ' ); /* base: #005177; */
|
||||
}
|
||||
|
||||
/* Do not overwrite solid color pullquote or cover links */
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-pullquote.is-style-solid-color a,
|
||||
.editor-block-list__layout .editor-block-list__block .wp-block-cover a {
|
||||
color: inherit;
|
||||
}
|
||||
';
|
||||
|
||||
if ( function_exists( 'register_block_type' ) && is_admin() ) {
|
||||
$theme_css = $editor_css;
|
||||
}
|
||||
|
||||
/**
|
||||
* Filters Twenty Nineteen custom colors CSS.
|
||||
*
|
||||
* @since Twenty Nineteen 1.0
|
||||
*
|
||||
* @param string $css Base theme colors CSS.
|
||||
* @param int $primary_color The user's selected color hue.
|
||||
* @param string $saturation Filtered theme color saturation level.
|
||||
*/
|
||||
return apply_filters( 'twentynineteen_custom_colors_css', $theme_css, $primary_color, $saturation );
|
||||
}
|
||||
158
content/themes/twentynineteen/inc/customizer.php
Normal file
158
content/themes/twentynineteen/inc/customizer.php
Normal file
|
|
@ -0,0 +1,158 @@
|
|||
<?php
|
||||
/**
|
||||
* Twenty Nineteen: Customizer
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Nineteen
|
||||
* @since Twenty Nineteen 1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Add postMessage support for site title and description for the Theme Customizer.
|
||||
*
|
||||
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
|
||||
*/
|
||||
function twentynineteen_customize_register( $wp_customize ) {
|
||||
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
|
||||
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
|
||||
$wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
|
||||
|
||||
if ( isset( $wp_customize->selective_refresh ) ) {
|
||||
$wp_customize->selective_refresh->add_partial(
|
||||
'blogname',
|
||||
array(
|
||||
'selector' => '.site-title a',
|
||||
'render_callback' => 'twentynineteen_customize_partial_blogname',
|
||||
)
|
||||
);
|
||||
$wp_customize->selective_refresh->add_partial(
|
||||
'blogdescription',
|
||||
array(
|
||||
'selector' => '.site-description',
|
||||
'render_callback' => 'twentynineteen_customize_partial_blogdescription',
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Primary color.
|
||||
*/
|
||||
$wp_customize->add_setting(
|
||||
'primary_color',
|
||||
array(
|
||||
'default' => 'default',
|
||||
'transport' => 'postMessage',
|
||||
'sanitize_callback' => 'twentynineteen_sanitize_color_option',
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_control(
|
||||
'primary_color',
|
||||
array(
|
||||
'type' => 'radio',
|
||||
'label' => __( 'Primary Color', 'twentynineteen' ),
|
||||
'choices' => array(
|
||||
'default' => _x( 'Default', 'primary color', 'twentynineteen' ),
|
||||
'custom' => _x( 'Custom', 'primary color', 'twentynineteen' ),
|
||||
),
|
||||
'section' => 'colors',
|
||||
'priority' => 5,
|
||||
)
|
||||
);
|
||||
|
||||
// Add primary color hue setting and control.
|
||||
$wp_customize->add_setting(
|
||||
'primary_color_hue',
|
||||
array(
|
||||
'default' => 199,
|
||||
'transport' => 'postMessage',
|
||||
'sanitize_callback' => 'absint',
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_control(
|
||||
new WP_Customize_Color_Control(
|
||||
$wp_customize,
|
||||
'primary_color_hue',
|
||||
array(
|
||||
'description' => __( 'Apply a custom color for buttons, links, featured images, etc.', 'twentynineteen' ),
|
||||
'section' => 'colors',
|
||||
'mode' => 'hue',
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
// Add image filter setting and control.
|
||||
$wp_customize->add_setting(
|
||||
'image_filter',
|
||||
array(
|
||||
'default' => 1,
|
||||
'sanitize_callback' => 'absint',
|
||||
'transport' => 'postMessage',
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_control(
|
||||
'image_filter',
|
||||
array(
|
||||
'label' => __( 'Apply a filter to featured images using the primary color', 'twentynineteen' ),
|
||||
'section' => 'colors',
|
||||
'type' => 'checkbox',
|
||||
)
|
||||
);
|
||||
}
|
||||
add_action( 'customize_register', 'twentynineteen_customize_register' );
|
||||
|
||||
/**
|
||||
* Render the site title for the selective refresh partial.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function twentynineteen_customize_partial_blogname() {
|
||||
bloginfo( 'name' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Render the site tagline for the selective refresh partial.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function twentynineteen_customize_partial_blogdescription() {
|
||||
bloginfo( 'description' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Bind JS handlers to instantly live-preview changes.
|
||||
*/
|
||||
function twentynineteen_customize_preview_js() {
|
||||
wp_enqueue_script( 'twentynineteen-customize-preview', get_theme_file_uri( '/js/customize-preview.js' ), array( 'customize-preview' ), '20181214', true );
|
||||
}
|
||||
add_action( 'customize_preview_init', 'twentynineteen_customize_preview_js' );
|
||||
|
||||
/**
|
||||
* Load dynamic logic for the customizer controls area.
|
||||
*/
|
||||
function twentynineteen_panels_js() {
|
||||
wp_enqueue_script( 'twentynineteen-customize-controls', get_theme_file_uri( '/js/customize-controls.js' ), array(), '20181214', true );
|
||||
}
|
||||
add_action( 'customize_controls_enqueue_scripts', 'twentynineteen_panels_js' );
|
||||
|
||||
/**
|
||||
* Sanitize custom color choice.
|
||||
*
|
||||
* @param string $choice Whether image filter is active.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function twentynineteen_sanitize_color_option( $choice ) {
|
||||
$valid = array(
|
||||
'default',
|
||||
'custom',
|
||||
);
|
||||
|
||||
if ( in_array( $choice, $valid, true ) ) {
|
||||
return $choice;
|
||||
}
|
||||
|
||||
return 'default';
|
||||
}
|
||||
163
content/themes/twentynineteen/inc/helper-functions.php
Normal file
163
content/themes/twentynineteen/inc/helper-functions.php
Normal file
|
|
@ -0,0 +1,163 @@
|
|||
<?php
|
||||
/**
|
||||
* Common theme functions
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Nineteen
|
||||
* @since Twenty Nineteen 1.5
|
||||
*/
|
||||
|
||||
/**
|
||||
* Determines if post thumbnail can be displayed.
|
||||
*/
|
||||
function twentynineteen_can_show_post_thumbnail() {
|
||||
return apply_filters( 'twentynineteen_can_show_post_thumbnail', ! post_password_required() && ! is_attachment() && has_post_thumbnail() );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if image filters are enabled on the theme options.
|
||||
*/
|
||||
function twentynineteen_image_filters_enabled() {
|
||||
return 0 !== get_theme_mod( 'image_filter', 1 );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the size for avatars used in the theme.
|
||||
*/
|
||||
function twentynineteen_get_avatar_size() {
|
||||
return 60;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if comment is by author of the post.
|
||||
*
|
||||
* @see get_comment_class()
|
||||
*/
|
||||
function twentynineteen_is_comment_by_post_author( $comment = null ) {
|
||||
if ( is_object( $comment ) && $comment->user_id > 0 ) {
|
||||
$user = get_userdata( $comment->user_id );
|
||||
$post = get_post( $comment->comment_post_ID );
|
||||
if ( ! empty( $user ) && ! empty( $post ) ) {
|
||||
return $comment->user_id === $post->post_author;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns information about the current post's discussion, with cache support.
|
||||
*/
|
||||
function twentynineteen_get_discussion_data() {
|
||||
static $discussion, $post_id;
|
||||
|
||||
$current_post_id = get_the_ID();
|
||||
if ( $current_post_id === $post_id ) {
|
||||
return $discussion; /* If we have discussion information for post ID, return cached object */
|
||||
} else {
|
||||
$post_id = $current_post_id;
|
||||
}
|
||||
|
||||
$comments = get_comments(
|
||||
array(
|
||||
'post_id' => $current_post_id,
|
||||
'orderby' => 'comment_date_gmt',
|
||||
'order' => get_option( 'comment_order', 'asc' ), /* Respect comment order from Settings » Discussion. */
|
||||
'status' => 'approve',
|
||||
'number' => 20, /* Only retrieve the last 20 comments, as the end goal is just 6 unique authors */
|
||||
)
|
||||
);
|
||||
|
||||
$authors = array();
|
||||
foreach ( $comments as $comment ) {
|
||||
$authors[] = ( (int) $comment->user_id > 0 ) ? (int) $comment->user_id : $comment->comment_author_email;
|
||||
}
|
||||
|
||||
$authors = array_unique( $authors );
|
||||
$discussion = (object) array(
|
||||
'authors' => array_slice( $authors, 0, 6 ), /* Six unique authors commenting on the post. */
|
||||
'responses' => get_comments_number( $current_post_id ), /* Number of responses. */
|
||||
);
|
||||
|
||||
return $discussion;
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts HSL to HEX colors.
|
||||
*/
|
||||
function twentynineteen_hsl_hex( $h, $s, $l, $to_hex = true ) {
|
||||
|
||||
$h /= 360;
|
||||
$s /= 100;
|
||||
$l /= 100;
|
||||
|
||||
$r = $l;
|
||||
$g = $l;
|
||||
$b = $l;
|
||||
$v = ( $l <= 0.5 ) ? ( $l * ( 1.0 + $s ) ) : ( $l + $s - $l * $s );
|
||||
if ( $v > 0 ) {
|
||||
$m;
|
||||
$sv;
|
||||
$sextant;
|
||||
$fract;
|
||||
$vsf;
|
||||
$mid1;
|
||||
$mid2;
|
||||
|
||||
$m = $l + $l - $v;
|
||||
$sv = ( $v - $m ) / $v;
|
||||
$h *= 6.0;
|
||||
$sextant = floor( $h );
|
||||
$fract = $h - $sextant;
|
||||
$vsf = $v * $sv * $fract;
|
||||
$mid1 = $m + $vsf;
|
||||
$mid2 = $v - $vsf;
|
||||
|
||||
switch ( $sextant ) {
|
||||
case 0:
|
||||
$r = $v;
|
||||
$g = $mid1;
|
||||
$b = $m;
|
||||
break;
|
||||
case 1:
|
||||
$r = $mid2;
|
||||
$g = $v;
|
||||
$b = $m;
|
||||
break;
|
||||
case 2:
|
||||
$r = $m;
|
||||
$g = $v;
|
||||
$b = $mid1;
|
||||
break;
|
||||
case 3:
|
||||
$r = $m;
|
||||
$g = $mid2;
|
||||
$b = $v;
|
||||
break;
|
||||
case 4:
|
||||
$r = $mid1;
|
||||
$g = $m;
|
||||
$b = $v;
|
||||
break;
|
||||
case 5:
|
||||
$r = $v;
|
||||
$g = $m;
|
||||
$b = $mid2;
|
||||
break;
|
||||
}
|
||||
}
|
||||
$r = round( $r * 255, 0 );
|
||||
$g = round( $g * 255, 0 );
|
||||
$b = round( $b * 255, 0 );
|
||||
|
||||
if ( $to_hex ) {
|
||||
|
||||
$r = ( $r < 15 ) ? '0' . dechex( $r ) : dechex( $r );
|
||||
$g = ( $g < 15 ) ? '0' . dechex( $g ) : dechex( $g );
|
||||
$b = ( $b < 15 ) ? '0' . dechex( $b ) : dechex( $b );
|
||||
|
||||
return "#$r$g$b";
|
||||
|
||||
}
|
||||
|
||||
return "rgb($r, $g, $b)";
|
||||
}
|
||||
108
content/themes/twentynineteen/inc/icon-functions.php
Normal file
108
content/themes/twentynineteen/inc/icon-functions.php
Normal file
|
|
@ -0,0 +1,108 @@
|
|||
<?php
|
||||
/**
|
||||
* SVG icons related functions
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Nineteen
|
||||
* @since Twenty Nineteen 1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Gets the SVG code for a given icon.
|
||||
*/
|
||||
function twentynineteen_get_icon_svg( $icon, $size = 24 ) {
|
||||
return TwentyNineteen_SVG_Icons::get_svg( 'ui', $icon, $size );
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the SVG code for a given social icon.
|
||||
*/
|
||||
function twentynineteen_get_social_icon_svg( $icon, $size = 24 ) {
|
||||
return TwentyNineteen_SVG_Icons::get_svg( 'social', $icon, $size );
|
||||
}
|
||||
|
||||
/**
|
||||
* Detects the social network from a URL and returns the SVG code for its icon.
|
||||
*/
|
||||
function twentynineteen_get_social_link_svg( $uri, $size = 24 ) {
|
||||
return TwentyNineteen_SVG_Icons::get_social_link_svg( $uri, $size );
|
||||
}
|
||||
|
||||
/**
|
||||
* Display SVG icons in social links menu.
|
||||
*
|
||||
* @param string $item_output The menu item output.
|
||||
* @param WP_Post $item Menu item object.
|
||||
* @param int $depth Depth of the menu.
|
||||
* @param array $args wp_nav_menu() arguments.
|
||||
* @return string $item_output The menu item output with social icon.
|
||||
*/
|
||||
function twentynineteen_nav_menu_social_icons( $item_output, $item, $depth, $args ) {
|
||||
// Change SVG icon inside social links menu if there is supported URL.
|
||||
if ( 'social' === $args->theme_location ) {
|
||||
$svg = twentynineteen_get_social_link_svg( $item->url, 26 );
|
||||
if ( empty( $svg ) ) {
|
||||
$svg = twentynineteen_get_icon_svg( 'link' );
|
||||
}
|
||||
$item_output = str_replace( $args->link_after, '</span>' . $svg, $item_output );
|
||||
}
|
||||
|
||||
return $item_output;
|
||||
}
|
||||
add_filter( 'walker_nav_menu_start_el', 'twentynineteen_nav_menu_social_icons', 10, 4 );
|
||||
|
||||
/**
|
||||
* Add a dropdown icon to top-level menu items.
|
||||
*
|
||||
* @param string $output Nav menu item start element.
|
||||
* @param object $item Nav menu item.
|
||||
* @param int $depth Depth.
|
||||
* @param object $args Nav menu args.
|
||||
* @return string Nav menu item start element.
|
||||
* Add a dropdown icon to top-level menu items
|
||||
*/
|
||||
function twentynineteen_add_dropdown_icons( $output, $item, $depth, $args ) {
|
||||
|
||||
// Only add class to 'top level' items on the 'primary' menu.
|
||||
if ( ! isset( $args->theme_location ) || 'menu-1' !== $args->theme_location ) {
|
||||
return $output;
|
||||
}
|
||||
|
||||
if ( in_array( 'mobile-parent-nav-menu-item', $item->classes, true ) && isset( $item->original_id ) ) {
|
||||
// Inject the keyboard_arrow_left SVG inside the parent nav menu item, and let the item link to the parent item.
|
||||
// @todo Only do this for nested submenus? If on a first-level submenu, then really the link could be "#" since the desire is to remove the target entirely.
|
||||
$link = sprintf(
|
||||
'<button class="menu-item-link-return" tabindex="-1">%s',
|
||||
twentynineteen_get_icon_svg( 'chevron_left', 24 )
|
||||
);
|
||||
|
||||
// Replace opening <a> with <button>.
|
||||
$output = preg_replace(
|
||||
'/<a\s.*?>/',
|
||||
$link,
|
||||
$output,
|
||||
1 // Limit.
|
||||
);
|
||||
|
||||
// Replace closing </a> with </button>.
|
||||
$output = preg_replace(
|
||||
'#</a>#i',
|
||||
'</button>',
|
||||
$output,
|
||||
1 // Limit.
|
||||
);
|
||||
|
||||
} elseif ( in_array( 'menu-item-has-children', $item->classes, true ) ) {
|
||||
|
||||
// Add SVG icon to parent items.
|
||||
$icon = twentynineteen_get_icon_svg( 'keyboard_arrow_down', 24 );
|
||||
|
||||
$output .= sprintf(
|
||||
'<button class="submenu-expand" tabindex="-1">%s</button>',
|
||||
$icon
|
||||
);
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
add_filter( 'walker_nav_menu_start_el', 'twentynineteen_add_dropdown_icons', 10, 4 );
|
||||
211
content/themes/twentynineteen/inc/template-functions.php
Normal file
211
content/themes/twentynineteen/inc/template-functions.php
Normal file
|
|
@ -0,0 +1,211 @@
|
|||
<?php
|
||||
/**
|
||||
* Functions which enhance the theme by hooking into WordPress
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Nineteen
|
||||
* @since Twenty Nineteen 1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* Adds custom classes to the array of body classes.
|
||||
*
|
||||
* @param array $classes Classes for the body element.
|
||||
* @return array
|
||||
*/
|
||||
function twentynineteen_body_classes( $classes ) {
|
||||
|
||||
if ( is_singular() ) {
|
||||
// Adds `singular` to singular pages.
|
||||
$classes[] = 'singular';
|
||||
} else {
|
||||
// Adds `hfeed` to non singular pages.
|
||||
$classes[] = 'hfeed';
|
||||
}
|
||||
|
||||
// Adds a class if image filters are enabled.
|
||||
if ( twentynineteen_image_filters_enabled() ) {
|
||||
$classes[] = 'image-filters-enabled';
|
||||
}
|
||||
|
||||
return $classes;
|
||||
}
|
||||
add_filter( 'body_class', 'twentynineteen_body_classes' );
|
||||
|
||||
/**
|
||||
* Adds custom class to the array of posts classes.
|
||||
*/
|
||||
function twentynineteen_post_classes( $classes, $class, $post_id ) {
|
||||
$classes[] = 'entry';
|
||||
|
||||
return $classes;
|
||||
}
|
||||
add_filter( 'post_class', 'twentynineteen_post_classes', 10, 3 );
|
||||
|
||||
|
||||
/**
|
||||
* Add a pingback url auto-discovery header for single posts, pages, or attachments.
|
||||
*/
|
||||
function twentynineteen_pingback_header() {
|
||||
if ( is_singular() && pings_open() ) {
|
||||
echo '<link rel="pingback" href="', esc_url( get_bloginfo( 'pingback_url' ) ), '">';
|
||||
}
|
||||
}
|
||||
add_action( 'wp_head', 'twentynineteen_pingback_header' );
|
||||
|
||||
/**
|
||||
* Changes comment form default fields.
|
||||
*/
|
||||
function twentynineteen_comment_form_defaults( $defaults ) {
|
||||
$comment_field = $defaults['comment_field'];
|
||||
|
||||
// Adjust height of comment form.
|
||||
$defaults['comment_field'] = preg_replace( '/rows="\d+"/', 'rows="5"', $comment_field );
|
||||
|
||||
return $defaults;
|
||||
}
|
||||
add_filter( 'comment_form_defaults', 'twentynineteen_comment_form_defaults' );
|
||||
|
||||
/**
|
||||
* Filters the default archive titles.
|
||||
*/
|
||||
function twentynineteen_get_the_archive_title() {
|
||||
if ( is_category() ) {
|
||||
$title = __( 'Category Archives: ', 'twentynineteen' ) . '<span class="page-description">' . single_term_title( '', false ) . '</span>';
|
||||
} elseif ( is_tag() ) {
|
||||
$title = __( 'Tag Archives: ', 'twentynineteen' ) . '<span class="page-description">' . single_term_title( '', false ) . '</span>';
|
||||
} elseif ( is_author() ) {
|
||||
$title = __( 'Author Archives: ', 'twentynineteen' ) . '<span class="page-description">' . get_the_author_meta( 'display_name' ) . '</span>';
|
||||
} elseif ( is_year() ) {
|
||||
$title = __( 'Yearly Archives: ', 'twentynineteen' ) . '<span class="page-description">' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentynineteen' ) ) . '</span>';
|
||||
} elseif ( is_month() ) {
|
||||
$title = __( 'Monthly Archives: ', 'twentynineteen' ) . '<span class="page-description">' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentynineteen' ) ) . '</span>';
|
||||
} elseif ( is_day() ) {
|
||||
$title = __( 'Daily Archives: ', 'twentynineteen' ) . '<span class="page-description">' . get_the_date() . '</span>';
|
||||
} elseif ( is_post_type_archive() ) {
|
||||
$title = __( 'Post Type Archives: ', 'twentynineteen' ) . '<span class="page-description">' . post_type_archive_title( '', false ) . '</span>';
|
||||
} elseif ( is_tax() ) {
|
||||
$tax = get_taxonomy( get_queried_object()->taxonomy );
|
||||
/* translators: %s: Taxonomy singular name. */
|
||||
$title = sprintf( esc_html__( '%s Archives:', 'twentynineteen' ), $tax->labels->singular_name );
|
||||
} else {
|
||||
$title = __( 'Archives:', 'twentynineteen' );
|
||||
}
|
||||
return $title;
|
||||
}
|
||||
add_filter( 'get_the_archive_title', 'twentynineteen_get_the_archive_title' );
|
||||
|
||||
/**
|
||||
* Add custom sizes attribute to responsive image functionality for post thumbnails.
|
||||
*
|
||||
* @origin Twenty Nineteen 1.0
|
||||
*
|
||||
* @param array $attr Attributes for the image markup.
|
||||
* @return string Value for use in post thumbnail 'sizes' attribute.
|
||||
*/
|
||||
function twentynineteen_post_thumbnail_sizes_attr( $attr ) {
|
||||
|
||||
if ( is_admin() ) {
|
||||
return $attr;
|
||||
}
|
||||
|
||||
if ( ! is_singular() ) {
|
||||
$attr['sizes'] = '(max-width: 34.9rem) calc(100vw - 2rem), (max-width: 53rem) calc(8 * (100vw / 12)), (min-width: 53rem) calc(6 * (100vw / 12)), 100vw';
|
||||
}
|
||||
|
||||
return $attr;
|
||||
}
|
||||
add_filter( 'wp_get_attachment_image_attributes', 'twentynineteen_post_thumbnail_sizes_attr', 10, 1 );
|
||||
|
||||
/**
|
||||
* Add an extra menu to our nav for our priority+ navigation to use
|
||||
*
|
||||
* @param object $nav_menu Nav menu.
|
||||
* @param object $args Nav menu args.
|
||||
* @return string More link for hidden menu items.
|
||||
*/
|
||||
function twentynineteen_add_ellipses_to_nav( $nav_menu, $args ) {
|
||||
|
||||
if ( 'menu-1' === $args->theme_location ) :
|
||||
|
||||
$nav_menu .= '
|
||||
<div class="main-menu-more">
|
||||
<ul class="main-menu">
|
||||
<li class="menu-item menu-item-has-children">
|
||||
<button class="submenu-expand main-menu-more-toggle is-empty" tabindex="-1"
|
||||
aria-label="' . esc_attr__( 'More', 'twentynineteen' ) . '" aria-haspopup="true" aria-expanded="false">' .
|
||||
twentynineteen_get_icon_svg( 'arrow_drop_down_ellipsis' ) . '
|
||||
</button>
|
||||
<ul class="sub-menu hidden-links">
|
||||
<li class="mobile-parent-nav-menu-item">
|
||||
<button class="menu-item-link-return">' .
|
||||
twentynineteen_get_icon_svg( 'chevron_left' ) .
|
||||
esc_html__( 'Back', 'twentynineteen' ) . '
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>';
|
||||
|
||||
endif;
|
||||
|
||||
return $nav_menu;
|
||||
}
|
||||
add_filter( 'wp_nav_menu', 'twentynineteen_add_ellipses_to_nav', 10, 2 );
|
||||
|
||||
/**
|
||||
* WCAG 2.0 Attributes for Dropdown Menus
|
||||
*
|
||||
* Adjustments to menu attributes tot support WCAG 2.0 recommendations
|
||||
* for flyout and dropdown menus.
|
||||
*
|
||||
* @ref https://www.w3.org/WAI/tutorials/menus/flyout/
|
||||
*/
|
||||
function twentynineteen_nav_menu_link_attributes( $atts, $item, $args, $depth ) {
|
||||
|
||||
// Add [aria-haspopup] and [aria-expanded] to menu items that have children.
|
||||
$item_has_children = in_array( 'menu-item-has-children', $item->classes );
|
||||
if ( $item_has_children ) {
|
||||
$atts['aria-haspopup'] = 'true';
|
||||
$atts['aria-expanded'] = 'false';
|
||||
}
|
||||
|
||||
return $atts;
|
||||
}
|
||||
add_filter( 'nav_menu_link_attributes', 'twentynineteen_nav_menu_link_attributes', 10, 4 );
|
||||
|
||||
/**
|
||||
* Create a nav menu item to be displayed on mobile to navigate from submenu back to the parent.
|
||||
*
|
||||
* This duplicates each parent nav menu item and makes it the first child of itself.
|
||||
*
|
||||
* @param array $sorted_menu_items Sorted nav menu items.
|
||||
* @param object $args Nav menu args.
|
||||
* @return array Amended nav menu items.
|
||||
*/
|
||||
function twentynineteen_add_mobile_parent_nav_menu_items( $sorted_menu_items, $args ) {
|
||||
static $pseudo_id = 0;
|
||||
if ( ! isset( $args->theme_location ) || 'menu-1' !== $args->theme_location ) {
|
||||
return $sorted_menu_items;
|
||||
}
|
||||
|
||||
$amended_menu_items = array();
|
||||
foreach ( $sorted_menu_items as $nav_menu_item ) {
|
||||
$amended_menu_items[] = $nav_menu_item;
|
||||
if ( in_array( 'menu-item-has-children', $nav_menu_item->classes, true ) ) {
|
||||
$parent_menu_item = clone $nav_menu_item;
|
||||
$parent_menu_item->original_id = $nav_menu_item->ID;
|
||||
$parent_menu_item->ID = --$pseudo_id;
|
||||
$parent_menu_item->db_id = $parent_menu_item->ID;
|
||||
$parent_menu_item->object_id = $parent_menu_item->ID;
|
||||
$parent_menu_item->classes = array( 'mobile-parent-nav-menu-item' );
|
||||
$parent_menu_item->menu_item_parent = $nav_menu_item->ID;
|
||||
|
||||
$amended_menu_items[] = $parent_menu_item;
|
||||
}
|
||||
}
|
||||
|
||||
return $amended_menu_items;
|
||||
}
|
||||
add_filter( 'wp_nav_menu_objects', 'twentynineteen_add_mobile_parent_nav_menu_items', 10, 2 );
|
||||
258
content/themes/twentynineteen/inc/template-tags.php
Normal file
258
content/themes/twentynineteen/inc/template-tags.php
Normal file
|
|
@ -0,0 +1,258 @@
|
|||
<?php
|
||||
/**
|
||||
* Custom template tags for this theme
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Nineteen
|
||||
* @since Twenty Nineteen 1.0
|
||||
*/
|
||||
|
||||
if ( ! function_exists( 'twentynineteen_posted_on' ) ) :
|
||||
/**
|
||||
* Prints HTML with meta information for the current post-date/time.
|
||||
*/
|
||||
function twentynineteen_posted_on() {
|
||||
$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
|
||||
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
|
||||
$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
|
||||
}
|
||||
|
||||
$time_string = sprintf(
|
||||
$time_string,
|
||||
esc_attr( get_the_date( DATE_W3C ) ),
|
||||
esc_html( get_the_date() ),
|
||||
esc_attr( get_the_modified_date( DATE_W3C ) ),
|
||||
esc_html( get_the_modified_date() )
|
||||
);
|
||||
|
||||
printf(
|
||||
'<span class="posted-on">%1$s<a href="%2$s" rel="bookmark">%3$s</a></span>',
|
||||
twentynineteen_get_icon_svg( 'watch', 16 ),
|
||||
esc_url( get_permalink() ),
|
||||
$time_string
|
||||
);
|
||||
}
|
||||
endif;
|
||||
|
||||
if ( ! function_exists( 'twentynineteen_posted_by' ) ) :
|
||||
/**
|
||||
* Prints HTML with meta information about theme author.
|
||||
*/
|
||||
function twentynineteen_posted_by() {
|
||||
printf(
|
||||
/* translators: 1: SVG icon. 2: Post author, only visible to screen readers. 3: Author link. */
|
||||
'<span class="byline">%1$s<span class="screen-reader-text">%2$s</span><span class="author vcard"><a class="url fn n" href="%3$s">%4$s</a></span></span>',
|
||||
twentynineteen_get_icon_svg( 'person', 16 ),
|
||||
__( 'Posted by', 'twentynineteen' ),
|
||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||
esc_html( get_the_author() )
|
||||
);
|
||||
}
|
||||
endif;
|
||||
|
||||
if ( ! function_exists( 'twentynineteen_comment_count' ) ) :
|
||||
/**
|
||||
* Prints HTML with the comment count for the current post.
|
||||
*/
|
||||
function twentynineteen_comment_count() {
|
||||
if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
|
||||
echo '<span class="comments-link">';
|
||||
echo twentynineteen_get_icon_svg( 'comment', 16 );
|
||||
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
comments_popup_link( sprintf( __( 'Leave a comment<span class="screen-reader-text"> on %s</span>', 'twentynineteen' ), get_the_title() ) );
|
||||
|
||||
echo '</span>';
|
||||
}
|
||||
}
|
||||
endif;
|
||||
|
||||
if ( ! function_exists( 'twentynineteen_entry_footer' ) ) :
|
||||
/**
|
||||
* Prints HTML with meta information for the categories, tags and comments.
|
||||
*/
|
||||
function twentynineteen_entry_footer() {
|
||||
|
||||
// Hide author, post date, category and tag text for pages.
|
||||
if ( 'post' === get_post_type() ) {
|
||||
|
||||
// Posted by.
|
||||
twentynineteen_posted_by();
|
||||
|
||||
// Posted on.
|
||||
twentynineteen_posted_on();
|
||||
|
||||
/* translators: Used between list items, there is a space after the comma. */
|
||||
$categories_list = get_the_category_list( __( ', ', 'twentynineteen' ) );
|
||||
if ( $categories_list ) {
|
||||
printf(
|
||||
/* translators: 1: SVG icon. 2: Posted in label, only visible to screen readers. 3: List of categories. */
|
||||
'<span class="cat-links">%1$s<span class="screen-reader-text">%2$s</span>%3$s</span>',
|
||||
twentynineteen_get_icon_svg( 'archive', 16 ),
|
||||
__( 'Posted in', 'twentynineteen' ),
|
||||
$categories_list
|
||||
); // WPCS: XSS OK.
|
||||
}
|
||||
|
||||
/* translators: Used between list items, there is a space after the comma. */
|
||||
$tags_list = get_the_tag_list( '', __( ', ', 'twentynineteen' ) );
|
||||
if ( $tags_list ) {
|
||||
printf(
|
||||
/* translators: 1: SVG icon. 2: Posted in label, only visible to screen readers. 3: List of tags. */
|
||||
'<span class="tags-links">%1$s<span class="screen-reader-text">%2$s </span>%3$s</span>',
|
||||
twentynineteen_get_icon_svg( 'tag', 16 ),
|
||||
__( 'Tags:', 'twentynineteen' ),
|
||||
$tags_list
|
||||
); // WPCS: XSS OK.
|
||||
}
|
||||
}
|
||||
|
||||
// Comment count.
|
||||
if ( ! is_singular() ) {
|
||||
twentynineteen_comment_count();
|
||||
}
|
||||
|
||||
// Edit post link.
|
||||
edit_post_link(
|
||||
sprintf(
|
||||
wp_kses(
|
||||
/* translators: %s: Post title. Only visible to screen readers. */
|
||||
__( 'Edit <span class="screen-reader-text">%s</span>', 'twentynineteen' ),
|
||||
array(
|
||||
'span' => array(
|
||||
'class' => array(),
|
||||
),
|
||||
)
|
||||
),
|
||||
get_the_title()
|
||||
),
|
||||
'<span class="edit-link">' . twentynineteen_get_icon_svg( 'edit', 16 ),
|
||||
'</span>'
|
||||
);
|
||||
}
|
||||
endif;
|
||||
|
||||
if ( ! function_exists( 'twentynineteen_post_thumbnail' ) ) :
|
||||
/**
|
||||
* Displays an optional post thumbnail.
|
||||
*
|
||||
* Wraps the post thumbnail in an anchor element on index views, or a div
|
||||
* element when on single views.
|
||||
*/
|
||||
function twentynineteen_post_thumbnail() {
|
||||
if ( ! twentynineteen_can_show_post_thumbnail() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( is_singular() ) :
|
||||
?>
|
||||
|
||||
<figure class="post-thumbnail">
|
||||
<?php the_post_thumbnail(); ?>
|
||||
</figure><!-- .post-thumbnail -->
|
||||
|
||||
<?php
|
||||
else :
|
||||
?>
|
||||
|
||||
<figure class="post-thumbnail">
|
||||
<a class="post-thumbnail-inner" href="<?php the_permalink(); ?>" aria-hidden="true" tabindex="-1">
|
||||
<?php the_post_thumbnail( 'post-thumbnail' ); ?>
|
||||
</a>
|
||||
</figure>
|
||||
|
||||
<?php
|
||||
endif; // End is_singular().
|
||||
}
|
||||
endif;
|
||||
|
||||
if ( ! function_exists( 'twentynineteen_get_user_avatar_markup' ) ) :
|
||||
/**
|
||||
* Returns the HTML markup to generate a user avatar.
|
||||
*/
|
||||
function twentynineteen_get_user_avatar_markup( $id_or_email = null ) {
|
||||
|
||||
if ( ! isset( $id_or_email ) ) {
|
||||
$id_or_email = get_current_user_id();
|
||||
}
|
||||
|
||||
return sprintf( '<div class="comment-user-avatar comment-author vcard">%s</div>', get_avatar( $id_or_email, twentynineteen_get_avatar_size() ) );
|
||||
}
|
||||
endif;
|
||||
|
||||
if ( ! function_exists( 'twentynineteen_discussion_avatars_list' ) ) :
|
||||
/**
|
||||
* Displays a list of avatars involved in a discussion for a given post.
|
||||
*/
|
||||
function twentynineteen_discussion_avatars_list( $comment_authors ) {
|
||||
if ( empty( $comment_authors ) ) {
|
||||
return;
|
||||
}
|
||||
echo '<ol class="discussion-avatar-list">', "\n";
|
||||
foreach ( $comment_authors as $id_or_email ) {
|
||||
printf(
|
||||
"<li>%s</li>\n",
|
||||
twentynineteen_get_user_avatar_markup( $id_or_email )
|
||||
);
|
||||
}
|
||||
echo '</ol><!-- .discussion-avatar-list -->', "\n";
|
||||
}
|
||||
endif;
|
||||
|
||||
if ( ! function_exists( 'twentynineteen_comment_form' ) ) :
|
||||
/**
|
||||
* Documentation for function.
|
||||
*/
|
||||
function twentynineteen_comment_form( $order ) {
|
||||
if ( true === $order || strtolower( $order ) === strtolower( get_option( 'comment_order', 'asc' ) ) ) {
|
||||
|
||||
comment_form(
|
||||
array(
|
||||
'logged_in_as' => null,
|
||||
'title_reply' => null,
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
endif;
|
||||
|
||||
if ( ! function_exists( 'twentynineteen_the_posts_navigation' ) ) :
|
||||
/**
|
||||
* Documentation for function.
|
||||
*/
|
||||
function twentynineteen_the_posts_navigation() {
|
||||
the_posts_pagination(
|
||||
array(
|
||||
'mid_size' => 2,
|
||||
'prev_text' => sprintf(
|
||||
'%s <span class="nav-prev-text">%s</span>',
|
||||
twentynineteen_get_icon_svg( 'chevron_left', 22 ),
|
||||
__( 'Newer posts', 'twentynineteen' )
|
||||
),
|
||||
'next_text' => sprintf(
|
||||
'<span class="nav-next-text">%s</span> %s',
|
||||
__( 'Older posts', 'twentynineteen' ),
|
||||
twentynineteen_get_icon_svg( 'chevron_right', 22 )
|
||||
),
|
||||
)
|
||||
);
|
||||
}
|
||||
endif;
|
||||
|
||||
if ( ! function_exists( 'wp_body_open' ) ) :
|
||||
/**
|
||||
* Fire the wp_body_open action.
|
||||
*
|
||||
* Added for backward compatibility to support pre-5.2.0 WordPress versions.
|
||||
*
|
||||
* @since Twenty Nineteen 1.4
|
||||
*/
|
||||
function wp_body_open() {
|
||||
/**
|
||||
* Triggered after the opening <body> tag.
|
||||
*
|
||||
* @since Twenty Nineteen 1.4
|
||||
*/
|
||||
do_action( 'wp_body_open' );
|
||||
}
|
||||
endif;
|
||||
47
content/themes/twentynineteen/index.php
Normal file
47
content/themes/twentynineteen/index.php
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
<?php
|
||||
/**
|
||||
* The main template file
|
||||
*
|
||||
* This is the most generic template file in a WordPress theme
|
||||
* and one of the two required files for a theme (the other being style.css).
|
||||
* It is used to display a page when nothing more specific matches a query.
|
||||
* E.g., it puts together the home page when no home.php file exists.
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Nineteen
|
||||
* @since Twenty Nineteen 1.0
|
||||
*/
|
||||
|
||||
get_header();
|
||||
?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php
|
||||
if ( have_posts() ) {
|
||||
|
||||
// Load posts loop.
|
||||
while ( have_posts() ) {
|
||||
the_post();
|
||||
get_template_part( 'template-parts/content/content' );
|
||||
}
|
||||
|
||||
// Previous/next page navigation.
|
||||
twentynineteen_the_posts_navigation();
|
||||
|
||||
} else {
|
||||
|
||||
// If no content, include the "No posts found" template.
|
||||
get_template_part( 'template-parts/content/content', 'none' );
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
</main><!-- .site-main -->
|
||||
</div><!-- .content-area -->
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
30
content/themes/twentynineteen/js/customize-controls.js
Normal file
30
content/themes/twentynineteen/js/customize-controls.js
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
/**
|
||||
* File customize-controls.js.
|
||||
*
|
||||
* Theme Customizer enhancements for a better user experience.
|
||||
*
|
||||
* Contains handlers to make Theme Customizer preview reload changes asynchronously.
|
||||
*/
|
||||
|
||||
(function() {
|
||||
|
||||
wp.customize.bind( 'ready', function() {
|
||||
|
||||
// Only show the color hue control when there's a custom primary color.
|
||||
wp.customize( 'primary_color', function( setting ) {
|
||||
wp.customize.control( 'primary_color_hue', function( control ) {
|
||||
var visibility = function() {
|
||||
if ( 'custom' === setting.get() ) {
|
||||
control.container.slideDown( 180 );
|
||||
} else {
|
||||
control.container.slideUp( 180 );
|
||||
}
|
||||
};
|
||||
|
||||
visibility();
|
||||
setting.bind( visibility );
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
})();
|
||||
60
content/themes/twentynineteen/js/customize-preview.js
Normal file
60
content/themes/twentynineteen/js/customize-preview.js
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
/**
|
||||
* File customize-preview.js.
|
||||
*
|
||||
* Theme Customizer enhancements for a better user experience.
|
||||
*
|
||||
* Contains handlers to make Theme Customizer preview reload changes asynchronously.
|
||||
*/
|
||||
|
||||
(function( $ ) {
|
||||
|
||||
// Primary color.
|
||||
wp.customize( 'primary_color', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
// Update custom color CSS.
|
||||
var style = $( '#custom-theme-colors' ),
|
||||
hue = style.data( 'hue' ),
|
||||
css = style.html(),
|
||||
color;
|
||||
|
||||
if( 'custom' === to ){
|
||||
// If a custom primary color is selected, use the currently set primary_color_hue.
|
||||
color = wp.customize.get().primary_color_hue;
|
||||
} else {
|
||||
// If the "default" option is selected, get the default primary_color_hue.
|
||||
color = 199;
|
||||
}
|
||||
|
||||
// Equivalent to css.replaceAll, with hue followed by comma to prevent values with units from being changed.
|
||||
css = css.split( hue + ',' ).join( color + ',' );
|
||||
style.html( css ).data( 'hue', color );
|
||||
});
|
||||
});
|
||||
|
||||
// Primary color hue.
|
||||
wp.customize( 'primary_color_hue', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
|
||||
// Update custom color CSS.
|
||||
var style = $( '#custom-theme-colors' ),
|
||||
hue = style.data( 'hue' ),
|
||||
css = style.html();
|
||||
|
||||
// Equivalent to css.replaceAll, with hue followed by comma to prevent values with units from being changed.
|
||||
css = css.split( hue + ',' ).join( to + ',' );
|
||||
style.html( css ).data( 'hue', to );
|
||||
});
|
||||
});
|
||||
|
||||
// Image filter.
|
||||
wp.customize( 'image_filter', function( value ) {
|
||||
value.bind( function( to ) {
|
||||
if ( to ) {
|
||||
$( 'body' ).addClass( 'image-filters-enabled' );
|
||||
} else {
|
||||
$( 'body' ).removeClass( 'image-filters-enabled' );
|
||||
}
|
||||
} );
|
||||
} );
|
||||
|
||||
})( jQuery );
|
||||
216
content/themes/twentynineteen/js/priority-menu.js
Normal file
216
content/themes/twentynineteen/js/priority-menu.js
Normal file
|
|
@ -0,0 +1,216 @@
|
|||
(function() {
|
||||
|
||||
/**
|
||||
* Debounce.
|
||||
*
|
||||
* @param {Function} func
|
||||
* @param {number} wait
|
||||
* @param {boolean} immediate
|
||||
*/
|
||||
function debounce(func, wait, immediate) {
|
||||
'use strict';
|
||||
|
||||
var timeout;
|
||||
wait = (typeof wait !== 'undefined') ? wait : 20;
|
||||
immediate = (typeof immediate !== 'undefined') ? immediate : true;
|
||||
|
||||
return function() {
|
||||
|
||||
var context = this, args = arguments;
|
||||
var later = function() {
|
||||
timeout = null;
|
||||
|
||||
if (!immediate) {
|
||||
func.apply(context, args);
|
||||
}
|
||||
};
|
||||
|
||||
var callNow = immediate && !timeout;
|
||||
|
||||
clearTimeout(timeout);
|
||||
timeout = setTimeout(later, wait);
|
||||
|
||||
if (callNow) {
|
||||
func.apply(context, args);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepends an element to a container.
|
||||
*
|
||||
* @param {Element} container
|
||||
* @param {Element} element
|
||||
*/
|
||||
function prependElement(container, element) {
|
||||
if (container.firstChild.nextSibling) {
|
||||
return container.insertBefore(element, container.firstChild.nextSibling);
|
||||
} else {
|
||||
return container.appendChild(element);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Shows an element by adding a hidden className.
|
||||
*
|
||||
* @param {Element} element
|
||||
*/
|
||||
function showButton(element) {
|
||||
// classList.remove is not supported in IE11.
|
||||
element.className = element.className.replace('is-empty', '');
|
||||
}
|
||||
|
||||
/**
|
||||
* Hides an element by removing the hidden className.
|
||||
*
|
||||
* @param {Element} element
|
||||
*/
|
||||
function hideButton(element) {
|
||||
// classList.add is not supported in IE11.
|
||||
if (!element.classList.contains('is-empty')) {
|
||||
element.className += ' is-empty';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the currently available space in the menu container.
|
||||
*
|
||||
* @returns {number} Available space
|
||||
*/
|
||||
function getAvailableSpace( button, container ) {
|
||||
return container.offsetWidth - button.offsetWidth - 22;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether the current menu is overflowing or not.
|
||||
*
|
||||
* @returns {boolean} Is overflowing
|
||||
*/
|
||||
function isOverflowingNavivation( list, button, container ) {
|
||||
return list.offsetWidth > getAvailableSpace( button, container );
|
||||
}
|
||||
|
||||
/**
|
||||
* Set menu container variable.
|
||||
*/
|
||||
var navContainer = document.querySelector('.main-navigation');
|
||||
var breaks = [];
|
||||
|
||||
/**
|
||||
* Let’s bail if we our menu doesn't exist.
|
||||
*/
|
||||
if ( ! navContainer ) {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Refreshes the list item from the menu depending on the menu size.
|
||||
*/
|
||||
function updateNavigationMenu( container ) {
|
||||
|
||||
/**
|
||||
* Let’s bail if our menu is empty.
|
||||
*/
|
||||
if ( ! container.parentNode.querySelector('.main-menu[id]') ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Adds the necessary UI to operate the menu.
|
||||
var visibleList = container.parentNode.querySelector('.main-menu[id]');
|
||||
var hiddenList = visibleList.parentNode.nextElementSibling.querySelector('.hidden-links');
|
||||
var toggleButton = visibleList.parentNode.nextElementSibling.querySelector('.main-menu-more-toggle');
|
||||
|
||||
if ( isOverflowingNavivation( visibleList, toggleButton, container ) ) {
|
||||
|
||||
// Record the width of the list.
|
||||
breaks.push( visibleList.offsetWidth );
|
||||
// Move last item to the hidden list.
|
||||
prependElement( hiddenList, ! visibleList.lastChild || null === visibleList.lastChild ? visibleList.previousElementSibling : visibleList.lastChild );
|
||||
// Show the toggle button.
|
||||
showButton( toggleButton );
|
||||
|
||||
} else {
|
||||
|
||||
// There is space for another item in the nav.
|
||||
if ( getAvailableSpace( toggleButton, container ) > breaks[breaks.length - 1] ) {
|
||||
// Move the item to the visible list.
|
||||
visibleList.appendChild( hiddenList.firstChild.nextSibling );
|
||||
breaks.pop();
|
||||
}
|
||||
|
||||
// Hide the dropdown btn if hidden list is empty.
|
||||
if (breaks.length < 2) {
|
||||
hideButton( toggleButton );
|
||||
}
|
||||
}
|
||||
|
||||
// Recur if the visible list is still overflowing the nav.
|
||||
if ( isOverflowingNavivation( visibleList, toggleButton, container ) ) {
|
||||
updateNavigationMenu( container );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Run our priority+ function as soon as the document is `ready`.
|
||||
*/
|
||||
document.addEventListener( 'DOMContentLoaded', function() {
|
||||
|
||||
updateNavigationMenu( navContainer );
|
||||
|
||||
// Also, run our priority+ function on selective refresh in the customizer.
|
||||
var hasSelectiveRefresh = (
|
||||
'undefined' !== typeof wp &&
|
||||
wp.customize &&
|
||||
wp.customize.selectiveRefresh &&
|
||||
wp.customize.navMenusPreview.NavMenuInstancePartial
|
||||
);
|
||||
|
||||
if ( hasSelectiveRefresh ) {
|
||||
// Re-run our priority+ function on Nav Menu partial refreshes.
|
||||
wp.customize.selectiveRefresh.bind( 'partial-content-rendered', function ( placement ) {
|
||||
|
||||
var isNewNavMenu = (
|
||||
placement &&
|
||||
placement.partial.id.includes( 'nav_menu_instance' ) &&
|
||||
'null' !== placement.container[0].parentNode &&
|
||||
placement.container[0].parentNode.classList.contains( 'main-navigation' )
|
||||
);
|
||||
|
||||
if ( isNewNavMenu ) {
|
||||
updateNavigationMenu( placement.container[0].parentNode );
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Run our priority+ function on load.
|
||||
*/
|
||||
window.addEventListener( 'load', function() {
|
||||
updateNavigationMenu( navContainer );
|
||||
});
|
||||
|
||||
/**
|
||||
* Run our priority+ function every time the window resizes.
|
||||
*/
|
||||
var isResizing = false;
|
||||
window.addEventListener( 'resize',
|
||||
debounce( function() {
|
||||
if ( isResizing ) {
|
||||
return;
|
||||
}
|
||||
|
||||
isResizing = true;
|
||||
setTimeout( function() {
|
||||
updateNavigationMenu( navContainer );
|
||||
isResizing = false;
|
||||
}, 150 );
|
||||
} )
|
||||
);
|
||||
|
||||
/**
|
||||
* Run our priority+ function.
|
||||
*/
|
||||
updateNavigationMenu( navContainer );
|
||||
|
||||
})();
|
||||
33
content/themes/twentynineteen/js/skip-link-focus-fix.js
Normal file
33
content/themes/twentynineteen/js/skip-link-focus-fix.js
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
/**
|
||||
* File skip-link-focus-fix.js.
|
||||
*
|
||||
* Helps with accessibility for keyboard only users.
|
||||
*
|
||||
* This is the source file for what is minified in the twentynineteen_skip_link_focus_fix() PHP function.
|
||||
*
|
||||
* Learn more: https://git.io/vWdr2
|
||||
*/
|
||||
( function() {
|
||||
var isIe = /(trident|msie)/i.test( navigator.userAgent );
|
||||
|
||||
if ( isIe && document.getElementById && window.addEventListener ) {
|
||||
window.addEventListener( 'hashchange', function() {
|
||||
var id = location.hash.substring( 1 ),
|
||||
element;
|
||||
|
||||
if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
element = document.getElementById( id );
|
||||
|
||||
if ( element ) {
|
||||
if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) {
|
||||
element.tabIndex = -1;
|
||||
}
|
||||
|
||||
element.focus();
|
||||
}
|
||||
}, false );
|
||||
}
|
||||
} )();
|
||||
354
content/themes/twentynineteen/js/touch-keyboard-navigation.js
Normal file
354
content/themes/twentynineteen/js/touch-keyboard-navigation.js
Normal file
|
|
@ -0,0 +1,354 @@
|
|||
/**
|
||||
* Touch & Keyboard navigation.
|
||||
*
|
||||
* Contains handlers for touch devices and keyboard navigation.
|
||||
*/
|
||||
|
||||
(function() {
|
||||
|
||||
/**
|
||||
* Debounce.
|
||||
*
|
||||
* @param {Function} func
|
||||
* @param {number} wait
|
||||
* @param {boolean} immediate
|
||||
*/
|
||||
function debounce(func, wait, immediate) {
|
||||
'use strict';
|
||||
|
||||
var timeout;
|
||||
wait = (typeof wait !== 'undefined') ? wait : 20;
|
||||
immediate = (typeof immediate !== 'undefined') ? immediate : true;
|
||||
|
||||
return function() {
|
||||
|
||||
var context = this, args = arguments;
|
||||
var later = function() {
|
||||
timeout = null;
|
||||
|
||||
if (!immediate) {
|
||||
func.apply(context, args);
|
||||
}
|
||||
};
|
||||
|
||||
var callNow = immediate && !timeout;
|
||||
|
||||
clearTimeout(timeout);
|
||||
timeout = setTimeout(later, wait);
|
||||
|
||||
if (callNow) {
|
||||
func.apply(context, args);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Add class.
|
||||
*
|
||||
* @param {Object} el
|
||||
* @param {string} cls
|
||||
*/
|
||||
function addClass(el, cls) {
|
||||
if ( ! el.className.match( '(?:^|\\s)' + cls + '(?!\\S)') ) {
|
||||
el.className += ' ' + cls;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete class.
|
||||
*
|
||||
* @param {Object} el
|
||||
* @param {string} cls
|
||||
*/
|
||||
function deleteClass(el, cls) {
|
||||
el.className = el.className.replace( new RegExp( '(?:^|\\s)' + cls + '(?!\\S)' ),'' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Has class?
|
||||
*
|
||||
* @param {Object} el
|
||||
* @param {string} cls
|
||||
*
|
||||
* @returns {boolean} Has class
|
||||
*/
|
||||
function hasClass(el, cls) {
|
||||
|
||||
if ( el.className.match( '(?:^|\\s)' + cls + '(?!\\S)' ) ) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Toggle Aria Expanded state for screenreaders.
|
||||
*
|
||||
* @param {Object} ariaItem
|
||||
*/
|
||||
function toggleAriaExpandedState( ariaItem ) {
|
||||
'use strict';
|
||||
|
||||
var ariaState = ariaItem.getAttribute('aria-expanded');
|
||||
|
||||
if ( ariaState === 'true' ) {
|
||||
ariaState = 'false';
|
||||
} else {
|
||||
ariaState = 'true';
|
||||
}
|
||||
|
||||
ariaItem.setAttribute('aria-expanded', ariaState);
|
||||
}
|
||||
|
||||
/**
|
||||
* Open sub-menu.
|
||||
*
|
||||
* @param {Object} currentSubMenu
|
||||
*/
|
||||
function openSubMenu( currentSubMenu ) {
|
||||
'use strict';
|
||||
|
||||
// Update classes.
|
||||
// classList.add is not supported in IE11.
|
||||
currentSubMenu.parentElement.className += ' off-canvas';
|
||||
currentSubMenu.parentElement.lastElementChild.className += ' expanded-true';
|
||||
|
||||
// Update aria-expanded state.
|
||||
toggleAriaExpandedState( currentSubMenu );
|
||||
}
|
||||
|
||||
/**
|
||||
* Close sub-menu.
|
||||
*
|
||||
* @param {Object} currentSubMenu
|
||||
*/
|
||||
function closeSubMenu( currentSubMenu ) {
|
||||
'use strict';
|
||||
|
||||
var menuItem = getCurrentParent( currentSubMenu, '.menu-item' ); // this.parentNode
|
||||
var menuItemAria = menuItem.querySelector('a[aria-expanded]');
|
||||
var subMenu = currentSubMenu.closest('.sub-menu');
|
||||
|
||||
// If this is in a sub-sub-menu, go back to parent sub-menu.
|
||||
if ( getCurrentParent( currentSubMenu, 'ul' ).classList.contains( 'sub-menu' ) ) {
|
||||
|
||||
// Update classes.
|
||||
// classList.remove is not supported in IE11.
|
||||
menuItem.className = menuItem.className.replace( 'off-canvas', '' );
|
||||
subMenu.className = subMenu.className.replace( 'expanded-true', '' );
|
||||
|
||||
// Update aria-expanded and :focus states.
|
||||
toggleAriaExpandedState( menuItemAria );
|
||||
|
||||
// Or else close all sub-menus.
|
||||
} else {
|
||||
|
||||
// Update classes.
|
||||
// classList.remove is not supported in IE11.
|
||||
menuItem.className = menuItem.className.replace( 'off-canvas', '' );
|
||||
menuItem.lastElementChild.className = menuItem.lastElementChild.className.replace( 'expanded-true', '' );
|
||||
|
||||
// Update aria-expanded and :focus states.
|
||||
toggleAriaExpandedState( menuItemAria );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Find first ancestor of an element by selector.
|
||||
*
|
||||
* @param {Object} child
|
||||
* @param {String} selector
|
||||
* @param {String} stopSelector
|
||||
*/
|
||||
function getCurrentParent( child, selector, stopSelector ) {
|
||||
|
||||
var currentParent = null;
|
||||
|
||||
while ( child ) {
|
||||
|
||||
if ( child.matches(selector) ) {
|
||||
|
||||
currentParent = child;
|
||||
break;
|
||||
|
||||
} else if ( stopSelector && child.matches(stopSelector) ) {
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
child = child.parentElement;
|
||||
}
|
||||
|
||||
return currentParent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove all off-canvas states.
|
||||
*/
|
||||
function removeAllFocusStates() {
|
||||
'use strict';
|
||||
|
||||
var siteBranding = document.getElementsByClassName( 'site-branding' )[0];
|
||||
var getFocusedElements = siteBranding.querySelectorAll(':hover, :focus, :focus-within');
|
||||
var getFocusedClassElements = siteBranding.querySelectorAll('.is-focused');
|
||||
var i;
|
||||
var o;
|
||||
|
||||
for ( i = 0; i < getFocusedElements.length; i++) {
|
||||
getFocusedElements[i].blur();
|
||||
}
|
||||
|
||||
for ( o = 0; o < getFocusedClassElements.length; o++) {
|
||||
deleteClass( getFocusedClassElements[o], 'is-focused' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Matches polyfill for IE11.
|
||||
*/
|
||||
if (!Element.prototype.matches) {
|
||||
Element.prototype.matches = Element.prototype.msMatchesSelector;
|
||||
}
|
||||
|
||||
/**
|
||||
* Toggle `focus` class to allow sub-menu access on touch screens.
|
||||
*/
|
||||
function toggleSubmenuDisplay() {
|
||||
|
||||
document.addEventListener('touchstart', function(event) {
|
||||
|
||||
if ( event.target.matches('a') ) {
|
||||
|
||||
var url = event.target.getAttribute( 'href' ) ? event.target.getAttribute( 'href' ) : '';
|
||||
|
||||
// Open submenu if URL is #.
|
||||
if ( '#' === url && event.target.nextSibling.matches('.submenu-expand') ) {
|
||||
openSubMenu( event.target );
|
||||
}
|
||||
}
|
||||
|
||||
// Check if .submenu-expand is touched.
|
||||
if ( event.target.matches('.submenu-expand') ) {
|
||||
openSubMenu(event.target);
|
||||
|
||||
// Check if child of .submenu-expand is touched.
|
||||
} else if ( null != getCurrentParent( event.target, '.submenu-expand' ) &&
|
||||
getCurrentParent( event.target, '.submenu-expand' ).matches( '.submenu-expand' ) ) {
|
||||
openSubMenu( getCurrentParent( event.target, '.submenu-expand' ) );
|
||||
|
||||
// Check if .menu-item-link-return is touched.
|
||||
} else if ( event.target.matches('.menu-item-link-return') ) {
|
||||
closeSubMenu( event.target );
|
||||
|
||||
// Check if child of .menu-item-link-return is touched.
|
||||
} else if ( null != getCurrentParent( event.target, '.menu-item-link-return' ) && getCurrentParent( event.target, '.menu-item-link-return' ).matches( '.menu-item-link-return' ) ) {
|
||||
closeSubMenu( event.target );
|
||||
}
|
||||
|
||||
// Prevent default mouse/focus events.
|
||||
removeAllFocusStates();
|
||||
|
||||
}, false);
|
||||
|
||||
document.addEventListener('touchend', function(event) {
|
||||
|
||||
var mainNav = getCurrentParent( event.target, '.main-navigation' );
|
||||
|
||||
if ( null != mainNav && hasClass( mainNav, '.main-navigation' ) ) {
|
||||
// Prevent default mouse events.
|
||||
event.preventDefault();
|
||||
|
||||
} else if (
|
||||
event.target.matches('.submenu-expand') ||
|
||||
null != getCurrentParent( event.target, '.submenu-expand' ) &&
|
||||
getCurrentParent( event.target, '.submenu-expand' ).matches( '.submenu-expand' ) ||
|
||||
event.target.matches('.menu-item-link-return') ||
|
||||
null != getCurrentParent( event.target, '.menu-item-link-return' ) &&
|
||||
getCurrentParent( event.target, '.menu-item-link-return' ).matches( '.menu-item-link-return' ) ) {
|
||||
// Prevent default mouse events.
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
// Prevent default mouse/focus events.
|
||||
removeAllFocusStates();
|
||||
|
||||
}, false);
|
||||
|
||||
document.addEventListener('focus', function(event) {
|
||||
|
||||
if ( event.target.matches('.main-navigation > div > ul > li a') ) {
|
||||
|
||||
// Remove Focused elements in sibling div.
|
||||
var currentDiv = getCurrentParent( event.target, 'div', '.main-navigation' );
|
||||
var currentDivSibling = currentDiv.previousElementSibling === null ? currentDiv.nextElementSibling : currentDiv.previousElementSibling;
|
||||
var focusedElement = currentDivSibling.querySelector( '.is-focused' );
|
||||
var focusedClass = 'is-focused';
|
||||
var prevLi = getCurrentParent( event.target, '.main-navigation > div > ul > li', '.main-navigation' ).previousElementSibling;
|
||||
var nextLi = getCurrentParent( event.target, '.main-navigation > div > ul > li', '.main-navigation' ).nextElementSibling;
|
||||
|
||||
if ( null !== focusedElement && null !== hasClass( focusedElement, focusedClass ) ) {
|
||||
deleteClass( focusedElement, focusedClass );
|
||||
}
|
||||
|
||||
// Add .is-focused class to top-level li.
|
||||
if ( getCurrentParent( event.target, '.main-navigation > div > ul > li', '.main-navigation' ) ) {
|
||||
addClass( getCurrentParent( event.target, '.main-navigation > div > ul > li', '.main-navigation' ), focusedClass );
|
||||
}
|
||||
|
||||
// Check for previous li.
|
||||
if ( prevLi && hasClass( prevLi, focusedClass ) ) {
|
||||
deleteClass( prevLi, focusedClass );
|
||||
}
|
||||
|
||||
// Check for next li.
|
||||
if ( nextLi && hasClass( nextLi, focusedClass ) ) {
|
||||
deleteClass( nextLi, focusedClass );
|
||||
}
|
||||
}
|
||||
|
||||
}, true);
|
||||
|
||||
document.addEventListener('click', function(event) {
|
||||
|
||||
// Remove all focused menu states when clicking outside site branding.
|
||||
if ( event.target !== document.getElementsByClassName( 'site-branding' )[0] ) {
|
||||
removeAllFocusStates();
|
||||
} else {
|
||||
// Nothing.
|
||||
}
|
||||
|
||||
}, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Run our sub-menu function as soon as the document is `ready`.
|
||||
*/
|
||||
document.addEventListener( 'DOMContentLoaded', function() {
|
||||
toggleSubmenuDisplay();
|
||||
});
|
||||
|
||||
/**
|
||||
* Run our sub-menu function on selective refresh in the customizer.
|
||||
*/
|
||||
document.addEventListener( 'customize-preview-menu-refreshed', function( e, params ) {
|
||||
if ( 'menu-1' === params.wpNavMenuArgs.theme_location ) {
|
||||
toggleSubmenuDisplay();
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Run our sub-menu function every time the window resizes.
|
||||
*/
|
||||
var isResizing = false;
|
||||
window.addEventListener( 'resize', function() {
|
||||
isResizing = true;
|
||||
debounce( function() {
|
||||
if ( isResizing ) {
|
||||
return;
|
||||
}
|
||||
|
||||
toggleSubmenuDisplay();
|
||||
isResizing = false;
|
||||
|
||||
}, 150 );
|
||||
} );
|
||||
|
||||
})();
|
||||
4627
content/themes/twentynineteen/package-lock.json
generated
Normal file
4627
content/themes/twentynineteen/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
44
content/themes/twentynineteen/package.json
Normal file
44
content/themes/twentynineteen/package.json
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
"name": "twentynineteen",
|
||||
"version": "1.0.0",
|
||||
"description": "Default WP Theme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/WordPress/twentynineteen/issues"
|
||||
},
|
||||
"homepage": "https://github.com/WordPress/twentynineteen#readme",
|
||||
"devDependencies": {
|
||||
"@wordpress/browserslist-config": "^2.5.0",
|
||||
"autoprefixer": "^9.6.0",
|
||||
"chokidar-cli": "^2.0.0",
|
||||
"node-sass": "^4.12.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"postcss-cli": "^6.1.2",
|
||||
"postcss-focus-within": "^3.0.0",
|
||||
"rtlcss": "^2.4.0"
|
||||
},
|
||||
"rtlcssConfig": {
|
||||
"options": {
|
||||
"autoRename": false,
|
||||
"autoRenameStrict": false,
|
||||
"blacklist": {},
|
||||
"clean": true,
|
||||
"greedy": false,
|
||||
"processUrls": false,
|
||||
"stringMap": []
|
||||
},
|
||||
"plugins": [],
|
||||
"map": false
|
||||
},
|
||||
"browserslist": [
|
||||
"extends @wordpress/browserslist-config"
|
||||
],
|
||||
"scripts": {
|
||||
"build:style": "node-sass style.scss style.css --output-style expanded && postcss -r style.css",
|
||||
"build:style-editor": "node-sass style-editor.scss style-editor.css --output-style expanded && postcss -r style-editor.css",
|
||||
"build:style-editor-customizer": "node-sass style-editor-customizer.scss style-editor-customizer.css --output-style expanded && postcss -r style-editor-customizer.css",
|
||||
"build:rtl": "rtlcss style.css style-rtl.css",
|
||||
"build:print": "node-sass print.scss print.css --output-style expanded && postcss -r print.css",
|
||||
"build": "run-p \"build:*\"",
|
||||
"watch": "chokidar \"**/*.scss\" -c \"npm run build\" --initial"
|
||||
}
|
||||
}
|
||||
38
content/themes/twentynineteen/page.php
Normal file
38
content/themes/twentynineteen/page.php
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
/**
|
||||
* The template for displaying all single posts
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Nineteen
|
||||
* @since Twenty Nineteen 1.0
|
||||
*/
|
||||
|
||||
get_header();
|
||||
?>
|
||||
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main">
|
||||
|
||||
<?php
|
||||
|
||||
// Start the Loop.
|
||||
while ( have_posts() ) :
|
||||
the_post();
|
||||
|
||||
get_template_part( 'template-parts/content/content', 'page' );
|
||||
|
||||
// If comments are open or we have at least one comment, load up the comment template.
|
||||
if ( comments_open() || get_comments_number() ) {
|
||||
comments_template();
|
||||
}
|
||||
|
||||
endwhile; // End the loop.
|
||||
?>
|
||||
|
||||
</main><!-- #main -->
|
||||
</div><!-- #primary -->
|
||||
|
||||
<?php
|
||||
get_footer();
|
||||
13
content/themes/twentynineteen/postcss.config.js
Normal file
13
content/themes/twentynineteen/postcss.config.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
var postcssFocusWithin = require('postcss-focus-within');
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
autoprefixer: {}
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
plugins: [
|
||||
postcssFocusWithin(/* pluginOptions */)
|
||||
]
|
||||
};
|
||||
162
content/themes/twentynineteen/print.css
Normal file
162
content/themes/twentynineteen/print.css
Normal file
|
|
@ -0,0 +1,162 @@
|
|||
/*
|
||||
Theme Name: Twenty Nineteen
|
||||
|
||||
Adding print support. The print styles are based on the the great work of
|
||||
Andreas Hecht in https://www.jotform.com/blog/css-perfect-print-stylesheet-98272/.
|
||||
*/
|
||||
/*--------------------------------------------------------------
|
||||
>>> TABLE OF CONTENTS:
|
||||
----------------------------------------------------------------
|
||||
# Margins
|
||||
# Typography
|
||||
# Page breaks
|
||||
# Links
|
||||
# Visibility
|
||||
--------------------------------------------------------------*/
|
||||
@media print {
|
||||
/* Margins */
|
||||
@page {
|
||||
margin: 2cm;
|
||||
}
|
||||
.entry {
|
||||
margin-top: 1em;
|
||||
}
|
||||
.entry .entry-header, .site-footer .site-info {
|
||||
margin: 0;
|
||||
}
|
||||
/* Fonts */
|
||||
body {
|
||||
font: 13pt Georgia, "Times New Roman", Times, serif;
|
||||
line-height: 1.3;
|
||||
background: #fff !important;
|
||||
color: #000;
|
||||
}
|
||||
h1 {
|
||||
font-size: 24pt;
|
||||
}
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
.has-regular-font-size,
|
||||
.has-large-font-size,
|
||||
h2.author-title,
|
||||
p.author-bio,
|
||||
.comments-title, h3 {
|
||||
font-size: 14pt;
|
||||
margin-top: 25px;
|
||||
}
|
||||
/* Page breaks */
|
||||
a {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
blockquote {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
page-break-after: avoid;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
img {
|
||||
page-break-inside: avoid;
|
||||
page-break-after: avoid;
|
||||
}
|
||||
table, pre {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
ul, ol, dl {
|
||||
page-break-before: avoid;
|
||||
}
|
||||
/* Links */
|
||||
a:link, a:visited, a {
|
||||
background: transparent;
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
text-align: left;
|
||||
}
|
||||
a {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
a[href^=http]:after {
|
||||
content: " < " attr(href) "> ";
|
||||
}
|
||||
a:after > img {
|
||||
content: "";
|
||||
}
|
||||
article a[href^="#"]:after {
|
||||
content: "";
|
||||
}
|
||||
a:not(:local-link):after {
|
||||
content: " < " attr(href) "> ";
|
||||
}
|
||||
/* Visibility */
|
||||
.main-navigation,
|
||||
.site-title + .main-navigation,
|
||||
.social-navigation,
|
||||
.site-branding-container:before,
|
||||
.entry .entry-title:before,
|
||||
.entry-footer,
|
||||
.author-description:before,
|
||||
.post-navigation,
|
||||
.widget-area,
|
||||
.comment-form-flex,
|
||||
.comment-reply,
|
||||
.comment .comment-metadata .edit-link {
|
||||
display: none;
|
||||
}
|
||||
.entry .entry-content .wp-block-button .wp-block-button__link,
|
||||
.entry .entry-content .button {
|
||||
color: #000;
|
||||
background: none;
|
||||
}
|
||||
/* Site Header (With Featured Image) */
|
||||
.site-header.featured-image {
|
||||
min-height: 0;
|
||||
}
|
||||
.site-header.featured-image .main-navigation a,
|
||||
.site-header.featured-image .main-navigation a + svg,
|
||||
.site-header.featured-image .social-navigation a,
|
||||
.site-header.featured-image .site-title a,
|
||||
.site-header.featured-image .site-featured-image a,
|
||||
.site-header.featured-image .site-branding .site-title,
|
||||
.site-header.featured-image .site-branding .site-description,
|
||||
.site-header.featured-image .main-navigation a:after,
|
||||
.site-header.featured-image .main-navigation .main-menu > li.menu-item-has-children:after,
|
||||
.site-header.featured-image .main-navigation li,
|
||||
.site-header.featured-image .social-navigation li,
|
||||
.site-header.featured-image .entry-meta,
|
||||
.site-header.featured-image .entry-title,
|
||||
.site-header.featured-image#masthead .site-title a {
|
||||
color: #000;
|
||||
text-shadow: none;
|
||||
}
|
||||
.site-header.featured-image .site-featured-image .entry-header,
|
||||
.site-header.featured-image .site-branding-container {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.site-header.featured-image .site-featured-image .post-thumbnail img {
|
||||
position: relative;
|
||||
height: initial;
|
||||
width: initial;
|
||||
object-fit: none;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
max-width: 100%;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
/* Remove image filters from featured image */
|
||||
.image-filters-enabled *:after {
|
||||
display: none !important;
|
||||
}
|
||||
.image-filters-enabled .site-header.featured-image .site-featured-image:before {
|
||||
display: none;
|
||||
}
|
||||
.image-filters-enabled .site-header.featured-image .site-featured-image .post-thumbnail img {
|
||||
filter: none;
|
||||
}
|
||||
}
|
||||
198
content/themes/twentynineteen/print.scss
Normal file
198
content/themes/twentynineteen/print.scss
Normal file
|
|
@ -0,0 +1,198 @@
|
|||
/*
|
||||
Theme Name: Twenty Nineteen
|
||||
|
||||
Adding print support. The print styles are based on the the great work of
|
||||
Andreas Hecht in https://www.jotform.com/blog/css-perfect-print-stylesheet-98272/.
|
||||
*/
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
>>> TABLE OF CONTENTS:
|
||||
----------------------------------------------------------------
|
||||
# Margins
|
||||
# Typography
|
||||
# Page breaks
|
||||
# Links
|
||||
# Visibility
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
@media print {
|
||||
|
||||
/* Margins */
|
||||
|
||||
@page {
|
||||
margin: 2cm;
|
||||
}
|
||||
|
||||
.entry {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
.entry .entry-header, .site-footer .site-info {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Fonts */
|
||||
|
||||
body {
|
||||
font: 13pt Georgia, "Times New Roman", Times, serif;
|
||||
line-height: 1.3;
|
||||
background: #fff !important;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 24pt;
|
||||
}
|
||||
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
.has-regular-font-size,
|
||||
.has-large-font-size,
|
||||
h2.author-title,
|
||||
p.author-bio,
|
||||
.comments-title, h3 {
|
||||
font-size: 14pt;
|
||||
margin-top: 25px;
|
||||
}
|
||||
|
||||
/* Page breaks */
|
||||
|
||||
a {
|
||||
page-break-inside: avoid
|
||||
}
|
||||
|
||||
blockquote {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
page-break-after: avoid;
|
||||
page-break-inside: avoid
|
||||
}
|
||||
|
||||
img {
|
||||
page-break-inside: avoid;
|
||||
page-break-after: avoid;
|
||||
}
|
||||
|
||||
table, pre {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
ul, ol, dl {
|
||||
page-break-before: avoid;
|
||||
}
|
||||
|
||||
/* Links */
|
||||
|
||||
a:link, a:visited, a {
|
||||
background: transparent;
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
a {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
a[href^=http]:after {
|
||||
content: " < " attr(href) "> ";
|
||||
}
|
||||
|
||||
a:after > img {
|
||||
content: "";
|
||||
}
|
||||
|
||||
article a[href^="#"]:after {
|
||||
content: "";
|
||||
}
|
||||
|
||||
a:not(:local-link):after {
|
||||
content: " < " attr(href) "> ";
|
||||
}
|
||||
|
||||
/* Visibility */
|
||||
.main-navigation,
|
||||
.site-title + .main-navigation,
|
||||
.social-navigation,
|
||||
.site-branding-container:before,
|
||||
.entry .entry-title:before,
|
||||
.entry-footer,
|
||||
.author-description:before,
|
||||
.post-navigation,
|
||||
.widget-area,
|
||||
.comment-form-flex,
|
||||
.comment-reply,
|
||||
.comment .comment-metadata .edit-link {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.entry .entry-content .wp-block-button .wp-block-button__link,
|
||||
.entry .entry-content .button {
|
||||
color: #000;
|
||||
background: none;
|
||||
}
|
||||
|
||||
/* Site Header (With Featured Image) */
|
||||
.site-header.featured-image {
|
||||
min-height: 0;
|
||||
|
||||
.main-navigation a,
|
||||
.main-navigation a + svg,
|
||||
.social-navigation a,
|
||||
.site-title a,
|
||||
.site-featured-image a,
|
||||
.site-branding .site-title,
|
||||
.site-branding .site-description,
|
||||
.main-navigation a:after,
|
||||
.main-navigation .main-menu > li.menu-item-has-children:after,
|
||||
.main-navigation li,
|
||||
.social-navigation li,
|
||||
.entry-meta,
|
||||
.entry-title,
|
||||
&#masthead .site-title a {
|
||||
color: #000;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.site-featured-image .entry-header,
|
||||
.site-branding-container {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.site-featured-image .post-thumbnail img {
|
||||
position: relative;
|
||||
height: initial;
|
||||
width: initial;
|
||||
object-fit: none;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
max-width: 100%;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Remove image filters from featured image */
|
||||
.image-filters-enabled {
|
||||
|
||||
*:after {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.site-header.featured-image .site-featured-image:before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.site-header.featured-image .site-featured-image .post-thumbnail img {
|
||||
filter: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
74
content/themes/twentynineteen/readme.txt
Normal file
74
content/themes/twentynineteen/readme.txt
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
=== Twenty Nineteen ===
|
||||
Contributors: wordpressdotorg
|
||||
Tags: one-column, flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, rtl-language-support, sticky-post, threaded-comments, translation-ready
|
||||
Requires at least: 4.9.6
|
||||
Tested up to: 5.0
|
||||
Stable tag: 1.5
|
||||
License: GPLv2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
Our 2019 default theme is designed to show off the power of the block editor.
|
||||
|
||||
== Description ==
|
||||
Our 2019 default theme is designed to show off the power of the block editor. It features custom styles for all the default blocks, and is built so that what you see in the editor looks like what you'll see on your website. Twenty Nineteen is designed to be adaptable to a wide range of websites, whether you’re running a photo blog, launching a new business, or supporting a non-profit. Featuring ample whitespace and modern sans-serif headlines paired with classic serif body text, it's built to be beautiful on all screen sizes.
|
||||
|
||||
For more information about Twenty Nineteen please go to https://wordpress.org/support/article/twenty-nineteen/.
|
||||
|
||||
== Installation ==
|
||||
|
||||
1. In your admin panel, go to Appearance -> Themes and click the 'Add New' button.
|
||||
2. Type in Twenty Nineteen in the search form and press the 'Enter' key on your keyboard.
|
||||
3. Click on the 'Activate' button to use your new theme right away.
|
||||
4. Go to https://wordpress.org/support/article/twenty-nineteen/ for a guide on how to customize this theme.
|
||||
5. Navigate to Appearance > Customize in your admin panel and customize to taste.
|
||||
|
||||
== Copyright ==
|
||||
|
||||
Twenty Nineteen WordPress Theme, Copyright 2018-2020 WordPress.org
|
||||
Twenty Nineteen is distributed under the terms of the GNU GPL
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 1.5 =
|
||||
* Released: March 31, 2020
|
||||
|
||||
https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_1.5
|
||||
|
||||
= 1.4 =
|
||||
* Released: May 7, 2019
|
||||
|
||||
https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_1.4
|
||||
|
||||
= 1.3 =
|
||||
* Released: February 21, 2019
|
||||
|
||||
https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_1.3
|
||||
|
||||
= 1.2 =
|
||||
* Released: January 9, 2019
|
||||
|
||||
https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_1.2
|
||||
|
||||
= 1.1 =
|
||||
* Released: December 19, 2018
|
||||
|
||||
https://codex.wordpress.org/Twenty_Nineteen_Theme_Changelog#Version_1.1
|
||||
|
||||
= 1.0 =
|
||||
* Released: December 6, 2018
|
||||
|
||||
Initial release
|
||||
|
||||
== Resources ==
|
||||
* normalize.css, © 2012-2018 Nicolas Gallagher and Jonathan Neal, MIT
|
||||
* Underscores, © 2012-2019 Automattic, Inc., GNU GPL v2 or later
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue