commit 81ff10a5bd2f5c0aedbe7526688b1c46bba60765 Author: ulaulaman Date: Fri Oct 8 21:44:56 2021 +0200 Copy the current version of Widget for Co-Authors diff --git a/README.md b/README.md new file mode 100644 index 0000000..0bca30a --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +The plugin add a widget and a shortcode in order to show authors of an article. It is compatible with Co-Authors Plus, but it is not strictly required. + +# Description +[Co-Authors Plus](https://wordpress.org/plugins/co-authors-plus/) is one of the most useful plugin for multiple authors blogs: using it you can add more than one author to your posts and you can define also guest authors without user creation. Despite this, not all themes are able to show all the authors of a post or to show the avatar of the guest author. This plugin add a widget to show users' avatars to post also for guest authors and for posts with multiple authors. +You can also add avatars using the shordcode [blog-post-coauthors]. +The plugin add also a slider in order to show user's profile. If you want change the style, you can modify blog-spoiler.css file in the plugin folder. + +# Installation +1. Extract the widget-for-coauthors.zip file and upload its contents to the /wp-content/plugins/ directory. Alternately, you can install directly from the Plugin directory within your WordPress Install. +2. Activate the plugin through the \"Plugins\" menu in WordPress. +3. Add the widget to your sidebar or the shortcode to your posts or pages. + +# Changelog +0.6 add author's info also in case Co-Authors Plus doesn't installed
+0.5.3 add the correct lang files
+0.5.2 fix error code in domain name in widget
+0.5.1 fix error code in domain name for messages
+0.5 support for translations
+0.4 translation italian messages in english
+0.3.1 test with wp 4.9.2
+0.3 add profile link and css
+0.2 creation of the widget to show authors' avatars
+0.1 creation of the shortcode to add post's authors + +# Screenshot +

+The result of the widget in a multiple authors post
diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..b849713 --- /dev/null +++ b/_config.yml @@ -0,0 +1 @@ +theme: jekyll-theme-leap-day \ No newline at end of file diff --git a/assets/banner-772x250.jpg b/assets/banner-772x250.jpg new file mode 100644 index 0000000..0903f07 Binary files /dev/null and b/assets/banner-772x250.jpg differ diff --git a/assets/icon-256x256.jpg b/assets/icon-256x256.jpg new file mode 100644 index 0000000..c78beb9 Binary files /dev/null and b/assets/icon-256x256.jpg differ diff --git a/assets/screenshot-1.jpg b/assets/screenshot-1.jpg new file mode 100644 index 0000000..8b47d45 Binary files /dev/null and b/assets/screenshot-1.jpg differ diff --git a/blog-spoiler.css b/blog-spoiler.css new file mode 100644 index 0000000..203ba3a --- /dev/null +++ b/blog-spoiler.css @@ -0,0 +1,11 @@ +.read-more-target, +.read-more-trigger_opened { + display: none; +} +.read-more-state:checked ~ .read-more-wrap .read-more-target, +.read-more-state:checked ~ .read-more-trigger_opened { + display: block; +} +.read-more-state:checked ~ .read-more-trigger_closed { + display: none; +} diff --git a/lang/co-authors-widget-it_IT.mo b/lang/co-authors-widget-it_IT.mo new file mode 100644 index 0000000..689be14 Binary files /dev/null and b/lang/co-authors-widget-it_IT.mo differ diff --git a/lang/co-authors-widget-it_IT.po b/lang/co-authors-widget-it_IT.po new file mode 100644 index 0000000..0aceb57 --- /dev/null +++ b/lang/co-authors-widget-it_IT.po @@ -0,0 +1,48 @@ +# This file is distributed under the same license as the Co-Authors Widget package. +msgid "" +msgstr "" +"Project-Id-Version: Co-Authors Widget 0.4-beta\n" +"Report-Msgid-Bugs-To: https://wordpress.org/plugins/widget-for-co-" +"authors/\n" +"POT-Creation-Date: 2018-01-27 18:24+0100\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"PO-Revision-Date: 2018-01-27 18:25+0100\n" +"Language-Team: \n" +"X-Generator: Poedit 1.8.7.1\n" +"Last-Translator: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Language: it_IT\n" + +#: co-authors-widget.php:32 +msgid "Show profile" +msgstr "Mostra il profilo" + +#: co-authors-widget.php:33 +msgid "Hide profile" +msgstr "Nascondi il profilo" + +#: co-authors-widget.php:95 +msgid "Authors" +msgstr "Autori" + +#: co-authors-widget.php:98 +msgid "Show avatars and names of the authors" +msgstr "Mostra gli avatar e i nomi degli autori" + +#: co-authors-plus.php:122 +msgid "Written by" +msgstr "Scritto da" + +#. Description of the plugin/theme +msgid "" +"The plugin add a widget and a shortcode in order to show authors of an " +"article. It is compatible with Co-Authors Plus." +msgstr "" +"Il plugin aggiunge un widget e uno shortcode per mostrare gli autori " +"di un articolo. Compatibile con Co-Authors Plus." + +#. Author of the plugin/theme +msgid "Gianluigi Filippelli" +msgstr "Gianluigi Filippelli" diff --git a/lang/co-authors-widget.pot b/lang/co-authors-widget.pot new file mode 100644 index 0000000..7b89f4c --- /dev/null +++ b/lang/co-authors-widget.pot @@ -0,0 +1,37 @@ +# This file is distributed under the same license as the Co-Authors Widget package. +msgid "" +msgstr "" +"Project-Id-Version: Co-Authors Widget 0.4-beta\n" +"Report-Msgid-Bugs-To: https://wordpress.org/plugins/widget-for-co-authors/\n" +"POT-Creation-Date: 2018-01-27 17:49:00+00:00\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: co-authors-widget.php:32 +msgid "Show profile" +msgstr "" + +#: co-authors-widget.php:33 +msgid "Hide profile" +msgstr "" + +#: co-authors-widget.php:95 +msgid "Authors" +msgstr "" + +#: co-authors-widget.php:98 +msgid "Show avatars and names of the authors" +msgstr "" + +#: co-authors-widget.php:122 +msgid "Written by" +msgstr "" + +#. Description of the plugin/theme +msgid "The plugin add a widget and a shortcode in order to show authors of an article. It is compatible with Co-Authors Plus." +msgstr "" + +#. Author of the plugin/theme +msgid "Gianluigi Filippelli" +msgstr "" diff --git a/lang/widget-for-co-authors-it_IT.mo b/lang/widget-for-co-authors-it_IT.mo new file mode 100644 index 0000000..07ba8ee Binary files /dev/null and b/lang/widget-for-co-authors-it_IT.mo differ diff --git a/lang/widget-for-co-authors-it_IT.po b/lang/widget-for-co-authors-it_IT.po new file mode 100644 index 0000000..93999d5 --- /dev/null +++ b/lang/widget-for-co-authors-it_IT.po @@ -0,0 +1,48 @@ +# This file is distributed under the same license as the Co-Authors Widget package. +msgid "" +msgstr "" +"Project-Id-Version: Co-Authors Widget 0.4-beta\n" +"Report-Msgid-Bugs-To: https://wordpress.org/plugins/widget-for-co-" +"authors/\n" +"POT-Creation-Date: 2018-01-29 23:40+0100\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"PO-Revision-Date: \n" +"Language-Team: \n" +"X-Generator: Poedit 1.8.7.1\n" +"Last-Translator: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Language: it_IT\n" + +#: widget-for-co-authors.php:32 +msgid "Show profile" +msgstr "Mostra il profilo" + +#: widget-for-co-authors.php:33 +msgid "Hide profile" +msgstr "Nascondi il profilo" + +#: widget-for-co-authors.php:95 +msgid "Authors" +msgstr "Autori" + +#: widget-for-co-authors.php:98 +msgid "Show avatars and names of the authors" +msgstr "Mostra gli avatar e i nomi degli autori" + +#: widget-for-co-authors.php:122 +msgid "Written by" +msgstr "Scritto da" + +#. Description of the plugin/theme +msgid "" +"The plugin add a widget and a shortcode in order to show authors of an " +"article. It is compatible with Co-Authors Plus." +msgstr "" +"Il plugin aggiunge un widget e uno shortcode per mostrare gli autori " +"di un articolo. Compatibile con Co-Authors Plus." + +#. Author of the plugin/theme +msgid "Gianluigi Filippelli" +msgstr "Gianluigi Filippelli" diff --git a/lang/widget-for-co-authors.pot b/lang/widget-for-co-authors.pot new file mode 100644 index 0000000..66572f0 --- /dev/null +++ b/lang/widget-for-co-authors.pot @@ -0,0 +1,37 @@ +# This file is distributed under the same license as the Co-Authors Widget package. +msgid "" +msgstr "" +"Project-Id-Version: Co-Authors Widget 0.4-beta\n" +"Report-Msgid-Bugs-To: https://wordpress.org/plugins/widget-for-co-authors/\n" +"POT-Creation-Date: 2018-01-27 17:49:00+00:00\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: widget-for-co-authors.php:32 +msgid "Show profile" +msgstr "" + +#: widget-for-co-authors.php:33 +msgid "Hide profile" +msgstr "" + +#: widget-for-co-authors.php:95 +msgid "Authors" +msgstr "" + +#: widget-for-co-authors.php:98 +msgid "Show avatars and names of the authors" +msgstr "" + +#: widget-for-co-authors.php:122 +msgid "Written by" +msgstr "" + +#. Description of the plugin/theme +msgid "The plugin add a widget and a shortcode in order to show authors of an article. It is compatible with Co-Authors Plus." +msgstr "" + +#. Author of the plugin/theme +msgid "Gianluigi Filippelli" +msgstr "" diff --git a/readme.txt b/readme.txt new file mode 100644 index 0000000..77bfa8c --- /dev/null +++ b/readme.txt @@ -0,0 +1,36 @@ +=== Co-Authors Widget === +Contributors: ulaulaman +Tags: widget, authors, coauthors, multi author, multiple authors +Requires at least: 4.8.5 +Tested up to: 5.5.1 +Requires PHP: 7.0.18 +Stable tag: trunk +License: GPLv2 or later +License URI: http://www.gnu.org/licenses/gpl-2.0.html + +The plugin add a widget and a shortcode in order to show authors of an article. It is compatible with Co-Authors Plus, but it is not strictly required. + +== Description == +[Co-Authors Plus](https://wordpress.org/plugins/co-authors-plus/) is one of the most useful plugin for multiple authors blogs: using it you can add more than one author to your posts and you can define also guest authors without user creation. Despite this, not all themes are able to show all the authors of a post or to show the avatar of the guest author. This plugin add a widget to show users' avatars to post also for guest authors and for posts with multiple authors. +You can also add avatars using the shordcode [blog-post-coauthors]. +The plugin add also a slider in order to show user's profile. If you want change the style, you can modify blog-spoiler.css file in the plugin folder. + +== Installation == +1. Extract the widget-for-coauthors.zip file and upload its contents to the /wp-content/plugins/ directory. Alternately, you can install directly from the Plugin directory within your WordPress Install. +2. Activate the plugin through the "Plugins" menu in WordPress. +3. Add the widget to your sidebar or the shortcode to your posts or pages. + +== Screenshots == +1. The result of the widget in a multiple authors post (italian language) + +== Changelog == +0.6 add author's info also in case Co-Authors Plus doesn't installed +0.5.3 add the correct lang files +0.5.2 fix error code in domain name in widget +0.5.1 fix error code in domain name for messages +0.5 support for translations +0.4 translation italian messages in english +0.3.1 test with wp 4.9.2 +0.3 add profile link and css +0.2 creation of the widget to show authors' avatars +0.1 creation of the shortcode to add post's authors diff --git a/widget-for-co-authors.php b/widget-for-co-authors.php new file mode 100644 index 0000000..b07f364 --- /dev/null +++ b/widget-for-co-authors.php @@ -0,0 +1,157 @@ +ID, $coauthor->user_nicename ); + + $i = 0; + foreach ( $coauthors as $coauthor ) { + $i++; + ?> +
+ + + + +
+ +
+ +
+

+ >

+

+ +

+
+ + +
+ + __( 'Show avatars and names of the authors', 'widget-for-co-authors' ), ) +); +} + +// Widget front-end +public function widget( $args, $instance ) { +$title = apply_filters( 'widget_title', $instance['title'] ); + +// before and after +echo $args['before_widget']; +if ( ! empty( $title ) ) +echo $args['before_title'] . $title . $args['after_title']; + +// output +blog_avatars(); +echo $args['after_widget']; +} + +// Widget backend +public function form( $instance ) { +if ( isset( $instance[ 'title' ] ) ) { +$title = $instance[ 'title' ]; +} +else { +$title = __( 'Written by', 'widget-for-co-authors' ); +} + +// Widget form +?> +

+ + +

+