$this->registerJsFile(Yii::getAlias('@web') . '/js/form.js', ['depends' => [yii\web\JqueryAsset::className()]]);
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
<?php
$args = array(
'taxonomy' => 'category',
'cat' => $term->id,
'hide_empty' => 0,
'depth' => 1,
'parent' => get_queried_object()->term_id
);
$terms = get_terms($args);
$count = 1;
?>
<?php if (have_posts()) :
while (have_posts()) : the_post(); ?>
<a class="swiper-slide" href="<?php echo get_permalink(); ?>">
<div class="swiper-slide__label">
<?php
$category = get_the_category();
echo $category[0]->cat_name;
?>
</div>
<img src="<?php the_field('small_img', get_the_ID()) ?>">
<div class="slider-pre">
<div class="slider-pre__title"><?php the_title(); ?></div>
<div class="slider-pre__anons"><?php the_field('anons_date', get_the_ID()) ?></div>
</div>
</a>
<?php endwhile; ?>
<?php foreach ($terms as $term): ?>
<a href="<?php echo get_post_type_archive_link('project'); echo $term->slug ?>"><?php echo $term->name ?></a>
<?php endforeach; ?>
'cat' => $cat_id,
echo $form->field($model, 'content')->widget(Widget::className(), [
'value'=>'123',
'settings' => [
'lang' => 'ru',
'imageUpload' => Url::to(['/admin/image-upload']),
'minHeight' => 200,
'plugins' => [
'fullscreen',
'imagemanager',
'filemanager'
],
],
]);