feed.phtml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?php $this->partial ('aside_feed'); ?>
  2. <?php if ($this->flux) { ?>
  3. <div class="post">
  4. <a href="<?php echo _url ('index', 'index'); ?>"><?php echo Translate::t ('back_to_rss_feeds'); ?></a> <?php echo Translate::t ('or'); ?> <a href="<?php echo _url ('index', 'index', 'get', 'f_' . $this->flux->id ()); ?>"><?php echo Translate::t ('filter'); ?></a>
  5. <h1><?php echo $this->flux->name (); ?></h1>
  6. <?php echo $this->flux->description (); ?>
  7. <form method="post" action="<?php echo _url ('configure', 'feed', 'id', $this->flux->id ()); ?>">
  8. <legend><?php echo Translate::t ('informations'); ?></legend>
  9. <div class="form-group">
  10. <label class="group-name"><?php echo Translate::t ('website_url'); ?></label>
  11. <div class="group-controls">
  12. <span class="control"><a target="_blank" href="<?php echo $this->flux->website (); ?>"><?php echo $this->flux->website (); ?></a></span>
  13. </div>
  14. </div>
  15. <div class="form-group">
  16. <label class="group-name"><?php echo Translate::t ('feed_url'); ?></label>
  17. <div class="group-controls">
  18. <span class="control"><a target="_blank" href="<?php echo $this->flux->url (); ?>"><?php echo $this->flux->url (); ?></a></span>
  19. </div>
  20. </div>
  21. <div class="form-group">
  22. <label class="group-name"><?php echo Translate::t ('number_articles'); ?></label>
  23. <div class="group-controls">
  24. <span class="control"><?php echo $this->flux->nbEntries (); ?></span>
  25. </div>
  26. </div>
  27. <legend><?php echo Translate::t ('category'); ?> - <a href="<?php echo _url ('configure', 'categorize'); ?>"><?php echo Translate::t ('categories_management'); ?></a></legend>
  28. <div class="form-group">
  29. <label class="group-name"><?php echo Translate::t ('categorize'); ?></label>
  30. <div class="group-controls">
  31. <?php foreach ($this->categories as $cat) { ?>
  32. <label class="radio" for="cat_<?php echo $cat->id (); ?>">
  33. <input type="radio" name="category" id="cat_<?php echo $cat->id (); ?>" value="<?php echo $cat->id (); ?>"<?php echo $cat->id () == $this->flux->category () ? ' checked="checked"' : ''; ?> />
  34. <?php echo $cat->name (); ?>
  35. </label>
  36. <?php } ?>
  37. </div>
  38. </div>
  39. <legend><?php echo Translate::t ('advanced'); ?></legend>
  40. <div class="form-group">
  41. <label class="group-name" for="priority"><?php echo Translate::t ('show_in_all_flux'); ?></label>
  42. <div class="group-controls">
  43. <label class="checkbox" for="priority">
  44. <input type="checkbox" name="priority" id="priority" value="10"<?php echo $this->flux->priority () > 0 ? ' checked="checked"' : ''; ?> />
  45. <?php echo Translate::t ('yes'); ?>
  46. </label>
  47. </div>
  48. </div>
  49. <div class="form-group">
  50. <label class="group-name" for="path_entries"><?php echo Translate::t ('css_path_on_website'); ?></label>
  51. <div class="group-controls">
  52. <input type="text" name="path_entries" id="path_entries" value="<?php echo $this->flux->pathEntries (); ?>" placeholder="<?php echo Translate::t ('blank_to_disable'); ?>" />
  53. <i class="icon i_help"></i> <?php echo Translate::t ('retrieve_truncated_feeds'); ?>
  54. </div>
  55. </div>
  56. <?php $auth = $this->flux->httpAuth (false); ?>
  57. <div class="form-group">
  58. <label class="group-name" for="http_user"><?php echo Translate::t ('http_username'); ?></label>
  59. <div class="group-controls">
  60. <input type="text" name="http_user" id="http_user" value="<?php echo $auth['username']; ?>" />
  61. <i class="icon i_help"></i> <?php echo Translate::t ('access_protected_feeds'); ?>
  62. </div>
  63. <label class="group-name" for="http_pass"><?php echo Translate::t ('http_password'); ?></label>
  64. <div class="group-controls">
  65. <input type="password" name="http_pass" id="http_pass" value="<?php echo $auth['password']; ?>" />
  66. </div>
  67. </div>
  68. <div class="form-group form-actions">
  69. <div class="group-controls">
  70. <button class="btn btn-important"><?php echo Translate::t ('save'); ?></button>
  71. <button class="btn btn-attention" formaction="<?php echo Url::display (array ('c' => 'feed', 'a' => 'delete', 'params' => array ('id' => $this->flux->id ()))); ?>"><?php echo Translate::t ('delete'); ?></button>
  72. </div>
  73. </div>
  74. </form>
  75. </div>
  76. <?php } else { ?>
  77. <div class="alert alert-warn"><span class="alert-head"><?php echo Translate::t ('no_selected_feed'); ?></span> <?php echo Translate::t ('think_to_add'); ?></div>
  78. <?php } ?>