Ocean Social Sharing - Version 1.0.10

Version Description

  • Added: Estonian translation, thanks to Janek Tuttar.
Download this release

Release Info

Developer oceanwp
Plugin Icon 128x128 Ocean Social Sharing
Version 1.0.10
Comparing to
See all releases

Code changes from version 1.0.9 to 1.0.10

README.md DELETED
@@ -1,13 +0,0 @@
1
- # Ocean Social Sharing [![Built with Grunt](https://cdn.gruntjs.com/builtwith.png)](http://gruntjs.com/)
2
-
3
- **Contributors:** Nick
4
- **Requires at least:** WordPress 4.4
5
- **Tested up to:** WordPress 4.9.1
6
- **Stable tag:** 1.0.9
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.
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/ocean-social-sharing-et.mo ADDED
Binary file
languages/ocean-social-sharing-et.po ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2016
2
+ # This file is distributed under the same license as the package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Ocean Social Sharing\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/theme/style\n"
7
+ "POT-Creation-Date: 2016-10-10 21:19:12+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2018-03-06 15:10+0000\n"
12
+ "Last-Translator: Janek <janek.tuttar@gmail.com>\n"
13
+ "Language-Team: Estonian\n"
14
+ "X-Generator: Loco https://localise.biz/\n"
15
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
16
+ "X-Poedit-Basepath: ..\n"
17
+ "X-Poedit-Language: English\n"
18
+ "X-Poedit-Country: UNITED STATES\n"
19
+ "X-Poedit-SourceCharset: utf-8\n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+ "X-Poedit-KeywordsList: _esc_attr__;esc_attr_x;esc_attr_e;esc_html__;"
22
+ "esc_html_e;esc_html_x;__;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
23
+ "_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"
24
+ "X-Textdomain-Support: yes\n"
25
+ "Language: et"
26
+
27
+ #: ocean-social-sharing.php:132 ocean-social-sharing.php:141
28
+ msgid "Cheatin&#8217; huh?"
29
+ msgstr "Üritad petta, jah?"
30
+
31
+ #: ocean-social-sharing.php:195
32
+ msgid "Ocean Social Sharing requires that you use ocean as your parent theme."
33
+ msgstr ""
34
+ "Ocean Socail Sharing plugin töötab ainult siis kui kui Ocean WP on sinu "
35
+ "aktiveeritud kujundus."
36
+
37
+ #: ocean-social-sharing.php:195
38
+ msgid "Install Ocean Now"
39
+ msgstr "Paigalda Ocean nüüd"
40
+
41
+ #: ocean-social-sharing.php:209
42
+ msgid "Social Sharing"
43
+ msgstr "Sotsiaalmeedias jagamine"
44
+
45
+ #: ocean-social-sharing.php:222
46
+ msgid "Sharing Buttons"
47
+ msgstr "Jagamise nupud"
48
+
49
+ #: ocean-social-sharing.php:239 template/social-share.php:28
50
+ msgid "Please Share This"
51
+ msgstr "Jaga postitust teistega"
52
+
53
+ #: ocean-social-sharing.php:245
54
+ msgid "Heading on Posts"
55
+ msgstr "Postituste pealkirjad"
56
+
57
+ #: ocean-social-sharing.php:261
58
+ msgid "Twitter Handle"
59
+ msgstr "Twitteri handle"
60
+
61
+ #: ocean-social-sharing.php:278
62
+ msgid "Links Borders Color"
63
+ msgstr "Linkide joonte värv"
64
+
65
+ #: ocean-social-sharing.php:294
66
+ msgid "Icons Background Color"
67
+ msgstr "Ikoonide taustavärv"
68
+
69
+ #: ocean-social-sharing.php:310
70
+ msgid "Icons Color"
71
+ msgstr "Ikoonide värvid"
72
+
73
+ #: template/social-share.php:66
74
+ msgid "Share on Twitter"
75
+ msgstr "Jaga Twitteris"
76
+
77
+ #: template/social-share.php:76
78
+ msgid "Share on Facebook"
79
+ msgstr "Jaga Facebookis"
80
+
81
+ #: template/social-share.php:86
82
+ msgid "Share on Google+"
83
+ msgstr "Jaga Google+"
84
+
85
+ #: template/social-share.php:96
86
+ msgid "Share on Pinterest"
87
+ msgstr "Jaga Pinterestis"
88
+
89
+ #: template/social-share.php:106
90
+ msgid "Share on LinkedIn"
91
+ msgstr "Jaga Linkedinis"
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.9
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,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.9';
90
 
91
  register_activation_hook( __FILE__, array( $this, 'install' ) );
92
 
@@ -323,7 +323,7 @@ final class Ocean_Social_Sharing {
323
  ) ) );
324
 
325
  /**
326
- * Sharing title
327
  */
328
  $wp_customize->add_setting( 'oss_social_share_twitter_handle', array(
329
  'default' => '',
@@ -331,13 +331,26 @@ final class Ocean_Social_Sharing {
331
  ) );
332
 
333
  $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'oss_social_share_twitter_handle', array(
334
- 'label' => esc_html__( 'Twitter Handle', 'ocean-social-sharing' ),
335
  'section' => 'oss_sharing_section',
336
  'settings' => 'oss_social_share_twitter_handle',
337
  'type' => 'text',
338
  'priority' => 10,
339
  ) ) );
340
 
 
 
 
 
 
 
 
 
 
 
 
 
 
341
  /**
342
  * Style
343
  */
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.11
7
  * Author: OceanWP
8
  * Author URI: https://oceanwp.org/
9
  * Requires at least: 4.5.0
10
+ * Tested up to: 4.9.4
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.11';
90
 
91
  register_activation_hook( __FILE__, array( $this, 'install' ) );
92
 
323
  ) ) );
324
 
325
  /**
326
+ * Twitter Handle
327
  */
328
  $wp_customize->add_setting( 'oss_social_share_twitter_handle', array(
329
  'default' => '',
331
  ) );
332
 
333
  $wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'oss_social_share_twitter_handle', array(
334
+ 'label' => esc_html__( 'Twitter Username', 'ocean-social-sharing' ),
335
  'section' => 'oss_sharing_section',
336
  'settings' => 'oss_social_share_twitter_handle',
337
  'type' => 'text',
338
  'priority' => 10,
339
  ) ) );
340
 
341
+ /**
342
+ * Heading Styling
343
+ */
344
+ $wp_customize->add_setting( 'oss_social_share_styling_heading', array(
345
+ 'sanitize_callback' => 'wp_kses',
346
+ ) );
347
+
348
+ $wp_customize->add_control( new OceanWP_Customizer_Heading_Control( $wp_customize, 'oss_social_share_styling_heading', array(
349
+ 'label' => esc_html__( 'Styling', 'ocean-social-sharing' ),
350
+ 'section' => 'oss_sharing_section',
351
+ 'priority' => 10,
352
+ ) ) );
353
+
354
  /**
355
  * Style
356
  */
readme.txt CHANGED
@@ -2,8 +2,8 @@
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.9
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -47,6 +47,12 @@ This plugin will only work with the [OceanWP](https://oceanwp.org/) theme.
47
 
48
  == Changelog ==
49
 
 
 
 
 
 
 
50
  = 1.0.9 =
51
  - Fixed: Issue with apostrophe for the Twitter button.
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.4
6
+ Stable tag: 1.0.11
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
47
 
48
  == Changelog ==
49
 
50
+ = 1.0.11 =
51
+ - Fixed: Double handle for the Twitter button.
52
+
53
+ = 1.0.10 =
54
+ - Added: Estonian translation, thanks to Janek Tuttar.
55
+
56
  = 1.0.9 =
57
  - Fixed: Issue with apostrophe for the Twitter button.
58
 
template/social-share.php CHANGED
@@ -92,7 +92,8 @@ $classes = implode( ' ', $classes ); ?>
92
  }
93
 
94
  // Get twitter handle
95
- $handle = get_theme_mod( 'oss_social_share_twitter_handle' ); ?>
 
96
 
97
  <li class="twitter">
98
  <a href="https://twitter.com/share?text=<?php echo esc_attr( $title ); ?>&amp;url=<?php echo rawurlencode( esc_url( $url ) ); ?><?php if ( $handle ) echo '&amp;via='. esc_attr( $handle ); ?>" title="<?php esc_html_e( 'Share on Twitter', 'ocean-social-sharing' ); ?>" onclick="oss_onClick( this.href );return false;">
92
  }
93
 
94
  // Get twitter handle
95
+ $handle = get_theme_mod( 'oss_social_share_twitter_handle' );
96
+ $handle = str_replace( '@' , '' , trim( $handle ) ); ?>
97
 
98
  <li class="twitter">
99
  <a href="https://twitter.com/share?text=<?php echo esc_attr( $title ); ?>&amp;url=<?php echo rawurlencode( esc_url( $url ) ); ?><?php if ( $handle ) echo '&amp;via='. esc_attr( $handle ); ?>" title="<?php esc_html_e( 'Share on Twitter', 'ocean-social-sharing' ); ?>" onclick="oss_onClick( this.href );return false;">