update footer setting type
This commit is contained in:
parent
fccf54ed5a
commit
dedf105f06
|
@ -1287,6 +1287,29 @@ $links: (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @keyframes avatarlogo {
|
||||||
|
// 0% {
|
||||||
|
// -webkit-mask: linear-gradient(135deg,#000c 40%,#000,#000c 60%) 100% 100%/250% 250%;
|
||||||
|
// }
|
||||||
|
// 40% {
|
||||||
|
// -webkit-mask-position: 0 0;
|
||||||
|
// }
|
||||||
|
// 90% {
|
||||||
|
// -webkit-mask: linear-gradient(135deg,#000c 40%,#000,#000c 60%) 100% 100%/250% 250%;
|
||||||
|
// }
|
||||||
|
// 100% {
|
||||||
|
// -webkit-mask: linear-gradient(135deg,#000c 40%,#000,#000c 60%) 100% 100%/250% 250%;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// .avatar-logo {
|
||||||
|
// img, svg {
|
||||||
|
// _animation-name: avatarlogo;
|
||||||
|
// animation-duration: 7s;
|
||||||
|
// animation-iteration-count: infinite;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
.bg-box {
|
.bg-box {
|
||||||
background: #343c53;
|
background: #343c53;
|
||||||
|
|
|
@ -9,6 +9,7 @@ use Symfony\Component\Form\Extension\Core\Type\EmailType;
|
||||||
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
|
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
|
||||||
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
||||||
use App\Core\Form\FileManager\FilePickerType;
|
use App\Core\Form\FileManager\FilePickerType;
|
||||||
|
use App\Core\Form\Type\TinymceTextareaType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* class SettingEventSubscriber.
|
* class SettingEventSubscriber.
|
||||||
|
@ -93,7 +94,7 @@ class SettingEventSubscriber extends EventSubscriber
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (in_array($entity->getCode(), ['blog_footer', 'post_author_description'])) {
|
if (in_array($entity->getCode(), ['post_author_description'])) {
|
||||||
$event->setOption('view', 'large');
|
$event->setOption('view', 'large');
|
||||||
|
|
||||||
$builder->add(
|
$builder->add(
|
||||||
|
@ -107,5 +108,20 @@ class SettingEventSubscriber extends EventSubscriber
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (in_array($entity->getCode(), ['blog_footer'])) {
|
||||||
|
$event->setOption('view', 'large');
|
||||||
|
|
||||||
|
$builder->add(
|
||||||
|
'value',
|
||||||
|
TinymceTextareaType::class,
|
||||||
|
[
|
||||||
|
'label' => $entity->getLabel(),
|
||||||
|
'attr' => [
|
||||||
|
'rows' => 20,
|
||||||
|
],
|
||||||
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<div class="wide-menu hidden md:block">
|
<div class="wide-menu hidden md:block">
|
||||||
<div class="fixed-menu">
|
<div class="fixed-menu">
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<a href="{{- safe_path('blog_menu_posts', {_domain: _domain}) -}}">
|
<a href="{{- safe_path('blog_menu_posts', {_domain: _domain}) -}}" class="avatar-logo">
|
||||||
{%- if avatar -%}
|
{%- if avatar -%}
|
||||||
<img src="{{- asset(avatar)|imagine_filter('site_avatar') -}}" class="rounded-full inline mb-2" alt="{{- avatar|file_attribute('title') -}}">
|
<img src="{{- asset(avatar)|imagine_filter('site_avatar') -}}" class="rounded-full inline mb-2" alt="{{- avatar|file_attribute('title') -}}">
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
Loading…
Reference in a new issue