Rebrand fork as socialiconeco; PHP 8 fix; rename identifiers and fix folder paths
This commit is contained in:
30
readme.txt
30
readme.txt
@@ -1,8 +1,9 @@
|
||||
=== Social Icons Widget ===
|
||||
Contributors: nisbetcreative
|
||||
=== Social Icone Co ===
|
||||
Contributors: beco
|
||||
Tags: social, media, widget, follow, profile, icons, 500px, About.me, Behance, Dribbble, Codepen, Email, Envato, Facebook, Flickr, FourSquare, GitHub, Google+, Instagram, Kickstarter, Klout, LinkedIn, Medium, Path, Pinterest, RSS, Speaker Deck, StumbleUpon, Technorati, Tumblr, Twitter, Vimeo, Vine, WordPress, Yelp, YouTube, Zerply
|
||||
Requires at least: 3.5.1
|
||||
Tested up to: 4.5
|
||||
Tested up to: 6.7
|
||||
Requires PHP: 5.3
|
||||
Stable tag: 16.07
|
||||
License: GPLv3 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
||||
@@ -11,7 +12,9 @@ Displays a list of social media website icons and a link to your profile.
|
||||
|
||||
== Description ==
|
||||
|
||||
The Social Media Icons widget takes a simple, extendable approach to displaying links to your social media profiles in WordPress. The purpose of this plugin was to strip away the complexities I found most other plugins to have and simply display a set of basic social icons in an unordered list. There's no frills and no fanciness, making it easy to style to your website's look.
|
||||
Social Icone Co takes a simple, extendable approach to displaying links to your social media profiles in WordPress. It strips away the complexities of most other plugins and simply displays a set of basic social icons in an unordered list. There's no frills and no fanciness, making it easy to style to your website's look.
|
||||
|
||||
Originally based on "Social Icons Widget" by Nisbet Creative (GPLv3), now unmaintained and removed from WordPress.org. Forked and maintained as Social Icone Co, with PHP 8 compatibility restored.
|
||||
|
||||
= Icons =
|
||||
|
||||
@@ -38,33 +41,33 @@ Developers can easily add more social media websites by creating a filter in the
|
||||
|
||||
return $icon_list;
|
||||
}
|
||||
add_filter('social_icon_accounts', 'add_new_icons');
|
||||
add_filter('socialiconeco_accounts', 'add_new_icons');
|
||||
|
||||
The full-website-id should reflect the name of the image you create in each of the icon folder sizes, or in your custom icon directory. It is also used to populate the class field of the icon when the widget displays. The Social Icon Widget looks for .gif, .jpg, .jpeg, and .png in order and returns the first extention it finds.
|
||||
The full-website-id should reflect the name of the image you create in each of the icon folder sizes, or in your custom icon directory. It is also used to populate the class field of the icon when the widget displays. Social Icone Co looks for .gif, .jpg, .jpeg, and .png in order and returns the first extention it finds.
|
||||
|
||||
= Altering Widget Output =
|
||||
|
||||
Output of each icon can be adjusted with the social_icon_output filter:
|
||||
Output of each icon can be adjusted with the socialiconeco_output filter:
|
||||
|
||||
function social_icons_html_output($format) {
|
||||
$format = '<li class="%1$s"><a href="%2$s" target="_blank">%3$s%4$s</a></li>';
|
||||
return $format;
|
||||
}
|
||||
add_filter('social_icon_output', 'social_icons_html_output');
|
||||
add_filter('socialiconeco_output', 'social_icons_html_output');
|
||||
|
||||
The opening and closing unordered list tags can be edited or changed with the social_icon_opening_tag and social_icon_closing_tag filters:
|
||||
The opening and closing unordered list tags can be edited or changed with the socialiconeco_opening_tag and socialiconeco_closing_tag filters:
|
||||
|
||||
function social_icons_change_opening($opening) {
|
||||
$opening = '<ul class="'.$ul_class.'">';
|
||||
return $opening;
|
||||
}
|
||||
add_filter('social_icon_opening_tag', 'social_icons_change_opening');
|
||||
add_filter('socialiconeco_opening_tag', 'social_icons_change_opening');
|
||||
|
||||
function social_icons_change_closing($closing) {
|
||||
$closing = '</ul>';
|
||||
return $closing;
|
||||
}
|
||||
add_filter('social_icon_closing_tag', 'social_icons_change_closing');
|
||||
add_filter('socialiconeco_closing_tag', 'social_icons_change_closing');
|
||||
|
||||
== Screenshots ==
|
||||
|
||||
@@ -73,6 +76,11 @@ The opening and closing unordered list tags can be edited or changed with the so
|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 16.07-eco =
|
||||
* Forked as Social Icone Co from the unmaintained "Social Icons Widget"
|
||||
* Replaced removed create_function() call for PHP 8 compatibility
|
||||
* Fixed hardcoded plugin-folder paths so styles and fallback icons load under any folder name
|
||||
|
||||
= 16.07 =
|
||||
* Updated some social icons to their newer logos
|
||||
|
||||
|
||||
Reference in New Issue
Block a user