l10n_update-translation-update-info.tpl.php 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * @file
  4. * Default theme implementation for displaying translation status information.
  5. *
  6. * Displays translation status information per language.
  7. *
  8. * Available variables:
  9. * - module_list: A list of names of modules that have available translation
  10. * updates.
  11. * - details: Rendered list of the translation details.
  12. * - missing_updates_status: If there are any modules that are missing
  13. * translation updates, this variable will contain text indicating how many
  14. * modules are missing translations.
  15. *
  16. * @see template_preprocess_l10n_update_update_info()
  17. *
  18. * @ingroup themeable
  19. */
  20. ?>
  21. <div class="inner" tabindex="0" role="button">
  22. <span class="update-description-prefix visually-hidden">Show description</span>
  23. <?php if($module_list): ?>
  24. <span class="text"><?php print $module_list; ?></span>
  25. <?php elseif($missing_updates_status): ?>
  26. <span class="text"><?php print $missing_updates_status; ?></span>
  27. <?php endif; ?>
  28. <?php if($details): ?>
  29. <div class="details"><?php print drupal_render($details); ?></div>
  30. <?php endif; ?>
  31. </div>