123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- {% if display_new_elements is not defined %}
- {% set display_new_elements = false %}
- {% endif %}
- {% if display_autoplay is not defined %}
- {% set display_autoplay = false %}
- {% endif %}
- {% if autoplay_context is not defined %}
- {% set autoplay_context = '' %}
- {% endif %}
- {% if elements_context is not defined %}
- {% set elements_context = '' %}
- {% endif %}
- {% if autoplay_shuffle is not defined %}
- {% set autoplay_shuffle = '' %}
- {% endif %}
- {% if tag_ids_json is not defined %}
- {% set tag_ids_json = '[]' %}
- {% endif %}
-
- {% if display_new_elements %}
- <div class="display_more_elements" style="display: none;">
- <span></span>
- </div>
- {% endif %}
-
- {% if not app.request.isXmlHttpRequest %}
- <div class="elements_loader_div">
- <img class="elements_new_loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading" />
- </div>
- {% endif %}
-
- {% if elements|length %}
- {% if not app.request.isXmlHttpRequest %}<ul class="elements" data-autoplay_context="{{ autoplay_context }}" data-context="{{ elements_context }}">{% endif %}
-
- {% if autoplay_shuffle %}
- <li class="inline_actions">
- <a class="autoplay_favshow button simpleimg darkbutton"
- {% if autoplay_shuffle == 'elements_get_filter_data_autoplay_show' %}
- href="{{ path(autoplay_shuffle, {
- 'element_id' : -1,
- 'type' : 'show',
- 'show_type' : autoplay_shuffle_show_type,
- 'show_id' : viewed_user.id,
- 'data' : tag_ids_json
- }) }}"
- {% endif %}
- {% if autoplay_shuffle == 'elements_get_filter_data_autoplay_favorite' %}
- href="{{ path(autoplay_shuffle, {
- 'element_id' : -1,
- 'type' : 'favorite',
- 'show_type' : 'user',
- 'show_id' : viewed_user.id,
- 'data' : tag_ids_json
- }) }}"
- {% endif %}
- >
- <img src="{{ asset('/img/1372889556_random_shuffle.png') }}" alt="shuffle" />
- </a>
- </li>
- {% endif %}
-
- {% for element in elements %}
-
- {% include "MuzichCoreBundle:SearchElement:li.element.html.twig" %}
-
- {% endfor %}
- {% if not app.request.isXmlHttpRequest %}</ul>{% endif %}
-
- {% else %}
-
- <ul class="elements"></ul>
-
- <div class="no_elements">
- {% if noelements_filter is defined %}
- <p class="no-elements">
- {% autoescape false %}
- {{ 'noelements.sentence_filter'|trans({
- '%link_string%': 'noelements.sentence_filter_link_string'|trans({}, 'elements')
- }, 'elements') }}
- {% endautoescape %}
- </p>
- {% else %}
- <p class="no-elements">{{ 'noelements.sentence'|trans({}, 'elements') }}</p>
- {% endif %}
- </div>
-
- {% endif %}
-
- {% if not app.request.isXmlHttpRequest %}
- <div class="elements_loader_div">
- <img class="elements_more_loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading" />
- </div>
- {% endif %}
|