mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 06:46:08 -06:00
post/categories/"category" view fix
This commit is contained in:
commit
7057df5d77
@ -1,23 +1,37 @@
|
|||||||
{% block styles %}
|
{% block styles %}
|
||||||
{{ asset_style("visiosoft.theme.base::css/post.scss") }}
|
{{ asset_style("visiosoft.theme.base::css/post.scss") }}
|
||||||
|
<style>
|
||||||
|
.container{
|
||||||
|
max-width: 100% !important;
|
||||||
|
}
|
||||||
|
.news-img-height{
|
||||||
|
height: 300px ;
|
||||||
|
}
|
||||||
|
|
||||||
|
.news-cover-img-wrapper {
|
||||||
|
padding: 20px;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
<div class="container mt-2 mb-4 px-0">
|
<div class="row mt-2 mb-4 px-0">
|
||||||
<div class="d-flex justify-content-between align-items-center mb-2">
|
<div class="d-flex justify-content-between ml-auto align-items-center mb-2">
|
||||||
<h5 class="text-left ml-2">{{ trans('visiosoft.theme.base::field.news_title', {name: setting_value('streams::name')}) }}</h5>
|
<h5 class="text-left mr-2">{{ trans('visiosoft.theme.base::field.news_title', {name: setting_value('streams::name')}) }}</h5>
|
||||||
<a href="{{ url('posts') }}" class="btn btn-outline-primary all-post-btn d-none d-md-block">
|
<a href="{{ url('posts') }}" class="btn btn-outline-primary all-post-btn d-none d-md-block">
|
||||||
{{ trans('visiosoft.theme.base::field.all_news') }}
|
{{ trans('visiosoft.theme.base::field.all_news') }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="slider">
|
<div class="row">
|
||||||
{% if entries('posts','types').findBySlug('default') %}
|
{% if entries('posts','types').findBySlug('default') %}
|
||||||
{% set posts = entries('posts').type('default').live().limit(4).get() %}
|
{% set posts = entries('posts').type('default').live().limit(4).get() %}
|
||||||
{% for post in posts %}
|
{% for post in posts %}
|
||||||
|
<div class="col-4 mt-2">
|
||||||
<div class="px-2">
|
<div class="px-2">
|
||||||
<div
|
<div
|
||||||
class="fs-14 product rounded position-relative bg-white link-dark text-decoration-none border">
|
class="fs-14 product rounded position-relative bg-white link-dark text-decoration-none border">
|
||||||
<div class="product-img d-flex justify-content-center">
|
<div class="product-img d-flex justify-content-center">
|
||||||
<a href="{{ post.route('view') }}" class="">
|
<a href="{{ post.route('view') }}" class="news-cover-img-wrapper">
|
||||||
{{ img( post.cover_image.make.url ?? 'visiosoft.theme.base::images/no-image.png').class("w-600")|raw }}
|
{{ img( post.cover_image.make.url ?? 'visiosoft.theme.base::images/no-image.png').class("w-100 news-img-height")|raw }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-center product-text-area p-3">
|
<div class="text-center product-text-area p-3">
|
||||||
@ -29,6 +43,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user