<?php 
                }
            }
            ?>
                            <?php 
            if ($item['subMenu']) {
                ?>
                                <li class="divider"></li>
                            <?php 
            }
            ?>
                        <?php 
        }
        ?>
                        <?php 
        if (is_true_array($item['subMenu'])) {
            foreach ($item['subMenu'] as $itemSub1) {
                ?>
                            <li <?php 
                if ($itemSub1['header']) {
                    ?>
 class="nav-header"<?php 
                }
                ?>
>
                                <?php 
                if ($itemSub1['link'] || $itemSub1['id']) {
                    ?>
                                    <a
                                            <?php 
                    if ($itemSub1['link']) {
}
?>
images/select-picture.png" class="img-polaroid " style="width: 40px; ">
                    </div>
                </div>
            </div>
            <div class="input-text-in">
                <input name="name" type="text"/>
            </div>
        </div>
    </td>
    <td>
        <select name="catId">
            <?php 
$result = \Category\CategoryApi::getInstance()->getTree();
if (is_true_array($result)) {
    foreach ($result as $cat) {
        ?>
                <option value="<?php 
        echo $cat->getId();
        ?>
"><?php 
        echo str_repeat("-", $cat->getLevel());
        ?>
 <?php 
        echo $cat->getName();
        ?>
</option>
            <?php 
    }
}
                } else {
                    ?>
                            <div class="lineForm">
                                <select name="p[<?php 
                    echo $prop->property_id;
                    ?>
][]" id="p<?php 
                    echo $prop->property_id;
                    ?>
" onchange="Filter.changeSelectFilter(this)">
                                    <option id="none"  value=''>--<?php 
                    echo lang('Не выбрано', 'lightVertical');
                    ?>
--</option>
                                    <?php 
                    if (is_true_array($prop->possibleValues)) {
                        foreach ($prop->possibleValues as $item) {
                            ?>
                                        <?php 
                            if (is_array(ShopCore::$_GET['p'][$prop->property_id]) && in_array($item['value'], ShopCore::$_GET['p'][$prop->property_id])) {
                                ?>
                                            <?php 
                                $check = 'selected="selected"';
                                ?>
                                        <?php 
                            } else {
                                ?>
                                            <?php 
                                $check = '';
                                ?>
                                        <?php 
<!-- End. JS vars-->

<script type="text/javascript">
initDownloadScripts(['cusel-min-2.5', 'cloud-zoom.1.0.3.min', 'product'], 'initPhotoTrEv', 'initPhotoTrEv');
</script>
<div style="display: none;">
    <img src="<?php 
echo $model->firstVariant->getLargePhoto();
?>
" alt="<?php 
echo ShopCore::encode($model->getName());
?>
" class="vImgPr"/>
    <?php 
if (is_true_array($productImages)) {
    foreach ($productImages as $key => $image) {
        ?>
    <img src="<?php 
        echo productImageUrl('products/additional/' . $image->getImageName());
        ?>
" alt="<?php 
        echo ShopCore::encode($model->getName());
        ?>
 - <?php 
        echo ++$key;
        ?>
"/>
    <?php 
    }
}
;">
                        <div class="container">
                            <button type="button" class="icon-close2" data-closed=".frame-add-info-header"></button>
                            <ul class="items items-add-info">
                                <li class="item-instruction">
                                    <div class="frame-title f-s_0">
                                        <span class="icon-instr"></span>
                                        <span class="title"><?php 
        echo lang('Instructions for filling', 'admin');
        ?>
</span>
                                    </div>

                                    <ul class="items items-menu-row">
                                        <?php 
        if (is_true_array($CI->load->module('admin/docs')->getPages())) {
            foreach ($CI->load->module('admin/docs')->getPages() as $page) {
                ?>
                                            <?php 
                if (stripos($page->full_url, $active_docs_page)) {
                    ?>
                                                <li><span><?php 
                    echo func_truncate($page->title, 25);
                    ?>
</span></li>
                                                    <?php 
                } else {
                    ?>
                                                <li><a href="<?php 
                    echo $page->full_url;
                    ?>
<div class="crumbs" xmlns:v="http://rdf.data-vocabulary.org/#">
    <div class="container">
        <ul class="items items-crumbs">
            <li class="btn-crumb">
                <a href="<?php 
echo site_url();
?>
" typeof="v:Breadcrumb">
                    <span class="text-el"><?php 
echo lang('Главная', 'lightVertical');
?>
</span>
                </a>
            </li>
            <?php 
if (is_true_array($navi_cats)) {
    foreach ($navi_cats as $item) {
        ?>
 <?php 
        $i++;
        ?>
                <li class="btn-crumb">
                    <?php 
        if ($i < count($navi_cats)) {
            ?>
                        <a href="<?php 
            echo site_url($item['path_url']);
            ?>
" typeof="v:Breadcrumb">
                            <span class="divider">/</span>
                            <span class="text-el"><?php 
                                                        <thead class="no_vis">
                                                            <tr>
                                                                <td class="span1"></td>
                                                                <td class="span1"></td>
                                                                <td class="span3"></td>
                                                                <td class="span2"></td>
                                                                <td class="span1"></td>
                                                                <td class="span1"></td>
                                                                <td class="span2"></td>
                                                                <td class="span2"></td>
                                                            </tr>
                                                        </thead>
                                                        <tbody class="sortable save_positions_variant" data-url="/admin/components/run/shop/search/save_positions_variant">

                                                            <?php 
            if (is_true_array($variants)) {
                foreach ($variants as $v) {
                    ?>

                                                                <tr data-title="<?php 
                    echo lang('Drag product variant', 'admin');
                    ?>
">
                                                                    <td class="t-a_c">
                                                                        <input name="idv" type="hidden" value="<?php 
                    echo $v->id;
                    ?>
"/>
                                                                    </td>
                                                                    <td></td>
                                                                    <td class="variants-items-in">
                        </div>
                        <div class="inside-padd">
                            <nav>
                                <?php 
    if (is_true_array($categories)) {
        foreach ($categories as $key => $category) {
            ?>
                                <ul class="nav nav-vertical nav-category">
                                    <li>
                                        <span><?php 
            echo trim(key($category));
            ?>
</span>
                                    </li>
                                    <?php 
            if (is_true_array($category[key($category)])) {
                foreach ($category[key($category)] as $subItem) {
                    ?>
                                    <?php 
                    if ($_GET['category'] && $_GET['category'] == $subItem['id']) {
                        ?>
                                    <li class="active">
                                        <span><?php 
                        echo $subItem['name'];
                        ?>
</span>
                                        <?php 
                    } else {
                        ?>
                                        <li>
                                            <!--<a rel="nofollow" data-id="<?php 
if ($category->hasSubCats()) {
    ?>
    <div class="frame-category-menu layout-highlight">
        <div class="title-menu-category">
            <div class="title-default">
                <div class="title-h3 title"><?php 
    echo lang('Категории', 'lightVertical');
    ?>
:</div>
            </div>
        </div>
        <div class="inside-padd">
            <nav>
                <ul class="nav nav-vertical nav-category">
                    <?php 
    if (is_true_array($category->getChildsByParentIdI18n($category->getId()))) {
        foreach ($category->getChildsByParentIdI18n($category->getId()) as $key => $value) {
            ?>
                        <li>
                            <a href="<?php 
            echo shop_url('category/' . $value->getFullPath());
            ?>
"><?php 
            echo $value->getName();
            ?>
</a>
                        </li>
                    <?php 
        }
    }
    ?>
            <div class="control-group">
                <label class="control-label">
                    <?php 
echo lang("Parent", "admin");
?>
:
                </label>
                <div class="controls">
                    <select name="parent_id">
                        <option value="0" selected="selected"><?php 
echo lang("No", "admin");
?>
</option>
                        <?php 
if (is_true_array($categories)) {
    foreach ($categories as $category) {
        ?>
                        <option <?php 
        if ($category->getLevel() == 0) {
            ?>
style="font-weight: bold;"<?php 
        }
        ?>
  value="<?php 
        echo $category->getId();
        ?>
"><?php 
        echo str_repeat('-', $category->getLevel());
        echo ShopCore::encode($category->getName());
        ?>
    ?>
    <?php 
    $countWL = $wish_list->getUserWishListItemsCount($CI->dx_auth->get_user_id());
} else {
    ?>
    <?php 
    $is_logged_in = 0;
    ?>
    <?php 
    $countWL = 0;
}
$cart = \Cart\BaseCart::getInstance()->getItems('SProducts');
if (count($cart['data']) > 0) {
    ?>
    <?php 
    if (is_true_array($cart['data'])) {
        foreach ($cart['data'] as $item) {
            ?>
        <?php 
            $arrCartId[] = $item->id;
            ?>
    <?php 
        }
    }
}
$countSh = getProductViewsCount();
?>

<?php 
$openLevels = getOpenLevels();
if ($openLevels) {
            ?>
                    </div>
                </div>
                <div data-place="<?php 
            echo $comment['id'];
            ?>
"></div>
                <?php 
            $countAnswers = $CI->load->module('comments')->commentsapi->getCountCommentAnswersByCommentId($comment['id']);
            ?>
                <?php 
            if ($countAnswers) {
                ?>
                <ul class="frame-list-comments sub-2">
                    <?php 
                if (is_true_array($comment_ch)) {
                    foreach ($comment_ch as $com_ch) {
                        ?>
                    <?php 
                        if ($com_ch['parent'] == $comment['id']) {
                            ?>
                    <li>
                        <div class="global-frame-comment-sub2">
                            <div class="author-data-comment author-data-comment-sub2">
                                <span class="s-t"><?php 
                            echo lang('Ответ от', 'light');
                            ?>
 </span>
                                <span class="author-comment"><?php 
                            echo $com_ch['user_name'];
                            ?>