1
0

settings-personal.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /** @var \OCP\IL10N $l */
  3. /** @var array $_ */
  4. script('federatedfilesharing', 'settings-personal');
  5. style('federatedfilesharing', 'settings-personal');
  6. ?>
  7. <div id="fileSharingSettings" class="section">
  8. <h2 data-anchor-name="federated-cloud"><?php p($l->t('Federated Cloud')); ?></h2>
  9. <a target="_blank" rel="noreferrer noopener" class="icon-info svg"
  10. title="<?php p($l->t('Open documentation'));?>"
  11. href="<?php p(link_to_docs('user-sharing-federated')); ?>"></a>
  12. <p class="settings-hint"><?php p($l->t('You can share with anyone who uses a Nextcloud server or other Open Cloud Mesh (OCM) compatible servers and services! Just put their Federated Cloud ID in the share dialog. It looks like person@cloud.example.com')); ?></p>
  13. <p>
  14. <?php p($l->t('Your Federated Cloud ID:')); ?>
  15. <strong id="cloudid"><?php p($_['cloudId']); ?></strong>
  16. <a class="clipboardButton icon icon-clippy" data-clipboard-target="#cloudid"></a>
  17. </p>
  18. <br>
  19. <p>
  20. <?php p($l->t('Share it so your friends can share files with you:')); ?><br>
  21. <button class="social-facebook pop-up"
  22. data-url='https://www.facebook.com/sharer/sharer.php?u=<?php p(urlencode($_['reference'])); ?>'>
  23. Facebook
  24. </button>
  25. <button class="social-twitter pop-up"
  26. data-url='https://twitter.com/intent/tweet?text=<?php p(urlencode($_['message_with_URL'])); ?>'>
  27. Twitter
  28. </button>
  29. <button class="social-diaspora pop-up"
  30. data-url='https://sharetodiaspora.github.io/?title=<?php p($_['message_without_URL']); ?>&url=<?php p(urlencode($_['reference'])); ?>'>
  31. Diaspora
  32. </button>
  33. <button id="oca-files-sharing-add-to-your-website">
  34. <?php p($l->t('Add to your website')) ?>
  35. </button>
  36. </p>
  37. <div class="hidden" id="oca-files-sharing-add-to-your-website-expanded">
  38. <p style="margin: 10px 0">
  39. <a target="_blank" rel="noreferrer noopener" href="<?php p($_['reference']); ?>"
  40. style="padding:10px;background-color:<?php p($_['color']); ?>;color:<?php p($_['textColor']); ?>;border-radius:3px;padding-left:4px;">
  41. <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>
  42. <?php p($l->t('Share with me via Nextcloud')); ?>
  43. </a>
  44. </p>
  45. <p>
  46. <?php p($l->t('HTML Code:')); ?>
  47. <xmp><a target="_blank" rel="noreferrer noopener" href="<?php p($_['reference']); ?>" style="padding:10px;background-color:<?php p($_['color']); ?>;color:<?php p($_['textColor']); ?>;border-radius:3px;padding-left:4px;">
  48. <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>
  49. <?php p($l->t('Share with me via Nextcloud')); ?></a></xmp>
  50. </p>
  51. </div>
  52. </div>