src/NCBS/WebsiteBundle/Resources/views/Exposition/multicolumn/breadcrumbs.html.twig line 1

Open in your IDE?
  1. {% extends 'NCBSWBundle:General:multicolumn/header_framework.html.twig' %}
  2. {% if division is not defined %}
  3.   {% set division=null %}
  4. {% endif %}
  5. {% if division is null and passage is defined and passage is not null %}
  6.   {% set division=passage.division %}
  7. {% endif %}
  8. {% if translation is not defined %}
  9.   {% set translation=null %}
  10. {% endif %}
  11. {% if translation is null and excerpt is defined and excerpt is not null %}
  12.   {% set translation=excerpt.startArea.translation %}
  13. {% endif %}
  14. {% if work is not defined %}
  15.   {% set work=null %}
  16. {% endif %}
  17. {% if work is null %}
  18.   {% if translation is not null %}
  19.     {% set work=translation.work %}
  20.   {% elseif division is not null %}
  21.     {% set work=division.work %}
  22.   {% endif %}
  23. {% endif %}
  24. {% set sCategoryIndex = '' %}
  25. {% if category is not defined %}
  26.   {% if work is not null and work.swedenborgType is not null %}
  27.     {% set category='swedenborg' %}
  28.   {% elseif all_stories is defined and all_stories is not empty %}
  29.     {% set category='story' %}
  30.   {% else %}
  31.     {% set category=null %}
  32.   {% endif %}
  33. {% endif %}
  34. {% if category is null and collection is defined and collection is not null %}
  35.   {% for coll_category in collection.categories if coll_category.indexPage is not null %}
  36.     {% set category=coll_category %}
  37.   {% endfor %}
  38. {% endif %}
  39. {% if category is null and translation is not null %}
  40.   {% for tr_category in translation.categories if tr_category.indexPage is not null %}
  41.     {% set category=tr_category %}
  42.   {% endfor %}
  43. {% endif %}
  44. {% if category is null and work is not null %}
  45.   {% for work_category in work.categories if work_category.indexPage is not null %}
  46.     {% set category=work_category %}
  47.     {% set sCategoryIndex = work_category.indexPage %}
  48.   {% endfor %}
  49. {% endif %}
  50. {% set bChapterExplanation = false %}
  51. {% if (chapter_explanations_for_combo is defined and chapter_explanations_for_combo is not empty) or is_chapter_explanation is defined %}
  52.     {% set bChapterExplanation = true %}
  53. {% endif %}
  54. {% set bVerseExplanation = false %}
  55. {% if is_verse_explanation is defined %}
  56.     {% set bVerseExplanation = true %}
  57. {% endif %}
  58. {% block crumb_trail %}
  59.   {% set first_crumb = true %}
  60.   {% if category == 'swedenborg' %}
  61.     <li class="breadcrumb-item">
  62.       {% if first_crumb %}
  63.         {% set first_crumb = false %}      
  64.       {% endif %}
  65.       <a href="{{ path('swedenborg') }}" title="{{ app.session.get('ui_str')["linktitle.short.swedenborg.main"] }}"><i class="fad fa-feather-pointed"></i></a>
  66.     </li>     
  67.   {% elseif category == 'story' and all_stories is defined and all_stories is not empty %}
  68.     <li class="breadcrumb-item">
  69.       {% if first_crumb %}
  70.         {% set first_crumb = false %}      
  71.       {% endif %}
  72.       <a href="{{ path('bible_stories') }}" title="{{ app.session.get('ui_str')["linktitle.short.bible.storyexplanations"] }}"><i class="fad fa-book-open-reader"></i></a>
  73.     </li>
  74.   {% elseif category is not null %}
  75.     <li class="breadcrumb-item">
  76.       {% if first_crumb %}
  77.         {% set first_crumb = false %}      
  78.       {% endif %}
  79.       {% if category.indexPage is not null and (index_path is not defined or index_path is null) %}
  80.         <a href="{{ path(category.indexPage) }}" title="{{ app.session.get('ui_str')["linktitle.short."~index_page_title_paths[category.indexPage]] }}">{% if category.indexPage == 'consider' %}<i class='fad fa-sun'></i>{% elseif category.indexPage == 'concepts' %}<i class='fas fa-key'></i>{% elseif category.indexPage == 'q-and-a' %}<i class='fad fa-comments'></i>{% else %}{% if category.indexPage == 'concordance' %}<i class='fas fa-key'></i>{% endif %} {{ app.session.get('ui_str')["linktitle.short."~index_page_title_paths[category.indexPage]] }}{% endif %}
  81.         {% if concordance_has_searched_list is defined %}
  82.             <i class="fa-kit fa-solid-filter-magnifying-glass"></i>
  83.         {% endif %}</a>
  84.       {% else %}
  85.         <a href="{{ uri(category) }}">{{ category.name }}</a>        
  86.       {% endif %}
  87.     </li>
  88.     {% elseif bChapterExplanation %}
  89.         <li class="breadcrumb-item">
  90.           {% if first_crumb %}
  91.             {% set first_crumb = false %}          
  92.           {% endif %}      
  93.           {%  include 'NCBSWBundle:Exposition:interface/popup/chapter_summary_popup.html.twig' %}
  94.         </li>    
  95.         
  96.     {% elseif bVerseExplanation %}
  97.         <li class="breadcrumb-item">    
  98.           {% if first_crumb %}
  99.             {% set first_crumb = false %}          
  100.           {% endif %}
  101.           <button type="button" class="btn btn-text" >{{ app.session.get('ui_str')["linktitle.short.bible.verseexplanations"] }}</button>
  102.         </li>   
  103.   {% elseif index_path is defined %}
  104.     <li class="breadcrumb-item">
  105.       {% if first_crumb %}
  106.         {% set first_crumb = false %}       
  107.       {% endif %}
  108.       <a href="{{ path(index_path) }}">{{ app.session.get('ui_str')["linktitle.short."~index_page_title_paths[index_path]] }}</a>      
  109.     </li>
  110.     
  111.   {% endif %}
  112.   {% if collection is defined and collection is not null %}
  113.     <li class="breadcrumb-item">
  114.       {% if first_crumb %}
  115.         {% set first_crumb = false %}
  116.       {% endif %}
  117.       {{ collection.name }}
  118.     </li>
  119.   {% endif %}
  120.  
  121.     {% set bConcept = (category is not null and category != 'swedenborg' and category != 'story' and category.id == 12) %}
  122.      {% if work is not null and not bConcept %}
  123.     <li class="breadcrumb-item">
  124.       {% if first_crumb %}
  125.         {% set first_crumb = false %}           
  126.       {% endif %}
  127.       {% if category == 'swedenborg' %}        
  128.         {% include 'NCBSWBundle:Exposition:interface/popup/work_popup.html.twig' %}  
  129.       {% elseif category == 'story' and all_stories is defined and all_stories is not empty %}             
  130.         {% include 'NCBSWBundle:Exposition:interface/popup/story_popup.html.twig' %}
  131.       {% elseif category is not null %}
  132.             {% if category.id == 13 %}                
  133.                 {% include 'NCBSWBundle:Exposition:interface/popup/topic_popup.html.twig' %} 
  134.             {% elseif category.id == 14 %}                 
  135.                 {% include 'NCBSWBundle:Exposition:interface/popup/biblestudy_popup.html.twig' %}   
  136.             {% elseif category.id != 53 %}
  137.                 {% include 'NCBSWBundle:Exposition:interface/work_dropdown/category_dropdown.html.twig' %}
  138.             {% endif %}
  139.       {% elseif book_summaries is defined and book_summaries is not empty %}   
  140.         {% include 'NCBSWBundle:Exposition:interface/popup/bible_book_summary_popup.html.twig' %}       
  141.       {% elseif chapter_explanations_for_combo is defined and chapter_explanations_for_combo is not empty %}
  142.         {% include 'NCBSWBundle:Exposition:interface/popup/chapter_summary_work_popup.html.twig' %}
  143.        {% elseif verse_explanations is defined and verse_explanations is not empty %}      
  144.         {% include 'NCBSWBundle:Exposition:interface/popup/verse_explanations_popup.html.twig' %}              
  145.       {% else %}
  146.         {% if translation is not null and translation.translatedTitle is not empty %}{{ translation.translatedTitle }}{% else %}{{ work.title }}{% endif %}
  147.       {% endif %}
  148.     </li>
  149.   {% endif %}
  150.   {% if translation is not null and (work.translations|length > 1) and (book_summaries is not defined or book_summaries is empty) %}
  151.     <li class="breadcrumb-item">
  152.       {% if first_crumb %}
  153.         {% set first_crumb = false %}      
  154.       {% endif %}
  155.       {% if sCategoryIndex != 'consider' and category != 'story' and not bChapterExplanation %}
  156.           <button type="button" class="btn btn-text" >{{ app.session.get('ui_str')["exposition.breadcrumbs.translationlabel"] }}</button> 
  157.       {% endif %}     
  158.       {% include 'NCBSWBundle:Exposition:interface/popup/work_translation_popup.html.twig'  with {'dropdown_target': 'multicolumn'} %}
  159.     </li>
  160.   {% endif %}
  161.   
  162.    <span name="OtherLangLink" style="display:none" >
  163.     <li class="breadcrumb-item">
  164.       &nbsp;&nbsp;&nbsp;<a href="/additional-translations" target="_blank">(See also other languages)</a>
  165.     </li>
  166.     </span>  
  167. {% endblock %}