You are here

extlink-extra-leaving.html.example.twig in External Links Extra 8

{# If you would rather use the template than the text box in the UI, you can
   reconstruct a facsimile here. Save this file as extlink-extra-leaving.html.twig
   to use it.

   The following variables correspond to the tokens descibed on the External Links
   module's settings page:
    - back_url
    - external_url
    - timer

   The alert text itself (with token replacements applied, so omit them if you
   plan to deploy the tokens in the template)
    - alert_text

   The page title as entered on the External Links settings page (Drupal will set
   this on the now-leaving page, but you can access it here anyway)
    - page_title

   Tip for themers: The javascript renders the automatic timer like this:
   <div class="automatic-redirect-countdown">
     <span class="extlink-timer-text">Automatically redirecting in: </span>
     <span class="extlink-count">'+count+'</span>
     <span class="extlink-timer-text"> seconds.</span>
   </div>

   Don't remove any CSS classes if you want them to function correctly, but add
   any that you need.
#}

<div class="extlink-extra-leaving">
  <h2>You are leaving the {{ site_name }} website</h2>
  <p>You are being directed to a third-party website:</p>
  <p><strong>{{ external_url }}</strong></p>
  <p>This link is provided for your convenience. Please note that this third-party website is not controlled by {{ site_name }} or subject to our privacy policy.</p>
  <p>Thank you for visiting our site. We hope your visit was informative and enjoyable.</p>
  
  <div class="extlink-extra-actions">
    <div class="extlink-extra-back-action"><a title="Cancel" href="{{ back_url }}">Cancel</a></div>
    <div class="extlink-extra-go-action"><a class="ext-override" title="Go to link" href="{{ external_url }}">Go to link</a></div>
  </div>
  <br/><br/>
  {{ timer }}
</div>

File

templates/extlink-extra-leaving.html.example.twig
View source
  1. {# If you would rather use the template than the text box in the UI, you can
  2. reconstruct a facsimile here. Save this file as extlink-extra-leaving.html.twig
  3. to use it.
  4. The following variables correspond to the tokens descibed on the External Links
  5. module's settings page:
  6. - back_url
  7. - external_url
  8. - timer
  9. The alert text itself (with token replacements applied, so omit them if you
  10. plan to deploy the tokens in the template)
  11. - alert_text
  12. The page title as entered on the External Links settings page (Drupal will set
  13. this on the now-leaving page, but you can access it here anyway)
  14. - page_title
  15. Tip for themers: The javascript renders the automatic timer like this:
  16. <div class="automatic-redirect-countdown">
  17. <span class="extlink-timer-text">Automatically redirecting in: </span>
  18. <span class="extlink-count">'+count+'</span>
  19. <span class="extlink-timer-text"> seconds.</span>
  20. </div>
  21. Don't remove any CSS classes if you want them to function correctly, but add
  22. any that you need.
  23. #}
  24. <div class="extlink-extra-leaving">
  25. <h2>You are leaving the {{ site_name }} website</h2>
  26. <p>You are being directed to a third-party website:</p>
  27. <p><strong>{{ external_url }}</strong></p>
  28. <p>This link is provided for your convenience. Please note that this third-party website is not controlled by {{ site_name }} or subject to our privacy policy.</p>
  29. <p>Thank you for visiting our site. We hope your visit was informative and enjoyable.</p>
  30. <div class="extlink-extra-actions">
  31. <div class="extlink-extra-back-action"><a title="Cancel" href="{{ back_url }}">Cancel</a></div>
  32. <div class="extlink-extra-go-action"><a class="ext-override" title="Go to link" href="{{ external_url }}">Go to link</a></div>
  33. </div>
  34. <br/><br/>
  35. {{ timer }}
  36. </div>