Skip to content

Commit

Permalink
tighten subcategory placement on printed label
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketMan committed Oct 23, 2023
1 parent d932e2f commit af5e72c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/PrintTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ protected function loadTags($tags) {
'artist' => "\n\n\n" . $artist,
'title' => "\n\n\n\n " . $title,
'category' => "\n\n\n\n" . $category,
'subcat' => count($cat) > 1 ? "\n\n\n\n\n" . strtoupper($cat[1]) : false,
'subcat' => count($cat) > 1 ? str_repeat("\n", 8) . strtoupper($cat[1]) : false,
'date' => date_format(date_create($album['created']), " m-Y"),
'special' => $greek
];
Expand Down Expand Up @@ -145,7 +145,7 @@ public function processRequest() {
$pdf->SetFontSize(self::FONT_SIZE_SUB);
$pdf->currentLabel($album['title']);
$pdf->currentLabel($album['category'], 'R');
$pdf->SetFontSize(self::FONT_SIZE_DATE);
$pdf->Set_Font_Size(self::FONT_SIZE_DATE);
$pdf->verticalText($album['date'], $inst ? -15 : -1, 0);
if($album['subcat'])
$pdf->currentLabel($album['subcat'], 'R');
Expand Down

0 comments on commit af5e72c

Please sign in to comment.