feed.phtml 4.4 KB

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