Commit c51f549a authored by Petr Balga's avatar Petr Balga

Theme created & plugins updated + gulpfile modified

parent 3a8c45b1
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
# Next.js build output
.next
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
\ No newline at end of file
# BEGIN WordPress
# Direktivy (řádky) mezi 'BEGIN WordPress' a 'END WordPress' jsou
# dynamicky generované a měly by být upravovány pouze pomocí filtrů WordPressu.
# Veškeré změny směrnic mezi těmito značkami budou přepsány.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /creepy/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /creepy/index.php [L]
</IfModule>
# END WordPress
\ No newline at end of file
var gulp = require('gulp');
var sass = require('gulp-sass');
var autoprefixer = require('gulp-autoprefixer');
var browserSync = require('browser-sync').create();
gulp.task('sass', function () {
return gulp.src('./scss/*.scss')
.pipe(sass())
.pipe(gulp.dest('./css'));
});
gulp.task('watch', function(){
browserSync.init({
proxy: "localhost/creepy/"
})
gulp.watch('./wp-content/themes/CreepyTheme/scss/*.scss') //D:\Programs\xampp\htdocs\creepy\wp-content\themes\CreepyTheme
.on('change', function(path, stats) {
return gulp.src('./wp-content/themes/CreepyTheme/scss/*.scss')
.pipe(sass())
.pipe(autoprefixer({
cascade: false
}))
.pipe(gulp.dest('./wp-content/themes/CreepyTheme/css'));
})
gulp.watch('./css/*.css').on('change', browserSync.reload);
gulp.watch('./**/*.php').on('change', browserSync.reload);
gulp.watch('./includes/*.php').on('change', browserSync.reload);
});
gulp.task('default', gulp.series('watch', function(done) {
done();
}));
\ No newline at end of file
This diff is collapsed.
{
"name": "creepy",
"version": "1.0.0",
"description": "Proving my skills lol",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://gitlab.websupport.sk/KoS_/creepy.git"
},
"keywords": [
"creepy"
],
"author": "Petr Balga",
"license": "ISC",
"dependencies": {
"browser-sync": "^2.26.7",
"gulp": "^4.0.2",
"gulp-autoprefixer": "^7.0.1",
"gulp-cli": "^2.2.0",
"gulp-sass": "^4.0.2"
}
}
This diff is collapsed.
# Translation of Plugins - Hello Dolly - Stable (latest release) in Czech
# This file is distributed under the same license as the Plugins - Hello Dolly - Stable (latest release) package.
msgid ""
msgstr ""
"PO-Revision-Date: 2018-03-19 07:57:54+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
"X-Generator: GlotPress/2.4.0-alpha\n"
"Language: cs_CZ\n"
"Project-Id-Version: Plugins - Hello Dolly - Stable (latest release)\n"
#. Author URI of the plugin
msgid "https://ma.tt/"
msgstr "https://ma.tt/"
#. Author of the plugin
msgid "Matt Mullenweg"
msgstr "Matt Mullenweg"
#. Description of the plugin
msgid "This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from <cite>Hello, Dolly</cite> in the upper right of your admin screen on every page."
msgstr "Toto není obyčejný plugin, ale symbol naděje a odhodlaní celé generace vyjádřené písní, kterou nejvíce zpopularizoval Louis Armstrong: Hello, Dolly. Po aktivaci se budou náhodně zobrazovat útržky textu <cite>Hello, Dolly</cite> v pravém horním rohu administrátorského rozhraní."
#. Plugin URI of the plugin
msgid "https://wordpress.org/plugins/hello-dolly/"
msgstr "https://cs.wordpress.org/plugins/hello-dolly/"
#. Plugin Name of the plugin
msgid "Hello Dolly"
msgstr "Hello Dolly"
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<!DOCTYPE html>
<html lang="cs">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="<?php echo get_template_directory_uri(); ?>/css/app.min.css" type="text/css" rel="stylesheet">
<script src="/js/webfont.min.js"></script>
<script>
WebFont.load({
google: {
families: ['Open Sans:300,400,500,600,700,800:latin,latin-ext',]
}
});
</script>
<title>404 <?php wp_title("&bull;", "true", "right"); ?> Creative Hill College</title>
<!--Platí jen u 404-->
<meta name="robots" content="noindex">
<meta name="googlebot" content="noindex">
</head>
<body>
<section class="error-page">
<div class="grid-container">
<h1>404</h1>
<h2>Tato stránka neexistuje</h2><a class="button primary" href="/"><span>Hlavní stránka</span></a>
</div>
</section>
</body>
</html>
\ No newline at end of file
<?php
/**
* The template for displaying archive pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Creepy
* @subpackage Creepy Theme
* @since Creepy 1.0
*/
get_header();
//global $wp_query;
$category = single_term_title("", false);
$catid = get_cat_ID( $category );
?>
<main class="global-page global-bottom">
<div class="grid-container">
<h1 class="underline"><?php echo single_term_title(); ?></h1>
<p class="perex"><?php echo the_archive_description(); ?></p>
<div class="news-list">
<div class="grid-x grid-margin-x">
<div class="cell medium-8">
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array( 'post_type' => 'post', 'cat' => $catid, 'paged' => $paged );
$wp_query = new WP_Query($args);
while ( have_posts() ) : the_post(); ?>
<?php $zkracenyObsah = substr(get_the_excerpt(), 0, strpos(wordwrap(get_the_excerpt(), 110), "\n")); ?>
<article><a class="basic" href="<?php echo get_the_permalink(); ?>">
<div class="grid-x">
<?php if (empty(get_the_post_thumbnail_url($post->ID))){ ?>
<div class="cell medium-5 image"><img src="<?php echo get_template_directory_uri(); ?>/assets/home/1.jpg" alt="Neznámý obrázek"></div>
<?php } else { ?>
<div class="cell medium-5 image"><img src="<?php echo get_the_post_thumbnail_url($post->ID) ?>" alt="<?php echo get_post_meta(chc_get_image_id(get_the_post_thumbnail_url($post->ID)), '_wp_attachment_image_alt', TRUE); ?>"></div>
<?php } ?>
<div class="cell medium-7 text">
<div class="inner">
<h2><?php echo the_title(); ?></h2>
<p><?php echo $zkracenyObsah . "..."; ?></p>
<div class="bottom"><img src="<?php echo get_template_directory_uri(); ?>/assets/icons/clock.svg" alt="Hodiny" width="20">
<time datetime="<?php echo get_the_date('Y-m-d'); ?>"><?php echo get_the_date('d.m.Y'); ?></time>
</div>
</div>
</div>
</div></a></article>
<?php endwhile; ?>
</div>
<div class="cell medium-4">
<aside>
<div class="docs">
<h3>Důležité dokumenty</h3>
<?php if(!empty(get_theme_mod('chc-handful-callout-media-1'))) { ?> <div class="item"><img src="<?php echo get_template_directory_uri(); ?>/assets/icons/doc.svg" alt="Ikonka dokumentu"><a href="<?php echo wp_get_attachment_url(get_theme_mod('chc-handful-callout-media-1')); ?>"><?php echo get_the_title(get_theme_mod('chc-handful-callout-media-1')); ?></a></div> <?php } ?>
<?php if(!empty(get_theme_mod('chc-handful-callout-media-2'))) { ?> <div class="item"><img src="<?php echo get_template_directory_uri(); ?>/assets/icons/doc.svg" alt="Ikonka dokumentu"><a href="<?php echo wp_get_attachment_url(get_theme_mod('chc-handful-callout-media-2')); ?>"><?php echo get_the_title(get_theme_mod('chc-handful-callout-media-2')); ?></a></div> <?php } ?>
<?php if(!empty(get_theme_mod('chc-handful-callout-media-3'))) { ?> <div class="item"><img src="<?php echo get_template_directory_uri(); ?>/assets/icons/doc.svg" alt="Ikonka dokumentu"><a href="<?php echo wp_get_attachment_url(get_theme_mod('chc-handful-callout-media-3')); ?>"><?php echo get_the_title(get_theme_mod('chc-handful-callout-media-3')); ?></a></div> <?php } ?>
<?php if(!empty(get_theme_mod('chc-handful-callout-media-4'))) { ?> <div class="item"><img src="<?php echo get_template_directory_uri(); ?>/assets/icons/doc.svg" alt="Ikonka dokumentu"><a href="<?php echo wp_get_attachment_url(get_theme_mod('chc-handful-callout-media-4')); ?>"><?php echo get_the_title(get_theme_mod('chc-handful-callout-media-4')); ?></a></div> <?php } ?>
<?php if(!empty(get_theme_mod('chc-handful-callout-media-5'))) { ?> <div class="item"><img src="<?php echo get_template_directory_uri(); ?>/assets/icons/doc.svg" alt="Ikonka dokumentu"><a href="<?php echo wp_get_attachment_url(get_theme_mod('chc-handful-callout-media-5')); ?>"><?php echo get_the_title(get_theme_mod('chc-handful-callout-media-5')); ?></a></div> <?php } ?>
<?php if(!empty(get_theme_mod('chc-handful-callout-media-6'))) { ?> <div class="item"><img src="<?php echo get_template_directory_uri(); ?>/assets/icons/doc.svg" alt="Ikonka dokumentu"><a href="<?php echo wp_get_attachment_url(get_theme_mod('chc-handful-callout-media-6')); ?>"><?php echo get_the_title(get_theme_mod('chc-handful-callout-media-6')); ?></a></div> <?php } ?>
<?php if(!empty(get_theme_mod('chc-handful-callout-media-7'))) { ?> <div class="item"><img src="<?php echo get_template_directory_uri(); ?>/assets/icons/doc.svg" alt="Ikonka dokumentu"><a href="<?php echo wp_get_attachment_url(get_theme_mod('chc-handful-callout-media-7')); ?>"><?php echo get_the_title(get_theme_mod('chc-handful-callout-media-7')); ?></a></div> <?php } ?>
<?php if(!empty(get_theme_mod('chc-handful-callout-media-8'))) { ?> <div class="item"><img src="<?php echo get_template_directory_uri(); ?>/assets/icons/doc.svg" alt="Ikonka dokumentu"><a href="<?php echo wp_get_attachment_url(get_theme_mod('chc-handful-callout-media-8')); ?>"><?php echo get_the_title(get_theme_mod('chc-handful-callout-media-8')); ?></a></div> <?php } ?>
</div>
</aside>
</div>
</div>
</div>
<div class="pagination">
<ul>
<?php echo paginate_links(array('type' => 'list', 'prev_next' => false)); ?>
</ul>
</div>
</div>
</main>
<?php get_footer(); ?>
\ No newline at end of file
body {
margin-left: 0; }
body p {
color: black; }
<footer>
<div class="grid-container">
<div class="grid-x grid-margin-x large-up-3 medium-up-2">
<div class="cell">
<h3><?php echo get_theme_mod('chc-footer-callout-headline'); ?></h3>
<p><?php echo get_theme_mod('chc-footer-callout-paragraph'); ?></p>
</div>
<div class="cell">
<h3><?php echo get_theme_mod('chc-footer-callout-useful-refs-text'); ?></h3>
<ul>
<li><a href="<?php echo get_permalink(get_theme_mod('chc-footer-callout-link1')); ?>"><?php echo get_the_title(url_to_postid(get_permalink(get_theme_mod('chc-footer-callout-link1')))); ?></a></li>
<li><a href="<?php echo get_permalink(get_theme_mod('chc-footer-callout-link2')); ?>"><?php echo get_the_title(url_to_postid(get_permalink(get_theme_mod('chc-footer-callout-link2')))); ?></a></li>
<li><a href="<?php echo get_permalink(get_theme_mod('chc-footer-callout-link3')); ?>"><?php echo get_the_title(url_to_postid(get_permalink(get_theme_mod('chc-footer-callout-link3')))); ?></a></li>
<li><a href="<?php echo get_permalink(get_theme_mod('chc-footer-callout-link4')); ?>"><?php echo get_the_title(url_to_postid(get_permalink(get_theme_mod('chc-footer-callout-link4')))); ?></a></li>
</ul>
</div>
<div class="cell">
<h3><?php echo get_theme_mod('chc-footer-callout-contacts-headline-text'); ?></h3>
<div class="item"><img src="<?php echo get_template_directory_uri(); ?>/assets/icons/map.svg" alt="Mapa" width="25"><span><?php echo get_theme_mod('chc-footer-callout-address-text'); ?></span></div>
<div class="item"><img src="<?php echo get_template_directory_uri(); ?>/assets/icons/email.svg" alt="E-mail" width="25"><span><?php echo get_theme_mod('chc-footer-callout-email-text'); ?></span></div>
<div class="item"><img src="<?php echo get_template_directory_uri(); ?>/assets/icons/phone.svg" alt="Telefon" width="25"><span><?php echo get_theme_mod('chc-footer-callout-phone-text'); ?></span></div>
<div class="item"><img src="<?php echo get_template_directory_uri(); ?>/assets/icons/clock.svg" alt="Hodiny" width="25"><span><?php echo get_theme_mod('chc-footer-callout-open-hours-text'); ?></span></div>
</div>
</div>
</div>
<?php wp_footer(); ?>
</footer>
</body>
</html>
\ No newline at end of file
<?php get_header(); ?>
<section class="header header-homepage" style="background-image:url(<?php echo get_theme_mod('chc-landing-callout-image'); ?>)">
<div class="grid-container">
<p>
<?php
$id = get_the_ID();
$post = get_post($id);
$content = apply_filters('the_content', $post->post_content);
echo $content;
?>
</p>
<div class="button primary" data-modal-open="video"><span>Přehrát video</span></div>
</div>
</section>
<section class="news-homepage global-pad">
<div class="grid-container">
<div class="grid-x grid-margin-x">
<div class="cell large-3 news-text">
<h2><?php echo get_theme_mod('chc-news-callout-headline'); ?></h2>
<p><?php echo get_theme_mod('chc-news-callout-paragraph'); ?></p>
<div><a class="button primary" href="<?php echo get_permalink(get_theme_mod('chc-news-callout-button-link')); ?>"><span><?php echo get_theme_mod('chc-news-callout-button-text'); ?></span></a></div>
</div>
<div class="cell large-9">
<div class="newsCarousel">
<?php
/* Nejnovější příspěvky */
$args = array(
'numberposts' => 12,
'offset' => 0,
'category' => '',
'orderby' => 'post_date',
'order' => 'DESC',
'include' => '',
'exclude' => '',
'meta_key' => '',
'meta_value' =>'',
'post_type' => 'post',
'post_status' => 'publish',
'suppress_filters' => true
);
$prispevky = wp_get_recent_posts( $args, ARRAY_A );
foreach ($prispevky as $post) { ?>
<?php $zkracenyObsah = substr(get_the_excerpt($post['ID']), 0, strpos(wordwrap(get_the_excerpt($post['ID']), 90), "\n"));
$cat_id = get_the_category($post['ID'])[0]->term_id;
?>
<div>
<article><a href="<?php echo get_the_permalink($post['ID']); ?>">
<?php if($cat_id != 1){ echo '<span class="label">' . get_the_category($post['ID'])[0]->name . '</span>'; } ?>
<?php if (empty(get_the_post_thumbnail_url($post['ID']))){ ?>
<div class="inner" style="background-image: url(<?php echo get_template_directory_uri(); ?>/assets/home/1.jpg)">
<?php } else { ?>
<div class="inner" style="background-image: url(<?php echo get_the_post_thumbnail_url($post['ID']) ?>)">
<?php } ?>
<h3><?php echo get_the_title($post['ID']); ?></h3>
<time datetime="<?php echo get_the_date('Y-m-d', $post['ID']); ?>"><?php echo get_the_date('d.m.Y', $post['ID']); ?></time>
<div class="text">
<p><?php if(!empty($zkracenyObsah)) {echo $zkracenyObsah . "...";} ?></p>
</div>
</div></a></article>
</div>
<?php } ?>
</div>
<div class="nav-container">
<button data-direction="prev"></button>
<button data-direction="next"></button>
</div>
</div>
</div>
</div>
</section>
<section class="homepage-about global-pad">
<div class="grid-container">
<div class="grid-x grid-margin-x">
<div class="cell large-6 medium-8 vertical-center">
<h2 class="underline"><?php echo get_theme_mod('chc-fields-callout-headline'); ?></h2>
<p><?php echo get_theme_mod('chc-fields-callout-paragraph'); ?></p>
<div><a class="button primary" href="<?php echo get_permalink(get_theme_mod('chc-fields-callout-button-link')); ?>"><span><?php echo get_theme_mod('chc-fields-callout-button-text'); ?></span></a></div>
</div>
<div class="cell large-offset-2 medium-4"><img src="<?php echo get_theme_mod('chc-fields-callout-image');?>" alt="<?php echo get_post_meta(chc_get_image_id(get_theme_mod('chc-fields-callout-image')), '_wp_attachment_image_alt', TRUE); ?>"></div>
</div>
</div>
</section>
<div class="homepage-boxes global-bottom">
<div class="grid-container">
<div class="grid-x grid-margin-x large-up-3 medium-up-2">
<?php
/* Zaměření a předměty */
$args = array(
'numberposts' => 3,
'offset' => 0,
'category' => 10,
'orderby' => 'post_date',
'order' => 'ASC',
'include' => '',
'exclude' => '',
'meta_key' => '',
'meta_value' =>'',
'post_type' => 'post',
'post_status' => 'publish',
'suppress_filters' => true
);
$zamereni = wp_get_recent_posts( $args, ARRAY_A );
foreach ($zamereni as $post) { ?>
<div class="cell item"><a class="basic" href="<?php echo get_the_permalink($post['ID']); ?>">
<div class="top">
<div class="image-container"><img src="<?php echo get_the_post_thumbnail_url($post['ID']) ?>" alt="<?php echo get_post_meta(chc_get_image_id(get_the_post_thumbnail_url($post['ID'])), '_wp_attachment_image_alt', TRUE); ?>"></div>
<div class="text-container">
<h3><?php echo get_the_title($post['ID']); ?></h3>
</div>
</div>
<div class="bottom">
<p><?php echo get_the_excerpt($post['ID']); ?></p>
</div>
<div class="button-container">
<div class="button secondary">Více</div>
</div></a></div>
<?php } ?>
</div>
</div>
</div>
<div class="modal-container" id="video">
<iframe src="https://www.youtube.com/embed/NC6psa9nGsk" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<?php get_footer(); ?>
\ No newline at end of file
This diff is collapsed.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<?php wp_head(); ?>
<title><?php wp_title("&bull;", "true", "right"); ?> Creative Hill College</title>
<script>
WebFont.load({
google: {
families: ['Open Sans:300,400,500,600,700,800:latin,latin-ext',]
}
});
</script>
</head>
<body <?php body_class(); ?>>
<div class="sticky-bar">
<div class="grid-x grid-margin-x">
<div class="cell shrink logo"><a href="/"><img src="<?php echo get_template_directory_uri(); ?>/assets/logo.svg" alt="Logo" width="70"></a></div>
<div class="cell auto">
<?php
wp_nav_menu( array(
'menu' => 'primary_menu',
'menu_class' => 'menu',
'container' => 'nav',
) );
?>
<button class="burger" data-open-elem="mobile"><img src="<?php echo get_template_directory_uri(); ?>/assets/icons/menu.svg" alt="Menu" width="40"></button>
</div>
</div>
</div>
<div id="mobile">
<button class="close" data-open-elem="mobile"><img src="<?php echo get_template_directory_uri(); ?>/assets/icons/cross.svg" alt="Křížek"></button>
<div class="logo"><a href="/"><img src="<?php echo get_template_directory_uri(); ?>/assets/logo.svg" alt="Logo" width="70"></a></div>
<?php
wp_nav_menu( array(
'menu' => 'mobile_menu',
'menu_class' => 'menu menu-vertical',
'container' => 'nav',
) );
?>
</div>
\ No newline at end of file
<?php
/**
* The template for displaying news page
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Creepy
* @subpackage Creepy Theme
* @since Creepy 1.0
*/
get_header();
?>
<main class="global-page global-bottom">
<div class="grid-container">
<h1 class="underline"><?php echo single_post_title(); ?></h1>
<p class="perex"><?php echo the_field('acf_novinky_text_pod_nadpisem', 93); ?></p>
<div class="news-list">
<div class="grid-x grid-margin-x">
<div class="cell medium-8">
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array( 'post_type' => 'post', 'paged' => $paged, 'cat' => '-10');
$wp_query = new WP_Query($args);
while ( have_posts() ) : the_post(); ?>
<?php $zkracenyObsah = substr(get_the_excerpt(), 0, strpos(wordwrap(get_the_excerpt(), 110), "\n")); ?>
<article><a class="basic" href="<?php echo get_the_permalink(); ?>">
<div class="grid-x">
<?php if (empty(get_the_post_thumbnail_url($post->ID))){ ?>
<div class="cell medium-5 image"><img src="<?php echo get_template_directory_uri(); ?>/assets/home/1.jpg" alt="Neznámý obrázek"></div>
<?php } else { ?>
<div class="cell medium-5 image"><img src="<?php echo get_the_post_thumbnail_url($post->ID) ?>" alt="<?php echo get_post_meta(chc_get_image_id(get_the_post_thumbnail_url($post->ID)), '_wp_attachment_image_alt', TRUE); ?>"></div>
<?php } ?>
<div class="cell medium-7 text">
<div class="inner">
<h2><?php echo the_title(); ?></h2>
<p><?php echo $zkracenyObsah . "..."; ?></p>
<div class="bottom"><img src="<?php echo get_template_directory_uri(); ?>/assets/icons/clock.svg" alt="Hodiny" width="20">
<time datetime="<?php echo get_the_date('Y-m-d'); ?>"><?php echo get_the_date('d.m.Y'); ?></time>
</div>
</div>
</div>
</div></a></article>
<?php endwhile; ?>
</div>
<div class="cell medium-4">
<aside>
<div class="docs">
<h3>Důležité dokumenty</h3>
<?php if(!empty(get_theme_mod('chc-handful-callout-media-1'))) { ?> <div class="item"><img src="<?php echo get_template_directory_uri(); ?>/assets/icons/doc.svg" alt="Ikonka dokumentu"><a href="<?php echo wp_get_attachment_url(get_theme_mod('chc-handful-callout-media-1')); ?>"><?php echo get_the_title(get_theme_mod('chc-handful-callout-media-1')); ?></a></div> <?php } ?>
<?php if(!empty(get_theme_mod('chc-handful-callout-media-2'))) { ?> <div class="item"><img src="<?php echo get_template_directory_uri(); ?>/assets/icons/doc.svg" alt="Ikonka dokumentu"><a href="<?php echo wp_get_attachment_url(get_theme_mod('chc-handful-callout-media-2')); ?>"><?php echo get_the_title(get_theme_mod('chc-handful-callout-media-2')); ?></a></div> <?php } ?>
<?php if(!empty(get_theme_mod('chc-handful-callout-media-3'))) { ?> <div class="item"><img src="<?php echo get_template_directory_uri(); ?>/assets/icons/doc.svg" alt="Ikonka dokumentu"><a href="<?php echo wp_get_attachment_url(get_theme_mod('chc-handful-callout-media-3')); ?>"><?php echo get_the_title(get_theme_mod('chc-handful-callout-media-3')); ?></a></div> <?php } ?>
<?php if(!empty(get_theme_mod('chc-handful-callout-media-4'))) { ?> <div class="item"><img src="<?php echo get_template_directory_uri(); ?>/assets/icons/doc.svg" alt="Ikonka dokumentu"><a href="<?php echo wp_get_attachment_url(get_theme_mod('chc-handful-callout-media-4')); ?>"><?php echo get_the_title(get_theme_mod('chc-handful-callout-media-4')); ?></a></div> <?php } ?>
<?php if(!empty(get_theme_mod('chc-handful-callout-media-5'))) { ?> <div class="item"><img src="<?php echo get_template_directory_uri(); ?>/assets/icons/doc.svg" alt="Ikonka dokumentu"><a href="<?php echo wp_get_attachment_url(get_theme_mod('chc-handful-callout-media-5')); ?>"><?php echo get_the_title(get_theme_mod('chc-handful-callout-media-5')); ?></a></div> <?php } ?>
<?php if(!empty(get_theme_mod('chc-handful-callout-media-6'))) { ?> <div class="item"><img src="<?php echo get_template_directory_uri(); ?>/assets/icons/doc.svg" alt="Ikonka dokumentu"><a href="<?php echo wp_get_attachment_url(get_theme_mod('chc-handful-callout-media-6')); ?>"><?php echo get_the_title(get_theme_mod('chc-handful-callout-media-6')); ?></a></div> <?php } ?>
<?php if(!empty(get_theme_mod('chc-handful-callout-media-7'))) { ?> <div class="item"><img src="<?php echo get_template_directory_uri(); ?>/assets/icons/doc.svg" alt="Ikonka dokumentu"><a href="<?php echo wp_get_attachment_url(get_theme_mod('chc-handful-callout-media-7')); ?>"><?php echo get_the_title(get_theme_mod('chc-handful-callout-media-7')); ?></a></div> <?php } ?>
<?php if(!empty(get_theme_mod('chc-handful-callout-media-8'))) { ?> <div class="item"><img src="<?php echo get_template_directory_uri(); ?>/assets/icons/doc.svg" alt="Ikonka dokumentu"><a href="<?php echo wp_get_attachment_url(get_theme_mod('chc-handful-callout-media-8')); ?>"><?php echo get_the_title(get_theme_mod('chc-handful-callout-media-8')); ?></a></div> <?php } ?>
</div>
</aside>
</div>
</div>
</div>
<div class="pagination">
<ul>
<?php echo str_replace('<span class="page-numbers dots"', '<p class="page-numbers dots"', paginate_links(array('type' => 'list', 'prev_next' => false))); ?>
</ul>
</div>
</div>
</main>
<?php get_footer(); ?>
\ No newline at end of file
<?php //Silence is golden
?>
\ No newline at end of file
<?php
/**
* Template Name: Basic template
*
* @package Creepy
* @subpackage Creepy Theme
* @since Creepy Template 1.0
*/
?>
<?php get_header(); ?>
<?php
global $wp_query;
$wp_query->the_post();
?>
<main class="global-page global-bottom">
<div class="grid-container">
<h1 class="underline"><?php echo the_title(); ?></h1>
<div class="basic-pag