shortcut.phtml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. <datalist id="keys">
  5. <?php foreach ($this->list_keys as $key) { ?>
  6. <option value="<?php echo $key; ?>">
  7. <?php } ?>
  8. </datalist>
  9. <?php $s = $this->conf->shortcuts; ?>
  10. <form method="post" action="<?php echo _url ('configure', 'shortcut'); ?>">
  11. <legend><?php echo Minz_Translate::t ('shortcuts'); ?></legend>
  12. <noscript><p class="alert alert-error"><?php echo Minz_Translate::t ('javascript_for_shortcuts'); ?></p></noscript>
  13. <legend><?php echo Minz_Translate::t ('shortcuts_navigation'); ?></legend>
  14. <div class="form-group">
  15. <label class="group-name" for="next_entry"><?php echo Minz_Translate::t ('next_article'); ?></label>
  16. <div class="group-controls">
  17. <input type="text" id="next_entry" name="shortcuts[next_entry]" list="keys" value="<?php echo $s['next_entry']; ?>" />
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="group-name" for="prev_entry"><?php echo Minz_Translate::t ('previous_article'); ?></label>
  22. <div class="group-controls">
  23. <input type="text" id="prev_entry" name="shortcuts[prev_entry]" list="keys" value="<?php echo $s['prev_entry']; ?>" />
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="group-name" for="first_entry"><?php echo Minz_Translate::t ('first_article'); ?></label>
  28. <div class="group-controls">
  29. <input type="text" id="first_entry" name="shortcuts[first_entry]" list="keys" value="<?php echo $s['first_entry']; ?>" />
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="group-name" for="last_entry"><?php echo Minz_Translate::t ('last_article'); ?></label>
  34. <div class="group-controls">
  35. <input type="text" id="last_entry" name="shortcuts[last_entry]" list="keys" value="<?php echo $s['last_entry']; ?>" />
  36. </div>
  37. </div>
  38. <div><?php echo Minz_Translate::t ('shortcuts_navigation_help');?></div>
  39. <legend><?php echo Minz_Translate::t ('shortcuts_article_action');?></legend>
  40. <div class="form-group">
  41. <label class="group-name" for="mark_read"><?php echo Minz_Translate::t ('mark_read'); ?></label>
  42. <div class="group-controls">
  43. <input type="text" id="mark_read" name="shortcuts[mark_read]" list="keys" value="<?php echo $s['mark_read']; ?>" />
  44. <?php echo Minz_Translate::t ('shift_for_all_read'); ?>
  45. </div>
  46. </div>
  47. <div class="form-group">
  48. <label class="group-name" for="mark_favorite"><?php echo Minz_Translate::t ('mark_favorite'); ?></label>
  49. <div class="group-controls">
  50. <input type="text" id="mark_favorite" name="shortcuts[mark_favorite]" list="keys" value="<?php echo $s['mark_favorite']; ?>" />
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. <label class="group-name" for="go_website"><?php echo Minz_Translate::t ('see_on_website'); ?></label>
  55. <div class="group-controls">
  56. <input type="text" id="go_website" name="shortcuts[go_website]" list="keys" value="<?php echo $s['go_website']; ?>" />
  57. </div>
  58. </div>
  59. <div class="form-group">
  60. <label class="group-name" for="auto_share_shortcut"><?php echo Minz_Translate::t ('auto_share'); ?></label>
  61. <div class="group-controls">
  62. <input type="text" id="auto_share_shortcut" name="shortcuts[auto_share]" list="keys" value="<?php echo $s['auto_share']; ?>" />
  63. <?php echo Minz_Translate::t ('auto_share_help'); ?>
  64. </div>
  65. </div>
  66. <div class="form-group">
  67. <label class="group-name" for="collapse_entry"><?php echo Minz_Translate::t ('collapse_article'); ?></label>
  68. <div class="group-controls">
  69. <input type="text" id="collapse_entry" name="shortcuts[collapse_entry]" list="keys" value="<?php echo $s['collapse_entry']; ?>" />
  70. </div>
  71. </div>
  72. <legend><?php echo Minz_Translate::t ('shortcuts_other_action');?></legend>
  73. <div class="form-group">
  74. <label class="group-name" for="load_more_shortcut"><?php echo Minz_Translate::t ('load_more'); ?></label>
  75. <div class="group-controls">
  76. <input type="text" id="load_more_shortcut" name="shortcuts[load_more]" list="keys" value="<?php echo $s['load_more']; ?>" />
  77. </div>
  78. </div>
  79. <div class="form-group">
  80. <label class="group-name" for="focus_search_shortcut"><?php echo Minz_Translate::t ('focus_search'); ?></label>
  81. <div class="group-controls">
  82. <input type="text" id="focus_search_shortcut" name="shortcuts[focus_search]" list="keys" value="<?php echo $s['focus_search']; ?>" />
  83. </div>
  84. </div>
  85. <div class="form-group form-actions">
  86. <div class="group-controls">
  87. <button type="submit" class="btn btn-important"><?php echo Minz_Translate::t ('save'); ?></button>
  88. <button type="reset" class="btn"><?php echo Minz_Translate::t ('cancel'); ?></button>
  89. </div>
  90. </div>
  91. </form>
  92. </div>