]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Added OpenGraph support for public articles
authorNicolas Lœuillet <nicolas@loeuillet.org>
Fri, 7 Oct 2016 07:05:18 +0000 (09:05 +0200)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Fri, 7 Oct 2016 07:05:18 +0000 (09:05 +0200)
Fix #2289

12 files changed:
src/Wallabag/CoreBundle/Resources/translations/messages.da.yml
src/Wallabag/CoreBundle/Resources/translations/messages.de.yml
src/Wallabag/CoreBundle/Resources/translations/messages.en.yml
src/Wallabag/CoreBundle/Resources/translations/messages.es.yml
src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml
src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml
src/Wallabag/CoreBundle/Resources/translations/messages.it.yml
src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml
src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml
src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml
src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml
src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig

index 40644ff5f0062da2fce0d50b28cfe718ea4a8974..15d0c025df79b0d18e97543becefa03b22bc25a5 100644 (file)
@@ -208,6 +208,8 @@ entry:
         url_label: 'Url'
         # is_public_label: 'Public'
         save_label: 'Gem'
+    # public:
+        # shared_by_wallabag: "This article has been shared by <a href='https://www.wallabag.org'>wallabag</a>"
 
 about:
     page_title: 'Om'
index 130ab2cdd40e66fecbea308f2bd9dd3c2b8dc571..4db49b2fde8e209610a909f104bd1ab854e6d5d8 100644 (file)
@@ -208,6 +208,8 @@ entry:
         url_label: 'URL'
         is_public_label: 'Öffentlich'
         save_label: 'Speichern'
+    # public:
+        # shared_by_wallabag: "This article has been shared by <a href='https://www.wallabag.org'>wallabag</a>"
 
 about:
     page_title: 'Über'
index 91abe16238735b535d3e9eae4e7a4cc6ca2640c0..cf3aedae34e57fddbf6e372d3a2fa3911be10061 100644 (file)
@@ -208,6 +208,8 @@ entry:
         url_label: 'Url'
         is_public_label: 'Public'
         save_label: 'Save'
+    public:
+        shared_by_wallabag: "This article has been shared by <a href='https://www.wallabag.org'>wallabag</a>"
 
 about:
     page_title: 'About'
index 25d2f3a25c6d1aeb8dc0efcda59d65dc072bc9f9..0b8fe3982851a021f7670737efcfe2e54dffb67f 100644 (file)
@@ -208,6 +208,8 @@ entry:
         url_label: 'Url'
         is_public_label: 'Es Público'
         save_label: 'Guardar'
+    # public:
+        # shared_by_wallabag: "This article has been shared by <a href='https://www.wallabag.org'>wallabag</a>"
 
 about:
     page_title: 'Acerca de'
index b02ffea02fe1431397eeee328b1a93fbcf336ab2..fcdd29bb751638e77049984c8105d0cbc203c9b5 100644 (file)
@@ -208,6 +208,8 @@ entry:
         url_label: 'نشانی'
         is_public_label: 'عمومی'
         save_label: 'ذخیره'
+    # public:
+        # shared_by_wallabag: "This article has been shared by <a href='https://www.wallabag.org'>wallabag</a>"
 
 about:
     page_title: 'درباره'
index 598205b028129e26c2fc94551c5c49fa556dc088..26f5a3386bb1a4fe95a95515a55f0d90209e8fa9 100644 (file)
@@ -208,6 +208,8 @@ entry:
         url_label: 'Url'
         is_public_label: 'Public'
         save_label: 'Enregistrer'
+    public:
+        shared_by_wallabag: "Cet article a été partagé par <a href='https://www.wallabag.org'>wallabag</a>"
 
 about:
     page_title: 'À propos'
index c58c929f78f31cfddac4aeac1cd65722866ff1ca..6cc98b9013c3f110153f3567aa637a2d785da35b 100644 (file)
@@ -208,6 +208,8 @@ entry:
         url_label: 'Url'
         is_public_label: 'Pubblico'
         save_label: 'Salva'
+    # public:
+        # shared_by_wallabag: "This article has been shared by <a href='https://www.wallabag.org'>wallabag</a>"
 
 about:
     page_title: 'About'
index 8f06434dba9b3716f1e168cc2d0dc99aa6c54aaa..4ef1be384a5be894d66d4843e58cf84b0db46ab4 100644 (file)
@@ -208,6 +208,8 @@ entry:
         url_label: 'Url'
         is_public_label: 'Public'
         save_label: 'Enregistrar'
+    # public:
+        # shared_by_wallabag: "This article has been shared by <a href='https://www.wallabag.org'>wallabag</a>"
 
 about:
     page_title: 'A prepaus'
index 7f28e648d9c6be8571ef1f77b06f3b9ddb04345e..46cb1c12ffb8adb2232b27263bc45900f012fddb 100644 (file)
@@ -208,6 +208,8 @@ entry:
         url_label: 'Adres URL'
         is_public_label: 'Publiczny'
         save_label: 'Zapisz'
+    # public:
+        # shared_by_wallabag: "This article has been shared by <a href='https://www.wallabag.org'>wallabag</a>"
 
 about:
     page_title: 'O nas'
@@ -284,7 +286,7 @@ quickstart:
          import: 'Skonfigurować import'
     first_steps:
         title: 'Pierwsze kroki'
-        description: "Teraz wallabag jest poprawnie skonfigurowany, więc czas zarchiwizować Internet. Klinknij w prawym górnym rogu na znak +, aby dodać link" 
+        description: "Teraz wallabag jest poprawnie skonfigurowany, więc czas zarchiwizować Internet. Klinknij w prawym górnym rogu na znak +, aby dodać link"
         new_article: 'Zapisz swój pierwszy artukuł'
         unread_articles: 'I sklasyfikuj go!'
     migrate:
index 4e0e454c18e6175cb5b904441d6e4a773043ae81..8b5179b0f994eb5cc9b9401378ff79a572f8e970 100644 (file)
@@ -208,6 +208,8 @@ entry:
         url_label: 'Url'
         # is_public_label: 'Public'
         save_label: 'Salvează'
+    # public:
+        # shared_by_wallabag: "This article has been shared by <a href='https://www.wallabag.org'>wallabag</a>"
 
 about:
     page_title: 'Despre'
index 02b3aae62fc25e7aecc3b0c67954c64c1540b994..5e49c9213ed849b4b198d560e1bc2b56d5cfc202 100644 (file)
@@ -207,6 +207,8 @@ entry:
         url_label: 'Url'
         is_public_label: 'Herkes tarafından erişime açık olsun mu?'
         save_label: 'Kaydet'
+    # public:
+        # shared_by_wallabag: "This article has been shared by <a href='https://www.wallabag.org'>wallabag</a>"
 
 about:
     page_title: 'Hakkımızda'
index b82b3d3d86c7f75e64fcd264210ca29173c3a81a..bf44ced76dbe9a654ff219c0f6c090b2fb02b4d4 100644 (file)
                 width: 600px;
             }
         </style>
+        <meta property="og:title" content="{{ entry.title | raw }}" />
+        <meta property="og:type" content="article" />
+        <meta property="og:url" content="{{ app.request.uri }}" />
+        {% if entry.previewPicture is not null %}
+        <meta property="og:image" content="{{ entry.previewPicture }}" />
+        {% endif %}
     </head>
     <body>
         <header>
             <h1>{{ entry.title | raw }}</h1>
-            <span><a href="{{ entry.url|e }}" target="_blank" title="{{ 'entry.view.original_article'|trans }} : {{ entry.title|e }}" class="tool">{{ entry.domainName|removeWww }}</a></span>
+            <div><a href="{{ entry.url|e }}" target="_blank" title="{{ 'entry.view.original_article'|trans }} : {{ entry.title|e }}" class="tool">{{ entry.domainName|removeWww }}</a></div>
+            <div>{{ "entry.public.shared_by_wallabag"|trans|raw }}</div>
         </header>
         <article>
             {{ entry.content | raw }}