settings-personal.php 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 data-anchor-name="federated-cloud"><?php p($l->t('Federated Cloud')); ?></h2>
  10. <p class="settings-hint"><?php p($l->t('You can share with anyone who uses Nextcloud, ownCloud or Pydio! Just put their Federated Cloud ID in the share dialog. It looks like person@cloud.example.com')); ?></p>
  11. <p>
  12. <?php p($l->t('Your Federated Cloud ID:')); ?>
  13. <strong id="cloudid"><?php p($_['cloudId']); ?></strong>
  14. <a class="clipboardButton icon icon-clippy" data-clipboard-target="#cloudid"></a>
  15. </p>
  16. <br>
  17. <p>
  18. <?php p($l->t('Share it so your friends can share files with you:')); ?><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 noopener" 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 noopener" 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. </div>
  55. <?php endif; ?>