22 lines
543 B
PHP
22 lines
543 B
PHP
<?php
|
|
|
|
namespace App\Actions\Generate\Pdf;
|
|
|
|
use App\Actions\Generate\Utilities\Format;
|
|
|
|
class Ueberschrift
|
|
{
|
|
public static function load($inhalt)
|
|
{
|
|
if ($inhalt->ueberschrift_anzeigen && $inhalt->inhaltselement_id != 9) {
|
|
if ($inhalt->ordnungszahl * 1 > 0) {
|
|
return '<div class="header">'.Format::index($inhalt->ordnungszahl).' '.$inhalt->name.'</div>';
|
|
} else {
|
|
return '<div class="header">'.$inhalt->name.'</div>';
|
|
}
|
|
}
|
|
|
|
return false;
|
|
}
|
|
}
|