Version Description
- Added: New field in the customizer to choose your social icons position: before, after or before and after.
- Added: Spanish language, thank you to Angel Julian Mena.
- Deleted: Admin notice if OceanWP is not the theme used.
Download this release
Release Info
Developer | oceanwp |
Plugin | Ocean Social Sharing |
Version | 1.0.8 |
Comparing to | |
See all releases |
Code changes from version 1.0.7 to 1.0.8
- README.md +2 -2
- assets/css/style.css +6 -0
- assets/css/style.min.css +1 -1
- assets/css/style.scss +7 -0
- languages/ocean-social-sharing-es_ES.mo +0 -0
- languages/ocean-social-sharing-es_ES.po +87 -0
- ocean-social-sharing.php +68 -19
- readme.txt +8 -3
README.md
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
|
3 |
**Contributors:** Nick
|
4 |
**Requires at least:** WordPress 4.4
|
5 |
-
**Tested up to:** WordPress 4.9
|
6 |
-
**Stable tag:** 1.0.
|
7 |
**License:** GPLv2 or later
|
8 |
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
2 |
|
3 |
**Contributors:** Nick
|
4 |
**Requires at least:** WordPress 4.4
|
5 |
+
**Tested up to:** WordPress 4.9.1
|
6 |
+
**Stable tag:** 1.0.8
|
7 |
**License:** GPLv2 or later
|
8 |
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
assets/css/style.css
CHANGED
@@ -279,6 +279,12 @@
|
|
279 |
padding-top: 30px;
|
280 |
border-top: 1px solid #f1f1f1; }
|
281 |
|
|
|
|
|
|
|
|
|
|
|
|
|
282 |
/*------------------------------------*
|
283 |
Phone Landscape
|
284 |
*------------------------------------*/
|
279 |
padding-top: 30px;
|
280 |
border-top: 1px solid #f1f1f1; }
|
281 |
|
282 |
+
.single .entry-share-wrap .entry-share {
|
283 |
+
margin-top: 0;
|
284 |
+
margin-bottom: 30px;
|
285 |
+
padding-bottom: 30px;
|
286 |
+
border-bottom: 1px solid #f1f1f1; }
|
287 |
+
|
288 |
/*------------------------------------*
|
289 |
Phone Landscape
|
290 |
*------------------------------------*/
|
assets/css/style.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.entry-share ul{margin:0;padding:0;list-style:none}.entry-share ul li{margin-right:8px}.entry-share ul li:last-child{margin-right:0}.entry-share ul li a{display:-webkit-inline-flex;display:-ms-inline-flex;display:inline-flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;position:relative;width:40px;height:40px;line-height:1;border-radius:30px;overflow:hidden}.entry-share ul li a .oss-icon{fill:#fff;width:16px;height:16px;-webkit-transition:all 0.3s ease;-moz-transition:all 0.3s ease;-ms-transition:all 0.3s ease;-o-transition:all 0.3s ease;transition:all 0.3s ease}.entry-share.side ul{float:right}.entry-share.side ul li{float:left}.entry-share.top ul{text-align:center}.entry-share.top ul li{display:inline-block}.entry-share.minimal ul li a{border:1px solid #e9e9e9}.entry-share.minimal ul li a .oss-icon{fill:#bbb}.entry-share.minimal ul li.twitter a:hover{color:#00aced;border-color:#00aced}.entry-share.minimal ul li.twitter a:hover .oss-icon{fill:#00aced}.entry-share.minimal ul li.facebook a:hover{color:#3b5998;border-color:#3b5998}.entry-share.minimal ul li.facebook a:hover .oss-icon{fill:#3b5998}.entry-share.minimal ul li.googleplus a:hover{color:#dd4b39;border-color:#dd4b39}.entry-share.minimal ul li.googleplus a:hover .oss-icon{fill:#dd4b39}.entry-share.minimal ul li.linkedin a:hover{color:#3399CC;border-color:#3399CC}.entry-share.minimal ul li.linkedin a:hover .oss-icon{fill:#3399CC}.entry-share.minimal ul li.pinterest a:hover{color:#cb2027;border-color:#cb2027}.entry-share.minimal ul li.pinterest a:hover .oss-icon{fill:#cb2027}.entry-share.minimal ul li.viber a:hover{color:#9d62cc;border-color:#9d62cc}.entry-share.minimal ul li.viber a:hover .oss-icon{fill:#9d62cc}.entry-share.minimal ul li.vk a:hover{color:#3673be;border-color:#3673be}.entry-share.minimal ul li.vk a:hover .oss-icon{fill:#3673be}.entry-share.minimal ul li.reddit a:hover{color:#ff5c1f;border-color:#ff5c1f}.entry-share.minimal ul li.reddit a:hover .oss-icon{fill:#ff5c1f}.entry-share.minimal ul li.tumblr a:hover{color:#35465c;border-color:#35465c}.entry-share.minimal ul li.tumblr a:hover .oss-icon{fill:#35465c}.entry-share.minimal ul li.viadeo a:hover{color:#ff7452;border-color:#ff7452}.entry-share.minimal ul li.viadeo a:hover .oss-icon{fill:#ff7452}.entry-share.colored ul li a{color:#fff}.entry-share.colored ul li a:hover{-moz-opacity:.8;-webkit-opacity:.8;opacity:.8}.entry-share.colored ul li a .oss-icon{fill:#fff}.entry-share.colored ul li.twitter a{background-color:#00aced}.entry-share.colored ul li.facebook a{background-color:#3b5998}.entry-share.colored ul li.googleplus a{background-color:#dd4b39}.entry-share.colored ul li.linkedin a{background-color:#3399CC}.entry-share.colored ul li.pinterest a{background-color:#cb2027}.entry-share.colored ul li.viber a{background-color:#9d62cc}.entry-share.colored ul li.vk a{background-color:#3673be}.entry-share.colored ul li.reddit a{background-color:#ff5c1f}.entry-share.colored ul li.tumblr a{background-color:#35465c}.entry-share.colored ul li.viadeo a{background-color:#ff7452}.entry-share.dark ul li a{background-color:#222;color:#fff}.entry-share.dark ul li a:hover{-moz-opacity:.8;-webkit-opacity:.8;opacity:.8}.entry-share.dark ul li a .oss-icon{fill:#fff}.entry-share.dark.has-name .oss-icon-wrap{background-color:rgba(255,255,255,0.08)}.entry-share .theme-heading{margin:0;padding:0}.entry-share .theme-heading .text:before,.entry-share .theme-heading .text:after{display:none !important}.entry-share.side .theme-heading{float:left;line-height:40px}.entry-share.top .theme-heading{display:block;margin-bottom:10px;line-height:1.6;text-align:center}.entry-share.has-name.side .theme-heading{margin:6px 0}.entry-share.has-name ul{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-justify-content:space-between;-ms-flex-pack:space-between;justify-content:space-between}.entry-share.has-name ul li{margin:6px;-webkit-box-flex:1;-moz-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.entry-share.has-name ul li a{min-width:144px;width:100%}.entry-share.has-name .oss-icon-wrap{display:block;position:absolute;top:0;bottom:0;left:0;display:-webkit-inline-flex;display:-ms-inline-flex;display:inline-flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;background-color:rgba(0,0,0,0.08);padding:0 12px;-webkit-transition:all 0.3s ease;-moz-transition:all 0.3s ease;-ms-transition:all 0.3s ease;-o-transition:all 0.3s ease;transition:all 0.3s ease}.entry-share.has-name .oss-name{display:block;width:100%;padding:0 10px 0 50px;font-size:15px;font-weight:500;text-align:center}.entry-share.has-name.minimal li a:hover .oss-icon{fill:#fff !important}.entry-share.has-name.minimal li.twitter a:hover .oss-icon-wrap{background-color:#00aced}.entry-share.has-name.minimal li.facebook a:hover .oss-icon-wrap{background-color:#3b5998}.entry-share.has-name.minimal li.googleplus a:hover .oss-icon-wrap{background-color:#dd4b39}.entry-share.has-name.minimal li.linkedin a:hover .oss-icon-wrap{background-color:#3399CC}.entry-share.has-name.minimal li.pinterest a:hover .oss-icon-wrap{background-color:#cb2027}.entry-share.has-name.minimal li.viber a:hover .oss-icon-wrap{background-color:#9d62cc}.entry-share.has-name.minimal li.vk a:hover .oss-icon-wrap{background-color:#3673be}.entry-share.has-name.minimal li.reddit a:hover .oss-icon-wrap{background-color:#ff5c1f}.entry-share.has-name.minimal li.tumblr a:hover .oss-icon-wrap{background-color:#35465c}.entry-share.has-name.minimal li.viadeo a:hover .oss-icon-wrap{background-color:#ff7452}.entry-share.no-heading ul{float:none}.entry-share .oss-name{display:none}.single .entry-share{margin-top:30px;padding-top:30px;border-top:1px solid #f1f1f1}@media only screen and (max-width: 480px){.entry-share.side .theme-heading{float:none;margin:0 0 20px;line-height:1;text-align:center}.entry-share.side ul{float:none;text-align:center}.entry-share.side ul li{float:none;display:inline-block}}
|
1 |
+
.entry-share ul{margin:0;padding:0;list-style:none}.entry-share ul li{margin-right:8px}.entry-share ul li:last-child{margin-right:0}.entry-share ul li a{display:-webkit-inline-flex;display:-ms-inline-flex;display:inline-flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;position:relative;width:40px;height:40px;line-height:1;border-radius:30px;overflow:hidden}.entry-share ul li a .oss-icon{fill:#fff;width:16px;height:16px;-webkit-transition:all 0.3s ease;-moz-transition:all 0.3s ease;-ms-transition:all 0.3s ease;-o-transition:all 0.3s ease;transition:all 0.3s ease}.entry-share.side ul{float:right}.entry-share.side ul li{float:left}.entry-share.top ul{text-align:center}.entry-share.top ul li{display:inline-block}.entry-share.minimal ul li a{border:1px solid #e9e9e9}.entry-share.minimal ul li a .oss-icon{fill:#bbb}.entry-share.minimal ul li.twitter a:hover{color:#00aced;border-color:#00aced}.entry-share.minimal ul li.twitter a:hover .oss-icon{fill:#00aced}.entry-share.minimal ul li.facebook a:hover{color:#3b5998;border-color:#3b5998}.entry-share.minimal ul li.facebook a:hover .oss-icon{fill:#3b5998}.entry-share.minimal ul li.googleplus a:hover{color:#dd4b39;border-color:#dd4b39}.entry-share.minimal ul li.googleplus a:hover .oss-icon{fill:#dd4b39}.entry-share.minimal ul li.linkedin a:hover{color:#3399CC;border-color:#3399CC}.entry-share.minimal ul li.linkedin a:hover .oss-icon{fill:#3399CC}.entry-share.minimal ul li.pinterest a:hover{color:#cb2027;border-color:#cb2027}.entry-share.minimal ul li.pinterest a:hover .oss-icon{fill:#cb2027}.entry-share.minimal ul li.viber a:hover{color:#9d62cc;border-color:#9d62cc}.entry-share.minimal ul li.viber a:hover .oss-icon{fill:#9d62cc}.entry-share.minimal ul li.vk a:hover{color:#3673be;border-color:#3673be}.entry-share.minimal ul li.vk a:hover .oss-icon{fill:#3673be}.entry-share.minimal ul li.reddit a:hover{color:#ff5c1f;border-color:#ff5c1f}.entry-share.minimal ul li.reddit a:hover .oss-icon{fill:#ff5c1f}.entry-share.minimal ul li.tumblr a:hover{color:#35465c;border-color:#35465c}.entry-share.minimal ul li.tumblr a:hover .oss-icon{fill:#35465c}.entry-share.minimal ul li.viadeo a:hover{color:#ff7452;border-color:#ff7452}.entry-share.minimal ul li.viadeo a:hover .oss-icon{fill:#ff7452}.entry-share.colored ul li a{color:#fff}.entry-share.colored ul li a:hover{-moz-opacity:.8;-webkit-opacity:.8;opacity:.8}.entry-share.colored ul li a .oss-icon{fill:#fff}.entry-share.colored ul li.twitter a{background-color:#00aced}.entry-share.colored ul li.facebook a{background-color:#3b5998}.entry-share.colored ul li.googleplus a{background-color:#dd4b39}.entry-share.colored ul li.linkedin a{background-color:#3399CC}.entry-share.colored ul li.pinterest a{background-color:#cb2027}.entry-share.colored ul li.viber a{background-color:#9d62cc}.entry-share.colored ul li.vk a{background-color:#3673be}.entry-share.colored ul li.reddit a{background-color:#ff5c1f}.entry-share.colored ul li.tumblr a{background-color:#35465c}.entry-share.colored ul li.viadeo a{background-color:#ff7452}.entry-share.dark ul li a{background-color:#222;color:#fff}.entry-share.dark ul li a:hover{-moz-opacity:.8;-webkit-opacity:.8;opacity:.8}.entry-share.dark ul li a .oss-icon{fill:#fff}.entry-share.dark.has-name .oss-icon-wrap{background-color:rgba(255,255,255,0.08)}.entry-share .theme-heading{margin:0;padding:0}.entry-share .theme-heading .text:before,.entry-share .theme-heading .text:after{display:none !important}.entry-share.side .theme-heading{float:left;line-height:40px}.entry-share.top .theme-heading{display:block;margin-bottom:10px;line-height:1.6;text-align:center}.entry-share.has-name.side .theme-heading{margin:6px 0}.entry-share.has-name ul{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-justify-content:space-between;-ms-flex-pack:space-between;justify-content:space-between}.entry-share.has-name ul li{margin:6px;-webkit-box-flex:1;-moz-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.entry-share.has-name ul li a{min-width:144px;width:100%}.entry-share.has-name .oss-icon-wrap{display:block;position:absolute;top:0;bottom:0;left:0;display:-webkit-inline-flex;display:-ms-inline-flex;display:inline-flex;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;background-color:rgba(0,0,0,0.08);padding:0 12px;-webkit-transition:all 0.3s ease;-moz-transition:all 0.3s ease;-ms-transition:all 0.3s ease;-o-transition:all 0.3s ease;transition:all 0.3s ease}.entry-share.has-name .oss-name{display:block;width:100%;padding:0 10px 0 50px;font-size:15px;font-weight:500;text-align:center}.entry-share.has-name.minimal li a:hover .oss-icon{fill:#fff !important}.entry-share.has-name.minimal li.twitter a:hover .oss-icon-wrap{background-color:#00aced}.entry-share.has-name.minimal li.facebook a:hover .oss-icon-wrap{background-color:#3b5998}.entry-share.has-name.minimal li.googleplus a:hover .oss-icon-wrap{background-color:#dd4b39}.entry-share.has-name.minimal li.linkedin a:hover .oss-icon-wrap{background-color:#3399CC}.entry-share.has-name.minimal li.pinterest a:hover .oss-icon-wrap{background-color:#cb2027}.entry-share.has-name.minimal li.viber a:hover .oss-icon-wrap{background-color:#9d62cc}.entry-share.has-name.minimal li.vk a:hover .oss-icon-wrap{background-color:#3673be}.entry-share.has-name.minimal li.reddit a:hover .oss-icon-wrap{background-color:#ff5c1f}.entry-share.has-name.minimal li.tumblr a:hover .oss-icon-wrap{background-color:#35465c}.entry-share.has-name.minimal li.viadeo a:hover .oss-icon-wrap{background-color:#ff7452}.entry-share.no-heading ul{float:none}.entry-share .oss-name{display:none}.single .entry-share{margin-top:30px;padding-top:30px;border-top:1px solid #f1f1f1}.single .entry-share-wrap .entry-share{margin-top:0;margin-bottom:30px;padding-bottom:30px;border-bottom:1px solid #f1f1f1}@media only screen and (max-width: 480px){.entry-share.side .theme-heading{float:none;margin:0 0 20px;line-height:1;text-align:center}.entry-share.side ul{float:none;text-align:center}.entry-share.side ul li{float:none;display:inline-block}}
|
assets/css/style.scss
CHANGED
@@ -426,6 +426,13 @@
|
|
426 |
border-top: 1px solid #f1f1f1;
|
427 |
}
|
428 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
429 |
/*------------------------------------*
|
430 |
Phone Landscape
|
431 |
*------------------------------------*/
|
426 |
border-top: 1px solid #f1f1f1;
|
427 |
}
|
428 |
|
429 |
+
.single .entry-share-wrap .entry-share {
|
430 |
+
margin-top: 0;
|
431 |
+
margin-bottom: 30px;
|
432 |
+
padding-bottom: 30px;
|
433 |
+
border-bottom: 1px solid #f1f1f1;
|
434 |
+
}
|
435 |
+
|
436 |
/*------------------------------------*
|
437 |
Phone Landscape
|
438 |
*------------------------------------*/
|
languages/ocean-social-sharing-es_ES.mo
ADDED
Binary file
|
languages/ocean-social-sharing-es_ES.po
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Ocean Social Sharing\n"
|
4 |
+
"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/style\n"
|
5 |
+
"POT-Creation-Date: 2016-10-10 21:19:12+00:00\n"
|
6 |
+
"MIME-Version: 1.0\n"
|
7 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
+
"Content-Transfer-Encoding: 8bit\n"
|
9 |
+
"PO-Revision-Date: 2017-10-27 10:46+0000\n"
|
10 |
+
"Last-Translator: sabiertas <angel@solucionesabiertas.es>\n"
|
11 |
+
"Language-Team: Spanish (Spain)\n"
|
12 |
+
"X-Generator: Loco - https://localise.biz/\n"
|
13 |
+
"Plural-Forms: nplurals=2; plural=n != 1\n"
|
14 |
+
"X-Poedit-Basepath: ..\n"
|
15 |
+
"X-Poedit-Language: English\n"
|
16 |
+
"X-Poedit-Country: UNITED STATES\n"
|
17 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
18 |
+
"X-Poedit-SearchPath-0: .\n"
|
19 |
+
"X-Poedit-KeywordsList: _esc_attr__;esc_attr_x;esc_attr_e;esc_html__;"
|
20 |
+
"esc_html_e;esc_html_x;__;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
|
21 |
+
"_n_noop:1,2;_c;_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
|
22 |
+
"X-Textdomain-Support: yes\n"
|
23 |
+
"Language: es-ES"
|
24 |
+
|
25 |
+
#: ocean-social-sharing.php:132 ocean-social-sharing.php:141
|
26 |
+
msgid "Cheatin’ huh?"
|
27 |
+
msgstr "¿Haciendo trampas?"
|
28 |
+
|
29 |
+
#: ocean-social-sharing.php:195
|
30 |
+
msgid "Ocean Social Sharing requires that you use ocean as your parent theme."
|
31 |
+
msgstr "Ocean Social Sharing necesita que OceanWP sea el tema padre."
|
32 |
+
|
33 |
+
#: ocean-social-sharing.php:195
|
34 |
+
msgid "Install Ocean Now"
|
35 |
+
msgstr "Instalar OceanWP ahora"
|
36 |
+
|
37 |
+
#: ocean-social-sharing.php:209
|
38 |
+
msgid "Social Sharing"
|
39 |
+
msgstr "Compartir en redes sociales"
|
40 |
+
|
41 |
+
#: ocean-social-sharing.php:222
|
42 |
+
msgid "Sharing Buttons"
|
43 |
+
msgstr "Botones de compartir"
|
44 |
+
|
45 |
+
#: ocean-social-sharing.php:239 template/social-share.php:28
|
46 |
+
msgid "Please Share This"
|
47 |
+
msgstr "Por favor comparte esto"
|
48 |
+
|
49 |
+
#: ocean-social-sharing.php:245
|
50 |
+
msgid "Heading on Posts"
|
51 |
+
msgstr "Cabecera en las entradas"
|
52 |
+
|
53 |
+
#: ocean-social-sharing.php:261
|
54 |
+
msgid "Twitter Handle"
|
55 |
+
msgstr "Manejar twitter"
|
56 |
+
|
57 |
+
#: ocean-social-sharing.php:278
|
58 |
+
msgid "Links Borders Color"
|
59 |
+
msgstr "Color del borde de los iconos"
|
60 |
+
|
61 |
+
#: ocean-social-sharing.php:294
|
62 |
+
msgid "Icons Background Color"
|
63 |
+
msgstr "Color de fondo de los iconos"
|
64 |
+
|
65 |
+
#: ocean-social-sharing.php:310
|
66 |
+
msgid "Icons Color"
|
67 |
+
msgstr "Color de los iconos"
|
68 |
+
|
69 |
+
#: template/social-share.php:66
|
70 |
+
msgid "Share on Twitter"
|
71 |
+
msgstr "Compartir en twiter"
|
72 |
+
|
73 |
+
#: template/social-share.php:76
|
74 |
+
msgid "Share on Facebook"
|
75 |
+
msgstr "Compartir en Facebook"
|
76 |
+
|
77 |
+
#: template/social-share.php:86
|
78 |
+
msgid "Share on Google+"
|
79 |
+
msgstr "Compartir en Google+"
|
80 |
+
|
81 |
+
#: template/social-share.php:96
|
82 |
+
msgid "Share on Pinterest"
|
83 |
+
msgstr "Compartir en Pinterest"
|
84 |
+
|
85 |
+
#: template/social-share.php:106
|
86 |
+
msgid "Share on LinkedIn"
|
87 |
+
msgstr "Compartir en linkedin"
|
ocean-social-sharing.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Plugin Name: Ocean Social Sharing
|
4 |
* Plugin URI: https://oceanwp.org/extension/ocean-social-sharing/
|
5 |
* Description: A simple plugin to add social share buttons to your posts.
|
6 |
-
* Version: 1.0.
|
7 |
* Author: OceanWP
|
8 |
* Author URI: https://oceanwp.org/
|
9 |
* Requires at least: 4.5.0
|
10 |
-
* Tested up to: 4.9
|
11 |
*
|
12 |
* Text Domain: ocean-social-sharing
|
13 |
* Domain Path: /languages/
|
@@ -86,7 +86,7 @@ final class Ocean_Social_Sharing {
|
|
86 |
$this->token = 'ocean-social-sharing';
|
87 |
$this->plugin_url = plugin_dir_url( __FILE__ );
|
88 |
$this->plugin_path = plugin_dir_path( __FILE__ );
|
89 |
-
$this->version = '1.0.
|
90 |
|
91 |
register_activation_hook( __FILE__, array( $this, 'install' ) );
|
92 |
|
@@ -187,28 +187,16 @@ final class Ocean_Social_Sharing {
|
|
187 |
add_action( 'customize_register', array( $this, 'customizer_register' ) );
|
188 |
add_action( 'customize_preview_init', array( $this, 'customize_preview_js' ) );
|
189 |
add_action( 'wp_enqueue_scripts', array( $this, 'get_scripts' ), 999 );
|
190 |
-
add_action( '
|
|
|
191 |
add_filter( 'ocean_head_css', array( $this, 'head_css' ) );
|
192 |
-
} else {
|
193 |
-
add_action( 'admin_notices', array( $this, 'oss_install_ocean_notice' ) );
|
194 |
}
|
195 |
}
|
196 |
|
197 |
-
/**
|
198 |
-
* OceanWP install
|
199 |
-
* If the user activates the plugin while having a different parent theme active, prompt them to install OceanWP.
|
200 |
-
* @since 1.0.0
|
201 |
-
* @return void
|
202 |
-
*/
|
203 |
-
public function oss_install_ocean_notice() {
|
204 |
-
echo '<div class="notice is-dismissible updated">
|
205 |
-
<p>' . esc_html__( 'Ocean Social Sharing requires that you use OceanWP as your parent theme.', 'ocean-social-sharing' ) . ' <a href="https://oceanwp.org/">' . esc_html__( 'Install OceanWP Now', 'ocean-social-sharing' ) . '</a></p>
|
206 |
-
</div>';
|
207 |
-
}
|
208 |
-
|
209 |
/**
|
210 |
* Customizer Controls and settings
|
211 |
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
|
|
|
212 |
*/
|
213 |
public function customizer_register( $wp_customize ) {
|
214 |
|
@@ -258,6 +246,27 @@ final class Ocean_Social_Sharing {
|
|
258 |
),
|
259 |
) ) );
|
260 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
261 |
/**
|
262 |
* Social Name
|
263 |
*/
|
@@ -417,6 +426,8 @@ final class Ocean_Social_Sharing {
|
|
417 |
|
418 |
/**
|
419 |
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
|
|
|
|
|
420 |
*/
|
421 |
public function customize_preview_js() {
|
422 |
wp_enqueue_script( 'oss-customizer', plugins_url( '/assets/js/customizer.min.js', __FILE__ ), array( 'customize-preview' ), '1.1', true );
|
@@ -424,6 +435,7 @@ final class Ocean_Social_Sharing {
|
|
424 |
|
425 |
/**
|
426 |
* Enqueue scripts.
|
|
|
427 |
* @since 1.0.0
|
428 |
*/
|
429 |
public function get_scripts() {
|
@@ -442,7 +454,42 @@ final class Ocean_Social_Sharing {
|
|
442 |
}
|
443 |
|
444 |
/**
|
445 |
-
* Social sharing links
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
446 |
*/
|
447 |
public function social_share() {
|
448 |
|
@@ -461,6 +508,8 @@ final class Ocean_Social_Sharing {
|
|
461 |
|
462 |
/**
|
463 |
* Add css in head tag.
|
|
|
|
|
464 |
*/
|
465 |
public function head_css( $output ) {
|
466 |
|
3 |
* Plugin Name: Ocean Social Sharing
|
4 |
* Plugin URI: https://oceanwp.org/extension/ocean-social-sharing/
|
5 |
* Description: A simple plugin to add social share buttons to your posts.
|
6 |
+
* Version: 1.0.8
|
7 |
* Author: OceanWP
|
8 |
* Author URI: https://oceanwp.org/
|
9 |
* Requires at least: 4.5.0
|
10 |
+
* Tested up to: 4.9.1
|
11 |
*
|
12 |
* Text Domain: ocean-social-sharing
|
13 |
* Domain Path: /languages/
|
86 |
$this->token = 'ocean-social-sharing';
|
87 |
$this->plugin_url = plugin_dir_url( __FILE__ );
|
88 |
$this->plugin_path = plugin_dir_path( __FILE__ );
|
89 |
+
$this->version = '1.0.8';
|
90 |
|
91 |
register_activation_hook( __FILE__, array( $this, 'install' ) );
|
92 |
|
187 |
add_action( 'customize_register', array( $this, 'customizer_register' ) );
|
188 |
add_action( 'customize_preview_init', array( $this, 'customize_preview_js' ) );
|
189 |
add_action( 'wp_enqueue_scripts', array( $this, 'get_scripts' ), 999 );
|
190 |
+
add_action( 'ocean_before_single_post_content', array( $this, 'before_content' ) );
|
191 |
+
add_action( 'ocean_social_share', array( $this, 'after_content' ) );
|
192 |
add_filter( 'ocean_head_css', array( $this, 'head_css' ) );
|
|
|
|
|
193 |
}
|
194 |
}
|
195 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
/**
|
197 |
* Customizer Controls and settings
|
198 |
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
|
199 |
+
* @since 1.0.0
|
200 |
*/
|
201 |
public function customizer_register( $wp_customize ) {
|
202 |
|
246 |
),
|
247 |
) ) );
|
248 |
|
249 |
+
/**
|
250 |
+
* Position
|
251 |
+
*/
|
252 |
+
$wp_customize->add_setting( 'oss_social_share_position', array(
|
253 |
+
'default' => 'after',
|
254 |
+
'sanitize_callback' => 'oceanwp_sanitize_select',
|
255 |
+
) );
|
256 |
+
|
257 |
+
$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'oss_social_share_position', array(
|
258 |
+
'label' => esc_html__( 'Position', 'ocean-social-sharing' ),
|
259 |
+
'type' => 'select',
|
260 |
+
'section' => 'oss_sharing_section',
|
261 |
+
'settings' => 'oss_social_share_position',
|
262 |
+
'priority' => 10,
|
263 |
+
'choices' => array(
|
264 |
+
'before' => esc_html__( 'Before the Content', 'ocean-social-sharing' ),
|
265 |
+
'after' => esc_html__( 'After the Content', 'ocean-social-sharing' ),
|
266 |
+
'both' => esc_html__( 'Before & After the Content', 'ocean-social-sharing' ),
|
267 |
+
),
|
268 |
+
) ) );
|
269 |
+
|
270 |
/**
|
271 |
* Social Name
|
272 |
*/
|
426 |
|
427 |
/**
|
428 |
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
|
429 |
+
*
|
430 |
+
* @since 1.0.0
|
431 |
*/
|
432 |
public function customize_preview_js() {
|
433 |
wp_enqueue_script( 'oss-customizer', plugins_url( '/assets/js/customizer.min.js', __FILE__ ), array( 'customize-preview' ), '1.1', true );
|
435 |
|
436 |
/**
|
437 |
* Enqueue scripts.
|
438 |
+
*
|
439 |
* @since 1.0.0
|
440 |
*/
|
441 |
public function get_scripts() {
|
454 |
}
|
455 |
|
456 |
/**
|
457 |
+
* Social sharing links before content
|
458 |
+
*
|
459 |
+
* @since 1.0.8
|
460 |
+
*/
|
461 |
+
public function before_content() {
|
462 |
+
|
463 |
+
// Return if after content
|
464 |
+
if ( 'after' == get_theme_mod( 'oss_social_share_position', 'after' ) ) {
|
465 |
+
return;
|
466 |
+
} ?>
|
467 |
+
|
468 |
+
<div class="entry-share-wrap"><?php $this->social_share(); ?></div>
|
469 |
+
|
470 |
+
<?php
|
471 |
+
}
|
472 |
+
|
473 |
+
/**
|
474 |
+
* Social sharing links after content
|
475 |
+
*
|
476 |
+
* @since 1.0.8
|
477 |
+
*/
|
478 |
+
public function after_content() {
|
479 |
+
|
480 |
+
// Return if after content
|
481 |
+
if ( 'before' == get_theme_mod( 'oss_social_share_position', 'after' ) ) {
|
482 |
+
return;
|
483 |
+
}
|
484 |
+
|
485 |
+
$this->social_share();
|
486 |
+
|
487 |
+
}
|
488 |
+
|
489 |
+
/**
|
490 |
+
* Social sharing links template
|
491 |
+
*
|
492 |
+
* @since 1.0.0
|
493 |
*/
|
494 |
public function social_share() {
|
495 |
|
508 |
|
509 |
/**
|
510 |
* Add css in head tag.
|
511 |
+
*
|
512 |
+
* @since 1.0.0
|
513 |
*/
|
514 |
public function head_css( $output ) {
|
515 |
|
readme.txt
CHANGED
@@ -2,15 +2,15 @@
|
|
2 |
Contributors: oceanwp
|
3 |
Tags: social, social sharing, social share, share, oceanwp
|
4 |
Requires at least: 4.5
|
5 |
-
Tested up to: 4.9
|
6 |
-
Stable tag: 1.0.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
== Description ==
|
11 |
|
12 |
A simple plugin to add social share buttons to your posts.
|
13 |
-
This plugin requires the [OceanWP](https://oceanwp.org
|
14 |
|
15 |
= Key Features =
|
16 |
|
@@ -47,6 +47,11 @@ This plugin will only work with the [OceanWP](https://oceanwp.org/) theme.
|
|
47 |
|
48 |
== Changelog ==
|
49 |
|
|
|
|
|
|
|
|
|
|
|
50 |
= 1.0.7 =
|
51 |
- Fixed: Issue with the Twitter button if you add a description via Yoast SEO.
|
52 |
|
2 |
Contributors: oceanwp
|
3 |
Tags: social, social sharing, social share, share, oceanwp
|
4 |
Requires at least: 4.5
|
5 |
+
Tested up to: 4.9.1
|
6 |
+
Stable tag: 1.0.8
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
== Description ==
|
11 |
|
12 |
A simple plugin to add social share buttons to your posts.
|
13 |
+
This plugin requires the [OceanWP](https://oceanwp.org) theme to be installed.
|
14 |
|
15 |
= Key Features =
|
16 |
|
47 |
|
48 |
== Changelog ==
|
49 |
|
50 |
+
= 1.0.8 =
|
51 |
+
- Added: New field in the customizer to choose your social icons position: before, after or before and after.
|
52 |
+
- Added: Spanish language, thank you to Angel Julian Mena.
|
53 |
+
- Deleted: Admin notice if OceanWP is not the theme used.
|
54 |
+
|
55 |
= 1.0.7 =
|
56 |
- Fixed: Issue with the Twitter button if you add a description via Yoast SEO.
|
57 |
|