if(window.location.href.indexOf("/en/") > -1) {
<?php foreach ($layout as $type => $module): ?>
<?php if (!empty($sort_cmb[$type])): ?>
<?php ob_start(); ?>
<?php if (has_action('wpf_public_template_' . $type)): ?>
<?php do_action('wpf_public_template_' . $type, $module, $this->themplate_id, $template['data'], $sort_cmb[$type], $this->themplate_id, $request, $lang) ?>
<?php else: ?>
<?php $this->get_public_fields($type, $module, $template['data'], $request, $lang) ?>
<?php endif; ?>
<?php
$view = trim(ob_get_contents());
ob_end_clean();
?>
<?php if ($view || empty($template['data']['empty'])): ?>
<div class="filter-block">
<div class="filter-toggle"><span><?php echo WPF_Utils::get_field_name($module, $sort_cmb[$type]) ?></span><i></i></div>
<div class="filter-podmenu">
<div class="wpf_item wpf_item_<?php echo $type ?>">
<?php if ($type !== 'submit' && ($is_horizontal || empty($module['hide_field']))): ?>
<label class="wpf_item_name" for="wpf_<?php echo $this->themplate_id ?>_item_<?php echo $type ?>"><?php echo WPF_Utils::get_field_name($module, $sort_cmb[$type]) ?></label>
<?php endif; ?>
<?php if ($is_group && $type !== 'submit'): ?><div class="wpf_items_group"><?php endif; ?>
<?php echo $view ?>
<?php if('group' === $reset_btn && !in_array($type,$non_groups) ): ?>
<div class="wpf_reset_btn"><input type="reset" value="<?php echo esc_attr( $reset ); ?>"/></div>
<?php endif; ?>
<?php if ($is_group && $type !== 'submit'): ?></div><?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php if ($view || empty($template['data']['empty'])): ?>
<div class="filter-block">
<div class="filter-toggle"><span> $переменная </span><i></i></div>
<div class="filter-podmenu">
<div class="wpf_item wpf_item_<?php echo $type ?>">
<?php if ($type !== 'submit' && ($is_horizontal || empty($module['hide_field']))): ?>
<label class="wpf_item_name" for="wpf_<?php echo $this->themplate_id ?>_item_<?php echo $type ?>"><?php echo WPF_Utils::get_field_name($module, $sort_cmb[$type]) ?></label>
<?php endif; ?>
<?php if ($is_group && $type !== 'submit'): ?><div class="wpf_items_group"><?php endif; ?>
<?php echo $view ?>
<?php if('group' === $reset_btn && !in_array($type,$non_groups) ): ?>
<div class="wpf_reset_btn"><input type="reset" value="<?php echo esc_attr( $reset ); ?>"/></div>
<?php endif; ?>
<?php if ($is_group && $type !== 'submit'): ?></div><?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
<?php endif; ?>