/*foreach ( array_reverse( $column_opening_positions_index ) as $position ) {
if ( $is_in_widget ) {
$content = substr_replace( $content, 'row_column_index="' . $position[1] . '" widget_id="' . $widget->id . '" ', $position[0], 0 );
} else {
$content = substr_replace( $content, 'row_column_index="' . $position[1] . '" ', $position[0], 0 );
}
}*/
if ( ! defined( 'ABSPATH' ) ) {
exit( 'Direct script access denied.' );
}
?>
<?php get_header(); ?>
<section id="content" class="full-width">
<?php while ( have_posts() ) : ?>
<?php the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php echo fusion_render_rich_snippets_for_pages(); // phpcs:ignore WordPress.Security.EscapeOutput ?>
<?php avada_singular_featured_image(); ?>
<div class="post-content">
<?php the_content(); ?>
<?php fusion_link_pages(); ?>
</div>
<?php if ( ! post_password_required( $post->ID ) ) : ?>
<?php if ( Avada()->settings->get( 'comments_pages' ) ) : ?>
<?php comments_template(); ?>
<?php endif; ?>
<?php endif; ?>
</div>
<?php endwhile; ?>
</section>
<?php get_footer(); ?>
<a href="#" class="show_all_photos">
<!-- <span class="photos_quant">+<?php echo $k?></span> -->
<span>Показать все фотографии</span>
</a>
<div class="clearfix"></div>
<div class="hidden_photos">
<a href="#" class="hide_all_photos">
<span>Скрыть фотографии</span>
</a>
<div class="clearfix"></div>
</div>
Пока так сделаю, потом буду думать, что исправлять