Кастомные блоки

master
Anthony Axenov 2022-09-04 09:30:35 +08:00
parent a868b677f0
commit d2bc1678f5
Signed by: anthony
GPG Key ID: EA9EC32FF7CCD4EC
4 changed files with 10 additions and 3 deletions

2
.gitignore vendored
View File

@ -3,6 +3,8 @@
/downloaded /downloaded
/src/cache/* /src/cache/*
/src/vendor /src/vendor
/src/views/custom/*
!/src/views/custom/custom.twig.example
*.log *.log
.env .env
*.m3u *.m3u

View File

View File

@ -0,0 +1,6 @@
{# Файл для включения кастомных блоков #}
{% block head %}{# ваш код здесь #}{% endblock %}
{% block header %}{# ваш код здесь #}{% endblock %}
{% block content %}{# ваш код здесь #}{% endblock %}
{% block footer %}{# ваш код здесь #}{% endblock %}

View File

@ -6,7 +6,6 @@
<meta name="description" content="Самообновляемые бесплатные IPTV-плейлисты для домашнего просмотра по коротким ссылкам, списки каналов, проверка доступности"> <meta name="description" content="Самообновляемые бесплатные IPTV-плейлисты для домашнего просмотра по коротким ссылкам, списки каналов, проверка доступности">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge"> <meta http-equiv="x-ua-compatible" content="ie=edge">
<style>.cursor-pointer{cursor:pointer}</style> <style>.cursor-pointer{cursor:pointer}</style>
<link href="{{ base_url('css/bootstrap.min.css') }}" rel="stylesheet"> <link href="{{ base_url('css/bootstrap.min.css') }}" rel="stylesheet">
<link rel="apple-touch-icon" sizes="180x180" href="{{ base_url('/favicon/apple-touch-icon.png') }}"> <link rel="apple-touch-icon" sizes="180x180" href="{{ base_url('/favicon/apple-touch-icon.png') }}">
@ -17,8 +16,7 @@
<meta name="msapplication-TileColor" content="#00aba9"> <meta name="msapplication-TileColor" content="#00aba9">
<meta name="msapplication-TileImage" content="{{ base_url('/favicon/mstile-144x144.png') }}"> <meta name="msapplication-TileImage" content="{{ base_url('/favicon/mstile-144x144.png') }}">
<meta name="theme-color" content="#212529"> <meta name="theme-color" content="#212529">
{% block head %}{% endblock %}
</head> </head>
<body class="bg-dark text-light"> <body class="bg-dark text-light">
<div class="container col-lg-8 mx-auto"> <div class="container col-lg-8 mx-auto">
@ -67,5 +65,6 @@
href="https://axenov.dev">axenov.dev</a> href="https://axenov.dev">axenov.dev</a>
</footer> </footer>
</div> </div>
{% include "custom/custom.twig" %}
</body> </body>
</html> </html>