Не нравятся результаты поиска? Попробуйте другой поиск!
DLE FAQ » Все вопросы » Общие вопросы по вёрстке » Вставка модуля BLOCK.PRO.2 в аккордеон на jquery

Вставка модуля BLOCK.PRO.2 в аккордеон на jquery


     28.09.2012    jquery, аккордеон, blockpro    Общие вопросы по вёрстке, jQuery    3239

вопрос
Здравствуйте!!! У меня такая проблема - нужно блокпро2 вставить в аккордеон на jquery.
Изначально аккордеон выглядит так:
Вставка модуля BLOCK.PRO.2 в аккордеон на jquery

А когда вставляю вместо текста {include file="engine/modules/block.pro.2.php?&block_id=BLOCK&template=blockpro"} то аккордеон перестает работать и получается вот так:
Вставка модуля BLOCK.PRO.2 в аккордеон на jquery

Аккордеон использовал вот этот. Но пробовал и другие, результат тот же.
Подскажите пожалуйста почему так происходит и как это исправить???

Ответа пока нет


7 комментариев

Sander
PHP-developer

Sander - 28 сентября 2012 13:49 -

HTML код сего чуда в студию (второй скрин)

SanDev.pro - мой блог.

Telegram: @sandev
Skype: Sander8804

Prowockator
Юзер

Prowockator - 28 сентября 2012 14:08 -

Вот

<div id="accordion">
        <h3 class="head">Секция #1</h3>
        <div class="block">
            {include file="engine/modules/block.pro.2.php?&block_id=BLOCK&template=blockpro"}
        </div>    
        <h3 class="head">Секция #2</h3>
        <div class="block">
            It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
        </div>    
        <h3 class="head">Секция #3</h3>
        <div class="block">
            Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one                 of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et             Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
        </div>    
    </div>

Sander
PHP-developer

Sander - 28 сентября 2012 21:23 -

В бразуере на сайте жмешь правой кнопкой мыши и там "Исходный код страницы".
Нужен html код страницы,а не шаблон.

SanDev.pro - мой блог.

Telegram: @sandev
Skype: Sander8804

NANO
Юзер

NANO - 28 сентября 2012 16:37 -

На маин.тпл
    <div id="accordion">
    {include file="accordeon.tpl"}
    </div>


Исходник accordeon.tpl
    {include file="engine/modules/block.pro.2.php?&block_id=block1&template=blockpro&last=y&news_num=3"}


Исходник blokpro.tpl

   <h3 class="head">{title}</h3>
        <div class="block">
            {short-story limit="50"}
        </div>

Prowockator
Юзер

Prowockator - 28 сентября 2012 17:13 -

Если так то каждый пункт блока становится аккордеоном и получается что жмешь на на новость и выскакивает описание, а назад уже не закрывается...

Prowockator
Юзер

Prowockator - 28 сентября 2012 17:41 -

Самое интересное что блокпро отлично работает в табах а вот в аккордеоне почему то не хочет, хотя принцип роботы у обеих практически одинаков.

nowheremany
Эксперт

nowheremany - 28 сентября 2012 18:08 -

Я даже от сюда вижу, что гдето не закрыт тэг ссылок, либо у аккордиона своё их понимание

Благодарность принимаю тут Связь

Чтобы комментировать - войдите или зарегистрируйтесь на сайте

Похожие вопросы

наверх