KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

import.twig 9.0KB

9 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. {% extends "layout.twig" %}
  2. {% block title %}${ "Import" | translate }{% endblock %}
  3. {% block content %}
  4. <h2>Chyrp</h2>
  5. <form id="import_chyrp_form" class="split" action="{% admin "import_chyrp" %}" method="post" accept-charset="utf-8" enctype="multipart/form-data">
  6. <fieldset>
  7. <p>
  8. <label for="posts_file">${ "Posts .atom File" | translate }</label>
  9. <input type="file" name="posts_file" value="" id="posts_file" />
  10. </p>
  11. <p>
  12. <label for="pages_file">${ "Pages .atom File" | translate }</label>
  13. <input type="file" name="pages_file" value="" id="pages_file" />
  14. </p>
  15. <p>
  16. <label for="groups_file">${ "Groups .yaml File" | translate }</label>
  17. <input type="file" name="groups_file" value="" id="groups_file" />
  18. </p>
  19. <p>
  20. <label for="users_file">${ "Users .yaml File" | translate }</label>
  21. <input type="file" name="users_file" value="" id="users_file" />
  22. </p>
  23. <p>
  24. <label for="media_url">
  25. ${ "What URL is used for embedded media?" | translate }
  26. <span class="sub">${ "(optional)" | translate }</span>
  27. </label>
  28. <input class="text" type="text" name="media_url" value="" id="media_url" />
  29. <small>
  30. ${ "Usually something like <code>http://example.com/uploads/</code>." | translate }
  31. </small>
  32. </p>
  33. ${ trigger.call("import_choose") }
  34. <p class="buttons">
  35. <button type="submit" class="yay"><img src="$theme_url/images/icons/success.png" alt="success" />${ "Import" | translate }</button>
  36. </p>
  37. <input type="hidden" name="hash" value="$site.secure_hashkey" id="hash" />
  38. </fieldset>
  39. </form>
  40. <br />
  41. <hr />
  42. <br />
  43. <h2>WordPress</h2>
  44. <form id="import_wordpress_form" class="split" action="{% admin "import_wordpress" %}" method="post" accept-charset="utf-8" enctype="multipart/form-data">
  45. <fieldset>
  46. <p>
  47. <label for="xml_file">${ "eXtended .XML File" | translate }</label>
  48. <input type="file" name="xml_file" value="" id="xml_file" />
  49. </p>
  50. <p>
  51. <label for="media_url">
  52. ${ "What URL is used for embedded media?" | translate }
  53. <span class="sub">${ "(optional)" | translate }</span>
  54. </label>
  55. <input class="text" type="text" name="media_url" value="" id="media_url" />
  56. <small>
  57. ${ "Usually something like <code>http://example.com/wp-content/uploads/</code>." | translate }
  58. </small>
  59. </p>
  60. <p class="buttons">
  61. <button type="submit" class="yay"><img src="$theme_url/images/icons/success.png" alt="success" />${ "Import" | translate }</button>
  62. </p>
  63. <input type="hidden" name="hash" value="$site.secure_hashkey" id="hash" />
  64. </fieldset>
  65. </form>
  66. <br />
  67. <hr />
  68. <br />
  69. <h2>Tumblr</h2>
  70. <form id="import_tumblr_form" class="split" action="{% admin "import_tumblr" %}" method="post" accept-charset="utf-8">
  71. <fieldset>
  72. <p>
  73. <label for="tumblr_url">${ "Your Tumblr URL" | translate }</label>
  74. <input class="text" type="text" name="tumblr_url" value="" id="tumblr_url" />
  75. <small>${ "Note: Audio tumbles cannot be imported." | translate }</small>
  76. </p>
  77. <p class="buttons">
  78. <button type="submit" class="yay"><img src="$theme_url/images/icons/success.png" alt="success" />${ "Import" | translate }</button>
  79. </p>
  80. <input type="hidden" name="hash" value="$site.secure_hashkey" id="hash" />
  81. </fieldset>
  82. </form>
  83. <br />
  84. <hr />
  85. <br />
  86. <h2>TextPattern</h2>
  87. <form id="import_textpattern_form" class="split" action="{% admin "import_textpattern" %}" method="post" accept-charset="utf-8">
  88. <fieldset>
  89. <p>
  90. <label for="host">${ "Host" | translate }</label>
  91. <input class="text" type="text" name="host" value="localhost" id="host" />
  92. </p>
  93. <p>
  94. <label for="username">${ "Username" | translate }</label>
  95. <input class="text" type="text" name="username" value="" id="username" />
  96. </p>
  97. <p>
  98. <label for="password">${ "Password" | translate }</label>
  99. <input class="text" type="password" name="password" value="" id="password" />
  100. </p>
  101. <p>
  102. <label for="database">${ "Database" | translate }</label>
  103. <input class="text" type="text" name="database" value="" id="database" />
  104. </p>
  105. <p>
  106. <label for="prefix">${ "Table Prefix" | translate }</label>
  107. <input class="text" type="text" name="prefix" value="" id="prefix" />
  108. <span class="sub">${ "(if any)" | translate }</span>
  109. </p>
  110. <p>
  111. <label for="media_url">
  112. ${ "What URL is used for embedded media?" | translate }
  113. <span class="sub">${ "(optional)" | translate }</span>
  114. </label>
  115. <input class="text" type="text" name="media_url" value="" id="media_url" />
  116. <small>
  117. ${ "Usually something like <code>http://example.com/images/</code>." | translate }
  118. </small>
  119. </p>
  120. <p class="buttons">
  121. <button type="submit" class="yay"><img src="$theme_url/images/icons/success.png" alt="success" />${ "Import" | translate }</button>
  122. </p>
  123. <input type="hidden" name="hash" value="$site.secure_hashkey" id="hash" />
  124. </fieldset>
  125. </form>
  126. <br />
  127. <hr />
  128. <br />
  129. <h2>MovableType</h2>
  130. <form id="import_movabletype_form" class="split" action="{% admin "import_movabletype" %}" method="post" accept-charset="utf-8">
  131. <fieldset>
  132. <p>
  133. <label for="host">${ "Host" | translate }</label>
  134. <input class="text" type="text" name="host" value="localhost" id="host" />
  135. </p>
  136. <p>
  137. <label for="username">${ "Username" | translate }</label>
  138. <input class="text" type="text" name="username" value="" id="username" />
  139. </p>
  140. <p>
  141. <label for="password">${ "Password" | translate }</label>
  142. <input class="text" type="password" name="password" value="" id="password" />
  143. </p>
  144. <p>
  145. <label for="database">${ "Database" | translate }</label>
  146. <input class="text" type="text" name="database" value="" id="database" />
  147. </p>
  148. <p>
  149. <label for="media_url">
  150. ${ "What URL is used for embedded media?" | translate }
  151. <span class="sub">${ "(optional)" | translate }</span>
  152. </label>
  153. <input class="text" type="text" name="media_url" value="" id="media_url" />
  154. <small>
  155. ${ "Usually something like <code>http://example.com/images/</code>." | translate }
  156. </small>
  157. </p>
  158. <p class="buttons">
  159. <button type="submit" class="yay"><img src="$theme_url/images/icons/success.png" alt="success" />${ "Import" | translate }</button>
  160. </p>
  161. <input type="hidden" name="hash" value="$site.secure_hashkey" id="hash" />
  162. </fieldset>
  163. </form>
  164. ${ trigger.call("import_choose") }
  165. {% endblock %}