sharing.phtml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php $this->partial ('aside_configure'); ?>
  2. <div class="post">
  3. <a href="<?php echo _url ('index', 'index'); ?>"><?php echo Minz_Translate::t ('back_to_rss_feeds'); ?></a>
  4. <form method="post" action="<?php echo _url ('configure', 'sharing'); ?>">
  5. <legend><?php echo Minz_Translate::t ('sharing'); ?></legend>
  6. <div class="form-group">
  7. <label class="group-name" for="shaarli">
  8. <?php echo Minz_Translate::t ('your_shaarli'); ?>
  9. </label>
  10. <div class="group-controls">
  11. <input type="url" id="shaarli" name="shaarli" class="extend" value="<?php echo $this->conf->sharing ('shaarli'); ?>" placeholder="<?php echo Minz_Translate::t ('blank_to_disable'); ?>" size="64" />
  12. <?php echo FreshRSS_Themes::icon('help'); ?> <a target="_blank" href="http://sebsauvage.net/wiki/doku.php?id=php:shaarli"><?php echo Minz_Translate::t ('more_information'); ?></a>
  13. </div>
  14. </div>
  15. <div class="form-group">
  16. <label class="group-name" for="wallabag">
  17. <?php echo Minz_Translate::t ('your_wallabag'); ?>
  18. </label>
  19. <div class="group-controls">
  20. <input type="url" id="wallabag" name="wallabag" class="extend" value="<?php echo $this->conf->sharing ('wallabag'); ?>" placeholder="<?php echo Minz_Translate::t ('blank_to_disable'); ?>" size="64" />
  21. <?php echo FreshRSS_Themes::icon('help'); ?> <a target="_blank" href="http://www.wallabag.org"><?php echo Minz_Translate::t ('more_information'); ?></a>
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="group-name" for="diaspora">
  26. <?php echo Minz_Translate::t ('your_diaspora_pod'); ?>
  27. </label>
  28. <div class="group-controls">
  29. <input type="url" id="diaspora" name="diaspora" class="extend" value="<?php echo $this->conf->sharing ('diaspora'); ?>" placeholder="<?php echo Minz_Translate::t ('blank_to_disable'); ?>" size="64" />
  30. <?php echo FreshRSS_Themes::icon('help'); ?> <a target="_blank" href="https://diasporafoundation.org/"><?php echo Minz_Translate::t ('more_information'); ?></a>
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <label class="group-name"><?php echo Minz_Translate::t ('activate_sharing'); ?></label>
  35. <div class="group-controls">
  36. <?php
  37. $services = array ('twitter', 'g+', 'facebook', 'email', 'print');
  38. foreach ($services as $service) {
  39. ?>
  40. <label class="checkbox" for="<?php echo $service; ?>">
  41. <input type="checkbox" name="<?php echo $service; ?>" id="<?php echo $service; ?>" value="1"<?php echo $this->conf->sharing($service) ? ' checked="checked"' : ''; ?> />
  42. <?php echo Minz_Translate::t ($service); ?>
  43. </label>
  44. <?php } ?>
  45. </div>
  46. </div>
  47. <div class="form-group form-actions">
  48. <div class="group-controls">
  49. <button type="submit" class="btn btn-important"><?php echo Minz_Translate::t ('save'); ?></button>
  50. <button type="reset" class="btn"><?php echo Minz_Translate::t ('cancel'); ?></button>
  51. </div>
  52. </div>
  53. </form>
  54. </div>