Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Commit

Permalink
Use block system to optimize loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikescops committed Jan 30, 2018
1 parent cb0af41 commit a0880d4
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 58 deletions.
23 changes: 0 additions & 23 deletions _footer.twig

This file was deleted.

68 changes: 46 additions & 22 deletions _header.twig → _master.twig
Original file line number Diff line number Diff line change
Expand Up @@ -23,31 +23,55 @@

</head>
<body>
<div class="contain-to-grid">
<nav class="top-bar" data-topbar>
<ul class="title-area">
<li class="name">
<h1><a href="{{ url('homepage') }}">{{ app.config.get('general/sitename') }}</a></h1>
</li>
<li class="toggle-topbar menu-icon"><a href="#">Menu</a></li>
</ul>

<div class="contain-to-grid">
<nav class="top-bar" data-topbar>
<ul class="title-area">
<li class="name">
<h1><a href="{{ url('homepage') }}">{{ app.config.get('general/sitename') }}</a></h1>
</li>
<li class="toggle-topbar menu-icon"><a href="#">Menu</a></li>
</ul>

<section class="top-bar-section">
<!-- Right Nav Section -->
<ul class="left">
<section class="top-bar-section">
<!-- Right Nav Section -->
<ul class="left">

{{ menu('main', '_sub_menu.twig') }}
{{ menu('main', '_sub_menu.twig') }}

</ul>

</ul>

</ul>
<ul class="right">
{% include '_sub_searchbox.twig' %}
</ul>
<ul class="right">
{% include '_sub_searchbox.twig' %}
</ul>
</section>
</section>

</nav>
</div>
<!-- End Header -->

{% block main %}{% endblock main %}

<!-- FOOTER -->
<footer class="row">
<div class="large-12 columns">
<hr>
<div class="row">
<div class="large-6 columns">
<p> Themed by <a href="https://pixelswap.fr/" target="_blank">Corentin Mors</a> &copy; Bolt CMS </p>
</div>
</div>
</div>
</footer>

<!-- End Footer -->


</nav>
</div>
<script src="{{ asset('js/vendor/jquery.js', 'theme') }}"></script>
<script src="{{ asset('js/foundation.min.js', 'theme') }}"></script>
<script>
$(document).foundation();
</script>

<!-- End Header and Nav -->
</body>
</html>
5 changes: 3 additions & 2 deletions entry.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% include '_header.twig' %}
{% extends '_master.twig' %}
{% block main %}

<div class="row" style="margin-top: 25px;">
<div class="large-8 columns" style="padding-left: 0; padding-right: 0; z-index: 8;">
Expand Down Expand Up @@ -74,4 +75,4 @@

</div>

{% include '_footer.twig' %}
{% endblock main %}
6 changes: 3 additions & 3 deletions index.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% include '_header.twig' %}

{% extends '_master.twig' %}
{% block main %}
<!-- Main Grid Section -->

{% setcontent records = "entries/latest/6" allowpaging %}
Expand Down Expand Up @@ -57,4 +57,4 @@

<!-- End Grid Section -->

{% include '_footer.twig' %}
{% endblock main %}
9 changes: 5 additions & 4 deletions listing.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% include '_header.twig' %}
{% extends '_master.twig' %}
{% block main %}

<div class="row" style="margin-top: 25px;">

Expand All @@ -12,7 +13,7 @@
{% endif %}
<h3 style="margin-bottom: 0px;">{{ record.title }}</h3>
<p style="margin-bottom: 0px;">{{ record.excerpt(100) }}</p>
<a href="{{ record.link }}" class="button radius tiny">Voir plus ...</a>
<a href="{{ record.link }}" class="button radius tiny">View more ...</a>
<br>
</div>
</div>
Expand All @@ -28,7 +29,7 @@
Unfortunately, no content could be found. Try another page, or go to the
<a href="{{ url('homepage') }}">homepage</a>.
</p>

</article>


Expand All @@ -44,4 +45,4 @@

</div>
<br>
{% include '_footer.twig' %}
{% endblock main %}
5 changes: 3 additions & 2 deletions record.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% include '_header.twig' %}
{% extends '_master.twig' %}
{% block main %}

<div class="container-fluid" style="margin-top: 100px;">
<div class="row">
Expand Down Expand Up @@ -103,4 +104,4 @@

<hr>

{% include '_footer.twig' %}
{% endblock main %}
5 changes: 3 additions & 2 deletions searchresults.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% include '_header.twig' %}
{% extends '_master.twig' %}
{% block main %}

<div class="container-fluid" style="margin-top: 100px;">
<div class="row-fluid">
Expand Down Expand Up @@ -60,4 +61,4 @@

<hr>

{% include '_footer.twig' %}
{% endblock main %}

0 comments on commit a0880d4

Please sign in to comment.