Social Icons - Version 1.7.4

Version Description

  • 08/02/2021 =
  • Introduce - Shortcode option on editing the Social Icon sets.
  • Tweak - Modify screenshot, banner and icon images on wp.org plugin page to resolve trademark issues.
Download this release

Release Info

Developer ThemeGrill
Plugin Icon 128x128 Social Icons
Version 1.7.4
Comparing to
See all releases

Code changes from version 1.7.3 to 1.7.4

includes/admin/class-si-admin-meta-boxes.php CHANGED
@@ -90,7 +90,15 @@ class SI_Admin_Meta_Boxes {
90
  * Add SI Meta boxes.
91
  */
92
  public function add_meta_boxes() {
 
 
 
93
  add_meta_box( 'social-icons-group-data', __( 'Social Data', 'social-icons' ), 'SI_Meta_Box_Group_Data::output', 'social_icon', 'normal', 'high' );
 
 
 
 
 
94
  }
95
 
96
  /**
90
  * Add SI Meta boxes.
91
  */
92
  public function add_meta_boxes() {
93
+ global $post;
94
+
95
+ // Group meta box.
96
  add_meta_box( 'social-icons-group-data', __( 'Social Data', 'social-icons' ), 'SI_Meta_Box_Group_Data::output', 'social_icon', 'normal', 'high' );
97
+
98
+ // Shortcode meta box.
99
+ if ( 'publish' === $post->post_status ) {
100
+ add_meta_box( 'social-icons-shortcode', __( 'Shortcode', 'social-icons' ), 'SI_Meta_Box_Data::shortcode', 'social_icon', 'side', 'high' );
101
+ }
102
  }
103
 
104
  /**
includes/admin/meta-boxes/class-si-meta-box-data.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Social Icon Data
4
+ *
5
+ * @class SI_Meta_Box_Icon_Data
6
+ * @version 1.7.4
7
+ * @package Social_Icons/Admin/Meta Boxes
8
+ * @category Admin
9
+ * @author ThemeGrill
10
+ */
11
+
12
+ if ( ! defined( 'ABSPATH' ) ) {
13
+ exit;
14
+ }
15
+
16
+ /**
17
+ * SI_Meta_Box_Data Class
18
+ */
19
+ class SI_Meta_Box_Data {
20
+ /**
21
+ * Output the meta box.
22
+ * @param WP_Post $post
23
+ */
24
+ public static function shortcode( $post ) {
25
+ global $post;
26
+ $shortcode = '[social_icons_group id="' . $post->ID . '"]';
27
+
28
+ echo '<p>' . esc_html__( 'Copy and paste the shortcode on your post, page to render social icons.', 'social-icons' ) . '</p>';
29
+ echo '<p><span class="shortcode"><input type="text" class="widefat code" onfocus="this.select();" readonly="readonly" value="' . esc_attr( $shortcode ) . '" /></span></p>';
30
+ }
31
+ }
languages/social-icons.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the GPLv3 or later.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Social Icons 1.7.3\n"
6
  "Report-Msgid-Bugs-To: themegrill@gmail.com\n"
7
- "POT-Creation-Date: 2021-01-13 06:25:14+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -13,10 +13,15 @@ msgstr ""
13
  "Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
14
  "X-Generator: grunt-wp-i18n1.0.1\n"
15
 
16
- #: includes/admin/class-si-admin-meta-boxes.php:93
17
  msgid "Social Data"
18
  msgstr ""
19
 
 
 
 
 
 
20
  #: includes/admin/class-si-admin-post-types.php:59
21
  #: includes/admin/class-si-admin-post-types.php:64
22
  msgid "Social Icon updated."
@@ -93,10 +98,7 @@ msgid "Name"
93
  msgstr ""
94
 
95
  #: includes/admin/class-si-admin-post-types.php:103
96
- msgid "Shortcode"
97
- msgstr ""
98
-
99
- #: includes/admin/class-si-admin-post-types.php:103
100
  msgid "Copy and paste the shortcode on your post, page to render social icons."
101
  msgstr ""
102
 
2
  # This file is distributed under the GPLv3 or later.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Social Icons 1.7.4\n"
6
  "Report-Msgid-Bugs-To: themegrill@gmail.com\n"
7
+ "POT-Creation-Date: 2021-02-08 05:30:36+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
14
  "X-Generator: grunt-wp-i18n1.0.1\n"
15
 
16
+ #: includes/admin/class-si-admin-meta-boxes.php:96
17
  msgid "Social Data"
18
  msgstr ""
19
 
20
+ #: includes/admin/class-si-admin-meta-boxes.php:100
21
+ #: includes/admin/class-si-admin-post-types.php:103
22
+ msgid "Shortcode"
23
+ msgstr ""
24
+
25
  #: includes/admin/class-si-admin-post-types.php:59
26
  #: includes/admin/class-si-admin-post-types.php:64
27
  msgid "Social Icon updated."
98
  msgstr ""
99
 
100
  #: includes/admin/class-si-admin-post-types.php:103
101
+ #: includes/admin/meta-boxes/class-si-meta-box-data.php:28
 
 
 
102
  msgid "Copy and paste the shortcode on your post, page to render social icons."
103
  msgstr ""
104
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: ThemeGrill, shivapoudel
3
  Tags: social, media, icons, brands, widget, social networking, social media, social icon, social icons, social profile, social icon widget, shortcode
4
  Requires at least: 4.7
5
  Tested up to: 5.6
6
- Stable tag: 1.7.3
7
  License: GPLv3
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -70,13 +70,16 @@ Yes you can! Join in on our [GitHub repository](https://github.com/themegrill/so
70
 
71
  == Screenshots ==
72
 
73
- 1. Social Icons Widget Form.
74
- 2. Social Icons Slick Frontend.
75
- 3. Social Icons Data Panel
76
- 4. Social Icons Admin Panel
77
 
78
  == Changelog ==
79
 
 
 
 
 
80
  = 1.7.3 - 13/01/2021 =
81
  * Feature - Option for allowing nofollow relation to social links while using shortcodes.
82
  * Fix - Social Icons widget save option not triggered properly.
3
  Tags: social, media, icons, brands, widget, social networking, social media, social icon, social icons, social profile, social icon widget, shortcode
4
  Requires at least: 4.7
5
  Tested up to: 5.6
6
+ Stable tag: 1.7.4
7
  License: GPLv3
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
70
 
71
  == Screenshots ==
72
 
73
+ 1. Social Icons Widget Form
74
+ 2. Social Icons Data Panel
75
+ 3. Social Icons Admin Panel
 
76
 
77
  == Changelog ==
78
 
79
+ = 1.7.4 - 08/02/2021 =
80
+ * Introduce - Shortcode option on editing the Social Icon sets.
81
+ * Tweak - Modify screenshot, banner and icon images on wp.org plugin page to resolve trademark issues.
82
+
83
  = 1.7.3 - 13/01/2021 =
84
  * Feature - Option for allowing nofollow relation to social links while using shortcodes.
85
  * Fix - Social Icons widget save option not triggered properly.
social-icons.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Social Icons
4
  * Plugin URI: https://themegrill.com/plugins/social-icons/
5
  * Description: Social Icons provides you with an easy way to display various popular social icons via widgets and shortcodes. You can drag the widget in your sidebars and change the settings from the widget form itself. Also you can use the shortcode and paste it on your page, post or wherever you like.
6
- * Version: 1.7.3
7
  * Author: ThemeGrill
8
  * Author URI: http://themegrill.com
9
  * License: GPLv3 or later
@@ -29,7 +29,7 @@ final class Social_Icons {
29
  * Plugin version.
30
  * @var string
31
  */
32
- public $version = '1.7.3';
33
 
34
  /**
35
  * Instance of this class.
3
  * Plugin Name: Social Icons
4
  * Plugin URI: https://themegrill.com/plugins/social-icons/
5
  * Description: Social Icons provides you with an easy way to display various popular social icons via widgets and shortcodes. You can drag the widget in your sidebars and change the settings from the widget form itself. Also you can use the shortcode and paste it on your page, post or wherever you like.
6
+ * Version: 1.7.4
7
  * Author: ThemeGrill
8
  * Author URI: http://themegrill.com
9
  * License: GPLv3 or later
29
  * Plugin version.
30
  * @var string
31
  */
32
+ public $version = '1.7.4';
33
 
34
  /**
35
  * Instance of this class.