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

Open in your IDE?
  1. {% extends 'NCBSWBundle:Exposition:layout.html.twig' %}
  2. {% block title %}    
  3. {% if not bInFrame %}
  4.   {% if translation is null or passage is null %}
  5.     {{ app.session.get('ui_str')["meta.exposition.passage.notfound.subtitle"] }}
  6.   {% elseif commentary_type is defined %}
  7.     {{ (app.session.get('ui_str')["meta.exposition.commentarytypes."~commentary_type~".subtitle"])|replace({'_1000_': translation.name})|replace({'"': "'"})|raw }}
  8.   {% elseif passage.swedenborgSection is not null %}      
  9.       {% set sAuthorStr = app.session.get('ui_str')["explanatoryworkspage.tablecolumns.author.header"]|raw %}
  10.       {% set sSW = app.session.get('ui_str')["author.fullname.swedenborg"]|raw %}
  11.       {% set sDescEnd = " - " ~ sAuthorStr ~ ": " ~ sSW ~ " " ~ app.session.get('ui_str')["meta.userinterface"]|raw %}
  12.     {% if compare_to2 is defined and compare_to2 is not null %}
  13.       {{ app.session.get('ui_str')["meta.exposition.passage.numbered.subtitle.comparison3col"]|replace({'_1000_': translation.name, '_2000_': passage.swedenborgSection, '_2110_': translation.briefIdentifier({'no_original': true, 'no_date':true}), '_2120_': compare_to.briefIdentifier({'no_original': true, 'no_date':true}), '_2130_': compare_to2.briefIdentifier({'no_original': true, 'no_date':true})})|replace({'"': "'"})|raw }}{{ sDescEnd }}
  14.     {% elseif compare_to is defined and compare_to is not null %}
  15.       {{ app.session.get('ui_str')["meta.exposition.passage.numbered.subtitle.comparison"]|replace({'_1000_': translation.name, '_2000_': passage.swedenborgSection, '_2110_': translation.briefIdentifier({'no_original': true, 'no_date':true}), '_2120_': compare_to.briefIdentifier({'no_original': true, 'no_date':true})})|replace({'"': "'"})|raw }}{{ sDescEnd }}
  16.     {% elseif translation.isOriginal %}
  17.       {{ app.session.get('ui_str')["meta.exposition.passage.numbered.subtitle.original"]|replace({'_1000_': translation.name, '_2000_': passage.swedenborgSection, '_3000_': translation.language.name})|replace({'"': "'"})|raw }}{{ sDescEnd }}
  18.     {% else %}
  19.       {{ app.session.get('ui_str')["meta.exposition.passage.numbered.subtitle.translated"]|replace({'_1000_': translation.name, '_2000_': passage.swedenborgSection})|replace({'"': "'"})|raw }}{{ sDescEnd }}
  20.     {% endif %}
  21.   {% else %}
  22.     {% if translation.work.translations|length == 1 %}
  23.       {{ app.session.get('ui_str')["meta.exposition.passage.unnumbered.subtitle.generic"]|replace({'_1000_': translation.name})|replace({'"': "'"})|raw }}
  24.     {% elseif compare_to2 is defined and compare_to2 is not null %}
  25.       {{ app.session.get('ui_str')["meta.exposition.passage.unnumbered.subtitle.comparison3col"]|replace({'_1000_': translation.name, '_2110_': translation.briefIdentifier({'no_original': true, 'no_date':true}), '_2120_': compare_to.briefIdentifier({'no_original': true, 'no_date':true}), '_2130_': compare_to2.briefIdentifier({'no_original': true, 'no_date':true})})|replace({'"': "'"})|raw }}  
  26.     {% elseif compare_to is defined and compare_to is not null %}
  27.       {{ app.session.get('ui_str')["meta.exposition.passage.unnumbered.subtitle.comparison"]|replace({'_1000_': translation.name, '_2110_': translation.briefIdentifier({'no_original': true, 'no_date':true}), '_2120_': compare_to.briefIdentifier({'no_original': true, 'no_date':true})})|replace({'"': "'"})|raw }}
  28.     {% elseif translation.isOriginal %}
  29.       {{ app.session.get('ui_str')["meta.exposition.passage.unnumbered.subtitle.original"]|replace({'_1000_': translation.name, '_3000_': translation.language.name})|replace({'"': "'"})|raw }}
  30.     {% else %}
  31.       {{ app.session.get('ui_str')["meta.exposition.passage.unnumbered.subtitle.translated"]|replace({'_1000_': translation.name})|replace({'"': "'"})|raw }}
  32.     {% endif %}
  33.   {% endif %}  
  34. {% endif %}  
  35. {% endblock %}
  36. {% block description %}
  37. {% if not bInFrame %}
  38.   {% if translation is null or passage is null %}
  39.     {{ app.session.get('ui_str')["meta.exposition.passage.notfound.desc"] }}
  40.   {% elseif commentary_type is defined %}    
  41.     {{ work_meta_desc|raw }}
  42.   {% elseif passage.swedenborgSection is not null %}           
  43.       {% if compare_to2 is defined and compare_to2 is not null %}
  44.           {{ app.session.get('ui_str')["meta.exposition.passage.numbered.desc.swedenborgcomparison3col"]|replace({'_1000_': translation.name, '_2000_': passage.swedenborgSection, '_2110_': translation.briefIdentifier(), '_2120_': compare_to.briefIdentifier(), '_2130_': compare_to2.briefIdentifier()})|raw }}
  45.     {% elseif compare_to is defined and compare_to is not null %}
  46.       {{ app.session.get('ui_str')["meta.exposition.passage.numbered.desc.swedenborgcomparison"]|replace({'_1000_': translation.name, '_2000_': passage.swedenborgSection, '_2110_': translation.briefIdentifier(), '_2120_': compare_to.briefIdentifier()})|raw }}
  47.     {% else %}
  48.       {{ work_meta_desc|raw }}
  49.     {% endif %}
  50.   {% elseif translation.work.swedenborgType is not null %}
  51.     {% if compare_to2 is defined and compare_to2 is not null %}
  52.           {{ app.session.get('ui_str')["meta.exposition.passage.unnumbered.desc.swedenborgcomparison3col"]|replace({'_1000_': translation.name, '_2110_': translation.briefIdentifier(), '_2120_': compare_to.briefIdentifier(), '_2130_': compare_to2.briefIdentifier()})|raw }}
  53.     {% elseif compare_to is defined and compare_to is not null %}
  54.       {{ app.session.get('ui_str')["meta.exposition.passage.unnumbered.desc.swedenborgcomparison"]|replace({'_1000_': translation.name, '_2110_': translation.briefIdentifier(), '_2120_': compare_to.briefIdentifier()})|raw }}
  55.     {% else %}
  56.       {{ app.session.get('ui_str')["meta.exposition.passage.unnumbered.desc.swedenborg"]|replace({'_1000_': translation.name})|raw }}
  57.     {% endif %}
  58.   {% else %}
  59.     {% if compare_to is defined and compare_to is not null %}
  60.       {{ app.session.get('ui_str')["meta.exposition.passage.unnumbered.desc.genericcomparison"]|replace({'_1000_': translation.name, '_2110_': translation.briefIdentifier(), '_2120_': compare_to.briefIdentifier()})|raw }}
  61.     {% else %}
  62.       {{ work_meta_desc|raw }}
  63.     {% endif %} 
  64.   {% endif %}
  65. {% endif %}
  66. {% endblock %}
  67. {% block content %}    
  68.   {% if translation is not null %}
  69.     {% set force_translation = translation %}
  70.     {% set work = translation.work %}
  71.     {% set show_compare_box = work.translations|length > 1 and (compare_to2 is not defined or compare_to2 is null) and passage is not null and passage.swedenborgSection is not null %}
  72.     {% if (compare_to is not defined or compare_to is null) %}
  73.         {% include 'NCBSWBundle:Exposition:search/search_in_work.html.twig' %}    
  74.     {% endif %}
  75.     {% if show_compare_box %}      
  76.       <span class="mobile-hide" style="float:right;">
  77.           {% include 'NCBSWBundle:Exposition:interface/popup/work_compare_popup.html.twig' %}
  78.         {#% include 'NCBSWBundle:Exposition:interface/translation_dropdown/dropdown.html.twig' with {'dropdown_target': 'add'} %#}
  79.       </span>
  80.     {% endif %}
  81.         <div style="clear:both"></div>
  82.         <span>
  83.         <h1>
  84.           {% set passage_title = '' %}
  85.           {% if passage is not null and passage.swedenborgSection is not null %}
  86.               {% set passage_title = app.session.get('ui_str')["exposition.passage.sectiontitle"]|replace({'_8100_': translation.translatedTitle, '_2000_': passage.swedenborgSection})|raw %}
  87.             {{ passage_title }}
  88.           {% else %}
  89.             {{ translation.translatedTitle }}
  90.           {% endif %}          
  91.     </h1>
  92.     {% if passage is not null and passage.swedenborgSection is not null %}
  93.         <small>{{ app.session.get('ui_str')["generic.writtenby"] }} {{ app.session.get('ui_str')["author.fullname.swedenborg"] }}</small>
  94.     {% endif %}
  95.     </span> 
  96.     
  97.     {% include 'NCBSWBundle:Exposition:sidrbuttonw.html.twig' %}
  98.             
  99.           <div style="clear:both"></div>
  100.                           
  101.     {% if compare_to is not defined or compare_to is null %}
  102.          {% if IsSwedenborgWork is not defined or IsSwedenborgWork != 1 %}
  103.                  {% if authors is defined and authors != '' and concept_prev_next is not defined %}            
  104.                 <small>{{ app.session.get('ui_str')["generic.writtenby"] }} {{ authors }}</small>
  105.                <div style="clear:both;"></div>
  106.                {% else %}
  107.                <div style="clear:both;"></div> 
  108.             {% endif %} 
  109.                     <span class="iconmenuspan">                         
  110.                         {% include 'NCBSWBundle:Default:toolbarstart.html.twig' %}{% include 'NCBSWBundle:Exposition:toc_link.html.twig' %}                     
  111.                       <li class="nav-item"><a href="{{ path('exposition_translation_index', {'translationUrl': translation.getUrl()}) }}" title="{{ app.session.get('ui_str')["generic.bibliographyicon"] }}" class="nav-link"><i class="fas fa-info-circle"></i><span class="mobile-only"> {{ app.session.get('ui_str')["generic.bibliographyicon"] }}</span></a></li>
  112.                   {% include 'NCBSWBundle:Exposition:toolbar_for_concept.html.twig' %}              
  113.                   {% include 'NCBSWBundle:General:text_to_speech.html.twig' %}
  114.                   {% include 'NCBSWBundle:Exposition:related_bible_ref.html.twig' %}
  115.                   {% include 'NCBSWBundle:Exposition:show_scan_image.html.twig' %}                              {% include 'NCBSWBundle:Default:askquestioninc.html.twig' %}
  116.                   {% include 'NCBSWBundle:Exposition:edit_translation.html.twig' %}
  117.                   {% include 'NCBSWBundle:Default:toolbarend.html.twig' %}
  118.                 </span>                           
  119.          {% else %}        
  120.              <span class="iconmenuspan">                  
  121.               {% include 'NCBSWBundle:Default:toolbarstart.html.twig' %}{% include 'NCBSWBundle:Exposition:toc_link.html.twig' %}{% include 'NCBSWBundle:Exposition:interface/popup/work_add_popup.html.twig' %}
  122.               <li class="nav-item"><a href="{{ path('exposition_translation_index', {'translationUrl': translation.getUrl()}) }}" title="{{ app.session.get('ui_str')["generic.bibliographyicon"] }}" class="nav-link"><i class="fas fa-info-circle"></i><span class="mobile-only"> {{ app.session.get('ui_str')["generic.bibliographyicon"] }}</span></a></li>
  123.             {% include 'NCBSWBundle:Exposition:toolbar_for_concept.html.twig' %}            
  124.             {% include 'NCBSWBundle:General:text_to_speech.html.twig' %}
  125.             {% include 'NCBSWBundle:Exposition:related_bible_ref.html.twig' %}
  126.             {% include 'NCBSWBundle:Exposition:show_scan_image.html.twig' %}
  127.             {% include 'NCBSWBundle:Default:askquestioninc.html.twig' %}
  128.             {% include 'NCBSWBundle:Exposition:edit_translation.html.twig' %}
  129.             {% include 'NCBSWBundle:Default:toolbarend.html.twig' %}    
  130.           </span>                
  131.         {% endif %}    
  132.     {% endif %}      
  133.     <span id='prev_next_category'></span>    
  134.   {% endif %}
  135.   {% include 'NCBSWBundle:Exposition:concept_prev_next.html.twig' %}  
  136.   {% include 'NCBSWBundle:Exposition:passage_view.html.twig' %}
  137.   
  138.   {% if translation is not null %}
  139.       <span id='prev_next_category2'></span>
  140.       <script>
  141.         if(sPrevNextCategory != '')
  142.         {
  143.             $("#prev_next_category").html(sPrevNextCategory);
  144.             $("#prev_next_category2").html(sPrevNextCategory);
  145.         }    
  146.     </script>
  147.   {% endif %}     
  148. {% endblock %}