settings.php 663 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Elgg lightbox settings view
  4. *
  5. * Override this view to change the default colorbox settings.
  6. * See the js/lightbox view for more ways to change lightbox behavior.
  7. */
  8. ?>
  9. //<script>
  10. elgg.ui.lightbox.getSettings = function () {
  11. return {
  12. current: elgg.echo('js:lightbox:current', ['{current}', '{total}']),
  13. previous: elgg.echo('previous'),
  14. next: elgg.echo('next'),
  15. close: elgg.echo('close'),
  16. xhrError: elgg.echo('error:default'),
  17. imgError: elgg.echo('error:default'),
  18. opacity: 0.5,
  19. maxWidth: '100%',
  20. // don't move colorbox on small viewports https://github.com/Elgg/Elgg/issues/5312
  21. reposition: $(window).height() > 600
  22. };
  23. };