This commit is contained in:
pushuo 2022-11-16 09:56:22 +08:00
parent bfa77f6cbd
commit f893a77545
2 changed files with 2 additions and 3 deletions

View File

@ -156,7 +156,7 @@ class DesignService
}
$type = $link['type'] ?? '';
$value = (int)$link['value'] ?? 0;
$value = $link['type'] == 'custom' ? $link['value'] : ((int)$link['value'] ?? 0);
$images[$index]['link']['link'] = self::handleLink($type, $value);
}

View File

@ -29,7 +29,6 @@
<div class="text tinymce-format-p">{!! $footer_content['content']['intro']['text'][$locale] ?? '' !!}</div>
</div>
</div>
@for ($i = 1; $i <= 3; $i++)
@php
$link = $footer_content['content']['link' . $i];
@ -41,7 +40,7 @@
@if ($item['link'])
<li class="lh-lg mb-2">
<a href="{{ $item['link'] }}" @if (isset($item['new_window']) && $item['new_window']) target="_blank" @endif>
{{ $item['type'] == 'custom' ? $item['text'][$locale] ?? '' : $item['text'] }}
{{ $item['text'] }}
</a>
</li>
@endif