camaleon_cms 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of camaleon_cms might be problematic. Click here for more details.

Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/app/apps/plugins/front_cache/views/admin/settings.html.erb +4 -4
  3. data/app/assets/javascripts/admin/custom_fields.js +2 -2
  4. data/app/assets/javascripts/admin/data.js +3 -3
  5. data/app/assets/javascripts/admin/elfinder/i18n/elfinder.it.js +366 -0
  6. data/app/assets/javascripts/admin/it.js +23 -0
  7. data/app/assets/javascripts/admin/tinymce/langs/en.js +179 -0
  8. data/app/assets/javascripts/admin/tinymce/langs/it.js +219 -0
  9. data/app/helpers/admin/application_helper.rb +2 -2
  10. data/app/helpers/admin/menus_helper.rb +1 -1
  11. data/app/helpers/site_helper.rb +1 -1
  12. data/app/views/layouts/admin.html.erb +6 -7
  13. data/config/initializers/elfinder.rb +4 -20
  14. data/config/initializers/rufus_cron.rb +15 -42
  15. data/config/locales/admin/it.yml +600 -0
  16. data/config/locales/common.yml +61 -0
  17. data/config/locales/it.yml +205 -0
  18. data/config/locales/languages.yml +11 -1
  19. data/config/locales/routes.yml +8 -0
  20. data/config/system.json +2 -3
  21. data/lib/camaleon_cms/engine.rb +22 -26
  22. data/lib/camaleon_cms/version.rb +1 -1
  23. data/lib/generators/cplugin_template/app/apps/plugins/my_plugin/admin_controller.rb +3 -4
  24. data/lib/generators/cplugin_template/app/apps/plugins/my_plugin/front_controller.rb +3 -4
  25. data/lib/generators/cplugin_template/app/apps/plugins/my_plugin/main_helper.rb +2 -6
  26. metadata +8 -23
  27. data/app/apps/plugins/attack/assets/docs/images/screenshot_1.jpg +0 -0
  28. data/app/apps/plugins/attack/assets/docs/images/screenshot_2.jpg +0 -0
  29. data/app/apps/plugins/attack/assets/docs/images/screenshot_3.jpg +0 -0
  30. data/app/apps/plugins/attack/assets/docs/index.html +0 -60
  31. data/app/apps/plugins/contact_form/assets/docs/images/screenshot_1.jpg +0 -0
  32. data/app/apps/plugins/contact_form/assets/docs/images/screenshot_2.jpg +0 -0
  33. data/app/apps/plugins/contact_form/assets/docs/images/screenshot_3.jpg +0 -0
  34. data/app/apps/plugins/contact_form/assets/docs/images/screenshot_4.jpg +0 -0
  35. data/app/apps/plugins/contact_form/assets/docs/images/screenshot_5.jpg +0 -0
  36. data/app/apps/plugins/contact_form/assets/docs/index.html +0 -89
  37. data/app/apps/plugins/front_cache/assets/docs/images/screenshot_1.jpg +0 -0
  38. data/app/apps/plugins/front_cache/assets/docs/images/screenshot_2.jpg +0 -0
  39. data/app/apps/plugins/front_cache/assets/docs/index.html +0 -58
  40. data/app/apps/plugins/visibility_post/assets/docs/images/screenshot_1.jpg +0 -0
  41. data/app/apps/plugins/visibility_post/assets/docs/images/screenshot_2.jpg +0 -0
  42. data/app/apps/plugins/visibility_post/assets/docs/images/screenshot_3.jpg +0 -0
  43. data/app/apps/plugins/visibility_post/assets/docs/images/screenshot_4.jpg +0 -0
  44. data/app/apps/plugins/visibility_post/assets/docs/index.html +0 -62
  45. data/app/views/admin/plugins/info.html.erb +0 -47
  46. data/config/initializers/fix_ssl.rb +0 -25
  47. data/lib/ca-bundle.crt +0 -3554
@@ -0,0 +1,179 @@
1
+ tinymce.addI18n('en_GB',{
2
+ "Cut": "Cut",
3
+ "Header 2": "Header 2",
4
+ "Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.",
5
+ "Div": "Div",
6
+ "Paste": "Paste",
7
+ "Close": "Close",
8
+ "Font Family": "Font Family",
9
+ "Pre": "Pre",
10
+ "Align right": "Align right",
11
+ "New document": "New document",
12
+ "Blockquote": "Blockquote",
13
+ "Numbered list": "Numbered list",
14
+ "Increase indent": "Increase indent",
15
+ "Formats": "Formats",
16
+ "Headers": "Headers",
17
+ "Select all": "Select all",
18
+ "Header 3": "Header 3",
19
+ "Blocks": "Blocks",
20
+ "Undo": "Undo",
21
+ "Strikethrough": "Strike-through",
22
+ "Bullet list": "Bullet list",
23
+ "Header 1": "Header 1",
24
+ "Superscript": "Superscript",
25
+ "Clear formatting": "Clear formatting",
26
+ "Font Sizes": "Font Sizes",
27
+ "Subscript": "Subscript",
28
+ "Header 6": "Header 6",
29
+ "Redo": "Redo",
30
+ "Paragraph": "Paragraph",
31
+ "Ok": "Ok",
32
+ "Bold": "Bold",
33
+ "Code": "Code",
34
+ "Italic": "Italic",
35
+ "Align center": "Align centre",
36
+ "Header 5": "Header 5",
37
+ "Decrease indent": "Decrease indent",
38
+ "Header 4": "Header 4",
39
+ "Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.": "Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.",
40
+ "Underline": "Underline",
41
+ "Cancel": "Cancel",
42
+ "Justify": "Justify",
43
+ "Inline": "Inline",
44
+ "Copy": "Copy",
45
+ "Align left": "Align left",
46
+ "Visual aids": "Visual aids",
47
+ "Lower Greek": "Lower Greek",
48
+ "Square": "Square",
49
+ "Default": "Default",
50
+ "Lower Alpha": "Lower Alpha",
51
+ "Circle": "Circle",
52
+ "Disc": "Disc",
53
+ "Upper Alpha": "Upper Alpha",
54
+ "Upper Roman": "Upper Roman",
55
+ "Lower Roman": "Lower Roman",
56
+ "Name": "Name",
57
+ "Anchor": "Anchor",
58
+ "You have unsaved changes are you sure you want to navigate away?": "You have unsaved changes are you sure you want to navigate away?",
59
+ "Restore last draft": "Restore last draft",
60
+ "Special character": "Special character",
61
+ "Source code": "Source code",
62
+ "Right to left": "Right to left",
63
+ "Left to right": "Left to right",
64
+ "Emoticons": "Emoticons",
65
+ "Robots": "Robots",
66
+ "Document properties": "Document properties",
67
+ "Title": "Title",
68
+ "Keywords": "Keywords",
69
+ "Encoding": "Encoding",
70
+ "Description": "Description",
71
+ "Author": "Author",
72
+ "Fullscreen": "Full-screen",
73
+ "Horizontal line": "Horizontal line",
74
+ "Horizontal space": "Horizontal space",
75
+ "Insert\/edit image": "Insert\/edit image",
76
+ "General": "General",
77
+ "Advanced": "Advanced",
78
+ "Source": "Source",
79
+ "Border": "Border",
80
+ "Constrain proportions": "Constrain proportions",
81
+ "Vertical space": "Vertical space",
82
+ "Image description": "Image description",
83
+ "Style": "Style",
84
+ "Dimensions": "Dimensions",
85
+ "Insert image": "Insert image",
86
+ "Insert date\/time": "Insert date\/time",
87
+ "Remove link": "Remove link",
88
+ "Url": "URL",
89
+ "Text to display": "Text to display",
90
+ "Anchors": "Anchors",
91
+ "Insert link": "Insert link",
92
+ "New window": "New window",
93
+ "None": "None",
94
+ "The URL you entered seems to be an external link. Do you want to add the required http:\/\/ prefix?": "The URL you entered seems to be an external link. Do you want to add the required http:\/\/ prefix?",
95
+ "Target": "Target",
96
+ "The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?": "The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",
97
+ "Insert\/edit link": "Insert\/edit link",
98
+ "Insert\/edit video": "Insert\/edit video",
99
+ "Poster": "Poster",
100
+ "Alternative source": "Alternative source",
101
+ "Paste your embed code below:": "Paste your embed code below:",
102
+ "Insert video": "Insert video",
103
+ "Embed": "Embed",
104
+ "Nonbreaking space": "Non-breaking space",
105
+ "Page break": "Page break",
106
+ "Paste as text": "Paste as text",
107
+ "Preview": "Preview",
108
+ "Print": "Print",
109
+ "Save": "Save",
110
+ "Could not find the specified string.": "Could not find the specified string.",
111
+ "Replace": "Replace",
112
+ "Next": "Next",
113
+ "Whole words": "Whole words",
114
+ "Find and replace": "Find and replace",
115
+ "Replace with": "Replace with",
116
+ "Find": "Find",
117
+ "Replace all": "Replace all",
118
+ "Match case": "Match case",
119
+ "Prev": "Prev",
120
+ "Spellcheck": "Spell-check",
121
+ "Finish": "Finish",
122
+ "Ignore all": "Ignore all",
123
+ "Ignore": "Ignore",
124
+ "Insert row before": "Insert row before",
125
+ "Rows": "Rows",
126
+ "Height": "Height",
127
+ "Paste row after": "Paste row after",
128
+ "Alignment": "Alignment",
129
+ "Column group": "Column group",
130
+ "Row": "Row",
131
+ "Insert column before": "Insert column before",
132
+ "Split cell": "Split cell",
133
+ "Cell padding": "Cell padding",
134
+ "Cell spacing": "Cell spacing",
135
+ "Row type": "Row type",
136
+ "Insert table": "Insert table",
137
+ "Body": "Body",
138
+ "Caption": "Caption",
139
+ "Footer": "Footer",
140
+ "Delete row": "Delete row",
141
+ "Paste row before": "Paste row before",
142
+ "Scope": "Scope",
143
+ "Delete table": "Delete table",
144
+ "Header cell": "Header cell",
145
+ "Column": "Column",
146
+ "Cell": "Cell",
147
+ "Header": "Header",
148
+ "Cell type": "Cell type",
149
+ "Copy row": "Copy row",
150
+ "Row properties": "Row properties",
151
+ "Table properties": "Table properties",
152
+ "Row group": "Row group",
153
+ "Right": "Right",
154
+ "Insert column after": "Insert column after",
155
+ "Cols": "Cols",
156
+ "Insert row after": "Insert row after",
157
+ "Width": "Width",
158
+ "Cell properties": "Cell properties",
159
+ "Left": "Left",
160
+ "Cut row": "Cut row",
161
+ "Delete column": "Delete column",
162
+ "Center": "Centre",
163
+ "Merge cells": "Merge cells",
164
+ "Insert template": "Insert template",
165
+ "Templates": "Templates",
166
+ "Background color": "Background colour",
167
+ "Text color": "Text colour",
168
+ "Show blocks": "Show blocks",
169
+ "Show invisible characters": "Show invisible characters",
170
+ "Words: {0}": "Words: {0}",
171
+ "Insert": "Insert",
172
+ "File": "File",
173
+ "Edit": "Edit",
174
+ "Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help": "Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help",
175
+ "Tools": "Tools",
176
+ "View": "View",
177
+ "Table": "Table",
178
+ "Format": "Format"
179
+ });
@@ -0,0 +1,219 @@
1
+ tinymce.addI18n('it',{
2
+ "Cut": "Taglia",
3
+ "Heading 5": "Intestazione 5",
4
+ "Header 2": "Header 2",
5
+ "Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "Il tuo browser non supporta l'accesso diretto negli Appunti. Per favore usa i tasti di scelta rapida Ctrl+X\/C\/V.",
6
+ "Heading 4": "Intestazione 4",
7
+ "Div": "Div",
8
+ "Heading 2": "Intestazione 2",
9
+ "Paste": "Incolla",
10
+ "Close": "Chiudi",
11
+ "Font Family": "Famiglia font",
12
+ "Pre": "Pre",
13
+ "Align right": "Allinea a Destra",
14
+ "New document": "Nuovo Documento",
15
+ "Blockquote": "Blockquote",
16
+ "Numbered list": "Elenchi Numerati",
17
+ "Heading 1": "Intestazione 1",
18
+ "Headings": "Intestazioni",
19
+ "Increase indent": "Aumenta Rientro",
20
+ "Formats": "Formattazioni",
21
+ "Headers": "Intestazioni",
22
+ "Select all": "Seleziona Tutto",
23
+ "Header 3": "Intestazione 3",
24
+ "Blocks": "Blocchi",
25
+ "Undo": "Indietro",
26
+ "Strikethrough": "Barrato",
27
+ "Bullet list": "Elenchi Puntati",
28
+ "Header 1": "Intestazione 1",
29
+ "Superscript": "Apice",
30
+ "Clear formatting": "Cancella Formattazione",
31
+ "Font Sizes": "Dimensioni font",
32
+ "Subscript": "Pedice",
33
+ "Header 6": "Intestazione 6",
34
+ "Redo": "Ripeti",
35
+ "Paragraph": "Paragrafo",
36
+ "Ok": "Ok",
37
+ "Bold": "Grassetto",
38
+ "Code": "Codice",
39
+ "Italic": "Corsivo",
40
+ "Align center": "Allinea al Cento",
41
+ "Header 5": "Intestazione 5",
42
+ "Heading 6": "Intestazione 6",
43
+ "Heading 3": "Intestazione 3",
44
+ "Decrease indent": "Riduci Rientro",
45
+ "Header 4": "Intestazione 4",
46
+ "Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.": "Incolla \u00e8 in modalit\u00e0 testo normale. I contenuti sono incollati come testo normale se non disattivi l'opzione.",
47
+ "Underline": "Sottolineato",
48
+ "Cancel": "Cancella",
49
+ "Justify": "Giustifica",
50
+ "Inline": "Inlinea",
51
+ "Copy": "Copia",
52
+ "Align left": "Allinea a Sinistra",
53
+ "Visual aids": "Elementi Visivi",
54
+ "Lower Greek": "Greek Minore",
55
+ "Square": "Quadrato",
56
+ "Default": "Default",
57
+ "Lower Alpha": "Alpha Minore",
58
+ "Circle": "Cerchio",
59
+ "Disc": "Disco",
60
+ "Upper Alpha": "Alpha Superiore",
61
+ "Upper Roman": "Roman Superiore",
62
+ "Lower Roman": "Roman Minore",
63
+ "Name": "Nome",
64
+ "Anchor": "Fissa",
65
+ "You have unsaved changes are you sure you want to navigate away?": "Non hai salvato delle modifiche, sei sicuro di andartene?",
66
+ "Restore last draft": "Ripristina l'ultima bozza.",
67
+ "Special character": "Carattere Speciale",
68
+ "Source code": "Codice Sorgente",
69
+ "B": "B",
70
+ "R": "R",
71
+ "G": "G",
72
+ "Color": "Colore",
73
+ "Right to left": "Da Destra a Sinistra",
74
+ "Left to right": "Da Sinistra a Destra",
75
+ "Emoticons": "Emoction",
76
+ "Robots": "Robot",
77
+ "Document properties": "Propriet\u00e0 Documento",
78
+ "Title": "Titolo",
79
+ "Keywords": "Parola Chiave",
80
+ "Encoding": "Codifica",
81
+ "Description": "Descrizione",
82
+ "Author": "Autore",
83
+ "Fullscreen": "Schermo Intero",
84
+ "Horizontal line": "Linea Orizzontale",
85
+ "Horizontal space": "Spazio Orizzontale",
86
+ "Insert\/edit image": "Aggiungi\/Modifica Immagine",
87
+ "General": "Generale",
88
+ "Advanced": "Avanzato",
89
+ "Source": "Fonte",
90
+ "Border": "Bordo",
91
+ "Constrain proportions": "Mantieni Proporzioni",
92
+ "Vertical space": "Spazio Verticale",
93
+ "Image description": "Descrizione Immagine",
94
+ "Style": "Stile",
95
+ "Dimensions": "Dimenzioni",
96
+ "Insert image": "Inserisci immagine",
97
+ "Zoom in": "Ingrandisci",
98
+ "Contrast": "Contrasto",
99
+ "Back": "Indietro",
100
+ "Gamma": "Gamma",
101
+ "Flip horizontally": "Rifletti orizzontalmente",
102
+ "Resize": "Ridimensiona",
103
+ "Sharpen": "Contrasta",
104
+ "Zoom out": "Rimpicciolisci",
105
+ "Image options": "Opzioni immagine",
106
+ "Apply": "Applica",
107
+ "Brightness": "Luminosit\u00e0",
108
+ "Rotate clockwise": "Ruota in senso orario",
109
+ "Rotate counterclockwise": "Ruota in senso antiorario",
110
+ "Edit image": "Modifica immagine",
111
+ "Color levels": "Livelli colore",
112
+ "Crop": "Taglia",
113
+ "Orientation": "Orientamento",
114
+ "Flip vertically": "Rifletti verticalmente",
115
+ "Invert": "Inverti",
116
+ "Insert date\/time": "Inserisci Data\/Ora",
117
+ "Remove link": "Rimuovi link",
118
+ "Url": "Url",
119
+ "Text to display": "Testo da Visualizzare",
120
+ "Anchors": "Anchors",
121
+ "Insert link": "Inserisci il Link",
122
+ "New window": "Nuova Finestra",
123
+ "None": "No",
124
+ "The URL you entered seems to be an external link. Do you want to add the required http:\/\/ prefix?": "L'URL inserito sembra essere un collegamento esterno. Vuoi aggiungere il prefisso necessario http:\/\/?",
125
+ "Target": "Target",
126
+ "The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?": "L'URL inserito sembra essere un indirizzo email. Vuoi aggiungere il prefisso necessario mailto:?",
127
+ "Insert\/edit link": "Inserisci\/Modifica Link",
128
+ "Insert\/edit video": "Inserisci\/Modifica Video",
129
+ "Poster": "Anteprima",
130
+ "Alternative source": "Alternativo",
131
+ "Paste your embed code below:": "Incolla il codice d'incorporamento qui:",
132
+ "Insert video": "Inserisci Video",
133
+ "Embed": "Incorporare",
134
+ "Nonbreaking space": "Spazio unificatore",
135
+ "Page break": "Interruzione di pagina",
136
+ "Paste as text": "incolla come testo",
137
+ "Preview": "Anteprima",
138
+ "Print": "Stampa",
139
+ "Save": "Salva",
140
+ "Could not find the specified string.": "Impossibile trovare la parola specifica.",
141
+ "Replace": "Sostituisci",
142
+ "Next": "Successivo",
143
+ "Whole words": "Parole Sbagliate",
144
+ "Find and replace": "Trova e Sostituisci",
145
+ "Replace with": "Sostituisci Con",
146
+ "Find": "Trova",
147
+ "Replace all": "Sostituisci Tutto",
148
+ "Match case": "Maiuscole\/Minuscole ",
149
+ "Prev": "Precedente",
150
+ "Spellcheck": "Controllo ortografico",
151
+ "Finish": "Termina",
152
+ "Ignore all": "Ignora Tutto",
153
+ "Ignore": "Ignora",
154
+ "Add to Dictionary": "Aggiungi al Dizionario",
155
+ "Insert row before": "Inserisci una Riga Prima",
156
+ "Rows": "Righe",
157
+ "Height": "Altezza",
158
+ "Paste row after": "Incolla una Riga Dopo",
159
+ "Alignment": "Allineamento",
160
+ "Border color": "Colore bordo",
161
+ "Column group": "Gruppo di Colonne",
162
+ "Row": "Riga",
163
+ "Insert column before": "Inserisci una Colonna Prima",
164
+ "Split cell": "Dividi Cella",
165
+ "Cell padding": "Padding della Cella",
166
+ "Cell spacing": "Spaziatura della Cella",
167
+ "Row type": "Tipo di Riga",
168
+ "Insert table": "Inserisci Tabella",
169
+ "Body": "Body",
170
+ "Caption": "Didascalia",
171
+ "Footer": "Footer",
172
+ "Delete row": "Cancella Riga",
173
+ "Paste row before": "Incolla una Riga Prima",
174
+ "Scope": "Campo",
175
+ "Delete table": "Cancella Tabella",
176
+ "H Align": "Allineamento H",
177
+ "Top": "In alto",
178
+ "Header cell": "cella d'intestazione",
179
+ "Column": "Colonna",
180
+ "Row group": "Gruppo di Righe",
181
+ "Cell": "Cella",
182
+ "Middle": "In mezzo",
183
+ "Cell type": "Tipo di Cella",
184
+ "Copy row": "Copia Riga",
185
+ "Row properties": "Propriet\u00e0 della Riga",
186
+ "Table properties": "Propiet\u00e0 della Tabella",
187
+ "Bottom": "In fondo",
188
+ "V Align": "Allineamento V",
189
+ "Header": "Header",
190
+ "Right": "Destra",
191
+ "Insert column after": "Inserisci una Colonna Dopo",
192
+ "Cols": "Colonne",
193
+ "Insert row after": "Inserisci una Riga Dopo",
194
+ "Width": "Larghezza",
195
+ "Cell properties": "Propiet\u00e0 della Cella",
196
+ "Left": "Sinistra",
197
+ "Cut row": "Taglia Riga",
198
+ "Delete column": "Cancella Colonna",
199
+ "Center": "Centro",
200
+ "Merge cells": "Unisci Cella",
201
+ "Insert template": "Inserisci Template",
202
+ "Templates": "Template",
203
+ "Background color": "Colore Background",
204
+ "Custom...": "Personalizzato...",
205
+ "Custom color": "Colore personalizzato",
206
+ "No color": "Nessun colore",
207
+ "Text color": "Colore Testo",
208
+ "Show blocks": "Mostra Blocchi",
209
+ "Show invisible characters": "Mostra Caratteri Invisibili",
210
+ "Words: {0}": "Parole: {0}",
211
+ "Insert": "Inserisci",
212
+ "File": "File",
213
+ "Edit": "Modifica",
214
+ "Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help": "Rich Text Area. Premi ALT-F9 per il men\u00f9. Premi ALT-F10 per la barra degli strumenti. Premi ALT-0 per l'aiuto.",
215
+ "Tools": "Strumenti",
216
+ "View": "Visualiza",
217
+ "Table": "Tabella",
218
+ "Format": "Formato"
219
+ });
@@ -14,9 +14,9 @@ module Admin::ApplicationHelper
14
14
 
15
15
  # load system notification
16
16
  def admin_system_notifications(args)
17
- if Date.parse(current_site.get_option("date_notified", 2.days.ago).to_s) < Date.today || true
17
+ if Date.parse(current_site.get_option("date_notified", 2.days.ago).to_s) < Date.today
18
18
  current_site.set_option("date_notified", Date.today)
19
- url = "http://camaleon.tuzitio.com/plugins/camaleon_notification/?version=#{PluginRoutes.system_info[:version] rescue "1.0"}&admin_locale=#{current_site.get_admin_language}&site=#{current_site.the_url}"
19
+ url = "http://camaleon.tuzitio.com/plugins/camaleon_notification/?version=#{CamaleonCms::VERSION}&admin_locale=#{current_site.get_admin_language}&site=#{current_site.the_url}"
20
20
  Thread.new do
21
21
  current_site.set_meta("date_notified_message", open(url).read)
22
22
  ActiveRecord::Base.connection.close #closing connection
@@ -194,4 +194,4 @@ module Admin::MenusHelper
194
194
  @_admin_breadcrumb = [[t('admin.sidebar.dashboard'), admin_dashboard_path]] + bread + @_admin_breadcrumb
195
195
  end
196
196
 
197
- end
197
+ end
@@ -109,8 +109,8 @@ module SiteHelper
109
109
  # load all custom models customized by plugins or templates in custom_models.rb
110
110
  def site_load_custom_models(site)
111
111
  PluginRoutes.enabled_apps(site).each{ |app|
112
+ next unless app["path"].present?
112
113
  s = File.join(app["path"], "config", "custom_models.rb")
113
- # require_relative s if File.exist?(s)
114
114
  eval(File.read(s)) if File.exist?(s)
115
115
  }
116
116
  end
@@ -10,10 +10,6 @@
10
10
 
11
11
  <%= stylesheet_link_tag "admin/admin-manifest", media: "all" %>
12
12
  <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
13
- <%= javascript_include_tag "admin/admin-manifest" %>
14
- <%= javascript_include_tag "admin/#{current_locale}.js" if current_locale != "en" %>
15
- <%= javascript_include_tag "admin/elfinder/i18n/elfinder.#{current_locale}.js" if current_locale != "en" %>
16
- <%= raw the_head(false) %>
17
13
  <script>
18
14
  var root_url = '<%= root_url %>';
19
15
  var NO_IMAGE_URL = '<%= asset_url("image-not-found.png") %>';
@@ -21,7 +17,7 @@
21
17
  var ADMIN_TRANSLATIONS = <%= raw current_site.get_languages.to_json %>;
22
18
  String.prototype.to_url = function () { return root_url.slice(0, root_url.length - 1) + this; };
23
19
  window.run = [];
24
- var tinymce_langs = {"es": "<%= asset_path("admin/tinymce/langs/es.js") %>"};
20
+ var tinymce_langs = {"<%= current_locale %>": "<%= asset_path("admin/tinymce/langs/#{current_locale}.js") %>"};
25
21
  var lang = {
26
22
  accept: '<%= t('admin.button.accept') %>',
27
23
  cancel: '<%= t('admin.button.cancel') %>',
@@ -59,7 +55,10 @@
59
55
  upload_image: '<%= t('admin.button.upload_image')%>'
60
56
  };
61
57
  </script>
62
-
58
+ <%= javascript_include_tag "admin/admin-manifest" %>
59
+ <%= javascript_include_tag "admin/#{current_locale}.js" if current_locale != "en" %>
60
+ <%= javascript_include_tag "admin/elfinder/i18n/elfinder.#{current_locale}.js" if current_locale != "en" %>
61
+ <%= raw the_head(false) %>
63
62
  </head>
64
63
  <body class="template-admin">
65
64
  <%= raw content_before_draw %>
@@ -162,4 +161,4 @@
162
161
  <script> jQuery(function () { while (run.length > 0) { (run.shift())(); } }); </script>
163
162
  <%= raw content_after_draw %>
164
163
  </body>
165
- </html>
164
+ </html>