src/NCBS/WebsiteBundle/Resources/views/Bible/sidrbutton.html.twig line 1

Open in your IDE?
  1. {% set bStoryText = (content_class is defined and content_class == 'storytext' and story.explanations is not empty) %}
  2. {% if (has_slider_item is defined and has_slider_item) or (qbible_link is defined and qbible_link is not empty) or (commentary_with_doc is defined and commentary_with_doc is not empty) or bStoryText %}
  3.     {% set nCol = '0' %}
  4.     {% if column_num is defined %}
  5.         {% set nCol = column_num %}
  6.     {% endif %}
  7.     
  8.     {% set class_name = "sidrbutton" %}
  9.     {% if multicolumn is defined %}
  10.       {% set class_name = "sidrbutton" %}
  11.     {% endif %}
  12.     {% set sUrlEnd = "?col="~nCol %}
  13.     {% if bInFrame %}
  14.         {% set sUrlEnd = sUrlEnd~"&frame=1" %}    
  15.     {% endif %}
  16.     {% if multicolumn_route_params is defined and multicolumn_route_params is not empty %}
  17.         {% set sUrlEnd = sUrlEnd~"&m1="~multicolumn_route_params.column1Details~"&m2="~multicolumn_route_params.column2Details %}    
  18.         {% if columns[2]['column_type'] == 'exposition' and columns[2]['translation'] is defined and columns[2]['translation'].work.swedenborgType is not null %}
  19.             {% set sUrlEnd = sUrlEnd~"&c2sw=1" %}    
  20.         {% endif %}
  21.     {% endif %}
  22.     {% if plan_step is defined %}
  23.         {% set sUrlEnd = sUrlEnd~"&rp=1" %}    
  24.     {% endif %}
  25.     {% set sSliderUrl = slider_url~sUrlEnd %}
  26.     <p class="{{ class_name }}"><a class="btn btn-slider btn-sm" href='javascript:onOpenBibleSlider("simple-menu{{ nCol }}","{{ sSliderUrl }}",{{ nCol }})'><i class="fas fa-arrow-left"></i> <i class="fas fa-layer-group"></i> {{ app.session.get('ui_str')["bible.button.study"]|raw }}</a></p><a id="simple-menu{{ nCol }}" href="#sidr{{ nCol }}" style="display:none" ></a>
  27.     <script>    
  28.         aSliderUrl[{{ nCol }}] = "{{ sSliderUrl }}";        
  29.     </script>
  30. {% endif %}