settings-personal.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /** @var \OCP\IL10N $l */
  3. /** @var array $_ */
  4. script('federatedfilesharing', 'settings-personal');
  5. style('federatedfilesharing', 'settings-personal');
  6. ?>
  7. <?php if ($_['outgoingServer2serverShareEnabled']): ?>
  8. <div id="fileSharingSettings" class="section">
  9. <h2><?php p($l->t('Federated Cloud')); ?></h2>
  10. <p>
  11. <?php p($l->t('Your Federated Cloud ID:')); ?>
  12. <strong id="cloudid"><?php p($_['cloudId']); ?></strong>
  13. <a class="clipboardButton icon icon-clippy" data-clipboard-target="#cloudid"></a>
  14. </p>
  15. <br>
  16. <?php if ($_['showShareIT']) {?>
  17. <p>
  18. <?php p($l->t('Share it:')); ?><br>
  19. <button class="social-facebook pop-up"
  20. data-url='https://www.facebook.com/sharer/sharer.php?u=<?php p(urlencode($_['reference'])); ?>'>
  21. Facebook
  22. </button>
  23. <button class="social-twitter pop-up"
  24. data-url='https://twitter.com/intent/tweet?text=<?php p(urlencode($_['message_with_URL'])); ?>'>
  25. Twitter
  26. </button>
  27. <button class="social-googleplus pop-up"
  28. data-url='https://plus.google.com/share?url=<?php p(urlencode($_['reference'])); ?>'>
  29. Google+
  30. </button>
  31. <button class="social-diaspora pop-up"
  32. data-url='https://sharetodiaspora.github.io/?title=<?php p($_['message_without_URL']); ?>&url=<?php p(urlencode($_['reference'])); ?>'>
  33. Diaspora
  34. </button>
  35. <button id="oca-files-sharing-add-to-your-website">
  36. <?php p($l->t('Add to your website')) ?>
  37. </button>
  38. </p>
  39. <div class="hidden" id="oca-files-sharing-add-to-your-website-expanded">
  40. <p style="margin: 10px 0">
  41. <a target="_blank" rel="noreferrer" href="<?php p($_['reference']); ?>"
  42. style="padding:10px;background-color:<?php p($_['color']); ?>;color:<?php p($_['textColor']); ?>;border-radius:3px;padding-left:4px;">
  43. <span style="background-image:url(<?php p(\OC::$server->getURLGenerator()->getAbsoluteURL($_['logoPath'])); ?>);width:50px;height:30px;position:relative;top:8px;background-size:contain;display:inline-block;background-repeat:no-repeat; background-position: center center;"></span>
  44. <?php p($l->t('Share with me via Nextcloud')); ?>
  45. </a>
  46. </p>
  47. <p>
  48. <?php p($l->t('HTML Code:')); ?>
  49. <xmp><a target="_blank" rel="noreferrer" href="<?php p($_['reference']); ?>" style="padding:10px;background-color:<?php p($_['color']); ?>;color:<?php p($_['textColor']); ?>;border-radius:3px;padding-left:4px;">
  50. <span style="background-image:url(<?php p(\OC::$server->getURLGenerator()->getAbsoluteURL($_['logoPath'])); ?>);width:50px;height:30px;position:relative;top:8px;background-size:contain;display:inline-block;background-repeat:no-repeat; background-position: center center;"></span>
  51. <?php p($l->t('Share with me via Nextcloud')); ?></a></xmp>
  52. </p>
  53. </div>
  54. <?php } ?>
  55. </div>
  56. <?php endif; ?>