Skip to content

Commit b5ed4af

Browse files
authored
Merge pull request #126 from dshanske/dec18fixes
Dec18fixes
2 parents 292d401 + 2fa302f commit b5ed4af

File tree

10 files changed

+52
-22
lines changed

10 files changed

+52
-22
lines changed

includes/class-hcard-author-widget.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ public function form( $instance ) {
106106
'notes' => 1,
107107
'avatar_size' => '125',
108108
'email' => 0,
109+
'me' => 0,
109110
);
110111

111112
$instance = wp_parse_args( (array) $instance, $defaults );
@@ -133,6 +134,11 @@ public function form( $instance ) {
133134
<label for="<?php echo esc_attr( $this->get_field_id( 'email' ) ); ?>"><?php esc_html_e( 'Show Email:', 'indieweb' ); ?></label>
134135
<input type="hidden" name="<?php echo esc_attr( $this->get_field_name( 'email' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'email' ) ); ?>" value="0" />
135136
<input type="checkbox" name="<?php echo esc_attr( $this->get_field_name( 'email' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'email' ) ); ?>" value="1" <?php checked( $instance['email'], 1 ); ?> />
137+
</p>
138+
<p>
139+
<label for="<?php echo esc_attr( $this->get_field_id( 'me' ) ); ?>"><?php esc_html_e( 'Show Rel-Me:', 'indieweb' ); ?></label>
140+
<input type="hidden" name="<?php echo esc_attr( $this->get_field_name( 'me' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'me' ) ); ?>" value="0" />
141+
<input type="checkbox" name="<?php echo esc_attr( $this->get_field_name( 'me' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'me' ) ); ?>" value="1" <?php checked( $instance['me'], 1 ); ?> />
136142
</p>
137143
<?php
138144
}

includes/class-hcard-user.php

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,16 @@ public static function get_rel_me( $author_id = null ) {
396396
}
397397

398398
/**
399-
* prints a formatted <ul> list of rel=me to supported silos
399+
* returns a formatted <ul> list of rel=me to supported silos
400400
*/
401401
public static function rel_me_list( $author_id = null, $include_rel = false ) {
402+
echo self::get_me_list( $author_id, $include_rel );
403+
}
404+
405+
/**
406+
* returns a formatted <ul> list of rel=me to supported silos
407+
*/
408+
public static function get_rel_me_list( $author_id = null, $include_rel = false ) {
402409
$list = self::get_rel_me( $author_id );
403410
if ( ! $list ) {
404411
return false;
@@ -419,7 +426,7 @@ public static function rel_me_list( $author_id = null, $include_rel = false ) {
419426

420427
$r = "<div class='relme'><ul>\n<li>" . join( "</li>\n<li>", $r ) . "</li>\n</ul></div>";
421428

422-
echo apply_filters( 'indieweb_rel_me', $r, $author_id, $list ); // phpcs:ignore
429+
return apply_filters( 'indieweb_rel_me', $r, $author_id, $list ); // phpcs:ignore
423430
}
424431

425432
/**
@@ -482,6 +489,7 @@ public static function get_hcard_display_defaults() {
482489
'location' => true, // Display location elements
483490
'notes' => true, // Display Bio/Notes
484491
'email' => false, // Display email
492+
'me' => true, // Display rel-me links inside h-card
485493
);
486494
return apply_filters( 'hcard_display_defaults', $defaults );
487495
}
@@ -545,6 +553,9 @@ public static function hcard( $user, $args = array() ) {
545553
$return .= '<li><a class="p-tel tel" href="tel:' . $user->get( 'tel' ) . '">' . $user->get( 'tel' ) . '</a></li>';
546554
}
547555
$return .= '</ul>';
556+
if ( $args['me'] ) {
557+
$return .= '<p>' . self::get_rel_me_list( $user->ID ) . '</p>';
558+
}
548559
if ( $args['notes'] ) {
549560
$return .= '<p class="p-note note">' . $user->get( 'description' ) . '</p>';
550561
}

includes/getting-started.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<ol>
2626
<li><?php _e( 'Install and activate the Webmentions and Semantic Linkbacks plugins. These will allow you to receive responses such as replies, likes, etc from other Indieweb sites. You can configure it in the Discussion Settings', 'indieweb' ); ?></li>
2727
<li><?php _e( 'Install and activate the Micropub and IndieAuth plugins. The Micropub plugin will allow you to publish to your website using Micropub and the IndieAuth plugin adds an IndieAuth endpoint to allow it to authenticate to your site. Without it, the Micropub plugin will use a third-party IndieAuth server to authenticate to your site.', 'indieweb' ); ?></li>
28-
<li><?php _e( 'You can now install the Bridgy plugin. It will add its settings options under Indieweb and allow you to directly register for Bridgy to connect your blog to responses from sites such as Facebook and Twitter.', 'indieweb' ); ?></li>
28+
<li><?php _e( 'You can now install the Syndication Links plugin. It will add its settings options under Indieweb and allow you to connect your blog to responses from sites such as Flickr, Twitter and Github.', 'indieweb' ); ?></li>
2929
<li><?php _e( 'Browse the Extensions page for a list of other recommended Indieweb plugins that can expand your functionality.', 'indieweb' ); ?></li>
3030
</ol>
3131

includes/simple-icons.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ function simpleicons_iw_get_names() {
5151
'bing' => 'Bing',
5252
'bitbucket' => 'Bitbucket',
5353
'bitcoin' => 'Bitcoin',
54+
'bitdefender' => 'Bitdefender',
5455
'bitly' => 'Bitly',
5556
'blender' => 'Blender',
5657
'blogger' => 'Blogger',
@@ -74,6 +75,7 @@ function simpleicons_iw_get_names() {
7475
'clojure' => 'Clojure',
7576
'cloudflare' => 'Cloudflare',
7677
'coop' => 'Co-op',
78+
'codacy' => 'Codacy',
7779
'codeigniter' => 'CodeIgniter',
7880
'codepen' => 'CodePen',
7981
'codecademy' => 'Codecademy',
@@ -166,6 +168,7 @@ function simpleicons_iw_get_names() {
166168
'googlekeep' => 'Google Keep',
167169
'googlepay' => 'Google Pay',
168170
'googleplay' => 'Google Play',
171+
'googlepodcasts' => 'Google Podcasts',
169172
'googleplus' => 'Google+',
170173
'grafana' => 'Grafana',
171174
'graphql' => 'GraphQL',

indieweb.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,6 @@ public static function register_plugins() {
162162
array(
163163
'slug' => 'syndication-links',
164164
),
165-
array(
166-
'slug' => 'bridgy-publish',
167-
),
168165
array(
169166
'slug' => 'indieauth',
170167
),

languages/wordpress-indieweb.pot

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ msgid ""
44
msgstr ""
55
"Project-Id-Version: IndieWeb 3.3.12\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/indieweb\n"
7-
"POT-Creation-Date: 2018-11-13 01:50:13+00:00\n"
7+
"POT-Creation-Date: 2018-12-03 03:04:13+00:00\n"
88
"MIME-Version: 1.0\n"
99
"Content-Type: text/plain; charset=utf-8\n"
1010
"Content-Transfer-Encoding: 8bit\n"
@@ -127,26 +127,30 @@ msgstr ""
127127
msgid "A widget that allows you to display author profile marked up as an h-card"
128128
msgstr ""
129129

130-
#: includes/class-hcard-author-widget.php:114
130+
#: includes/class-hcard-author-widget.php:115
131131
msgid "Avatar Size:"
132132
msgstr ""
133133

134-
#: includes/class-hcard-author-widget.php:118
134+
#: includes/class-hcard-author-widget.php:119
135135
msgid "Show Avatar:"
136136
msgstr ""
137137

138-
#: includes/class-hcard-author-widget.php:123
138+
#: includes/class-hcard-author-widget.php:124
139139
msgid "Show Location:"
140140
msgstr ""
141141

142-
#: includes/class-hcard-author-widget.php:128
142+
#: includes/class-hcard-author-widget.php:129
143143
msgid "Show Notes:"
144144
msgstr ""
145145

146-
#: includes/class-hcard-author-widget.php:133
146+
#: includes/class-hcard-author-widget.php:134
147147
msgid "Show Email:"
148148
msgstr ""
149149

150+
#: includes/class-hcard-author-widget.php:139
151+
msgid "Show Rel-Me:"
152+
msgstr ""
153+
150154
#: includes/class-hcard-user.php:53
151155
msgid "Github username"
152156
msgstr ""
@@ -356,9 +360,9 @@ msgstr ""
356360

357361
#: includes/getting-started.php:28
358362
msgid ""
359-
"You can now install the Bridgy plugin. It will add its settings options "
360-
"under Indieweb and allow you to directly register for Bridgy to connect "
361-
"your blog to responses from sites such as Facebook and Twitter."
363+
"You can now install the Syndication Links plugin. It will add its settings "
364+
"options under Indieweb and allow you to connect your blog to responses from "
365+
"sites such as Flickr, Twitter and Github."
362366
msgstr ""
363367

364368
#: includes/getting-started.php:29
@@ -458,7 +462,7 @@ msgid ""
458462
"functionality."
459463
msgstr ""
460464

461-
#: indieweb.php:186
465+
#: indieweb.php:183
462466
msgid ""
463467
"Users can optionally add additional information to their profile. As this "
464468
"is part of your user profile you have control of this information and can "

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ One could certainly download, install, and activate some or all of these plugins
7474
* Syndication Links - Automatically adds syndication links from a supported syndication plugin or by manual entry in the post editor. Support for NextScripts: Social Networks Auto-Poster (aka SNAP), the Medium plugin, and a few others.
7575
* MicroPub - A MicroPub Server for publishing posts using third-party Micropub clients
7676
* IndieAuth - Adds an IndieAuth endpoint to WordPress. Alternatively, if you do not want to enable this, you can use a third-party endpoint to login to the WordPress backend via IndieAuth.
77-
* Bridgy - User Interface for the Brid.gy Web Service
7877
* Microformats 2 - provides basic mf2 support for any WordPress theme that does not support mf2 already. Note, due to inability to access every element via a filter or action, an [IndieWeb theme](http://indieweb.org/WordPress/Themes) is recommended.
7978
* Simple Location - adds basic location and weather support to WordPress posts
8079

@@ -85,7 +84,8 @@ Project maintained on github at [indieweb/wordpress-indieweb](https://github.com
8584

8685
### 3.3.12 ###
8786
* Update icon file
88-
87+
* Add option to show rel-me icons inside h-card
88+
* Remove Bridgy from Suggested Plugins
8989

9090
### 3.3.11 ###
9191
* Code cleanups

readme.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ One could certainly download, install, and activate some or all of these plugins
7474
* Syndication Links - Automatically adds syndication links from a supported syndication plugin or by manual entry in the post editor. Support for NextScripts: Social Networks Auto-Poster (aka SNAP), the Medium plugin, and a few others.
7575
* MicroPub - A MicroPub Server for publishing posts using third-party Micropub clients
7676
* IndieAuth - Adds an IndieAuth endpoint to WordPress. Alternatively, if you do not want to enable this, you can use a third-party endpoint to login to the WordPress backend via IndieAuth.
77-
* Bridgy - User Interface for the Brid.gy Web Service
7877
* Microformats 2 - provides basic mf2 support for any WordPress theme that does not support mf2 already. Note, due to inability to access every element via a filter or action, an [IndieWeb theme](http://indieweb.org/WordPress/Themes) is recommended.
7978
* Simple Location - adds basic location and weather support to WordPress posts
8079

@@ -85,7 +84,8 @@ Project maintained on github at [indieweb/wordpress-indieweb](https://github.com
8584

8685
= 3.3.12 =
8786
* Update icon file
88-
87+
* Add option to show rel-me icons inside h-card
88+
* Remove Bridgy from Suggested Plugins
8989

9090
= 3.3.11 =
9191
* Code cleanups

sass/_simple-icons.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@
148148
.svg-bitcoin {
149149
color: #F7931A;
150150
}
151+
.svg-bitdefender {
152+
color: #ED1C24;
153+
}
151154
.svg-bitly {
152155
color: #EE6123;
153156
}
@@ -217,6 +220,9 @@
217220
.svg-coop {
218221
color: #00B1E7;
219222
}
223+
.svg-codacy {
224+
color: #222F29;
225+
}
220226
.svg-codeigniter {
221227
color: #EE4623;
222228
}
@@ -479,7 +485,7 @@
479485
color: #4285F4;
480486
}
481487
.svg-googledrive {
482-
color: #4386FC;
488+
color: #4285F4;
483489
}
484490
.svg-googlehangouts {
485491
color: #0C9D58;
@@ -493,6 +499,9 @@
493499
.svg-googleplay {
494500
color: #607D8B;
495501
}
502+
.svg-googlepodcasts {
503+
color: #4285F4;
504+
}
496505
.svg-googleplus {
497506
color: #DC4E41;
498507
}

static/img/simple-icons.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)