locomotive_cms 0.0.4.beta12 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (229) hide show
  1. data/Gemfile +13 -15
  2. data/README.textile +4 -5
  3. data/app/controllers/admin/api_contents_controller.rb +1 -10
  4. data/app/controllers/admin/base_controller.rb +2 -2
  5. data/app/controllers/admin/cross_domain_sessions_controller.rb +4 -7
  6. data/app/controllers/admin/current_sites_controller.rb +0 -2
  7. data/app/controllers/admin/imports_controller.rb +19 -13
  8. data/app/controllers/admin/pages_controller.rb +1 -1
  9. data/app/controllers/admin/passwords_controller.rb +2 -2
  10. data/app/controllers/admin/sessions_controller.rb +2 -2
  11. data/app/controllers/admin/sites_controller.rb +0 -2
  12. data/app/controllers/admin/theme_assets_controller.rb +1 -1
  13. data/app/controllers/application_controller.rb +1 -1
  14. data/app/controllers/home_controller.rb +7 -0
  15. data/app/helpers/admin/assets_helper.rb +6 -0
  16. data/app/helpers/admin/custom_fields_helper.rb +2 -2
  17. data/app/helpers/admin/{box_helper.rb → login_helper.rb} +3 -7
  18. data/app/models/asset_collection.rb +3 -15
  19. data/app/models/content_instance.rb +0 -19
  20. data/app/models/content_type.rb +3 -21
  21. data/app/models/extensions/page/tree.rb +7 -63
  22. data/app/models/page.rb +0 -2
  23. data/app/models/site.rb +3 -15
  24. data/app/uploaders/asset_uploader.rb +1 -1
  25. data/app/uploaders/theme_asset_uploader.rb +1 -12
  26. data/app/views/admin/asset_collections/edit.html.haml +2 -2
  27. data/app/views/admin/asset_collections/new.html.haml +1 -1
  28. data/app/views/admin/assets/_form.html.haml +2 -2
  29. data/app/views/admin/content_types/_form.html.haml +2 -2
  30. data/app/views/admin/content_types/new.html.haml +1 -1
  31. data/app/views/admin/contents/_form.html.haml +2 -2
  32. data/app/views/admin/contents/index.html.haml +1 -1
  33. data/app/views/admin/cross_domain_sessions/new.html.haml +1 -1
  34. data/app/views/admin/current_sites/_form.html.haml +3 -3
  35. data/app/views/admin/current_sites/edit.html.haml +1 -1
  36. data/app/views/admin/imports/new.html.haml +0 -11
  37. data/app/views/admin/imports/show.html.haml +1 -1
  38. data/app/views/admin/my_accounts/edit.html.haml +1 -1
  39. data/app/views/admin/pages/_form.html.haml +3 -2
  40. data/app/views/admin/pages/_page.html.haml +2 -4
  41. data/app/views/admin/pages/index.html.haml +1 -1
  42. data/app/views/admin/passwords/edit.html.haml +2 -2
  43. data/app/views/admin/passwords/new.html.haml +2 -2
  44. data/app/views/admin/sessions/new.html.haml +2 -2
  45. data/app/views/admin/shared/_head.html.haml +5 -4
  46. data/app/views/admin/shared/menu/_contents.html.haml +1 -1
  47. data/app/views/admin/sites/_form.html.haml +3 -3
  48. data/app/views/admin/snippets/_form.html.haml +2 -2
  49. data/app/views/admin/snippets/index.html.haml +15 -0
  50. data/app/views/admin/theme_assets/_form.html.haml +2 -2
  51. data/app/views/admin/theme_assets/index.html.haml +1 -1
  52. data/app/views/home/show.html.haml +4 -0
  53. data/app/views/{admin/layouts → layouts/admin}/application.html.haml +0 -0
  54. data/app/views/layouts/admin/box.html.haml +19 -0
  55. data/app/views/layouts/application.html.haml +7 -0
  56. data/config/application.rb +3 -1
  57. data/config/environments/development.rb +6 -1
  58. data/config/environments/production.rb +1 -1
  59. data/config/environments/test.rb +5 -1
  60. data/config/initializers/locomotive.rb +0 -14
  61. data/config/locales/admin_ui_en.yml +1 -33
  62. data/config/locales/admin_ui_fr.yml +1 -34
  63. data/config/locales/default_en.yml +0 -1
  64. data/config/locales/default_fr.yml +0 -1
  65. data/config/locales/flash.en.yml +0 -1
  66. data/config/locales/flash.fr.yml +0 -1
  67. data/config/mongoid.yml +5 -13
  68. data/config/routes.rb +1 -6
  69. data/lib/generators/locomotive/copy_assets/copy_assets_generator.rb +14 -0
  70. data/lib/generators/locomotive/install/install_generator.rb +10 -18
  71. data/lib/generators/locomotive/install/templates/README +13 -23
  72. data/lib/generators/locomotive/install/templates/locomotive.rb +1 -15
  73. data/lib/locomotive/carrierwave.rb +0 -1
  74. data/lib/locomotive/configuration.rb +1 -3
  75. data/lib/locomotive/custom_fields.rb +1 -0
  76. data/lib/locomotive/delayed_job.rb +2 -1
  77. data/lib/locomotive/engine.rb +7 -24
  78. data/lib/locomotive/heroku.rb +0 -1
  79. data/lib/locomotive/httparty/webservice.rb +1 -12
  80. data/lib/locomotive/import.rb +0 -2
  81. data/lib/locomotive/import/asset_collections.rb +8 -40
  82. data/lib/locomotive/import/assets.rb +12 -20
  83. data/lib/locomotive/import/content_types.rb +15 -51
  84. data/lib/locomotive/import/job.rb +11 -106
  85. data/lib/locomotive/import/pages.rb +26 -79
  86. data/lib/locomotive/import/site.rb +5 -3
  87. data/lib/locomotive/import/snippets.rb +8 -6
  88. data/lib/locomotive/inherited_resources.rb +0 -1
  89. data/lib/locomotive/liquid/drops/asset_collections.rb +4 -4
  90. data/lib/locomotive/liquid/drops/contents.rb +16 -21
  91. data/lib/locomotive/liquid/drops/page.rb +0 -4
  92. data/lib/locomotive/liquid/filters/html.rb +29 -15
  93. data/lib/locomotive/liquid/tags/consume.rb +1 -1
  94. data/lib/locomotive/liquid/tags/nav.rb +17 -48
  95. data/lib/locomotive/liquid/tags/paginate.rb +3 -3
  96. data/lib/locomotive/middlewares/fonts.rb +11 -3
  97. data/lib/locomotive/misc_form_builder.rb +7 -2
  98. data/lib/locomotive/regexps.rb +1 -1
  99. data/lib/locomotive/render.rb +3 -9
  100. data/lib/locomotive/routing/site_dispatcher.rb +6 -10
  101. data/lib/locomotive/version.rb +1 -2
  102. data/public/images/admin/box/buttons/right_bg.png +0 -0
  103. data/public/javascripts/admin/aloha/VERSION.txt +1 -1
  104. data/public/javascripts/admin/aloha/aloha-nodeps.js +101 -140
  105. data/public/javascripts/admin/aloha/aloha.js +105 -193
  106. data/public/javascripts/admin/aloha/css/aloha.css +4 -65
  107. data/public/javascripts/admin/aloha/deps/prettyPhoto/resources/css/prettyPhoto.css +2 -2
  108. data/public/javascripts/admin/aloha/i18n/de.dict +0 -2
  109. data/public/javascripts/admin/aloha/i18n/en.dict +0 -2
  110. data/public/javascripts/admin/aloha/images/base.png +0 -0
  111. data/public/javascripts/admin/aloha/images/base_multi.png +0 -0
  112. data/public/javascripts/admin/aloha/images/fade_in.png +0 -0
  113. data/public/javascripts/admin/aloha/images/fade_out.png +0 -0
  114. data/public/javascripts/admin/aloha/images/gentics_logo.png +0 -0
  115. data/public/javascripts/admin/aloha/images/grabhandle.png +0 -0
  116. data/public/javascripts/admin/aloha/images/maximize.png +0 -0
  117. data/public/javascripts/admin/aloha/images/pin.png +0 -0
  118. data/public/javascripts/admin/aloha/images/removeformat.png +0 -0
  119. data/public/javascripts/admin/aloha/plugins/com.example.aloha.DummyDC/i18n/de.dict +2 -0
  120. data/public/javascripts/admin/aloha/plugins/com.example.aloha.DummyDC/i18n/en.dict +2 -0
  121. data/public/javascripts/admin/aloha/plugins/com.example.aloha.DummyDC/i18n/eo.dict +2 -0
  122. data/public/javascripts/admin/aloha/plugins/com.example.aloha.DummyDC/i18n/fi.dict +2 -0
  123. data/public/javascripts/admin/aloha/plugins/com.example.aloha.DummyDC/i18n/fr.dict +2 -0
  124. data/public/javascripts/admin/aloha/plugins/com.example.aloha.DummyDC/i18n/it.dict +2 -0
  125. data/public/javascripts/admin/aloha/plugins/com.example.aloha.DummyDC/plugin.js +7 -0
  126. data/public/javascripts/admin/aloha/plugins/{com.example.aloha.plugins.Save → com.example.aloha.DummySave}/i18n/de.dict +0 -0
  127. data/public/javascripts/admin/aloha/plugins/{com.example.aloha.plugins.Save → com.example.aloha.DummySave}/i18n/en.dict +0 -0
  128. data/public/javascripts/admin/aloha/plugins/{com.example.aloha.plugins.Save → com.example.aloha.DummySave}/i18n/fi.dict +0 -0
  129. data/public/javascripts/admin/aloha/plugins/{com.example.aloha.plugins.Save → com.example.aloha.DummySave}/i18n/fr.dict +0 -0
  130. data/public/javascripts/admin/aloha/plugins/{com.example.aloha.plugins.Save → com.example.aloha.DummySave}/i18n/it.dict +0 -0
  131. data/public/javascripts/admin/aloha/plugins/{com.example.aloha.plugins.Save → com.example.aloha.DummySave}/plugin.js +0 -0
  132. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Format/plugin.js +1 -1
  133. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.GCN/i18n/de.dict +20 -0
  134. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.GCN/i18n/en.dict +20 -0
  135. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.GCN/i18n/eo.dict +16 -0
  136. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.GCN/i18n/fi.dict +20 -0
  137. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.GCN/i18n/fr.dict +16 -0
  138. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.GCN/i18n/it.dict +20 -0
  139. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.GCN/plugin.js +7 -0
  140. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.HighlightEditables/plugin.js +1 -1
  141. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/css/jquery.autocomplete.css +48 -0
  142. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/deps/jquery.autocomplete.js +1 -0
  143. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/plugin.js +1 -1
  144. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/ressource.js +7 -0
  145. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/ressourcedummy.js +7 -0
  146. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/ressourceregistry.js +7 -0
  147. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.List/plugin.js +1 -1
  148. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.TOC/plugin.js +1 -1
  149. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/de.dict +0 -2
  150. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/en.dict +0 -2
  151. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/plugin.js +1 -1
  152. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/resources/table.css +110 -28
  153. data/public/javascripts/admin/aloha/plugins/eu.iksproject.plugins.Loader/plugin.js +1 -0
  154. data/public/javascripts/admin/aloha/plugins/eu.iksproject.plugins.Person/i18n/en.dict +2 -0
  155. data/public/javascripts/admin/aloha/plugins/eu.iksproject.plugins.Person/i18n/fi.dict +2 -0
  156. data/public/javascripts/admin/aloha/plugins/eu.iksproject.plugins.Person/i18n/fr.dict +2 -0
  157. data/public/javascripts/admin/aloha/plugins/eu.iksproject.plugins.Person/person.css +3 -0
  158. data/public/javascripts/admin/aloha/plugins/eu.iksproject.plugins.Person/plugin.js +1 -0
  159. data/public/javascripts/admin/aloha/plugins/simpletable/plugin.js.deactivated +2330 -0
  160. data/public/javascripts/admin/asset_collections.js +7 -11
  161. data/public/javascripts/admin/contents.js +1 -3
  162. data/public/javascripts/admin/site.js +3 -9
  163. data/public/javascripts/admin/snippets.js +1 -1
  164. data/public/javascripts/admin/utils.js +3 -5
  165. data/public/stylesheets/admin/application.css +1 -1
  166. data/public/stylesheets/admin/box.css +5 -5
  167. data/public/stylesheets/admin/buttons.css +5 -0
  168. data/public/stylesheets/admin/formtastic_changes.css +12 -5
  169. data/public/stylesheets/admin/inline_editor.css +5 -22
  170. data/public/stylesheets/admin/layout.css +4 -9
  171. metadata +130 -187
  172. data/app/controllers/admin/installation_controller.rb +0 -79
  173. data/app/uploaders/theme_uploader.rb +0 -19
  174. data/app/views/admin/errors/no_page.html.haml +0 -1
  175. data/app/views/admin/errors/no_site.html.haml +0 -1
  176. data/app/views/admin/installation/step_1.html.haml +0 -24
  177. data/app/views/admin/installation/step_2.html.haml +0 -26
  178. data/app/views/admin/installation/step_3.html.haml +0 -23
  179. data/app/views/admin/layouts/box.html.haml +0 -21
  180. data/app/views/admin/layouts/error.html.haml +0 -1
  181. data/config/assets.yml +0 -96
  182. data/config/initializers/carrierwave.rb +0 -17
  183. data/lib/locomotive/import/base.rb +0 -46
  184. data/lib/locomotive/import/logger.rb +0 -13
  185. data/lib/locomotive/railties/tasks.rake +0 -16
  186. data/public/javascripts/admin/aloha/i18n/pl.dict +0 -5
  187. data/public/javascripts/admin/aloha/images/base_big.png +0 -0
  188. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/examples/triSports.css +0 -86
  189. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/examples/triSports.html +0 -44
  190. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/i18n/de.dict +0 -4
  191. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/i18n/en.dict +0 -4
  192. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/i18n/fr.dict +0 -4
  193. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/plugin.js +0 -1
  194. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/product.js +0 -1
  195. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/resources/2xu-wetsuit.jpg +0 -0
  196. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/resources/asics-noosa.jpg +0 -0
  197. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/resources/fivefingers-kso.jpg +0 -0
  198. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/resources/kuota-kueen-k.jpg +0 -0
  199. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/resources/mizuno-wave-musha2.jpg +0 -0
  200. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/resources/product.css +0 -69
  201. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/resources/product_button.gif +0 -0
  202. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/resources/simplon-mrt.jpg +0 -0
  203. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/resources/trek-fuel-ex.jpg +0 -0
  204. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/resources/trisports.jpg +0 -0
  205. data/public/javascripts/admin/aloha/plugins/com.example.aloha.plugins.Product/resources/zoggs-predator.jpg +0 -0
  206. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Abbr/examples/AlohaAbbr.css +0 -48
  207. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Abbr/examples/AlohaAbbr.html +0 -69
  208. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Abbr/i18n/de.dict +0 -4
  209. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Abbr/i18n/en.dict +0 -4
  210. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Abbr/plugin.js +0 -7
  211. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Format/i18n/pl.dict +0 -30
  212. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/LinkList.js +0 -7
  213. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/delicious.js +0 -7
  214. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Link/i18n/pl.dict +0 -4
  215. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.LinkChecker/css/LinkChecker.css +0 -14
  216. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.LinkChecker/examples/AlohaLinkChecker.css +0 -49
  217. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.LinkChecker/examples/AlohaLinkChecker.html +0 -82
  218. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.LinkChecker/i18n/en.dict +0 -27
  219. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.LinkChecker/plugin.js +0 -7
  220. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.LinkChecker/proxy.php +0 -235
  221. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Paste/plugin.js +0 -7
  222. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Paste/wordpastehandler.js +0 -7
  223. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.TOC/i18n/de.dict +0 -1
  224. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.TOC/i18n/en.dict +0 -1
  225. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/i18n/pl.dict +0 -12
  226. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/resources/wai_green.png +0 -0
  227. data/public/javascripts/admin/aloha/plugins/com.gentics.aloha.plugins.Table/resources/wai_red.png +0 -0
  228. data/public/stylesheets/admin/installation.css +0 -50
  229. data/public/stylesheets/admin/safari.css +0 -15
@@ -1,44 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <title>triSports Online Shop</title>
6
- <script>GENTICS_Aloha_base = "../../../";</script>
7
- <script type="text/javascript" src="../../../core/include.js"></script>
8
- <script type="text/javascript" src="../../com.gentics.aloha.plugins.Format/plugin.js"></script>
9
- <script type="text/javascript" src="../../com.gentics.aloha.plugins.HighlightEditables/plugin.js"></script>
10
- <script type="text/javascript" src="../../com.gentics.aloha.plugins.Link/plugin.js"></script>
11
- <script type="text/javascript" src="../../com.gentics.aloha.plugins.Link/LinkList.js"></script>
12
- <script type="text/javascript" src="../plugin.js"></script>
13
- <script type="text/javascript" src="../product.js"></script>
14
-
15
- <link rel="stylesheet" href="triSports.css" />
16
-
17
- <!-- turn an element into editable Aloha continuous text -->
18
- <script type="text/javascript">
19
- GENTICS.Aloha.settings = {
20
- ribbon: false
21
- };
22
- $(document).ready(function() {
23
- $('#content').aloha();
24
- $('#products').aloha();
25
- });
26
- </script>
27
- </head>
28
- <body>
29
- <div id="main">
30
- <img id="logo" src="../resources/trisports.jpg" />
31
- <div class="nav"><a href="#">Online Shop</a> | <a href="#">Delivery</a> | <a href="#" style="color:red;">Sale!</a> | <a href="#">My Account</a></div>
32
- <div id="bodyContent">
33
- <div id="content" class="article">
34
- <h1>Welcome to triSports!</h1>
35
- <p>Welcom to the world of <b>triSports</b>! Feel free to browse our fabulous online shop - it's an absolute blast!</p>
36
- </div>
37
- <div id="products">
38
- <p><b>TOP!</b> Featured Products</p>
39
- <p style="clear: both"></p>
40
- </div>
41
- </div>
42
- </div>
43
- </body>
44
- </html>
@@ -1,4 +0,0 @@
1
- button.insertproduct=Produkt einfügen
2
- floatingmenu.tab.product=Produkte
3
- newproductname=Neues Produkt
4
- resource.no_item_found=Keine treffer
@@ -1,4 +0,0 @@
1
- button.insertproduct=Insert product
2
- floatingmenu.tab.product=Products
3
- newproductname=New Product
4
- resource.no_item_found=No items found
@@ -1,4 +0,0 @@
1
- button.insertproduct=Insérer un produit
2
- floatingmenu.tab.product=Produits
3
- newproductname=Nouveau produit
4
- resource.no_item_found=Aucun élément trouvé
@@ -1 +0,0 @@
1
- if(typeof EXAMPLE=="undefined"||!EXAMPLE){var EXAMPLE={}}EXAMPLE.Product=new GENTICS.Aloha.Plugin("com.example.aloha.plugins.Product");EXAMPLE.Product.languages=["en","de","fr"];EXAMPLE.Product.productField=null;EXAMPLE.Product.init=function(){var that=this;jQuery("head").append('<link rel="stylesheet" type="text/css" href="'+GENTICS.Aloha.settings.base+'/plugins/com.example.aloha.plugins.Product/resources/product.css">');var insertButton=new GENTICS.Aloha.ui.Button({iconClass:"GENTICS_button GENTICS_button_product",size:"small",onclick:function(){that.insertProduct()},tooltip:this.i18n("button.insertproduct"),toggle:false});GENTICS.Aloha.FloatingMenu.addButton("GENTICS.Aloha.continuoustext",insertButton,GENTICS.Aloha.i18n(GENTICS.Aloha,"floatingmenu.tab.insert"),1);GENTICS.Aloha.FloatingMenu.createScope(this.getUID("product"),"GENTICS.Aloha.global");this.productField=new GENTICS.Aloha.ui.AttributeField();this.productField.setTemplate('<span><b>{name}</b><span class="product-preview" style="background-image: url('+GENTICS.Aloha.settings.base+'{url});"></span><br class="clear" /><i>{type}</i></span>');this.productField.setObjectTypeFilter(["product"]);this.productField.setDisplayField("name");GENTICS.Aloha.FloatingMenu.addButton(this.getUID("product"),this.productField,this.i18n("floatingmenu.tab.product"),1);GENTICS.Aloha.EventRegistry.subscribe(GENTICS.Aloha,"selectionChanged",function(event,rangeObject){var foundMarkup=that.findProduct(rangeObject);jQuery(".product-selected").removeClass("product-selected");if(foundMarkup.length!=0){GENTICS.Aloha.FloatingMenu.setScope(that.getUID("product"));that.productField.setTargetObject(foundMarkup,"data-product-name");foundMarkup.addClass("product-selected")}GENTICS.Aloha.FloatingMenu.doLayout()});GENTICS.Aloha.EventRegistry.subscribe(GENTICS.Aloha,"editableDeactivated",function(jEvent,aEvent){jQuery(".product-selected").removeClass("product-selected")})};EXAMPLE.Product.findProduct=function(range){return jQuery(range.commonAncestorContainer).closest(".GENTICS_block.product")};EXAMPLE.Product.insertProduct=function(){GENTICS.Aloha.FloatingMenu.userActivatedTab=this.i18n("floatingmenu.tab.product");var range=GENTICS.Aloha.Selection.getRangeObject();var newProduct=jQuery('<div class="GENTICS_block product" contentEditable="false"><div class="image"></div><div class="name">'+this.i18n("newproductname")+"</div></div>");GENTICS.Utils.Dom.insertIntoDOM(newProduct,range,jQuery(GENTICS.Aloha.activeEditable.obj));range.startContainer=range.endContainer=newProduct.contents().get(0);range.select();this.productField.focus()};EXAMPLE.Product.updateProduct=function(obj,resourceItem){obj.find(".name").text(resourceItem.name);obj.find(".image").css("backgroundImage","url("+GENTICS.Aloha.settings.base+resourceItem.url+")")};
@@ -1 +0,0 @@
1
- if(!GENTICS.Aloha.Repositories){GENTICS.Aloha.Repositories={}}GENTICS.Aloha.Repositories.Product=new GENTICS.Aloha.Repository("com.gentics.aloha.resources.Product");GENTICS.Aloha.Repositories.Product.settings.data=[{id:1,name:"Kuota Kueen K",url:"/plugins/com.example.aloha.plugins.Product/resources/kuota-kueen-k.jpg",type:"product"},{id:2,name:"2XU Wetsuit",url:"/plugins/com.example.aloha.plugins.Product/resources/2xu-wetsuit.jpg",type:"product"},{id:3,name:"Asics Noosa Tri",url:"/plugins/com.example.aloha.plugins.Product/resources/asics-noosa.jpg",type:"product"},{id:4,name:"Mizuno Wave Musha 2",url:"/plugins/com.example.aloha.plugins.Product/resources/mizuno-wave-musha2.jpg",type:"product"},{id:5,name:"Simplon Mr. T",url:"/plugins/com.example.aloha.plugins.Product/resources/simplon-mrt.jpg",type:"product"},{id:6,name:"Zoggs Predator",url:"/plugins/com.example.aloha.plugins.Product/resources/zoggs-predator.jpg",type:"product"},{id:7,name:"Fivefingers KSO",url:"/plugins/com.example.aloha.plugins.Product/resources/fivefingers-kso.jpg",type:"product"},{id:8,name:"Trek Fuel EX",url:"/plugins/com.example.aloha.plugins.Product/resources/trek-fuel-ex.jpg",type:"product"}];GENTICS.Aloha.Repositories.Product.query=function(p,callback){var d=this.settings.data.filter(function(e,i,a){var r=new RegExp(p.queryString,"i");return(jQuery.inArray(e.type,p.objectTypeFilter)>-1&&(e.name.match(r)||e.url.match(r)))});callback.call(this,d)};GENTICS.Aloha.Repositories.Product.markObject=function(obj,resourceItem){EXAMPLE.Product.updateProduct(obj,resourceItem)};
@@ -1,69 +0,0 @@
1
- /**
2
- * product
3
- */
4
- .GENTICS_button.GENTICS_button_product {
5
- background: red url(product_button.gif) no-repeat !important;
6
- }
7
-
8
- .GENTICS_block.product {
9
- width: 156px;
10
- height: 170px;
11
- border: 2px solid #dfdfdf;
12
- padding: 10px;
13
- display: inline-block;
14
- -webkit-border-radius: 2px;
15
- -moz-border-radius: 2px;
16
- border-radius: 2px;
17
- -webkit-box-shadow: rgba(0, 0, 0, 0.1) 5px 5px 20px;
18
- -moz-box-shadow: rgba(0, 0, 0, 0.1) 5px 5px 20px;
19
- box-shadow: rgba(0, 0, 0, 0.1) 5px 5px 20px;
20
- float: left;
21
- margin: 0 32px 30px 0;
22
- background: white;
23
- background: -webkit-gradient(
24
- linear,
25
- left bottom,
26
- left top,
27
- color-stop(0, rgb(239,239,239)),
28
- color-stop(0.3, rgb(255,255,255)),
29
- color-stop(0.7, rgb(255,255,255)),
30
- color-stop(1, rgb(250,250,250))
31
- );
32
- background: -moz-linear-gradient(
33
- center bottom,
34
- rgb(239,239,239) 0%,
35
- rgb(255,255,255) 30%,
36
- rgb(255,255,255) 70%,
37
- rgb(250,250,250) 100%
38
- );
39
- }
40
-
41
- .GENTICS_block.product .image {
42
- width: 150px;
43
- height: 130px;
44
- background: white no-repeat center center;
45
- margin-bottom: 12px;
46
- -webkit-box-shadow: inset 0px 0px 10px rgba(0,0,0,0.1);
47
- -moz-box-shadow: inset 0px 0px 10px rgba(0,0,0,0.1);
48
- box-shadow: inset 0px 0px 10px rgba(0,0,0,0.1);
49
- border: 2px solid #dfdfdf;
50
- }
51
-
52
- .GENTICS_block.product .name {
53
- color: #666;
54
- text-align: center;
55
- text-shadow: white 1px 1px 1px;
56
- }
57
-
58
- .GENTICS_block.product.product-selected {
59
- background: #b8d6fa !important;
60
- }
61
-
62
- .product-preview {
63
- display: inline-block;
64
- float: right;
65
- width: 30px;
66
- height: 30px;
67
- background: white no-repeat center center;
68
- border: 2px solid #efefef;
69
- }
@@ -1,48 +0,0 @@
1
- body {
2
- font-family: sans-serif;
3
- }
4
-
5
- body {
6
- background-color: #ccc;
7
- }
8
-
9
- #bodyContent {
10
- font-size:0.9em;
11
- }
12
-
13
- h1, h2, h3, h4, h5, h6 {
14
- font-family: sans-serif;
15
- padding-bottom:0.1em;
16
- padding-top:0.5em;
17
- }
18
- h1 {
19
- border-bottom:1px solid #AAAAAA;
20
- }
21
-
22
- h1 { font-size: 188%; }
23
- h2 { font-size: 150%; }
24
- h3 { font-size: 132%; }
25
- h4 { font-size: 116%; }
26
- h5 { font-size: 100%; }
27
- h6 { font-size: 80%; }
28
-
29
- #main {
30
- width: 650px;
31
- margin-top: 40px;
32
- margin-left: auto ;
33
- margin-right: auto ;
34
- padding: 70px;
35
- background-color: white;
36
- border-radius: 1px;
37
- -moz-border-radius: 1px;
38
- box-shadow: 5px 5px rgba(0,0,0,0.3);
39
- -webkit-box-shadow: 5px 5px rgba(0,0,0,0.3);
40
- -moz-box-shadow: 5px 5px rgba(0,0,0,0.3);
41
- }
42
-
43
- abbr, acronym
44
- {
45
- border-bottom: .1em dotted;
46
- cursor: help;
47
- }
48
-
@@ -1,69 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <title>Aloha, Abbreviations !</title>
6
- <script>GENTICS_Aloha_base="../../../";</script>
7
- <script type="text/javascript" src="../../../core/include.js"></script>
8
- <script type="text/javascript" src="../../../plugins/com.gentics.aloha.plugins.Format/plugin.js"></script>
9
- <script type="text/javascript" src="../plugin.js"></script>
10
-
11
-
12
- <link rel="stylesheet" href="AlohaAbbr.css" />
13
-
14
- <!-- turn an element into editable Aloha continuous text -->
15
- <script type="text/javascript">
16
- GENTICS.Aloha.settings = {
17
- logLevels: {'error': true, 'warn': true, 'info': true, 'debug': false},
18
- errorhandling : false,
19
- ribbon: false,
20
- "i18n": {
21
- // let the system detect the users language
22
- //"acceptLanguage": '<?=$_SERVER['HTTP_ACCEPT_LANGUAGE']?>'
23
- "acceptLanguage": 'de-de,de;q=0.8,it;q=0.6,en-us;q=0.7,en;q=0.2'
24
- },
25
- "plugins": {
26
- "com.gentics.aloha.plugins.Abbr": {
27
- 'config': ['abbr']
28
- }
29
- }
30
- };
31
-
32
- $(document).ready(function() {
33
- $('#content').aloha();
34
- });
35
- </script>
36
- </head>
37
- <body>
38
- <div id="main">
39
- <div id="bodyContent">
40
- <div id="content" class="article">
41
- <h1>Aloha</h1>
42
- <h2>Etymology</h2>
43
- <p>The word aloha derives from the Proto-Polynesian root <i>*qalofa</i>. It has cognates in other Polynesian languages, such as Samoan alofa
44
- and Māori aroha, also meaning "love."</p>
45
- <p><abbr title="Aloha Editor">AE</abbr> is the word's most advanced browser based <abbr title="Rich Text Editor">RTE</abbr> made with aloha passion.</p>
46
- <p>A folk etymology claims that it derives from a compound of the Hawaiian words alo meaning "presence", "front", "face", or "share"; and
47
- ha, meaning "breath of life" or "essence of life." Although alo does indeed mean "presence" etc., the word for breath is spelled with a macron
48
- or kahakō over the a (hā) whereas the word aloha does not have a long a.</p>
49
- <h2>Usage</h2>
50
- <p>Before contact with the West, the words used for greeting were welina and anoai. Today, "aloha kakahiaka" is the phrase for "good
51
- morning." "Aloha ʻauinalā" means "good afternoon" and "aloha ahiahi" means "good evening." "Aloha kākou" is a common form of "welcome to all."</p>
52
- <p>In modern Hawaiʻi, numerous businesses have aloha in their names, with more than 3 pages of listings in the Oʻahu phone book alone.</p>
53
- <h2>Trends</h2>
54
- <p>Recent trends are popularizing the term elsewhere in the United States. Popular entertainer, Broadway star and Hollywood actress Bette
55
- Midler, born in Honolulu, uses the greeting frequently in national appearances. The word was also used frequently in the hit television drama
56
- Hawaii Five-O. In the influential 1982 film comedy Fast Times at Ridgemont High, the eccentric teacher Mr. Hand makes use of the greeting. The
57
- Aloha Spirit is a major concept in Lilo and Stitch, a very popular Disney series of movies and TV shows, set in Hawaiʻi. The drama series Lost,
58
- shot in Hawaiʻi, has a thank you note at the end of the credits saying "We thank the people of Hawaiʻi and their Aloha Spirit". Aloha is a term
59
- also used in the Nickelodeon program Rocket Power.</p>
60
- <ul>
61
- <li>Arguably the most famous historical Hawaiian song, "Aloha ʻOe" was written by the last queen of Hawaii, Liliʻuokalani.</li>
62
- <li>The term inspired the name of the ALOHA Protocol introduced in the 1970s by the University of Hawaii.</li>
63
- <li>In Hawaii someone can be said to have or show aloha in the way they treat others; whether family, friend, neighbor or stranger.</li>
64
- </ul>
65
- </div>
66
- </div>
67
- </div>
68
- </body>
69
- </html>
@@ -1,4 +0,0 @@
1
- floatingmenu.tab.abbr=Abkürzung
2
- button.addabbr.tooltip=Abkürzung einfügen
3
- button.abbr.tooltip=Als Abkürzung formatieren
4
- newabbr.defaulttext=Abb
@@ -1,4 +0,0 @@
1
- floatingmenu.tab.abbr=Abbreviation
2
- button.addabbr.tooltip=insert abbreviation
3
- button.abbr.tooltip=format as abbreviation
4
- newabbr.defaulttext=Abbr
@@ -1,7 +0,0 @@
1
- /*
2
- * Aloha Editor
3
- * Author & Copyright (c) 2010 Gentics Software GmbH
4
- * aloha-sales@gentics.com
5
- * Licensed unter the terms of http://www.aloha-editor.com/license.html
6
- */
7
- GENTICS.Aloha.Abbr=new GENTICS.Aloha.Plugin("com.gentics.aloha.plugins.Abbr");GENTICS.Aloha.Abbr.languages=["en","de"];GENTICS.Aloha.Abbr.config=["abbr"];GENTICS.Aloha.Abbr.init=function(){this.createButtons();this.subscribeEvents();this.bindInteractions()};GENTICS.Aloha.Abbr.createButtons=function(){var that=this;this.formatAbbrButton=new GENTICS.Aloha.ui.Button({iconClass:"GENTICS_button GENTICS_button_abbr",size:"small",onclick:function(){that.formatAbbr()},tooltip:this.i18n("button.abbr.tooltip"),toggle:true});GENTICS.Aloha.FloatingMenu.addButton("GENTICS.Aloha.continuoustext",this.formatAbbrButton,GENTICS.Aloha.i18n(GENTICS.Aloha,"floatingmenu.tab.format"),1);this.insertAbbrButton=new GENTICS.Aloha.ui.Button({iconClass:"GENTICS_button GENTICS_button_abbr",size:"small",onclick:function(){that.insertAbbr(false)},tooltip:this.i18n("button.addabbr.tooltip"),toggle:false});GENTICS.Aloha.FloatingMenu.addButton("GENTICS.Aloha.continuoustext",this.insertAbbrButton,GENTICS.Aloha.i18n(GENTICS.Aloha,"floatingmenu.tab.insert"),1);GENTICS.Aloha.FloatingMenu.createScope(this.getUID("abbr"),"GENTICS.Aloha.continuoustext");this.abbrField=new GENTICS.Aloha.ui.AttributeField({width:320});GENTICS.Aloha.FloatingMenu.addButton(this.getUID("abbr"),this.abbrField,this.i18n("floatingmenu.tab.abbr"),1)};GENTICS.Aloha.Abbr.bindInteractions=function(){var that=this;this.abbrField.addListener("blur",function(obj,event){if(this.getValue()==""){that.removeAbbr()}});for(var i=0;i<GENTICS.Aloha.editables.length;i++){GENTICS.Aloha.editables[i].obj.keydown(function(e){if(e.metaKey&&e.which==71){if(that.findAbbrMarkup()){GENTICS.Aloha.FloatingMenu.userActivatedTab=that.i18n("floatingmenu.tab.abbr");GENTICS.Aloha.FloatingMenu.doLayout();that.abbrField.focus()}else{that.insertAbbr()}return false}})}};GENTICS.Aloha.Abbr.subscribeEvents=function(){var that=this;GENTICS.Aloha.EventRegistry.subscribe(GENTICS.Aloha,"selectionChanged",function(event,rangeObject){if(GENTICS.Aloha.activeEditable){var config=that.getEditableConfig(GENTICS.Aloha.activeEditable.obj);if(jQuery.inArray("abbr",config)!=-1){that.formatAbbrButton.show();that.insertAbbrButton.show()}else{that.formatAbbrButton.hide();that.insertAbbrButton.hide();return}var foundMarkup=that.findAbbrMarkup(rangeObject);if(foundMarkup){that.insertAbbrButton.hide();that.formatAbbrButton.setPressed(true);GENTICS.Aloha.FloatingMenu.setScope(that.getUID("abbr"));that.abbrField.setTargetObject(foundMarkup,"title")}else{that.formatAbbrButton.setPressed(false);that.abbrField.setTargetObject(null)}GENTICS.Aloha.FloatingMenu.doLayout()}})};GENTICS.Aloha.Abbr.findAbbrMarkup=function(range){if(typeof range=="undefined"){var range=GENTICS.Aloha.Selection.getRangeObject()}if(GENTICS.Aloha.activeEditable){return range.findMarkup(function(){return this.nodeName.toLowerCase()=="abbr"},GENTICS.Aloha.activeEditable.obj)}else{return null}};GENTICS.Aloha.Abbr.formatAbbr=function(){var range=GENTICS.Aloha.Selection.getRangeObject();if(GENTICS.Aloha.activeEditable){if(this.findAbbrMarkup(range)){this.removeAbbr()}else{this.insertAbbr()}}};GENTICS.Aloha.Abbr.insertAbbr=function(extendToWord){if(this.findAbbrMarkup(range)){return}GENTICS.Aloha.FloatingMenu.userActivatedTab=this.i18n("floatingmenu.tab.abbr");var range=GENTICS.Aloha.Selection.getRangeObject();if(range.isCollapsed()&&extendToWord!=false){GENTICS.Utils.Dom.extendToWord(range)}if(range.isCollapsed()){var abbrText=this.i18n("newabbr.defaulttext");var newAbbr=jQuery('<abbr title="">'+abbrText+"</abbr>");GENTICS.Utils.Dom.insertIntoDOM(newAbbr,range,jQuery(GENTICS.Aloha.activeEditable.obj));range.startContainer=range.endContainer=newAbbr.contents().get(0);range.startOffset=0;range.endOffset=abbrText.length}else{var newAbbr=jQuery('<abbr title=""></abbr>');GENTICS.Utils.Dom.addMarkup(range,newAbbr,false)}range.select();this.abbrField.focus()};GENTICS.Aloha.Abbr.removeAbbr=function(){var range=GENTICS.Aloha.Selection.getRangeObject();var foundMarkup=this.findAbbrMarkup();if(foundMarkup){GENTICS.Utils.Dom.removeFromDOM(foundMarkup,range,true);GENTICS.Aloha.activeEditable.obj[0].focus();range.select()}};GENTICS.Aloha.Abbr.makeClean=function(obj){};
@@ -1,30 +0,0 @@
1
- button.b.tooltip=Pogrubienie
2
- button.i.tooltip=Kursywa
3
- button.u.tooltip=Podkreślenie
4
- button.cite.tooltip=Cytat
5
- button.q.tooltip=
6
- button.code.tooltip=Kod
7
- button.abbr.tooltip=Skrót
8
- button.del.tooltip=Przekreślenie
9
- button.sub.tooltip=Indeks dolny
10
- button.sup.tooltip=Indeks górny
11
- button.p.tooltip=Paragraf
12
- button.h1.tooltip=Nagłówek 1
13
- button.h2.tooltip=Nagłówek 2
14
- button.h3.tooltip=Nagłówek 3
15
- button.h4.tooltip=Nagłówek 4
16
- button.h5.tooltip=Nagłówek 5
17
- button.h6.tooltip=Nagłówek 6
18
- button.pre.tooltip=Tekst preformatowany
19
- button.title.tooltip=Tytuł
20
- button.removeFormat.tooltip=Usuń formatowanie
21
- button.removeFormat.text=Usuń formatowanie
22
- GENTICS_button_p=GENTICS_button_p
23
- GENTICS_button_h1=GENTICS_button_h1
24
- GENTICS_button_h2=GENTICS_button_h2
25
- GENTICS_button_h3=GENTICS_button_h3
26
- GENTICS_button_h4=GENTICS_button_h4
27
- GENTICS_button_h5=GENTICS_button_h5
28
- GENTICS_button_h6=GENTICS_button_h6
29
- GENTICS_button_pre=GENTICS_button_pre
30
- GENTICS_button_title=GENTICS_button_title
@@ -1,7 +0,0 @@
1
- /*
2
- * Aloha Editor
3
- * Author & Copyright (c) 2010 Gentics Software GmbH
4
- * aloha-sales@gentics.com
5
- * Licensed unter the terms of http://www.aloha-editor.com/license.html
6
- */
7
- if(!GENTICS.Aloha.Repositories){GENTICS.Aloha.Repositories={}}GENTICS.Aloha.Repositories.LinkList=new GENTICS.Aloha.Repository("com.gentics.aloha.repositories.LinkList");GENTICS.Aloha.Repositories.LinkList.settings.data=[{name:"Aloha Editor - The HTML5 Editor",url:"http://aloha-editor.com",type:"website"},{name:"Aloha Logo",url:"http://www.aloha-editor.com/images/aloha-editor-logo.png",type:"image"}];GENTICS.Aloha.Repositories.LinkList.folder=[];GENTICS.Aloha.Repositories.LinkList.init=function(){for(var i=0;i<this.settings.data.length;i++){var e=this.settings.data[i];e.repositoryId=this.repositoryId;e.id=e.id?e.id:e.url;var u=e.uri=this.parseUri(e.url);var path=this.addFolder("",u.host);var pathparts=u.path.split("/");for(j=0;j<pathparts.length;j++){if(pathparts[j]&&pathparts[j].lastIndexOf(".")<0){path=this.addFolder(path,pathparts[j])}}e.parentId=path;this.settings.data[i]=new GENTICS.Aloha.Repository.Document(e)}this.repositoryName="Linklist"};GENTICS.Aloha.Repositories.LinkList.addFolder=function(path,name){var type=path?"folder":"hostname";var p=path?path+"/"+name:name;if(name&&!this.folder[p]){this.folder[p]=new GENTICS.Aloha.Repository.Folder({id:p,name:(name)?name:p,parentId:path,type:"host",repositoryId:this.repositoryId})}return p};GENTICS.Aloha.Repositories.LinkList.query=function(p,callback){var d=this.settings.data.filter(function(e,i,a){var r=new RegExp(p.queryString,"i");var ret=false;return((!p.queryString||e.name.match(r)||e.url.match(r))&&(!p.objectTypeFilter||jQuery.inArray(e.type,p.objectTypeFilter)>-1)&&(!p.inFolderId||p.inFolderId==e.parentId))});callback.call(this,d)};GENTICS.Aloha.Repositories.LinkList.getChildren=function(p,callback){var d=[];for(e in this.folder){var l=this.folder[e].parentId;if(typeof this.folder[e]!="function"&&(this.folder[e].parentId==p.inFolderId||(!this.folder[e].parentId&&p.inFolderId==this.repositoryId))){d.push(this.folder[e])}}callback.call(this,d)};GENTICS.Aloha.Repositories.LinkList.parseUri=function(str){var o={strictMode:false,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},m=o.parser[o.strictMode?"strict":"loose"].exec(str),uri={},i=14;while(i--){uri[o.key[i]]=m[i]||""}uri[o.q.name]={};uri[o.key[12]].replace(o.q.parser,function($0,$1,$2){if($1){uri[o.q.name][$1]=$2}});return uri};
@@ -1,7 +0,0 @@
1
- /*
2
- * Aloha Editor
3
- * Author & Copyright (c) 2010 Gentics Software GmbH
4
- * aloha-sales@gentics.com
5
- * Licensed unter the terms of http://www.aloha-editor.com/license.html
6
- */
7
- if(!GENTICS.Aloha.Repositories){GENTICS.Aloha.Repositories={}}GENTICS.Aloha.Repositories.delicious=new GENTICS.Aloha.Repository("com.gentics.aloha.repositories.delicious");GENTICS.Aloha.Repositories.delicious.settings.username="draftkraft";GENTICS.Aloha.Repositories.delicious.settings.weight=0.35;GENTICS.Aloha.Repositories.delicious.init=function(){var that=this;if(this.settings.weight+0.15>1){this.settings.weight=1-0.15}this.deliciousURL="http://feeds.delicious.com/v2/json/";if(this.settings.username){this.deliciousURL+=this.settings.username+"/";this.repositoryName="deliciuos/"+this.settings.username;this.tags=[];jQuery.ajax({type:"GET",dataType:"jsonp",url:"http://feeds.delicious.com/v2/json/tags/"+that.settings.username,success:function(data){for(var tag in data){that.tags.push(tag)}}})}else{this.repositoryName="deliciuos/"+popular;this.deliciousURL+="tag/"}};GENTICS.Aloha.Repositories.delicious.query=function(p,callback){var that=this;if(p.objectTypeFilter&&jQuery.inArray("website",p.objectTypeFilter)==-1){callback.call(this,[])}else{var tags=[];if(this.settings.username){var queryTags=p.queryString?p.queryString.split(" "):[];for(var i=0;i<queryTags.length;i++){var queryTag=queryTags[i].trim();if(jQuery.inArray(queryTag,that.tags)==-1){var newtags=that.tags.filter(function(e,i,a){var r=new RegExp(queryTag,"i");return(e.match(r))});if(newtags.length>0){tags.push(newtags[0])}}else{tags.push(queryTag)}}}else{tags=p.queryString.split(" ")}var folderTags=p.inFolderId?p.inFolderId.split("+"):[];jQuery.extend(tags,folderTags);if(p.queryString&&tags.length==0){callback.call(that,[]);return}jQuery.ajax({type:"GET",dataType:"jsonp",url:that.deliciousURL+tags.join("+"),success:function(data){var items=[];for(var i=0;i<data.length;i++){if(typeof data[i]!="function"){items.push(new GENTICS.Aloha.Repository.Document({id:data[i].u,name:data[i].d,repositoryId:that.repositoryId,type:"website",url:data[i].u,weight:that.settings.weight+(15-1)/100}))}}callback.call(that,items)}})}};GENTICS.Aloha.Repositories.delicious.getChildren=function(p,callback){var that=this;if(this.settings.username){var items=[];if(p.inFolderId==this.repositoryId){for(var i=0;i<this.tags.length;i++){if(typeof this.tags[i]!="function"){items.push(new GENTICS.Aloha.Repository.Folder({id:this.tags[i],name:this.tags[i],repositoryId:this.repositoryId,type:"tag",url:"http://feeds.delicious.com/v2/rss/tags/"+that.settings.username+"/"+this.tags[i]}))}}callback.call(this,items)}else{jQuery.ajax({type:"GET",dataType:"jsonp",url:"http://feeds.delicious.com/v2/json/tags/"+that.settings.username+"/"+p.inFolderId,success:function(data){var items=[];for(var tag in data){var id=(p.inFolderId)?p.inFolderId+"+"+tag:tag;if(typeof data[tag]!="function"){items.push(new GENTICS.Aloha.Repository.Folder({id:id,name:tag,repositoryId:that.repositoryId,type:"tag",url:"http://feeds.delicious.com/v2/rss/tags/"+that.settings.username+"/"+id,hasMoreItems:true}))}}callback.call(that,items)}})}}else{callback.call(this,[])}};
@@ -1,4 +0,0 @@
1
- button.addlink.tooltip=Dodaj link
2
- button.removelink.tooltip=Usuń link
3
- newlink.defaulttext=Nowy link
4
- floatingmenu.tab.link=Link
@@ -1,14 +0,0 @@
1
- /*!
2
- * Aloha Editor
3
- * Author & Copyright (c) 2010 Gentics Software GmbH
4
- * aloha-sales@gentics.com
5
- * Licensed unter the terms of http://www.aloha-editor.com/license.html
6
- */
7
-
8
- .GENTICS_link_error {
9
- color: red !important;
10
- }
11
-
12
- .GENTICS_link_warn {
13
- color: red !important;
14
- }
@@ -1,49 +0,0 @@
1
- body {
2
- font-family: sans-serif;
3
- }
4
-
5
- body {
6
- background-color: #ccc;
7
- }
8
-
9
- #bodyContent {
10
- font-size:0.9em;
11
- }
12
-
13
- h1, h2, h3, h4, h5, h6 {
14
- font-family: sans-serif;
15
- padding-bottom:0.1em;
16
- padding-top:0.5em;
17
- }
18
- h1 {
19
- border-bottom:1px solid #AAAAAA;
20
- }
21
-
22
- h1 { font-size: 188%; }
23
- h2 { font-size: 150%; }
24
- h3 { font-size: 132%; }
25
- h4 { font-size: 116%; }
26
- h5 { font-size: 100%; }
27
- h6 { font-size: 80%; }
28
-
29
- #main {
30
- width: 650px;
31
- margin-top: 40px;
32
- margin-left: auto ;
33
- margin-right: auto ;
34
- padding: 70px;
35
- background-color: white;
36
- border-radius: 1px;
37
- -moz-border-radius: 1px;
38
- box-shadow: 5px 5px rgba(0,0,0,0.3);
39
- -webkit-box-shadow: 5px 5px rgba(0,0,0,0.3);
40
- -moz-box-shadow: 5px 5px rgba(0,0,0,0.3);
41
- }
42
-
43
- .GENTICS_link_error {
44
- color: red;
45
- }
46
-
47
- .GENTICS_link_warn {
48
- color: orange;
49
- }
@@ -1,82 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <title>Aloha, link checker!</title>
6
- <script>GENTICS_Aloha_base="../../../";</script>
7
- <script type="text/javascript" src="../../../core/include.js"></script>
8
- <script type="text/javascript" src="../../../plugins/com.gentics.aloha.plugins.Link/plugin.js"></script>
9
- <script type="text/javascript" src="../plugin.js"></script>
10
-
11
-
12
- <link rel="stylesheet" href="AlohaLinkChecker.css" />
13
-
14
- <!-- turn an element into editable Aloha continuous text -->
15
- <script type="text/javascript">
16
- GENTICS.Aloha.settings = {
17
- logLevels: {'error': true, 'warn': true, 'info': true, 'debug': false},
18
- errorhandling : false,
19
- ribbon: false,
20
- "i18n": {
21
- // let the system detect the users language
22
- //"acceptLanguage": '<?=$_SERVER['HTTP_ACCEPT_LANGUAGE']?>'
23
- "acceptLanguage": 'de-de,de;q=0.8,it;q=0.6,en-us;q=0.7,en;q=0.2'
24
- },
25
- "plugins": {
26
- "com.gentics.aloha.plugins.LinkChecker": {
27
- 'config': ['a'],
28
- // use a proxy when you call it through a webserver
29
- // 'proxyUrl': 'http://localhost:8888/Sites/Aloha-Editor/WebContent/plugins/com.gentics.aloha.plugins.LinkChecker/proxy.php?url='
30
- }
31
- }
32
- };
33
-
34
- $(document).ready(function() {
35
- $('#content').aloha();
36
- });
37
- </script>
38
- <style type="text/css">
39
-
40
- .GENTICS_link_error {
41
- color: red;
42
- }
43
-
44
- .GENTICS_link_warn {
45
- color: red;
46
- }
47
- </style>
48
- </head>
49
- <body>
50
- <div id="main">
51
- <div id="bodyContent">
52
- <div id="content" class="article">
53
- <h1>Aloha</h1>
54
- <h2>Etymology</h2>
55
- <p>The word <a href="http://en.wikipedia.org/wiki/Aloha" target="_blank" class="external">aloha</a> derives from the Proto-Polynesian root <i>*qalofa</i>. It has cognates in other Polynesian languages, such as Samoan alofa
56
- and Māori aroha, also meaning "love."</p>
57
- <p><a href="http://aloha-editor.com/invalid">invalid Aloha Editor</a> is the word's most advanced browser based Editor made with aloha passion.</p>
58
- <p>A folk etymology claims that it derives from a compound of the <a href="http://en.wikipedia.org/wiki/Hawaii" target="_blank" class="external">Hawaiian</a> words alo meaning "presence", "front", "face", or "share"; and
59
- ha, meaning "breath of life" or "essence of life." Although alo does indeed mean "presence" etc., the word for breath is spelled with a macron
60
- or kahakō over the a (hā) whereas the word aloha does not have a long a.</p>
61
- <p>Links are the web's <a title="Aloha Editor rocks." href="http://rocket-power.org/not-working">Rocket Power</a>.</p>
62
- <h2>Usage</h2>
63
- <p>Before contact with the West, the words used for greeting were welina and anoai. Today, "aloha kakahiaka" is the phrase for "good
64
- morning." "Aloha ʻauinalā" means "good afternoon" and "aloha ahiahi" means "good evening." "Aloha kākou" is a common form of "welcome to all."</p>
65
- <p>In modern Hawaiʻi, numerous businesses have aloha in their names, with more than 3 pages of listings in the Oʻahu phone book alone.</p>
66
- <h2>Trends</h2>
67
- <p>Recent trends are popularizing the term elsewhere in the United States. Popular entertainer, Broadway star and Hollywood actress Bette
68
- Midler, born in Honolulu, uses the greeting frequently in national appearances. The word was also used frequently in the hit television drama
69
- Hawaii Five-O. In the influential 1982 film comedy Fast Times at Ridgemont High, the eccentric teacher Mr. Hand makes use of the greeting. The
70
- Aloha Spirit is a major concept in Lilo and Stitch, a very popular Disney series of movies and TV shows, set in Hawaiʻi. The drama series Lost,
71
- shot in Hawaiʻi, has a thank you note at the end of the credits saying "We thank the people of Hawaiʻi and their Aloha Spirit". Aloha is a term
72
- also used in the Nickelodeon program Rocket Power.</p>
73
- <ul>
74
- <li>Arguably the most famous historical Hawaiian song, "Aloha ʻOe" was written by the last queen of Hawaii, Liliʻuokalani.</li>
75
- <li>The term inspired the name of the ALOHA Protocol introduced in the 1970s by the University of Hawaii.</li>
76
- <li>In Hawaii someone can be said to have or show aloha in the way they treat others; whether family, friend, neighbor or stranger.</li>
77
- </ul>
78
- </div>
79
- </div>
80
- </div>
81
- </body>
82
- </html>