Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Changes in index and post thumbnails
Browse files Browse the repository at this point in the history
  • Loading branch information
jedrzejchalubek committed Apr 11, 2017
1 parent cb5bf49 commit 3b61117
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 20 deletions.
16 changes: 0 additions & 16 deletions resources/templates/index.tpl.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
<?php get_header() ?>
<style>
html, body {
height: 100%;
}

body {
display: flex;
align-items: center;
justify-content: center;
}

article {
max-width: 300px;
}
</style>

<?php do_action('theme/index/header') ?>

<main>
Expand Down
16 changes: 13 additions & 3 deletions resources/templates/partials/post/thumbnail-none.tpl.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<article>
None
</article>
<?php

use function App\Theme\config;

?>

<section>
<header>
<h2><?= __('Nothing Found', config('textdomain')) ?></h2>
</header>

<div><?php get_search_form() ?></div>
</section>
10 changes: 9 additions & 1 deletion resources/templates/partials/post/thumbnail.tpl.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<article>
<?php the_title() ?>
<header>
<h2><?php the_title() ?></h2>
</header>

<div><?php the_content() ?></div>

<footer>
<time><?php the_date() ?></time>
</footer>
</article>

0 comments on commit 3b61117

Please sign in to comment.