File: div_for_slider_effect.twig

package info (click to toggle)
phpmyadmin 4%3A5.0.4%2Bdfsg2-2%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 104,412 kB
  • sloc: php: 152,799; javascript: 136,970; sql: 504; sh: 263; python: 200; makefile: 196; xml: 167
file content (16 lines) | stat: -rw-r--r-- 694 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{% if initial_sliders_state == 'disabled' %}
    <div{% if id is defined %} id="{{ id }}"{% endif %}>
{% else %}
    {#
    Bad hack on the next line. document.write() conflicts with jQuery,
    hence, opening the <div> with PHP itself instead of JavaScript.

    @todo find a better solution that uses $.append(), the recommended
    method maybe by using an additional param, the id of the div to
    append to
    #}
    <div{% if id is defined %} id="{{ id }}"
        {%- endif %} {% if initial_sliders_state == 'closed' -%}
        style="display: none; overflow:auto;"{% endif %} class="pma_auto_slider"
        {%- if message is defined %} title="{{ message }}"{% endif %}>
{% endif %}