src/NCBS/WebsiteBundle/Resources/views/General/text_to_speech.html.twig line 1

Open in your IDE?
  1. {% if text_to_speech is defined and text_to_speech is not null %} 
  2.     {% set nColNum = 0 %}
  3.     {% if column_num is defined %}
  4.         {% set nColNum = column_num %}
  5.     {% endif %}
  6.     {% set nAudioRate = 1.0 %}
  7.     {% set nCurrAudioRate = app.session.get('current_audio_rate') %}
  8.     {% if nCurrAudioRate is not null %}
  9.         {% set nAudioRate = nCurrAudioRate %}                
  10.     {% endif %}    
  11.     {% set sTitle = app.session.get('ui_str')["texttospeech.read"]|replace({'"':'\"'})|raw %}
  12.     <li class="nav-item"><a href="javascript:ReadText('{{ text_to_speech }}',{{ nColNum }}, {{ nAudioRate }})" id="readbutton{{ nColNum }}" title="{{ sTitle }}" class="nav-link"><i class="fa-solid fa-circle-play"></i></i><span class="mobile-only"> {{ sTitle }}</span></a></li>
  13.     {% set sTitle = app.session.get('ui_str')["texttospeech.pause"]|replace({'"':'\"'})|raw %}
  14.     <li class="nav-item"><a href="javascript:PauseReadText({{ nColNum }})" id="pausebutton{{ nColNum }}" title="{{ sTitle }}" class="nav-link" style="display:none;"><i class="fa-solid fa-circle-pause"></i><span class="mobile-only"> {{ sTitle }}</span></a></li>
  15.     {% set sTitle = app.session.get('ui_str')["texttospeech.stop"]|replace({'"':'\"'})|raw %}
  16.     <li class="nav-item"><a href="javascript:StopReadText({{ nColNum }})" id="stopbutton{{ nColNum }}" title="{{ sTitle }}" class="nav-link" style="display:none;"><i class="fa-solid fa-circle-stop"></i><span class="mobile-only"> {{ sTitle }}</span></a></li>
  17. {% endif %}