<?php if( have_rows('slajd_1') ): ?>
<?php while( have_rows('slajd_1') ): the_row();
// Get sub field values.
$image = get_sub_field('img_1');
$link = get_sub_field('link_1');
?>
<div id="hero">
<img src="<?php echo esc_url( $image['url'] ); ?>" alt="<?php echo esc_attr( $image['alt'] ); ?>" />
<?php the_sub_field('caption'); ?>
<a href="<?php echo esc_url( $link['url'] ); ?>"><?php echo esc_attr( $link['title'] ); ?></a>
</div>
<?php endwhile; ?>
<?php endif; ?>
<?php
get_header();
?>
<div class="newscontent">
<h1><?php the_title(); ?></h1>
<div><?php the_content(); ?></div>
</div>
<div class="link">
<?php next_post_link('<strong>%link</strong>'); ?>
</div>
<?php
get_footer();
?>
add_filter( 'wpcf7_form_elements', 'imp_wpcf7_form_elements' );
function imp_wpcf7_form_elements( $content ) {
$str_pos = strpos( $content, 'name="checkbox-617"' );
if ( $str_pos !== false ) {
$content = substr_replace( $content, ' checkedname="calc_type_2" ', $str_pos, 0 );
}
return $content;
}
while ( $query->have_posts() ) {
$query->the_post();?>
RewriteEngine On
Redirect / https://inox-fitting.ru/
RewriteCond %{REQUEST_URI} (.*)
RewriteRule ^(.*)$ https://inox-fitting.ru/$1 [L,R=301]