@@ -164,10 +164,16 @@ function zerif_setup() {
164164
165165 add_action ( 'zerif_primary_navigation ' , 'zerif_primary_navigation_function ' ); #Outputs the navigation menu
166166
167+ add_filter ( 'excerpt_more ' , 'wpdocs_excerpt_more ' );
168+
167169}
168170
169171add_action ('after_setup_theme ' , 'zerif_setup ' );
170172
173+ function wpdocs_excerpt_more ( $ more ) {
174+ return ' ... <a href=" ' .get_the_permalink ().'" rel="nofollow"> ' . esc_html__ ('Read more ' , 'zerif-lite ' ) .' <span class="sr-only"> ' . esc_html__ ('about ' , 'zerif-lite ' ).get_the_title () . '</span>...</a> ' ;
175+ }
176+
171177function zerif_lite_is_not_latest_posts () {
172178 return ('posts ' == get_option ( 'show_on_front ' ) ? true : false );
173179}
@@ -669,41 +675,41 @@ function widget($args, $instance) {
669675
670676 <?php if ( !empty ($ instance ['image_uri ' ]) && ($ instance ['image_uri ' ] != 'Upload Image ' ) ) { ?>
671677
672- <div class="service-icon">
673-
674- <?php if ( !empty ($ instance ['link ' ]) ) { ?>
675-
676- <a href="<?php echo esc_url ($ instance ['link ' ]); ?> "><i class="pixeden" style="background:url(<?php echo esc_url ($ instance ['image_uri ' ]); ?> ) no-repeat center;width:100%; height:100%;"></i> <!-- FOCUS ICON--></a>
677-
678- <?php } else { ?>
679-
680- <i class="pixeden" style="background:url(<?php echo esc_url ($ instance ['image_uri ' ]); ?> ) no-repeat center;width:100%; height:100%;"></i> <!-- FOCUS ICON-->
678+
681679
682- <?php } ?>
680+ <?php if ( !empty ($ instance ['link ' ]) ) { ?>
681+
682+ <a href="<?php echo esc_url ($ instance ['link ' ]); ?> " class="service-icon"><span class="sr-only"><?php _e ( 'Go to ' , 'zerif-lite ' ); ?> <?php echo apply_filters ('widget_title ' , $ instance ['title ' ]); ?> </span> <i class="pixeden" style="background:url(<?php echo esc_url ($ instance ['image_uri ' ]); ?> ) no-repeat center;width:100%; height:100%;"></i></a>
683+
684+ <?php } else { ?>
685+
686+ <div class="service-icon" tabindex="0">
687+ <i class="pixeden" style="background:url(<?php echo esc_url ($ instance ['image_uri ' ]); ?> ) no-repeat center;width:100%; height:100%;"></i> <!-- FOCUS ICON-->
688+ </div>
689+
690+ <?php } ?>
683691
684- </div>
692+
685693
686694 <?php } elseif ( !empty ($ instance ['custom_media_id ' ]) ) {
687695
688696 $ zerif_ourfocus_custom_media_id = wp_get_attachment_image_src ($ instance ["custom_media_id " ] );
689697 if ( !empty ($ zerif_ourfocus_custom_media_id ) && !empty ($ zerif_ourfocus_custom_media_id [0 ]) ) {
690698 ?>
691699
692- <div class="service-icon">
700+
693701
694- <?php if ( !empty ($ instance ['link ' ]) ) { ?>
695-
696- <a href="<?php echo esc_url ($ instance ['link ' ]); ?> "><i class="pixeden" style="background:url(<?php echo esc_url ($ zerif_ourfocus_custom_media_id [0 ]); ?> ) no-repeat center;width:100%; height:100%;"></i> <!-- FOCUS ICON--></a>
697-
698- <?php } else { ?>
699-
700- <i class="pixeden" style="background:url(<?php echo esc_url ($ zerif_ourfocus_custom_media_id [0 ]); ?> ) no-repeat center;width:100%; height:100%;"></i> <!-- FOCUS ICON-->
701-
702- <?php } ?>
703-
704- </div>
705-
706- <?php
702+ <?php if ( !empty ($ instance ['link ' ]) ) { ?>
703+
704+ <a href="<?php echo esc_url ($ instance ['link ' ]); ?> " class="service-icon"><span class="sr-only"><?php _e ( 'Go to ' , 'zerif-lite ' ); ?> <?php echo apply_filters ('widget_title ' , $ instance ['title ' ]); ?> </span> <i class="pixeden" style="background:url(<?php echo esc_url ($ zerif_ourfocus_custom_media_id [0 ]); ?> ) no-repeat center;width:100%; height:100%;"></i></a>
705+
706+ <?php } else { ?>
707+
708+ <div class="service-icon" tabindex="0">
709+ <i class="pixeden" style="background:url(<?php echo esc_url ($ zerif_ourfocus_custom_media_id [0 ]); ?> ) no-repeat center;width:100%; height:100%;"></i> <!-- FOCUS ICON-->
710+ </div>
711+
712+ <?php }
707713 }
708714
709715 }
@@ -863,18 +869,20 @@ function widget($args, $instance) {
863869
864870 echo '<div class="client-image hidden-xs"> ' ;
865871
866- echo '<img src=" ' . esc_url ($ instance ['image_uri ' ]) . '" alt=" ' . __ ( ' Uploaded image ' , ' zerif-lite ' ). ' " /> ' ;
872+ echo '<img src=" ' . esc_url ($ instance ['image_uri ' ]) . '" alt="" /> ' ;
867873
868874 echo '</div> ' ;
869875
870876 } elseif ( !empty ($ instance ['custom_media_id ' ]) ) {
871877
872878 $ zerif_testimonials_custom_media_id = wp_get_attachment_image_src ($ instance ["custom_media_id " ] );
879+ $ alt = get_post_meta ($ instance ['custom_media_id ' ], '_wp_attachment_image_alt ' , true );
880+
873881 if ( !empty ($ zerif_testimonials_custom_media_id ) && !empty ($ zerif_testimonials_custom_media_id [0 ]) ) {
874882
875883 echo '<div class="client-image hidden-xs"> ' ;
876884
877- echo '<img src=" ' . esc_url ($ zerif_testimonials_custom_media_id [0 ]) . '" alt=" ' .__ ( ' Uploaded image ' , ' zerif-lite ' ) .'" /> ' ;
885+ echo '<img src=" ' . esc_url ($ zerif_testimonials_custom_media_id [0 ]) . '" alt=" ' . $ alt .'" /> ' ;
878886
879887 echo '</div> ' ;
880888
@@ -1100,25 +1108,28 @@ function widget($args, $instance) {
11001108
11011109 <div class="col-lg-3 col-sm-3 team-box">
11021110
1103- <div class="team-member">
1111+ <div class="team-member" tabindex="0" >
11041112
11051113 <?php if ( !empty ($ instance ['image_uri ' ]) && ($ instance ['image_uri ' ] != 'Upload Image ' ) ) { ?>
1114+
11061115
11071116 <figure class="profile-pic">
11081117
1109- <img src="<?php echo esc_url ($ instance ['image_uri ' ]); ?> " alt="<?php _e ( ' Uploaded image ' , ' zerif-lite ' ); ?> " />
1118+ <img src="<?php echo esc_url ($ instance ['image_uri ' ]); ?> " alt="" />
11101119
11111120 </figure>
11121121 <?php
11131122 } elseif ( !empty ($ instance ['custom_media_id ' ]) ) {
11141123
11151124 $ zerif_team_custom_media_id = wp_get_attachment_image_src ($ instance ["custom_media_id " ] );
1125+ $ alt = get_post_meta ($ instance ['custom_media_id ' ], '_wp_attachment_image_alt ' , true );
1126+
11161127 if ( !empty ($ zerif_team_custom_media_id ) && !empty ($ zerif_team_custom_media_id [0 ]) ) {
11171128 ?>
11181129
11191130 <figure class="profile-pic">
11201131
1121- <img src="<?php echo esc_url ($ zerif_team_custom_media_id [0 ]); ?> " alt="<?php _e ( ' Uploaded image ' , ' zerif-lite ' ) ; ?> " />
1132+ <img src="<?php echo esc_url ($ zerif_team_custom_media_id [0 ]); ?> " alt="<?php echo $ alt ; ?> " />
11221133
11231134 </figure>
11241135
@@ -1154,27 +1165,27 @@ function widget($args, $instance) {
11541165 ?>
11551166
11561167 <?php if ( !empty ($ instance ['fb_link ' ]) ): ?>
1157- <li><a href="<?php echo apply_filters ('widget_title ' , $ instance ['fb_link ' ]); ?> " target="<?php echo $ zerif_team_target ; ?> "><i
1168+ <li><a href="<?php echo apply_filters ('widget_title ' , $ instance ['fb_link ' ]); ?> " target="<?php echo $ zerif_team_target ; ?> "><span class="sr-only"> <?php _e ( ' Facebook account of ' , ' zerif-lite ' ); ?> <?php echo apply_filters ( ' widget_title ' , $ instance [ ' name ' ]); ?> </span>< i
11581169 class="fa fa-facebook"></i></a></li>
11591170 <?php endif ; ?>
11601171
11611172 <?php if ( !empty ($ instance ['tw_link ' ]) ): ?>
1162- <li><a href="<?php echo apply_filters ('widget_title ' , $ instance ['tw_link ' ]); ?> " target="<?php echo $ zerif_team_target ; ?> "><i
1173+ <li><a href="<?php echo apply_filters ('widget_title ' , $ instance ['tw_link ' ]); ?> " target="<?php echo $ zerif_team_target ; ?> "><span class="sr-only"> <?php _e ( ' Twitter account of ' , ' zerif-lite ' ); ?> <?php echo apply_filters ( ' widget_title ' , $ instance [ ' name ' ]); ?> </span>< i
11631174 class="fa fa-twitter"></i></a></li>
11641175 <?php endif ; ?>
11651176
11661177 <?php if ( !empty ($ instance ['bh_link ' ]) ): ?>
1167- <li><a href="<?php echo apply_filters ('widget_title ' , $ instance ['bh_link ' ]); ?> " target="<?php echo $ zerif_team_target ; ?> "><i
1178+ <li><a href="<?php echo apply_filters ('widget_title ' , $ instance ['bh_link ' ]); ?> " target="<?php echo $ zerif_team_target ; ?> "><span class="sr-only"> <?php _e ( ' Behance account of ' , ' zerif-lite ' ); ?> <?php echo apply_filters ( ' widget_title ' , $ instance [ ' name ' ]); ?> </span>< i
11681179 class="fa fa-behance"></i></a></li>
11691180 <?php endif ; ?>
11701181
11711182 <?php if ( !empty ($ instance ['db_link ' ]) ): ?>
1172- <li><a href="<?php echo apply_filters ('widget_title ' , $ instance ['db_link ' ]); ?> " target="<?php echo $ zerif_team_target ; ?> "><i
1183+ <li><a href="<?php echo apply_filters ('widget_title ' , $ instance ['db_link ' ]); ?> " target="<?php echo $ zerif_team_target ; ?> "><span class="sr-only"> <?php _e ( ' Dribble account of ' , ' zerif-lite ' ); ?> <?php echo apply_filters ( ' widget_title ' , $ instance [ ' name ' ]); ?> </span>< i
11731184 class="fa fa-dribbble"></i></a></li>
11741185 <?php endif ; ?>
11751186
11761187 <?php if ( !empty ($ instance ['ln_link ' ]) ): ?>
1177- <li><a href="<?php echo apply_filters ('widget_title ' , $ instance ['ln_link ' ]); ?> " target="<?php echo $ zerif_team_target ; ?> "><i
1188+ <li><a href="<?php echo apply_filters ('widget_title ' , $ instance ['ln_link ' ]); ?> " target="<?php echo $ zerif_team_target ; ?> "><span class="sr-only"> <?php _e ( ' Linkedin account of ' , ' zerif-lite ' ); ?> <?php echo apply_filters ( ' widget_title ' , $ instance [ ' name ' ]); ?> </span>< i
11781189 class="fa fa-linkedin"></i></a></li>
11791190 <?php endif ; ?>
11801191
0 commit comments