+ $icons = '';
+ foreach( $out->mPageIcons as $icon ) {
+ list( $file, $alt ) = $icon;
+ $fileAttr = array( 'src' => $file->createThumb( 16 ) );
+ if( $alt != '' ) {
+ $msg = wfMsg( $alt );
+ if( !wfEmptyMsg( $alt ) ) {
+ $alt = $msg;
+ }
+ $fileAttr['alt'] = htmlspecialchars( $alt );
+ }
+ $icons .= Html::element( 'img', $fileAttr ) . " ";
+ }
+ $tpl->set( 'pageicons', $icons );
+