</p></div> <div class="student_name"> <p><a href="<?php the_permalink(); ?> " title="<?php the_secondary_title(); ?> :<?php the_title(); ?> "><?php the_title(); ?> </a><?php the_secondary_title(); ?> </p> </div> </li> <?php } ?> <?php wp_reset_query(); ?> </ul> </div> </div> </div>
<div class="article__post-grid"> <?php $postID = get_the_ID(); ?> <?php echo get_the_post_thumbnail($postID, 'post-list-archive', array('class' => 'img-responsive')); ?> <h4><a href="<? the_permalink(); ?>"><? the_title() ?></a></h4> <p><? the_secondary_title() ?></p> </div>
function bild_func( $atts ) { extract( shortcode_atts( array( 'image_url' => 'Bild wird nicht richtig angezeigt', 'background_position' => 'top', 'type' => 'night', 'text_shadow' => '#e74c3c', 'main_info' => 'Основная информация о проекте', 'header_subtext' => 'Помните, в конце января 2014 года было адовое муниципальное собрание, где мы согласовывали реконструкцию сквера? Наверняка нет. Я писал об этом тут. Там прямо на собрании разгорелись дебаты. Я хотел устроить в сквере побольше точек притяжения для разных возрастов.', ), $atts ) ); $image = wp_get_attachment_image_src($image_url, 'full'); if($type == 'night' || $type == 'Ночь') $textColor = 'white'; else $textColor = 'black'; set_query_var( 'textColor', $textColor ); global $post; $post_type = get_post_type_object($post->post_type); ?> </div> </article> </div> </div> <div class="container-fluid fancy" style="margin-top:-65px; margin-bottom:65px;"> <div class="fancy-title" style="min-height:500px; background: url('<?= $image[0] ?>'); background-position: <?= $background_position ?> center; background-size:cover;"> <div class="fancy-title--mask"></div> <div class="container-size fancy-fix"> <header> <div class="header row"> <?php get_template_part( 'template-parts/header', 'top' ); ?> </div> <div class="header row"> <?php get_template_part( 'template-parts/header', 'logo-fancy' ); ?> </div> </header> <div class="article row"> <div class="article__breadcrumbs row"> <ul class="col-md-12"> <li><a href="/">Главная</a></li> <li><a href="<? the_permalink() ?>"><? the_title() ?></a></li> </ul> </div> <? if($post_type->labels->singular_name != 'Запись'): ?> <div class="article__tags row"> <p class="col-md-12 col-sm-12 col-xs-12" style="color: <?= $textColor ?>;"><?= $post_type->labels->singular_name ?></p> </div> <? endif; ?> <div class="article__title-wrapper row"> <div class="article__title col-md-8 col-sm-12 col-xs-12"> <h1 style="color: <?= $textColor ?>; text-shadow: 5px 5px 0px #e74c3c;"><? the_title() ?></h1> <h3 style="color: <?= $textColor ?>;"><? the_secondary_title() ?></h3> <h2><?= $main_info ?></h2> <p><?= $header_subtext ?></p> </div> <div class="article__meta col-md-pull-right col-sm-pull-left col-md-offset-2 col-md-2" style="text-shadow: 1px 1px 0px black;"> <p class="article__meta-author-title">Над проектом работали:</p> <p class="article__meta-author" style="color: <?= $textColor ?>; text-shadow: 1px 1px 0px #e74c3c;"> <? if ( function_exists( 'coauthors_posts_links' ) ) { coauthors_posts_links(', ',' и '); } else { the_author_posts_link(); } ?> </p> <p><span class="article__meta-time"><?php echo get_the_time(); ?>,</span> <span class="article__meta-date"><?php echo get_the_date(); ?></span></p> </div> </div> </div> </div> </div> </div> <div class="container-fluid container-size"> <article> <div class="article__content article__content-text"> <div> <? return ""; }
<div class="article__similar-post col-md-4 col-sm-4 col-xs-12"> <?php $postID = get_the_ID(); ?> <?php echo get_the_post_thumbnail($postID, 'post-list-archive', array('class' => 'img-responsive')); ?> <p><a href="<? the_permalink(); ?>"><? the_title() ?> <? the_secondary_title() ?></a></p> </div>