sharing.phtml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. data-simple='<div class="form-group"><label class="group-name">##label##</label><div class="group-controls"><a href="#" class="share remove"><?php echo FreshRSS_Themes::icon('close'); ?></a>
  6. <input type="hidden" id="share_##key##_type" name="share[##key##][type]" value="##type##" /></div></div>'
  7. data-advanced='<div class="form-group"><label class="group-name">##label##</label><div class="group-controls"><a href="#" class="share remove"><?php echo FreshRSS_Themes::icon('close'); ?></a>
  8. <input type="hidden" id="share_##key##_type" name="share[##key##][type]" value="##type##" />
  9. <input type="text" id="share_##key##_name" name="share[##key##][name]" class="extend" value="" placeholder="<?php echo Minz_Translate::t ('share_name'); ?>" size="64" />
  10. <input type="url" id="share_##key##_url" name="share[##key##][url]" class="extend" value="" placeholder="<?php echo Minz_Translate::t ('share_url'); ?>" size="64" />
  11. <?php echo FreshRSS_Themes::icon('help'); ?> <a target="_blank" href="##help##"><?php echo Minz_Translate::t ('more_information'); ?></a></div></div>'>
  12. <legend><?php echo Minz_Translate::t ('sharing'); ?></legend>
  13. <?php foreach ($this->conf->sharing as $key => $sharing): ?>
  14. <?php $share = $this->conf->shares[$sharing['type']]; ?>
  15. <div class="form-group">
  16. <label class="group-name">
  17. <?php echo Minz_Translate::t ($sharing['type']); ?>
  18. </label>
  19. <div class="group-controls">
  20. <a href='#' class='share remove'><?php echo FreshRSS_Themes::icon('close'); ?></a>
  21. <input type='hidden' id='share_<?php echo $key;?>_type' name="share[<?php echo $key;?>][type]" value='<?php echo $sharing['type']?>' />
  22. <?php if ($share['form'] === 'advanced'):?>
  23. <input type="text" id="share_<?php echo $key;?>_name" name="share[<?php echo $key;?>][name]" class="extend" value="<?php echo $sharing['name']?>" placeholder="<?php echo Minz_Translate::t ('share_name'); ?>" size="64" />
  24. <input type="url" id="share_<?php echo $key;?>_url" name="share[<?php echo $key;?>][url]" class="extend" value="<?php echo $sharing['url']?>" placeholder="<?php echo Minz_Translate::t ('share_url'); ?>" size="64" />
  25. <?php echo FreshRSS_Themes::icon('help'); ?> <a target="_blank" href="<?php echo $share['help']?>"><?php echo Minz_Translate::t ('more_information'); ?></a>
  26. <?php endif;?>
  27. </div>
  28. </div>
  29. <?php endforeach;?>
  30. <div class="form-group form-actions">
  31. <div class="group-controls">
  32. <a href='#' class='share add'><?php echo FreshRSS_Themes::icon('add'); ?></a>
  33. <select>
  34. <?php foreach($this->conf->shares as $key => $params):?>
  35. <option value='<?php echo $key?>' data-form='<?php echo $params['form']?>' data-help='<?php if (!empty($params['help'])) {echo $params['help'];}?>'><?php echo Minz_Translate::t($key) ?></option>
  36. <?php endforeach; ?>
  37. </select>
  38. </div>
  39. </div>
  40. <div class="form-group form-actions">
  41. <div class="group-controls">
  42. <button type="submit" class="btn btn-important"><?php echo Minz_Translate::t ('save'); ?></button>
  43. <button type="reset" class="btn"><?php echo Minz_Translate::t ('cancel'); ?></button>
  44. </div>
  45. </div>
  46. </form>
  47. </div>