Skip to content

Commit

Permalink
weird spacing on album pages
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlan-00 committed May 13, 2024
1 parent 9f963a9 commit 281316a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions public/templates/show_album.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
<?php }
if (!AmpConfig::get('use_auth') || Access::check('interface', 25)) {
if (AmpConfig::get('sociable')) {
$postshout = T_('Post Shout'); ?>
$postshout = "&nbsp;" . T_('Post Shout'); ?>
<li>
<a href="<?php echo $web_path; ?>/shout.php?action=show_add_shout&type=album&id=<?php echo $album->id; ?>">
<?php echo Ui::get_icon('comment', $postshout);
Expand Down Expand Up @@ -231,7 +231,7 @@
<?php
}
if ($zip_album) {
$download = T_('Download'); ?>
$download = "&nbsp;" . T_('Download'); ?>
<li>
<a class="nohtml" href="<?php echo $web_path; ?>/batch.php?action=album&id=<?php echo $album->id; ?>">
<?php echo Ui::get_icon('batch_download', $download);
Expand Down
4 changes: 2 additions & 2 deletions public/templates/show_album_disk.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
<?php } ?>
<?php if (!AmpConfig::get('use_auth') || $access25) { ?>
<?php if (AmpConfig::get('sociable')) {
$postshout = T_('Post Shout'); ?>
$postshout = "&nbsp;" . T_('Post Shout'); ?>
<li>
<a href="<?php echo $web_path; ?>/shout.php?action=show_add_shout&type=album_disk&id=<?php echo $albumDisk->id; ?>">
<?php echo Ui::get_icon('comment', $postshout); ?>
Expand Down Expand Up @@ -223,7 +223,7 @@
} ?>
<?php
if ($zip_albumD) {
$download = T_('Download'); ?>
$download = "&nbsp;" . T_('Download'); ?>
<li>
<a class="nohtml" href="<?php echo $web_path; ?>/batch.php?action=album_disk&id=<?php echo $albumDisk->id; ?>">
<?php echo Ui::get_icon('batch_download', $download); ?>
Expand Down
4 changes: 2 additions & 2 deletions public/templates/show_album_group_disks.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
<?php }
if (!AmpConfig::get('use_auth') || $access25) {
if (AmpConfig::get('sociable')) {
$postshout = T_('Post Shout'); ?>
$postshout = "&nbsp;" . T_('Post Shout'); ?>
<li>
<a href="<?php echo $web_path; ?>/shout.php?action=show_add_shout&type=album&id=<?php echo $album->id; ?>">
<?php echo Ui::get_icon('comment', $postshout);
Expand Down Expand Up @@ -224,7 +224,7 @@
<?php
}
if ($zip_album) {
$download = T_('Download'); ?>
$download = "&nbsp;" . T_('Download'); ?>
<li>
<a class="nohtml" href="<?php echo $web_path; ?>/batch.php?action=album&id=<?php echo $album->id; ?>">
<?php echo Ui::get_icon('batch_download', $download);
Expand Down
4 changes: 2 additions & 2 deletions public/templates/show_artist.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
<?php } ?>
<?php if (!AmpConfig::get('use_auth') || Access::check('interface', 25)) { ?>
<?php if (AmpConfig::get('sociable')) {
$postshout = T_('Post Shout'); ?>
$postshout = "&nbsp;" . T_('Post Shout'); ?>
<li>
<a href="<?php echo $web_path; ?>/shout.php?action=show_add_shout&type=artist&id=<?php echo $artist->id; ?>">
<?php echo Ui::get_icon('comment', $postshout); ?>
Expand All @@ -218,7 +218,7 @@
global $dic; // @todo remove after refactoring
$zipHandler = $dic->get(ZipHandlerInterface::class);
if (Access::check_function('batch_download') && $zipHandler->isZipable('artist')) {
$download = T_('Download'); ?>
$download = "&nbsp;" . T_('Download'); ?>
<li>
<a class="nohtml" href="<?php echo $web_path; ?>/batch.php?action=artist&id=<?php echo $artist->id; ?>">
<?php echo Ui::get_icon('batch_download', $download); ?>
Expand Down
2 changes: 1 addition & 1 deletion src/Module/Util/Rss/AmpacheRss.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public static function get_display($type = 'now_playing', $user_id = -1, $title

$string = '<a class="nohtml" href="' . AmpConfig::get('web_path') . '/rss.php?type=' . $type . $rsstoken . $strparams . '" target="_blank">' . Ui::get_icon('feed', T_('RSS Feed'));
if (!empty($title)) {
$string .= ' &nbsp;' . $title;
$string .= '&nbsp;' . $title;
}
$string .= '</a>';

Expand Down

0 comments on commit 281316a

Please sign in to comment.