Категории услуг и удаление latest из блога
This commit is contained in:
@@ -1,93 +0,0 @@
|
||||
{{ header }}
|
||||
<div class="container">
|
||||
<ul class="breadcrumb">
|
||||
{% for breadcrumb in breadcrumbs %}
|
||||
<li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<div class="row">{{ column_left }}
|
||||
{% if column_left and column_right %}
|
||||
{% set class = 'col-sm-6' %}
|
||||
{% elseif column_left or column_right %}
|
||||
{% set class = 'col-sm-9' %}
|
||||
{% else %}
|
||||
{% set class = 'col-sm-12' %}
|
||||
{% endif %}
|
||||
<div id="content" class="{{ class }} showcase-list">{{ content_top }}
|
||||
<h1>{{ heading_title }}</h1>
|
||||
{% if articles %}
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<div class="btn-group">
|
||||
<button type="button" id="list-view" class="btn btn-default" data-toggle="tooltip" title="{{ text_list }}"><i class="fa fa-th-list"></i></button>
|
||||
<button type="button" id="grid-view" class="btn btn-default" data-toggle="tooltip" title="{{ text_grid }}"><i class="fa fa-th"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-1 col-sm-offset-2 text-right">
|
||||
<label class="control-label" for="input-sort">{{ text_sort }}</label>
|
||||
</div>
|
||||
<div class="col-sm-3 text-right">
|
||||
<select id="input-sort" class="form-control" onchange="location = this.value;">
|
||||
{% for sorts in sorts %}
|
||||
{% if sorts.value == '%s-%s'|format(sort, order) %}
|
||||
<option value="{{ sorts.href }}" selected="selected">{{ sorts.text }}</option>
|
||||
{% else %}
|
||||
<option value="{{ sorts.href }}">{{ sorts.text }}</option>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-1 text-right">
|
||||
<label class="control-label" for="input-limit">{{ text_limit }}</label>
|
||||
</div>
|
||||
<div class="col-sm-2 text-right">
|
||||
<select id="input-limit" class="form-control" onchange="location = this.value;">
|
||||
{% for limits in limits %}
|
||||
{% if limits.value == limit %}
|
||||
<option value="{{ limits.href }}" selected="selected">{{ limits.text }}</option>
|
||||
{% else %}
|
||||
<option value="{{ limits.href }}">{{ limits.text }}</option>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div class="row">
|
||||
{% for article in articles %}
|
||||
<div class="product-layout product-list col-xs-12">
|
||||
<div class="product-thumb">
|
||||
<div class="image"><a href="{{ article['href'] }}"><img src="{{ article['thumb'] }}" alt="{{ article['name'] }}" title="{{ article['name'] }}" class="img-responsive" /></a></div>
|
||||
<div class="caption">
|
||||
<h4><a href="{{ article['href'] }}">{{ article['name'] }}</a></h4>
|
||||
<p class="description">{{ article['description'] }}</p>
|
||||
{% if configblog_review_status %}
|
||||
{% if article.rating %}
|
||||
<div class="rating"> {% for i in 1..5 %}
|
||||
{% if article.rating < i %} <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-2x"></i></span> {% else %} <span class="fa fa-stack"><i class="fa fa-star fa-stack-2x"></i><i class="fa fa-star-o fa-stack-2x"></i></span>{% endif %}
|
||||
{% endfor %} </div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="button-group">
|
||||
<button type="button" onclick="location.href = ('{{ article.href }}');"><i class="fa fa-share"></i> <span class="hidden-xs hidden-sm hidden-md">{{ button_more }}</span></button>
|
||||
<button type="button" data-toggle="tooltip" title="{{ article.date_added }}" "><i class="fa fa-clock-o"></i></button>
|
||||
<button type="button" data-toggle="tooltip" title="{{ text_views }} {{ article.viewed }}" "><i class="fa fa-eye"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-6 text-left">{{ pagination }}</div>
|
||||
</div>
|
||||
{% else %}
|
||||
<p>{{ text_empty }}</p>
|
||||
<div class="buttons">
|
||||
<div class="pull-right"><a href="{{ continue }}" class="btn btn-primary">{{ button_continue }}</a></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{{ content_bottom }}</div>
|
||||
{{ column_right }}</div>
|
||||
</div>
|
||||
{{ footer }}
|
||||
@@ -0,0 +1,56 @@
|
||||
{{ header }}
|
||||
{{ content_top }}
|
||||
<section class="section py-5">
|
||||
<div class="container-fluid">
|
||||
<ul class="breadcrumb">
|
||||
{% for key,breadcrumb in breadcrumbs %}
|
||||
<li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a>{% if key + 1 < breadcrumbs|length %}<span class="mx-2">•</span>{% endif %}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<h1>{{ heading_title }}</h1>
|
||||
<div class="content">
|
||||
{% if thumb or description %}
|
||||
<div class="row">
|
||||
{% if thumb %}
|
||||
<div class="col-sm-2"><img src="{{ thumb }}" alt="{{ heading_title }}" title="{{ heading_title }}" class="img-thumbnail" /></div>
|
||||
{% endif %}
|
||||
{% if description %}
|
||||
<div class="col-sm-10">{{ description }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<hr>
|
||||
{% endif %}
|
||||
{% if categories %}
|
||||
<h3>{{ text_refine }}</h3>
|
||||
<ul>
|
||||
{% for category in categories %}
|
||||
<li><a href="{{ category.href }}">{{ category.name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% if services %}
|
||||
<div class="row g-3">
|
||||
{% for service in services %}
|
||||
<div class="col-md-4 col-lg-3 col-sm-6">
|
||||
<div class="product-thumb">
|
||||
{% if service.thumb %}
|
||||
<div class="image"><a href="{{ service.href }}"><img src="{{ service.thumb }}" alt="{{ service.name }}" title="{{ service.name }}" class="img-responsive" /></a></div>
|
||||
{% endif %}
|
||||
<div class="caption">
|
||||
<h4><a href="{{ service.href }}">{{ service.name }}</a></h4>
|
||||
<p class="description">{{ service.description }}</p>
|
||||
</div>
|
||||
<div><a href="{{ service.href }}" class="btn btn-dark">{{ button_more }}</a></div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% elseif not categories %}
|
||||
<p>{{ text_empty }}</p>
|
||||
{% endif %}
|
||||
{{ pagination }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ content_bottom }}
|
||||
{{ footer }}
|
||||
@@ -1,38 +0,0 @@
|
||||
{{ header }}
|
||||
{{ content_top }}
|
||||
<section class="section py-5">
|
||||
<div class="container-fluid">
|
||||
<ul class="breadcrumb">
|
||||
{% for key,breadcrumb in breadcrumbs %}
|
||||
<li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a>{% if key + 1 < breadcrumbs|length %}<span class="mx-2">•</span>{% endif %}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<h1>{{ heading_title }}</h1>
|
||||
<div class="content">
|
||||
{% if services %}
|
||||
<div class="row g-3">
|
||||
{% for service in services %}
|
||||
<div class="col-md-4 col-lg-3 col-sm-6">
|
||||
<div class="product-thumb">
|
||||
<div class="image"><a href="{{ service.href }}"><img src="{{ service.thumb }}" alt="{{ service.name }}" title="{{ service.name }}" class="img-responsive" /></a></div>
|
||||
<div class="caption">
|
||||
<h4><a href="{{ service.href }}">{{ service.name }}</a></h4>
|
||||
<p class="description">{{ service['description'] }}</p>
|
||||
</div>
|
||||
<div>
|
||||
<a href="{{ service.href }}" class="btn btn-dark">{{ button_more }}</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% else %}
|
||||
<p>{{ text_empty }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ content_bottom }}
|
||||
{{ footer }}
|
||||
Reference in New Issue
Block a user