v1.4.9 - Fixed (most of) style in all documents

This commit is contained in:
Anders
2020-11-26 10:19:12 +01:00
parent f7f449f366
commit cd8fcb8cac
60 changed files with 21912 additions and 365 deletions
@@ -236,26 +236,26 @@ class GuideController extends Controller
foreach ($guides as $guide) {
$output .= '<div class="card">';
if ($guide->resource_id !== null) {
$output .= '<div class="header" style="background-size: cover; background-position: center; background-image: url(' . asset(\App\Resource::query()->where("id", "=", $guide->resource_id)->first()->filename) . ');">' .
'<h3 style="text-shadow: 2px 2px 2px #00788A;">' . $guide->name . '</h3>' .
$output .= '<div class="header bs-cover bp-center" style="background-image: url(' . asset(\App\Resource::query()->where("id", "=", $guide->resource_id)->first()->filename) . ');">' .
'</div>';
} else {
$output .= '<div class="header">' .
'<h3>' . $guide->name . '</h3>' .
$output .= '<div class="header d-flex justify-content-center">' .
'<img alt="Image" src="'. asset('/images/icons/image.svg') . '" style="width: calc(100% - 20px)">' .
'</div>';
}
$output .= '<div class="container">';
$tags = ['<p>', '<b>', '<em>', '<a>', '<u>', '<s>', '<sub>', '<ul>', '<li>', '<sup>', '<div>', '<blockquote>', '<ol>', '<strong>', '<br>', '<h1>', '<h2>', '<h3>', '<h4>', '<h5>', '<h6>', '<h7>', '<span>'];
$output .= '' . \App\Helpers::closetags(substr(strip_tags($guide->guide_articles, $tags), 0, 300)) . '' .
'<div class="row" style="justify-content: center;">';
$output .= '<div class="container">' .
'<div class="row justify-content-center">'.
'<h4>'. $guide->name .'</h4>'.
'</div>'.
'<div class="row justify-content-center">';
if (request()->cookie('languagesSetting') == "dk")
$output .= '<a style="margin: 0; padding: 0; text-align: center; font-weight: 700;" class="sde-blue" href="'. route("guides.show", ["guide" => $guide->id ]) .'">Læs mere</a>';
$output .= '<a class="text-center m-none p-none bold sde-blue" href="'. route("guides.show", ["guide" => $guide->id ]) .'">Læs mere</a>';
elseif (request()->cookie('languagesSetting') == "en")
$output .= '<a style="margin: 0; padding: 0; text-align: center; font-weight: 700;" class="sde-blue" href="'. route("guides.show", ["guide" => $guide->id ]) .'">Read more</a>';
$output .= '<a class="text-center m-none p-none bold sde-blue" href="'. route("guides.show", ["guide" => $guide->id ]) .'">Read more</a>';
else
$output .= '<a style="margin: 0; padding: 0; text-align: center; font-weight: 700;" class="sde-blue" href="'. route("guides.show", ["guide" => $guide->id ]) .'">Læs mere</a>';
$output .= '<a class="text-center m-none p-none bold sde-blue" href="'. route("guides.show", ["guide" => $guide->id ]) .'">Læs mere</a>';
$output .= '</div>'.
'</div>'.
@@ -263,11 +263,11 @@ class GuideController extends Controller
}
} else { // If there are no guides with the given category, then display error message
if (request()->cookie('languagesSetting') == "dk")
$output .= '<p style="margin-bottom: auto; text-align: center">Der er ingen vejledninger af denne kategori</p>';
$output .= '<p class="mb-auto text-center">Der er ingen vejledninger af denne kategori</p>';
elseif (request()->cookie('languagesSetting') == "en")
$output .= '<p style="margin-bottom: auto; text-align: center">There are no guides of this category</p>';
$output .= '<p class="mb-auto text-center">There are no guides of this category</p>';
else
$output .= '<p style="margin-bottom: auto; text-align: center">Der er ingen vejledninger af denne kategori</p>';
$output .= '<p class="mb-auto text-center">Der er ingen vejledninger af denne kategori</p>';
}
return Response($output);