«Общий» (obschii.php) | Хабаровский краевой музыкальный театр: официальный сайт

«Общий» (obschii.php)

  • Version
  • Download 0
  • File Size 4.00 KB
  • File Count 1
  • Create Date 04.08.2021
  • Last Updated 04.08.2021

«Общий» (obschii.php)

<?php
/*
Template Name: Радио
Template Post Type: page
*/
get_header(); ?>
<div class="container radio-page">
<div class="row">
<div class="breadcrumb">
<?
//the_breadcrumb();
?><a href="https://hkmt.ru/">Главная</a><? echo " <span class='tonewsname'>"; the_title(); echo "</span>";
?>
</div>
</div>
<div class="row">
        <div class="thetitlebox" >
<?
$imgtopnews = 12733;
$imgtopnews_url = wp_get_attachment_image_url($imgtopnews,'large'); //full
if ($imgtopnews_url != false) { ?>
<div class="" style="" >
<img class="imgtopnews" style="width:100%; height: auto;" src="<? echo $imgtopnews_url; ?>">
</div>
<? }
?>
<div class="newstyletitle">
            <h1 style="margin: 0;"><span><?php the_title(); ?></span></h1>
            </div>
<!-- <div class="perfomance_genre">
             <div style="margin: 0;"><span>система уличного аудиовещания</span></div>
            </div>
<div class="perfomance_musica">
           <div style="margin: 0;"><span>Хабаровского музыкального театра</span></div>
            </div> //-->
        </div>
</div>
<div class="row">
    <div class="backtonews" style="width: 20%; float: left; /*margin: 5%;*/ margin: 30px 30px;"><a href="https://hkmt.ru/"><div class="backnews"><span class="backnewsspan">Назад</span></div></a></div>
    <div class="thetext newstext" style="/*width: 70%; float: left;*/">
<?php while (have_posts()): the_post();?>
<?php the_content();?>
<?php endwhile; ?>
</div>
<div class="clearfix"></div>
</div>
<!--вывод галереи-->
<div class="row" style="margin-top: 30px;">
<div style="width: 25%; float: left; margin-top: 30px;">
    <div class="" style="margin: 10px 30px; display: none;">
<a href="#" style="color: #0C54A0; text-decoration: none;">
<div class="gallerybut active">Сцена</div>
</a>
</div>
<div class="" style="margin: 10px 30px; display: none;">
<a href="#" style="color: #0C54A0; text-decoration: none;">
<div class="gallerybut">Закулисье</div>
</a>
</div>
</div>
    <div class="" style="width: 75%; float: left;">
<div id="gallery" style="display:none; margin-right: 30px;">
<?
$meta_gallery_post = get_post_meta( $post->ID, 'meta_gallery_post', true );
if ( is_array( $meta_gallery_post ) ) {
$body_gallery = '';
foreach ( $meta_gallery_post as $img_item )
{
    $attachment_id = esc_attr( $img_item );
    $image_attributeslow = wp_get_attachment_image_src( $attachment_id, 'medium', false);
    $image_attributes = wp_get_attachment_image_src( $attachment_id, 'large', false);
    echo "<img alt="" src="".$image_attributeslow[0]."" data-image="".$image_attributes[0]."" data-description="">";;
}
}
?>
</div>
</div>
<div class="clearfix"></div>
</div>
<!--вывод галереи-->
</div> <!--container-->
<!--галерея-->
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#gallery").unitegallery({
tiles_type:"justified"
});
});
</script>
<!--галерея-->
<!--выравнивание контейнера главной картинки по ее высоте-->
<script type="text/javascript">
jQuery(document).ready(function(){
var imgtopnewsheight = jQuery(".imgtopnews").height();
jQuery(".thetitlebox").css("height", imgtopnewsheight);
});
</script>
<?php get_footer(); ?>
Решаем вместе
Знаете, какая помощь от государства необходима, чтобы реализовать свой потенциал на максимум?