<?php $netevl_libtools = new NetEvl_LibTools(); $img = null; if (has_post_thumbnail()) { $img = wp_get_attachment_image_src(get_post_thumbnail_id(), 'medium'); } $postDate = new DateTime(get_the_date('Y-m-d')); $_groupUpSections = get_field('cbx_group_up_section'); $groupUpSections = !is_string($_groupUpSections) ? $_groupUpSections : array(); $is_top = isset($is_top) && is_bool($is_top) ? $is_top : false; ?> <article id="post-<?php the_ID(); ?> " class="item"> <?php if (!is_null($img) && $is_top) { ?> <figure class="art-img"> <img src="<?php echo $img[0]; ?> " alt="<?php the_title(); ?> " /> </figure> <?php }
<?php // Template name: Judikatura //var_dump($j_test); $libtools = new NetEvl_LibTools(); $thisPostType = 'judikatura'; $comboZakony = isset($_GET[$thisPostType . '_zakony']) ? $_GET[$thisPostType . '_zakony'] : null; $thisTax = $thisPostType . '-zakony'; $thisTaxArgs = array('slug' => !is_null($comboZakony) ? $comboZakony : ''); $thisCategories = get_terms($thisTax, $thisTaxArgs); $thisAllCategories = get_terms($thisTax); wp_enqueue_script($thisPostType, get_template_directory_uri() . '/scripts/pages/' . $thisPostType . '.js', array(), '1.0.0', true); get_header(); ?> <div class="content-main"> <div class="box-in-main"> <div class="container"> <div class="grid-wrapper"> <main class="content page-<?php echo $thisPostType; ?> " role="main"> <?php get_template_part('template-parts/breadcrumbs'); ?> <div class="page-header"> <h1><?php the_title(); ?> </h1> <div class="form-group filter">