Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% set queries = uri.query(null, true) %}
- {% if queries is empty %}
- {% set collection = page.collection %}
- {% else %}
- {% set collection = taxonomy.findTaxonomy(queries) %}
- {% endif %}
- {% import 'partials/cascade-filters.html.twig' as f %}
- <div class="sidebar column is-narrow">
- {% set taxlist = cascadeFilters.get() %} {# get texonomy list #}
- {% set queries = uri.query(null, true) %} {# get queries as Array #}
- <a href="{{ page.url }}" class="button">Clean all filters </a>
- {% if taxlist %}
- {% for key, values in taxlist %}
- <p>
- {{ key }}
- </p>
- <ul class="is-clearfix">
- {% for tax in values|keys %}
- <li style="float: left; margin: 5px">
- {{ f.genQueryUrl(queries|sort,key,tax, page.url, cascadeFilters) }}
- </li>
- {% endfor %}
- </ul>
- {% endfor %}
- {% endif %}
- </div>
- [![](AoE2.jpg)](http://192.168.1.75/home/aoe2)
- [![BFBC2](Battlefield%20Bad%20Company%202.jpg)](http://192.168.1.75/home/bfbc2)
- [![](Blur.jpg)](http://192.168.1.75/home/blur)
- [![](Day%20of%20Defeat.jpg)](http://192.168.1.75/home/dod-source)
- [![](Garry's%20mod.jpg)](http://192.168.1.75/home/gmod)
- [![](Golf%20it.jpg)](http://192.168.1.75/home/golf-it)
- [![](Golf%20with%20your%20Friends.jpg)](http://192.168.1.75/home/golf-friends)
- [![](Rune%20Classic.jpg)](http://192.168.1.75/home/rune)
- [![](Running%20with%20Rifles.jpg)](http://192.168.1.75/home/running-rifles)
- [![](Splinter%20Cell%20Chaos%20Theory.jpg)](http://192.168.1.75/home/splinter-cell-ct)
- [![](The%20Mean%20Greens.jpg)](http://192.168.1.75/home/mean-greens)
- [![](UT2K4.jpg)](http://192.168.1.75/home/ut2k4)
- [![](World%20in%20Conflict.jpg)](http://192.168.1.75/home/wic)
- [![](Wreckfest.jpg)](http://192.168.1.75/home/wreckfest)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement