@@ -17,7 +17,7 @@ function widget( $args, $instance ) {
17
17
echo '<div class="widget-content"> ' ;
18
18
echo '<div class="follow-icons"> ' ;
19
19
if (!empty ($ instance ['slack ' ])) {
20
- echo '<a href=" ' .$ instance ['slack ' ].'" class="social slack button is-rounded is- black">Slack Community </a> ' ;
20
+ echo '<a href=" ' .$ instance ['slack ' ].'" class="social slack is-black"><i class="icon slack"></i> </a> ' ;
21
21
}
22
22
if (!empty ($ instance ['facebook ' ])) {
23
23
echo '<a href=" ' .$ instance ['facebook ' ].'" class="social facebook is-black"><i class="icon facebook"></i></a> ' ;
@@ -27,6 +27,9 @@ function widget( $args, $instance ) {
27
27
}
28
28
if (!empty ($ instance ['medium ' ])) {
29
29
echo '<a href=" ' .$ instance ['medium ' ].'" class="social medium is-black"><i class="icon medium"></i></a> ' ;
30
+ }
31
+ if (!empty ($ instance ['mail ' ])) {
32
+ echo '<a href="mailto: ' .$ instance ['mail ' ].'" class="social mail is-black"><i class="icon envelope"></i></a> ' ;
30
33
}
31
34
echo '</div> ' ;
32
35
echo '</div> ' ;
@@ -43,6 +46,7 @@ function form( $instance ) {
43
46
echo '<p><label for=" ' . $ this ->get_field_id ( 'facebook ' ) . '">Facebook URL: <input type="text" name=" ' . $ this ->get_field_name ( 'facebook ' ) . '" id=" ' . $ this ->get_field_id ( 'facebook ' ) . '" value=" ' . $ instance ['facebook ' ] . '" class="widefat" /></label></p> ' ;
44
47
echo '<p><label for=" ' . $ this ->get_field_id ( 'twitter ' ) . '">Twitter URL: <input type="text" name=" ' . $ this ->get_field_name ( 'twitter ' ) . '" id=" ' . $ this ->get_field_id ( 'twitter ' ) . '" value=" ' . $ instance ['twitter ' ] . '" class="widefat" /></label></p> ' ;
45
48
echo '<p><label for=" ' . $ this ->get_field_id ( 'medium ' ) . '">Medium URL: <input type="text" name=" ' . $ this ->get_field_name ( 'medium ' ) . '" id=" ' . $ this ->get_field_id ( 'medium ' ) . '" value=" ' . $ instance ['medium ' ] . '" class="widefat" /></label></p> ' ;
49
+ echo '<p><label for=" ' . $ this ->get_field_id ( 'mail ' ) . '">Email: <input type="text" name=" ' . $ this ->get_field_name ( 'mail ' ) . '" id=" ' . $ this ->get_field_id ( 'mail ' ) . '" value=" ' . $ instance ['mail ' ] . '" class="widefat" /></label></p> ' ;
46
50
47
51
}
48
52
}
0 commit comments