mirror of
https://github.com/ivuorinen/emoji.git
synced 2026-03-10 12:59:00 +00:00
Update readme images to contain title attributes
This commit is contained in:
@@ -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";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user