Jump to content

Nata3010

Новичок
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Обычный

About Nata3010

  • Rank
    Новичок

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Добрый день. Помогите чайнику )) OpenCart 3, задача перенести авторизацию с шапки в основное меню сайта. Коприрую код из header.twig <li class="dropdown"><a href="{{ account }}" title="{{ text_account }}" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> <span class="hidden-xs hidden-sm hidden-md">{{ text_account }}</span> <span class="caret"></span></a> <ul class="dropdown-menu dropdown-menu-right"> {% if logged %} <li><a href="{{ account }}">{{ text_account }}</a></li> <li><a href="{{ order }}">{{ text_order }}</a></li> <!-- <li><a href="{{ transaction }}">{{ text_transaction }}</a></li> <li><a href="{{ download }}">{{ text_download }}</a></li> //--> <li><a href="{{ logout }}">{{ text_logout }}</a></li> {% else %} <li><a href="{{ register }}">{{ text_register }}</a></li> <li><a href="{{ login }}">{{ text_login }}</a></li> {% endif %} </ul> </li> в menu.twig {% if categories %} <div class="container"> <nav id="menu" class="navbar"> <div class="navbar-header"><span id="category" class="visible-xs">{{ text_category }}</span> <button type="button" class="btn btn-navbar navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"><i class="fa fa-bars"></i></button> </div> <div class="collapse navbar-collapse navbar-ex1-collapse"> <ul class="nav navbar-nav"> {% for category in categories %} {% if category.children %} <li class="dropdown"><a href="{{ category.href }}" class="dropdown-toggle" data-toggle="dropdown">{{ category.name }}</a> <div class="dropdown-menu"> <div class="dropdown-inner"> {% for children in category.children|batch(category.children|length / category.column|round(1, 'ceil')) %} <ul class="list-unstyled"> {% for child in children %} <li><a href="{{ child.href }}">{{ child.name }}</a></li> {% endfor %} </ul> {% endfor %}</div> <a href="{{ category.href }}" class="see-all">{{ text_all }} {{ category.name }}</a> </div> </li> {% else %} <li><a href="{{ category.href }}">{{ category.name }}</a></li> {% endif %} {% endfor %} <li class="dropdown"><a href="{{ account }}" title="{{ text_account }}" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> <span class="hidden-xs hidden-sm hidden-md">{{ text_account }}</span> <span class="caret"></span></a> <ul class="dropdown-menu dropdown-menu-right"> {% if logged %} <li><a href="{{ account }}">{{ text_account }}</a></li> <li><a href="{{ order }}">{{ text_order }}</a></li> <li><a href="{{ transaction }}">{{ text_transaction }}</a></li> <li><a href="{{ download }}">{{ text_download }}</a></li> <li><a href="{{ logout }}">{{ text_logout }}</a></li> {% else %} <li><a href="{{ register }}">{{ text_register }}</a></li> <li><a href="{{ login }}">{{ text_login }}</a></li> {% endif %} </ul> </li> </ul> </div> </nav> </div> {% endif %} Кнопка появляется, но не работает. Подскажите, что делаю неправильно. Сразу прошу простить за глуппый вопрос- совсем в этом деле новичок ) Спасибо.
×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.