Footer partners: support per-link opacity (clamped to a visible 0.4–1)
Optional "opacity" per entry for visual emphasis; values below 0.4 are raised to the readable floor so links can vary in prominence but cannot be hidden. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1561,14 +1561,21 @@ footer{position:relative}
|
|||||||
);
|
);
|
||||||
@endphp
|
@endphp
|
||||||
@if(! empty($__partners))
|
@if(! empty($__partners))
|
||||||
<div class="footer-partners" style="margin-top:10px;font-size:.72rem;opacity:.45;line-height:2">
|
<div class="footer-partners" style="margin-top:10px;font-size:.72rem;line-height:2">
|
||||||
<span style="opacity:.7">Partnerler:</span>
|
<span style="opacity:.6">Partnerler:</span>
|
||||||
@foreach($__partners as $__p)
|
@foreach($__partners as $__p)
|
||||||
|
@php
|
||||||
|
// Per-link opaklık: görünür aralıkta tutulur (0.4–1). Daha düşük
|
||||||
|
// değerler (gizleme amaçlı 0.1 vb.) okunabilir alt sınıra yükseltilir.
|
||||||
|
$__op = isset($__p['opacity']) && is_numeric($__p['opacity'])
|
||||||
|
? max(0.4, min(1.0, (float) $__p['opacity']))
|
||||||
|
: 0.55;
|
||||||
|
@endphp
|
||||||
<a href="{{ $__p['url'] }}"
|
<a href="{{ $__p['url'] }}"
|
||||||
@isset($__p['title']) title="{{ $__p['title'] }}" @endisset
|
@isset($__p['title']) title="{{ $__p['title'] }}" @endisset
|
||||||
rel="{{ $__p['rel'] ?? 'dofollow' }} noopener"
|
rel="{{ $__p['rel'] ?? 'dofollow' }} noopener"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
style="color:inherit;text-decoration:none;margin-right:12px">{{ $__p['anchor'] }}</a>
|
style="color:inherit;text-decoration:none;margin-right:12px;opacity:{{ $__op }}">{{ $__p['anchor'] }}</a>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|||||||
Reference in New Issue
Block a user