Update readme images to contain title attributes

This commit is contained in:
2023-07-25 14:26:03 +03:00
parent a3b2f99f91
commit 06b6b3f274
2 changed files with 2449 additions and 2447 deletions

4844
README.md

File diff suppressed because it is too large Load Diff

View File

@@ -12,7 +12,8 @@ if ( count( $files ) < 1 ) {
die('No images to continue with.'); die('No images to continue with.');
} }
function get_basename( string $file ) { function get_basename(string $file)
{
$parts = explode(DIRECTORY_SEPARATOR, $file); $parts = explode(DIRECTORY_SEPARATOR, $file);
return end($parts); return end($parts);
} }
@@ -49,7 +50,8 @@ foreach ( $listing as $header => $icons ) {
$file = $icon; $file = $icon;
[$name, $ext] = explode('.', get_basename($icon), 2); [$name, $ext] = explode('.', get_basename($icon), 2);
$format = '<td style=\'width: %s\'><img width=\'30\' src="%2$s" alt="%2$s"><br><kbd>:%3$s:</kbd></td>'; $format = '<td style=\'width: %s\'><img width=\'30\' src="%2$s"'
. ' alt="%2$s" title=":%3$s:"><br><kbd>:%3$s:</kbd></td>';
$contents .= sprintf($format, $per_row_width, $file, $name) . "\n"; $contents .= sprintf($format, $per_row_width, $file, $name) . "\n";
} }