Skip to content

Commit

Permalink
Switch attendees to X.com icon
Browse files Browse the repository at this point in the history
Fixes #68
  • Loading branch information
joedolson committed Sep 9, 2024
1 parent a564848 commit 6b5969d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/assets/css/wp-conference-schedule-pro.css
Original file line number Diff line number Diff line change
Expand Up @@ -446,3 +446,8 @@ time .localtime:after {
.wpcsp-donors span {
display: block;
}

.attendee-social .dashicons.fa-brands.fa-x-twitter::before {
vertical-align: middle;
border-bottom: 1px solid;
}
2 changes: 1 addition & 1 deletion src/inc/schedule-output-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function wpcs_shortcode_people( $atts ) {
$location = ( $location ) ? '<div class="attendee-location">' . esc_html( $location ) . '</div>' : '';
$icons = array();
if ( $twitter ) {
$icons[] = '<a href="' . esc_url( $twitter ) . '"><span class="dashicons dashicons-twitter" aria-hidden="true"></span><span class="screen-reader-text">' . esc_html( $name ) . ' on Twitter</span></a>';
$icons[] = '<a href="' . esc_url( $twitter ) . '"><span class="dashicons fa-brands fa-x-twitter" aria-hidden="true"></span><span class="screen-reader-text">' . esc_html( $name ) . ' on Twitter</span></a>';
}
if ( $linked ) {
$icons[] = '<a href="' . esc_url( $linked ) . '"><span class="dashicons dashicons-linkedin" aria-hidden="true"></span><span class="screen-reader-text">' . esc_html( $name ) . ' on LinkedIn</span></a>';
Expand Down

0 comments on commit 6b5969d

Please sign in to comment.