You are here

youtubechannel-block.html.twig in YoutubeChannel 8

{% if youtube_content is empty  %}
  <h3>Sorry, there are no videos available on this channel.</h3>
{% else %}
  <div id="youtubechannel-player" style="width:{{youtube_content.width}}px; height:{{youtube_content.height}}px;">
     <iframe id="youtubechannel-frame" title="Youtube Video Player" width="{{youtube_content.width}}px" height="{{youtube_content.height}}px;" src="" frameborder="0" allowfullscreen></iframe>  
  </div>
  <div id="youtubechannel-list" style="width: {{youtube_content.width}}px;">
    <ul>
    {% for i in youtube_content.content|keys %}
      <li><a href="#{{i}}"><img src="{{youtube_content.content[i]}}"></a></li>
    {% endfor %}
    </ul>
  </div> 
{% endif %}

File

templates/youtubechannel-block.html.twig
View source
  1. {% if youtube_content is empty %}
  2. <h3>Sorry, there are no videos available on this channel.</h3>
  3. {% else %}
  4. <div id="youtubechannel-player" style="width:{{youtube_content.width}}px; height:{{youtube_content.height}}px;">
  5. <iframe id="youtubechannel-frame" title="Youtube Video Player" width="{{youtube_content.width}}px" height="{{youtube_content.height}}px;" src="" frameborder="0" allowfullscreen></iframe>
  6. </div>
  7. <div id="youtubechannel-list" style="width: {{youtube_content.width}}px;">
  8. <ul>
  9. {% for i in youtube_content.content|keys %}
  10. <li><a href="#{{i}}"><img src="{{youtube_content.content[i]}}"></a></li>
  11. {% endfor %}
  12. </ul>
  13. </div>
  14. {% endif %}