camaleon_cms 2.1.2.1 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of camaleon_cms might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +7 -4
- data/app/apps/plugins/attack/attack_helper.rb +3 -0
- data/app/apps/plugins/attack/config/custom_models.rb +4 -2
- data/app/apps/plugins/attack/config/locales/translation.yml +19 -0
- data/app/apps/plugins/attack/models/attack.rb +1 -1
- data/app/apps/plugins/front_cache/config/initializer.rb +4 -2
- data/app/apps/plugins/front_cache/config/locales/translation.yml +19 -0
- data/app/apps/themes/camaleon_first/main_helper.rb +1 -3
- data/app/apps/themes/default/views/admin/settings.html.erb +0 -1
- data/app/apps/themes/default/views/layouts/index.html.erb +5 -5
- data/app/apps/themes/new/assets/css/main.css +1 -1
- data/app/apps/themes/new/assets/js/main.js +1 -1
- data/app/apps/themes/new/views/admin/settings.html.erb +1 -1
- data/app/assets/images/camaleon_cms/language/{pt_br.png → pt-BR.png} +0 -0
- data/app/assets/javascripts/camaleon_cms/admin/_custom_fields.js +105 -51
- data/app/assets/javascripts/camaleon_cms/admin/_libraries.js +4 -2
- data/app/assets/javascripts/camaleon_cms/admin/_translator.js +2 -2
- data/app/assets/javascripts/camaleon_cms/admin/custom_fields_form.js +9 -7
- data/app/assets/javascripts/camaleon_cms/admin/jquery_validate/{pt_br.js → pt-BR.js} +0 -0
- data/app/assets/javascripts/camaleon_cms/admin/momentjs/{pt_br.js → pt-BR.js} +1 -1
- data/app/assets/javascripts/camaleon_cms/admin/nav_menu.js.coffee +15 -1
- data/app/assets/javascripts/camaleon_cms/admin/tinymce/langs/{pt_br.js → pt-BR.js} +1 -1
- data/app/assets/javascripts/camaleon_cms/admin/uploader/_media_manager.js.coffee +24 -12
- data/app/assets/stylesheets/camaleon_cms/admin/_custom_admin.css.scss +9 -0
- data/app/assets/stylesheets/camaleon_cms/admin/lte/_admin.css.scss +1 -1
- data/app/controllers/camaleon_cms/admin/appearances/nav_menus_controller.rb +13 -6
- data/app/controllers/camaleon_cms/admin/appearances/themes_controller.rb +1 -1
- data/app/controllers/camaleon_cms/admin/appearances/widgets/assign_controller.rb +1 -1
- data/app/controllers/camaleon_cms/admin/appearances/widgets/main_controller.rb +1 -1
- data/app/controllers/camaleon_cms/admin/appearances/widgets/sidebar_controller.rb +1 -1
- data/app/controllers/camaleon_cms/admin/comments_controller.rb +1 -1
- data/app/controllers/camaleon_cms/admin/media_controller.rb +15 -5
- data/app/controllers/camaleon_cms/admin/plugins_controller.rb +1 -1
- data/app/controllers/camaleon_cms/admin/settings/custom_fields_controller.rb +14 -8
- data/app/controllers/camaleon_cms/admin/settings_controller.rb +22 -7
- data/app/controllers/camaleon_cms/admin/user_roles_controller.rb +1 -1
- data/app/controllers/camaleon_cms/admin/users_controller.rb +1 -1
- data/app/controllers/camaleon_cms/apps/plugins_admin_controller.rb +4 -1
- data/app/controllers/camaleon_cms/apps/plugins_front_controller.rb +5 -10
- data/app/controllers/camaleon_cms/apps/themes_front_controller.rb +1 -4
- data/app/controllers/camaleon_cms/camaleon_controller.rb +4 -13
- data/app/controllers/camaleon_cms/frontend_controller.rb +15 -9
- data/app/controllers/concerns/camaleon_cms/frontend_concern.rb +17 -8
- data/app/decorators/camaleon_cms/application_decorator.rb +3 -3
- data/app/decorators/camaleon_cms/custom_fields_concern.rb +21 -6
- data/app/decorators/camaleon_cms/post_comment_decorator.rb +21 -0
- data/app/decorators/camaleon_cms/site_decorator.rb +5 -5
- data/app/decorators/camaleon_cms/theme_decorator.rb +10 -0
- data/app/decorators/camaleon_cms/user_decorator.rb +2 -2
- data/app/helpers/camaleon_cms/admin/custom_fields_helper.rb +24 -2
- data/app/helpers/camaleon_cms/admin/menus_helper.rb +13 -12
- data/app/helpers/camaleon_cms/frontend/application_helper.rb +1 -1
- data/app/helpers/camaleon_cms/frontend/nav_menu_helper.rb +7 -6
- data/app/helpers/camaleon_cms/plugins_helper.rb +20 -18
- data/app/helpers/camaleon_cms/site_helper.rb +1 -20
- data/app/helpers/camaleon_cms/theme_helper.rb +1 -1
- data/app/helpers/camaleon_cms/uploader_helper.rb +25 -20
- data/app/helpers/camaleon_cms/user_roles_helper.rb +6 -1
- data/app/mailers/camaleon_cms/html_mailer.rb +2 -1
- data/app/models/camaleon_cms/ability.rb +3 -26
- data/app/models/camaleon_cms/custom_field.rb +2 -1
- data/app/models/camaleon_cms/custom_field_group.rb +23 -22
- data/app/models/camaleon_cms/custom_fields_relationship.rb +1 -1
- data/app/models/camaleon_cms/nav_menu.rb +1 -1
- data/app/models/camaleon_cms/nav_menu_item.rb +12 -19
- data/app/models/camaleon_cms/post.rb +1 -1
- data/app/models/camaleon_cms/post_comment.rb +3 -1
- data/app/models/camaleon_cms/post_default.rb +1 -1
- data/app/models/camaleon_cms/post_type.rb +5 -4
- data/app/models/camaleon_cms/site.rb +12 -0
- data/app/models/camaleon_cms/term_taxonomy.rb +1 -1
- data/app/models/camaleon_cms/user_role.rb +5 -1
- data/app/models/concerns/camaleon_cms/custom_fields_read.rb +99 -49
- data/app/uploaders/camaleon_cms_aws_uploader.rb +1 -1
- data/app/uploaders/camaleon_cms_local_uploader.rb +19 -3
- data/app/uploaders/camaleon_cms_uploader.rb +13 -6
- data/app/views/camaleon_cms/admin/appearances/nav_menus/_custom_menus.html.erb +9 -2
- data/app/views/camaleon_cms/admin/appearances/nav_menus/_form.html.erb +1 -1
- data/app/views/camaleon_cms/admin/appearances/nav_menus/_menu_items.html.erb +2 -2
- data/app/views/camaleon_cms/admin/appearances/themes/index.html.erb +1 -3
- data/app/views/camaleon_cms/admin/media/_render_file_item.html.erb +1 -0
- data/app/views/camaleon_cms/admin/media/index.html.erb +3 -3
- data/app/views/camaleon_cms/admin/posts/_sidebar.html.erb +1 -1
- data/app/views/camaleon_cms/admin/posts/form.html.erb +1 -1
- data/app/views/camaleon_cms/admin/settings/_configuration_settings.html.erb +4 -0
- data/app/views/camaleon_cms/admin/settings/custom_fields/_get_items.html.erb +6 -6
- data/app/views/camaleon_cms/admin/settings/custom_fields/_meta_data.html.erb +0 -9
- data/app/views/camaleon_cms/admin/settings/custom_fields/_render.html.erb +39 -55
- data/app/views/camaleon_cms/admin/settings/custom_fields/fields/_audio.html.erb +1 -1
- data/app/views/camaleon_cms/admin/settings/custom_fields/fields/_checkbox.html.erb +2 -2
- data/app/views/camaleon_cms/admin/settings/custom_fields/fields/_checkboxes.html.erb +3 -3
- data/app/views/camaleon_cms/admin/settings/custom_fields/fields/_colorpicker.html.erb +3 -3
- data/app/views/camaleon_cms/admin/settings/custom_fields/fields/_date.html.erb +3 -3
- data/app/views/camaleon_cms/admin/settings/custom_fields/fields/_editor.html.erb +2 -2
- data/app/views/camaleon_cms/admin/settings/custom_fields/fields/_email.html.erb +1 -1
- data/app/views/camaleon_cms/admin/settings/custom_fields/fields/_field_attrs.html.erb +3 -3
- data/app/views/camaleon_cms/admin/settings/custom_fields/fields/_file.html.erb +1 -1
- data/app/views/camaleon_cms/admin/settings/custom_fields/fields/_image.html.erb +2 -2
- data/app/views/camaleon_cms/admin/settings/custom_fields/fields/_numeric.html.erb +1 -1
- data/app/views/camaleon_cms/admin/settings/custom_fields/fields/_phone.html.erb +1 -1
- data/app/views/camaleon_cms/admin/settings/custom_fields/fields/_posts.html.erb +3 -3
- data/app/views/camaleon_cms/admin/settings/custom_fields/fields/_private_file.html.erb +4 -0
- data/app/views/camaleon_cms/admin/settings/custom_fields/fields/_radio.html.erb +3 -3
- data/app/views/camaleon_cms/admin/settings/custom_fields/fields/_select.html.erb +3 -3
- data/app/views/camaleon_cms/admin/settings/custom_fields/fields/_select_eval.html.erb +1 -1
- data/app/views/camaleon_cms/admin/settings/custom_fields/fields/_text_area.html.erb +2 -2
- data/app/views/camaleon_cms/admin/settings/custom_fields/fields/_text_box.html.erb +2 -2
- data/app/views/camaleon_cms/admin/settings/custom_fields/fields/_url.html.erb +1 -1
- data/app/views/camaleon_cms/admin/settings/custom_fields/fields/_users.html.erb +1 -1
- data/app/views/camaleon_cms/admin/settings/custom_fields/fields/_video.html.erb +1 -1
- data/app/views/camaleon_cms/admin/settings/custom_fields/form.html.erb +8 -0
- data/app/views/camaleon_cms/admin/settings/site.html.erb +1 -20
- data/app/views/camaleon_cms/admin/settings/theme.html.erb +20 -0
- data/app/views/camaleon_cms/admin/user_roles/form.html.erb +2 -2
- data/app/views/camaleon_cms/default_theme/admin/settings.html.erb +0 -1
- data/app/views/camaleon_cms/default_theme/partials/_comments.html.erb +0 -2
- data/app/views/camaleon_cms/default_theme/partials/_search_form.html.erb +1 -1
- data/app/views/camaleon_cms/default_theme/partials/_sidebar.html.erb +3 -3
- data/app/views/layouts/camaleon_cms/admin/_footer.html.erb +1 -1
- data/config/initializers/action_view.rb +12 -7
- data/config/initializers/custom_initializers.rb +6 -12
- data/config/locales/camaleon_cms/admin/en.yml +1 -0
- data/config/locales/camaleon_cms/admin/es.yml +4 -0
- data/config/locales/camaleon_cms/admin/it.yml +1 -24
- data/config/locales/camaleon_cms/admin/js.yml +41 -0
- data/config/locales/camaleon_cms/admin/{pt_br.yml → pt-BR.yml} +48 -18
- data/config/locales/camaleon_cms/common.yml +66 -0
- data/config/locales/camaleon_cms/languages.yml +13 -0
- data/config/locales/camaleon_cms/routes.yml +2 -2
- data/config/routes/admin.rb +3 -0
- data/config/system.json +3 -3
- data/db/migrate/20160606135421_improve_menus_structure.rb +7 -0
- data/db/migrate/20160609121449_add_group_to_custom_field_values.rb +5 -0
- data/lib/camaleon_cms/engine.rb +4 -3
- data/lib/camaleon_cms/version.rb +1 -1
- data/lib/ext/string.rb +20 -0
- data/lib/ext/translator.rb +2 -2
- data/lib/generators/camaleon_cms/gem_plugin_generator.rb +1 -1
- data/lib/generators/camaleon_cms/gem_plugin_template/config/camaleon_plugin.json +1 -1
- data/lib/generators/camaleon_cms/install_generator.rb +1 -0
- data/lib/generators/camaleon_cms/theme_template/app/apps/themes/my_theme/main_helper.rb +1 -4
- data/lib/generators/camaleon_cms/theme_template/app/apps/themes/my_theme/views/index.html.erb +1 -25
- data/lib/generators/camaleon_cms/theme_template/app/apps/themes/my_theme/views/layouts/index.html.erb +17 -18
- data/lib/plugin_routes.rb +4 -4
- metadata +25 -48
- data/app/apps/plugins/contact_form/admin_forms_controller.rb +0 -85
- data/app/apps/plugins/contact_form/assets/css/admin/form-builder/formbuilder.css +0 -70
- data/app/apps/plugins/contact_form/assets/css/contact-form.css +0 -8
- data/app/apps/plugins/contact_form/assets/css/front/railsform.scss +0 -94
- data/app/apps/plugins/contact_form/assets/css/readme.txt +0 -1
- data/app/apps/plugins/contact_form/assets/js/contact_form.js +0 -2
- data/app/apps/plugins/contact_form/assets/js/form-builder/formbuilder.js +0 -1271
- data/app/apps/plugins/contact_form/assets/js/form-builder/vendor.js +0 -3072
- data/app/apps/plugins/contact_form/assets/js/readme.txt +0 -1
- data/app/apps/plugins/contact_form/config/config.json +0 -35
- data/app/apps/plugins/contact_form/config/custom_models.rb +0 -3
- data/app/apps/plugins/contact_form/config/locales/readme.txt +0 -1
- data/app/apps/plugins/contact_form/config/locales/translation.yml +0 -315
- data/app/apps/plugins/contact_form/config/routes_admin.txt +0 -4
- data/app/apps/plugins/contact_form/config/routes_front.txt +0 -2
- data/app/apps/plugins/contact_form/contact_form_helper.rb +0 -154
- data/app/apps/plugins/contact_form/contact_form_html_helper.rb +0 -140
- data/app/apps/plugins/contact_form/front_controller.rb +0 -50
- data/app/apps/plugins/contact_form/models/contact_form.rb +0 -26
- data/app/apps/plugins/contact_form/views/admin_forms/_form.html.erb +0 -33
- data/app/apps/plugins/contact_form/views/admin_forms/edit.html.erb +0 -338
- data/app/apps/plugins/contact_form/views/admin_forms/index.html.erb +0 -65
- data/app/apps/plugins/contact_form/views/admin_forms/responses.html.erb +0 -60
- data/app/apps/plugins/contact_form/views/contact_form/_email_content.html.erb +0 -26
- data/app/apps/plugins/contact_form/views/forms_shorcode.html.erb +0 -28
- data/app/apps/plugins/contact_form/views/front/index.html.erb +0 -3
- data/app/apps/themes/camaleon_first/views/admin/settings.html.erb +0 -4
- data/app/apps/themes/new/assets/css/bootstrap/bootstrap.min.css +0 -6735
- data/app/apps/themes/new/assets/js/plugins/bootstrap/bootstrap.min.js +0 -6
- data/app/apps/themes/new/assets/js/plugins/jquery/jquery.min.js +0 -4
- data/lib/generators/camaleon_cms/gem_theme_generator.rb +0 -97
- data/lib/generators/camaleon_cms/gem_theme_template/app/assets/images/themes/my_plugin/image.png +0 -0
- data/lib/generators/camaleon_cms/gem_theme_template/app/assets/javascripts/themes/my_plugin/main.js +0 -14
- data/lib/generators/camaleon_cms/gem_theme_template/app/assets/stylesheets/themes/my_plugin/main.css +0 -13
- data/lib/generators/camaleon_cms/gem_theme_template/app/helpers/themes/my_plugin/main_helper.rb +0 -26
- data/lib/generators/camaleon_cms/gem_theme_template/app/views/themes/my_plugin/admin/settings.html.erb +0 -4
- data/lib/generators/camaleon_cms/gem_theme_template/app/views/themes/my_plugin/index.html.erb +0 -25
- data/lib/generators/camaleon_cms/gem_theme_template/app/views/themes/my_plugin/layouts/index.html.erb +0 -70
- data/lib/generators/camaleon_cms/gem_theme_template/app/views/themes/my_plugin/partials/readme.txt +0 -1
- data/lib/generators/camaleon_cms/gem_theme_template/config/camaleon_theme.json +0 -14
@@ -18,19 +18,19 @@ class CamaleonCmsUploader
|
|
18
18
|
# {files: {'file_name': {'name'=> 'a.jpg', key: '/test/a.jpg', url: '', url: '', size: '', format: '', thumb: 'thumb_url', type: '', created_at: '', dimension: '120x120'}}, folders: {'folder name' => {name: 'folder name', key: '/folder name', ...}}}
|
19
19
|
def objects(prefix = '/')
|
20
20
|
prefix = "/#{prefix}" unless prefix.starts_with?('/')
|
21
|
-
db = @current_site.get_meta(
|
21
|
+
db = @current_site.get_meta(cache_key, nil) || browser_files
|
22
22
|
db[prefix.gsub('//', '/')] || {files: {}, folders: {}}
|
23
23
|
end
|
24
24
|
|
25
25
|
# clean cached of files structure saved into DB
|
26
26
|
def clear_cache
|
27
|
-
@current_site.set_meta(
|
27
|
+
@current_site.set_meta(cache_key, nil)
|
28
28
|
end
|
29
29
|
|
30
30
|
# search for folders or files that includes search_text in their names
|
31
31
|
def search(search_text)
|
32
32
|
res = {files: {}, folders: {}}
|
33
|
-
(@current_site.get_meta(
|
33
|
+
(@current_site.get_meta(cache_key, nil) || browser_files).each do |folder_key, object|
|
34
34
|
res[:folders][folder_key] = get_file(folder_key) if !['', '/'].include?(folder_key) && folder_key.split('/').last.include?(search_text)
|
35
35
|
object[:files].each do |file_key, obj|
|
36
36
|
res[:files][file_key] = obj if file_key.include?(search_text)
|
@@ -49,7 +49,7 @@ class CamaleonCmsUploader
|
|
49
49
|
# file_parsed: (HASH) File parsed object
|
50
50
|
# objects_db: HASH Object where to add the current object (optional)
|
51
51
|
def cache_item(file_parsed, _objects_db = nil)
|
52
|
-
objects_db = _objects_db || @current_site.get_meta(
|
52
|
+
objects_db = _objects_db || @current_site.get_meta(cache_key, {}) || {}
|
53
53
|
prefix = File.dirname(file_parsed['key'])
|
54
54
|
|
55
55
|
s = prefix.split('/').clean_empty
|
@@ -62,7 +62,7 @@ class CamaleonCmsUploader
|
|
62
62
|
else
|
63
63
|
objects_db[prefix][:files][file_parsed['name']] = file_parsed
|
64
64
|
end
|
65
|
-
@current_site.set_meta(
|
65
|
+
@current_site.set_meta(cache_key, objects_db) if _objects_db.nil?
|
66
66
|
file_parsed
|
67
67
|
end
|
68
68
|
|
@@ -139,10 +139,17 @@ class CamaleonCmsUploader
|
|
139
139
|
# check if file with :key exist and return parsed_file, else return nil
|
140
140
|
def get_file(key, use_cache = true)
|
141
141
|
if use_cache
|
142
|
-
db = (@current_site.get_meta(
|
142
|
+
db = (@current_site.get_meta(cache_key) || {})[File.dirname(key)] || {}
|
143
143
|
else
|
144
144
|
db = objects(File.dirname(key)) unless use_cache
|
145
145
|
end
|
146
146
|
(db[:files][File.basename(key)] || db[:folders][File.basename(key)]) rescue nil
|
147
147
|
end
|
148
|
+
|
149
|
+
private
|
150
|
+
def cache_key
|
151
|
+
"cama_media_cache#{'_private' if is_private_uploader?}"
|
152
|
+
end
|
153
|
+
def is_private_uploader?() end
|
154
|
+
|
148
155
|
end
|
@@ -1,4 +1,11 @@
|
|
1
|
-
<%
|
1
|
+
<%
|
2
|
+
# #sample hook:
|
3
|
+
#def perspective_nav_menu_custom(args)
|
4
|
+
# args[:custom_menus]['pers_features'] = {link: "#{current_site.the_url(as_path: true)}#features", title: 'Features'}
|
5
|
+
# args[:custom_menus]['pers_portfolio'] = {link: "#{current_site.the_url(as_path: true)}#portfolio", title: 'Portfolio'}
|
6
|
+
# args[:custom_menus]['pers_contact_us'] = {link: "#{current_site.the_url(as_path: true)}#contact", title: 'Contact Us'}
|
7
|
+
# end
|
8
|
+
r = {custom_menus: {}, menu: @nav_menu}; hooks_run("nav_menu_custom", r) %>
|
2
9
|
<% if r[:custom_menus].present? %>
|
3
10
|
<div class="panel panel-default panel-toggled custom_menus">
|
4
11
|
<div class="panel-heading">
|
@@ -15,7 +22,7 @@
|
|
15
22
|
<% r[:custom_menus].each do |k, item| %>
|
16
23
|
<li>
|
17
24
|
<label class="class_slug">
|
18
|
-
<input type="checkbox" value="<%= item[:link] %>"> <%= item[:title] %>
|
25
|
+
<input type="checkbox" value="<%= item[:link] %>" data-label="<%= item[:title] %>"> <%= item[:title] %>
|
19
26
|
</label>
|
20
27
|
</li>
|
21
28
|
<% end %>
|
@@ -8,6 +8,6 @@
|
|
8
8
|
<%= f.text_field :slug, class: 'form-control menu-input-slug slug', 'data-parent' => 'nav_menu_name' %>
|
9
9
|
</div>
|
10
10
|
<div class="form-group text-right">
|
11
|
-
<button class="btn btn-primary" type=""><%= @nav_menu.new_record? ? t('camaleon_cms.admin.button.create_menu') : t('camaleon_cms.admin.button.update_menu') %></button>
|
11
|
+
<button class="btn btn-primary" type="submit"><%= @nav_menu.new_record? ? t('camaleon_cms.admin.button.create_menu') : t('camaleon_cms.admin.button.update_menu') %></button>
|
12
12
|
</div>
|
13
13
|
<% end %>
|
@@ -7,8 +7,8 @@
|
|
7
7
|
<li class="dd-item" data-id="<%= item.id %>">
|
8
8
|
<div class="dd-handle dd3-handle"></div>
|
9
9
|
<div class="dd3-content"><span><%= item_data[:name] %></span>
|
10
|
-
<span class="label label-default"><%= item.
|
11
|
-
<%= link_to('<i class="fa fa-edit"></i>'.html_safe, item_data[:url_edit] || url_for(action: :edit_menu_item, nav_menu_id: nav_menu.id, id: item.id), target: '_blank', title: t('.edit_menu_item', default: 'Edit Menu Item'), class: "item_#{item.
|
10
|
+
<span class="label label-default"><%= item.kind %></span>
|
11
|
+
<%= link_to('<i class="fa fa-edit"></i>'.html_safe, item_data[:url_edit] || url_for(action: :edit_menu_item, nav_menu_id: nav_menu.id, id: item.id), target: '_blank', title: t('.edit_menu_item', default: 'Edit Menu Item'), class: "item_#{item.kind}") %>
|
12
12
|
<%= link_to('<i class="fa fa-cog"></i>'.html_safe, {action: :custom_settings, nav_menu_id: nav_menu.id, id: item.id, cama_skip_breadcrumb: true}, class: 'custom_settings_link', title: t('.edit_custom_settings', default: 'Edit Configurations')) if custom_fields %>
|
13
13
|
<%= link_to('<i class="fa fa-times-circle"></i>'.html_safe, url_for(action: :delete_menu_item, nav_menu_id: nav_menu.id, id: item.id), class: 'delete_menu_item') %>
|
14
14
|
</div>
|
@@ -37,7 +37,7 @@
|
|
37
37
|
<% if current_theme.slug == theme[:key] && params[:set].nil? %>
|
38
38
|
<% r = {links: []}; hook_run(theme, "theme_options", r) %>
|
39
39
|
<% r[:links] << link_to(raw(' Import Data (data.json) '), admin_plugins_export_content_settings_path(file: ["app", "apps", 'themes', theme[:key], 'data.json'].join("/"))) if current_site.plugin_installed?('export_content') && File.exist?(File.join(theme["path"], "data.json")) %>
|
40
|
-
<% r[:links] << link_to('Settings',
|
40
|
+
<% r[:links] << link_to('Settings', cama_admin_settings_theme_path, class: "btn btn-primary") if File.exist?(current_theme.settings_file) %>
|
41
41
|
|
42
42
|
<% r[:links] << link_to(raw(' Import Data (data.json) '), "#", {'onclick' => "alert('You need to install import/export plugin to import sample data.'); return false;"}) if !current_site.plugin_installed?('export_content') && File.exist?(File.join(theme["path"], "data.json")) %>
|
43
43
|
<%= raw r[:links].join(" | ") %>
|
@@ -54,7 +54,6 @@
|
|
54
54
|
</div>
|
55
55
|
</div>
|
56
56
|
</div>
|
57
|
-
|
58
57
|
</div>
|
59
58
|
</div>
|
60
59
|
</div>
|
@@ -64,6 +63,5 @@
|
|
64
63
|
page.find(".preview_link").ajax_modal({mode: "iframe", modal_size: "modal-lg", callback: function(modal){
|
65
64
|
modal.children(".modal-dialog").css("width", "98%").find("iframe").css("min-height", $(window).height()-150);
|
66
65
|
}});
|
67
|
-
|
68
66
|
});
|
69
67
|
</script>
|
@@ -1,4 +1,5 @@
|
|
1
1
|
<% (files rescue {file['name'] => file}).each do |k, file| next if @media_formats.present? && !@media_formats.include?(file["format"]) && !@media_formats.include?(file["url"].split('.').last) %>
|
2
|
+
<% file['url'] = download_private_file_cama_admin_media_url(file: file[:url]) if params[:private].present? %>
|
2
3
|
<div class="media_item file_item <%= file["format"] %>_format" data-key="<%= file["name"] %>">
|
3
4
|
<div class="thumb">
|
4
5
|
<% case file["format"] %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<div id="cama_media_gallery" data-url_actions="<%= actions_cama_admin_media_path(actions: @show_file_actions, dimension: params[:dimension]) %>" data-versions="<%= params[:versions] %>" data-thumb_size="<%= params[:thumb_size] %>" data-formats="<%= @media_formats.join(",") %>" data-folder="<%= @folder %>" data-url="<%= ajax_cama_admin_media_path(actions: @show_file_actions) %>" data-dimension="<%= params[:dimension] %>">
|
1
|
+
<div id="cama_media_gallery" data-url_actions="<%= actions_cama_admin_media_path(actions: @show_file_actions, dimension: params[:dimension]) %>" data-extra-params="<%= {versions: params[:versions], thumb_size: params[:thumb_size], formats: @media_formats.join(","), media_formats: @media_formats.join(","), dimension: params[:dimension], private: params[:private]}.to_json %>" data-versions="<%= params[:versions] %>" data-thumb_size="<%= params[:thumb_size] %>" data-formats="<%= @media_formats.join(",") %>" data-folder="<%= @folder %>" data-url="<%= ajax_cama_admin_media_path(actions: @show_file_actions) %>" data-dimension="<%= params[:dimension] %>">
|
2
2
|
<div class="panel panel-default">
|
3
3
|
<div class="panel-heading">
|
4
4
|
<div class="row">
|
@@ -42,13 +42,13 @@
|
|
42
42
|
</ul>
|
43
43
|
<div class="tab-content">
|
44
44
|
<div role="tabpanel" class="tab-pane active" id="cama_media_upload">
|
45
|
-
<div class="cama_media_fileuploader" data-url="<%= upload_cama_admin_media_path(actions: @show_file_actions, dimension: params[:dimension]) %>" data-dragDropStr="<%= t("camaleon_cms.admin.button.drag_drop") %>" data-uploadStr="<%= t("camaleon_cms.admin.button.upload_file") %>"><%= t("camaleon_cms.admin.button.upload_file") %></div>
|
45
|
+
<div class="cama_media_fileuploader" data-input-id="cama-upload-files" data-url="<%= upload_cama_admin_media_path(actions: @show_file_actions, dimension: params[:dimension]) %>" data-dragDropStr="<%= t("camaleon_cms.admin.button.drag_drop") %>" data-uploadStr="<%= t("camaleon_cms.admin.button.upload_file") %>"><%= t("camaleon_cms.admin.button.upload_file") %></div>
|
46
46
|
<hr/>
|
47
47
|
<form id="cama_media_external">
|
48
48
|
<fieldset>
|
49
49
|
<legend><%= t("camaleon_cms.admin.media.external", default: 'From URL') %></legend>
|
50
50
|
<div class="form-group">
|
51
|
-
<input type="text" class="form-control" placeholder="http://..." class="required">
|
51
|
+
<input type="text" name="remote_file" class="form-control" placeholder="http://..." class="required">
|
52
52
|
</div>
|
53
53
|
<div class="form-group">
|
54
54
|
<button type="submit" class="btn btn-primary"><%= t("camaleon_cms.admin.button.submit") %></button>
|
@@ -73,7 +73,7 @@
|
|
73
73
|
<!-- has comments? -->
|
74
74
|
<% if @post.manage_comments?(@post_type) %>
|
75
75
|
<div class="form-group">
|
76
|
-
<label class="control-label"><%= check_box("meta", "has_comments", {checked: (
|
76
|
+
<label class="control-label"><%= check_box("meta", "has_comments", {checked: ((params[:meta][:has_comments] == '1' rescue false) || (@post.new_record? ? true : @post.get_meta('has_comments').to_s.cama_true?)) }) %> <%= t('camaleon_cms.admin.post_type.permit_comments')%></label>
|
77
77
|
</div>
|
78
78
|
<% end %>
|
79
79
|
<% if @post_type.get_option('has_featured', false) %>
|
@@ -53,7 +53,7 @@
|
|
53
53
|
|
54
54
|
<!-- render all custom fields assigned to this post -->
|
55
55
|
<%
|
56
|
-
r = {render: 'camaleon_cms/admin/settings/custom_fields/render', record: @post, field_groups: @post.get_field_groups(
|
56
|
+
r = {render: 'camaleon_cms/admin/settings/custom_fields/render', record: @post, field_groups: @post.get_field_groups(), show_shortcode: true}
|
57
57
|
hooks_run('posts_form_custom_fields_render', r)
|
58
58
|
%>
|
59
59
|
<%= render partial: r[:render], locals: {record: r[:record], field_groups: r[:field_groups], show_shortcode: r[:show_shortcode]} %>
|
@@ -40,6 +40,10 @@
|
|
40
40
|
<label for=""><%= t('camaleon_cms.admin.settings.comment_status') %></label><br>
|
41
41
|
<%= check_box :options, :comment_status, {checked: @site.front_comment_status == "approved"}, "approved", "pending" %>
|
42
42
|
</div>
|
43
|
+
<div class="form-group">
|
44
|
+
<label for=""><%= t('camaleon_cms.admin.settings.comment_anonymous', default: 'Permit anonymous comments?') %></label><br>
|
45
|
+
<%= check_box :options, :permit_anonimos_comment, {checked: @site.get_option('permit_anonimos_comment', false)}, "true", "" %>
|
46
|
+
</div>
|
43
47
|
<div class="form-group">
|
44
48
|
<label for=""><%= t('camaleon_cms.admin.settings.allow_user_registration') %></label><br>
|
45
49
|
<%= check_box :meta, :permit_create_account, {checked: @site.get_option('permit_create_account', false), class: "icheckbox0"}, "true", "" %>
|
@@ -21,6 +21,9 @@
|
|
21
21
|
</div>
|
22
22
|
<div class="panel-body">
|
23
23
|
<%= hidden_field(:fields, :id, index: @index, value: @item_id) %>
|
24
|
+
<%= hidden_field(:field_options, :field_key, index: @index, value: @key) %>
|
25
|
+
<%= hidden_field(:field_options, :label_eval, index: @index, value: @item_options_value[:label_eval].to_s.cama_true? ? 'true' : '') %>
|
26
|
+
<%= hidden_field(:field_options, :panel_hidden, index: @index, value: @item_options_value[:panel_hidden], class: 'input-panel-hidden') %>
|
24
27
|
<div class="form-group input-group-sm">
|
25
28
|
<label for=""><%= t('camaleon_cms.admin.table.name') %></label><br>
|
26
29
|
<%= text_field(:fields, :name, class: "form-control text-title", index: @index, value: @item_value[:name]? @item_value[:name] : "#{t('camaleon_cms.admin.settings.untitled')} #{@field_config[:label]}") %>
|
@@ -33,16 +36,12 @@
|
|
33
36
|
<label for=""><%= t('camaleon_cms.admin.table.description') %></label><br>
|
34
37
|
<%= text_area(:fields, :description, class: "form-control", index: @index, value: @item_value[:description]) %>
|
35
38
|
</div>
|
36
|
-
|
37
|
-
<%= hidden_field(:field_options, :field_key, index: @index, value: @key) %>
|
38
|
-
<%= hidden_field(:field_options, :panel_hidden, index: @index, value: @item_options_value[:panel_hidden], class: 'input-panel-hidden') %>
|
39
|
-
|
40
39
|
<%
|
41
40
|
html = ''
|
42
41
|
if @field_config[:extra_fields].present?
|
43
|
-
|
44
42
|
@field_config[:extra_fields].each do |input|
|
45
43
|
type = input[:type]
|
44
|
+
html += '<div class="form-group">'
|
46
45
|
html += "<label>#{input[:label]}</label>" if input[:label].present?
|
47
46
|
case type
|
48
47
|
when 'select'
|
@@ -65,10 +64,11 @@
|
|
65
64
|
html += "#{text_field(:field_options, input[:key], index: @index , value: @item_options_value[input[:key].to_sym] || '', class: 'form-control') }"
|
66
65
|
end
|
67
66
|
html += "<small>#{input[:description]}</small>" if input[:description].present?
|
67
|
+
html += '</div>'
|
68
68
|
end
|
69
69
|
end
|
70
70
|
%>
|
71
|
-
<div
|
71
|
+
<div>
|
72
72
|
<%= raw html %>
|
73
73
|
</div>
|
74
74
|
<% if @field_config[:options][:multiple_options].present? %>
|
@@ -47,8 +47,6 @@
|
|
47
47
|
</div>
|
48
48
|
</div>
|
49
49
|
</div>
|
50
|
-
|
51
|
-
|
52
50
|
<script>
|
53
51
|
jQuery(function($){
|
54
52
|
var values = <%= raw(values.to_json) %>;
|
@@ -63,7 +61,6 @@
|
|
63
61
|
if(data.key) field.find('.input-key').val(data.key);
|
64
62
|
if(data.value) field.find('.input-value').val(data.value);
|
65
63
|
$sortable.append(field);
|
66
|
-
|
67
64
|
}
|
68
65
|
if(values.length > 0) {
|
69
66
|
$.each(values, function(i, data){
|
@@ -83,20 +80,14 @@
|
|
83
80
|
}
|
84
81
|
return false;
|
85
82
|
});
|
86
|
-
//$sortable.find('li:first .fa-times').hide();
|
87
83
|
$sortable.sortable({
|
88
84
|
handle: ".fa-arrows"
|
89
85
|
});
|
90
86
|
}
|
91
|
-
|
92
87
|
$content.find('.clone-field').remove();
|
93
88
|
});
|
94
89
|
</script>
|
95
|
-
|
96
|
-
|
97
90
|
</div>
|
98
|
-
|
99
|
-
|
100
91
|
</div>
|
101
92
|
|
102
93
|
|
@@ -1,61 +1,45 @@
|
|
1
|
-
<%
|
2
|
-
<% field_groups.each do |group| %>
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
fields.each do |field| # iterate all fields of current group
|
17
|
-
@field = field.decorate
|
18
|
-
@field = @field || {options:{}}
|
19
|
-
@rand = "#{field.id}#{rand(99)}"
|
20
|
-
values = record.get_fields(@field.slug)
|
21
|
-
values = params[@field_name][@field.slug.to_sym][:values] if values.blank? && params[@field_name].present?
|
22
|
-
is_disabled = @field.options[:disabled].present? || @field.options[:readonly].present?
|
23
|
-
obj_class = record.class.name.parseCamaClass.downcase
|
24
|
-
%>
|
25
|
-
<div class="item-custom-field c-field-<%= @field.options[:field_key] %>">
|
26
|
-
<label for="input-<%= @rand %>">
|
27
|
-
<%= @field.options[:label_eval].present? ? eval(@field.name) : @field.name %>
|
28
|
-
<%= raw "<em class='text-danger'>*</em>" if @field.options[:required].to_s.to_bool %>
|
29
|
-
<% if ["post", "posttype", "category", "postTag", "site", "user", "navmenu", "theme"].include?(obj_class) %>
|
30
|
-
<small class="shortcode_field"><br><%= raw cama_shortcode_print("[data field='#{@field.slug}' #{"object='#{obj_class}' #{"id='#{record.id}'" if obj_class != "Theme" }" unless record.new_record?}]") %></small>
|
1
|
+
<% default_use = record.new_record?; field_name = (defined?(fields_name) ? fields_name : "field_options").to_sym; obj_class = record.class.name.parseCamaClass.downcase %>
|
2
|
+
<% field_groups.each do |group| fields = group.fields.where.not(slug: record.get_option("skip_fields", [])).eager_load(:metas); next if fields.size == 0; group_field_data = {} %>
|
3
|
+
<div class="panel panel-default panel-lite c-field-group" id="custom_field_group_<%= group.id %>">
|
4
|
+
<div class="panel-heading <%= 'hidden' if defined?(skip_panel) || group.slug == "_default" %>">
|
5
|
+
<h3 class="panel-title"><%= group.name %></h3>
|
6
|
+
<ul class="panel-controls"><li><a class="panel-collapse" href='#'><span class='fa fa-angle-down'></span></a></li></ul>
|
7
|
+
</div>
|
8
|
+
<div class='panel-body'>
|
9
|
+
<%= content_tag :p, group.description if group.description.present? %>
|
10
|
+
<div class="custom_sortable_grouped hidden">
|
11
|
+
<% if group.is_repeat %>
|
12
|
+
<div class="text-right header-field-grouped bg-info">
|
13
|
+
<i class="fa fa-angle-down toggleable" style="cursor: pointer"></i>
|
14
|
+
<i style="cursor: pointer" class="fa fa-times del text-danger"></i> <i style="cursor: move" class="fa fa-arrows move"></i>
|
15
|
+
</div>
|
31
16
|
<% end %>
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
17
|
+
<div class="fields_container">
|
18
|
+
<% fields.decorate.each do |field| is_disabled = field.options[:disabled].present? || field.options[:readonly].present?; group_field_data[field.slug] = {default_value: field.options[:default_value], is_disabled: is_disabled, id: field.id, multiple: field.options[:multiple].to_s.to_bool && !is_disabled, kind: field.get_option('field_key')} %>
|
19
|
+
<div class="item-custom-field c-field-<%= field.options[:field_key] %>">
|
20
|
+
<input name="<%= field_name %>[<%= field.slug %>][id]" type="hidden" value="<%= field.id %>"/>
|
21
|
+
<input name="<%= field_name %>[<%= field.slug %>][group_number]" class="cama_custom_group_number" type="hidden" value="0"/>
|
22
|
+
<label>
|
23
|
+
<%= field.options[:label_eval].present? ? eval(field.name) : field.name %>
|
24
|
+
<%= raw "<em class='text-danger'>*</em>" if field.options[:required].to_s.to_bool %>
|
25
|
+
<% if ["post", "posttype", "category", "postTag", "site", "user", "navmenu", "theme"].include?(obj_class) %>
|
26
|
+
<small class="shortcode_field"><br><%= raw cama_shortcode_print("[data field='#{field.slug}' #{"object='#{obj_class}' #{"id='#{record.id}'" if obj_class != "Theme" }" unless record.new_record?}]") %></small>
|
27
|
+
<% end %>
|
28
|
+
</label>
|
29
|
+
<% if field.description.present? %>
|
30
|
+
<p><small><%= field.options[:label_eval].present? ? eval(field.description) : field.description %></small></p>
|
31
|
+
<% end %>
|
32
|
+
<div class="editor-custom-fields content-field-<%= field.id %>" data-add_field_title="<%= t('camaleon_cms.admin.button.add_new_field', default: 'Add new field')%>">
|
33
|
+
<%= render(field.get_option('render') || cama_custom_field_elements[field.get_option('field_key').to_sym][:render] || "camaleon_cms/admin/settings/custom_fields/fields/#{field.options[:field_key]}", field: field, values: nil, is_disabled: is_disabled, default_use: default_use, field_name: field_name) %>
|
43
34
|
</div>
|
44
|
-
|
45
|
-
|
46
|
-
</div>
|
35
|
+
</div>
|
36
|
+
<% end %>
|
47
37
|
</div>
|
48
|
-
|
49
|
-
<ul id="sortable-<%= @rand %>"></ul>
|
50
|
-
|
51
|
-
<% if @field.options[:multiple].to_s.to_bool && !is_disabled %>
|
52
|
-
<div class="field_multiple_btn">
|
53
|
-
<a class="btn btn-warning btn-sm btn-add-field" href="#"> <i class="fa fa-plus"></i> <%= t('camaleon_cms.admin.button.add_new_field')%></a>
|
54
|
-
</div>
|
55
|
-
<% end %>
|
38
|
+
<script> jQuery(function(){ build_custom_field_group(<%= raw(params[:field_options].present? ? (r = []; params[:field_options].each{|k, v| val = {}; v.each{|kk, vv| val["#{kk}"] = vv['values'].values; }; r << val }; r) : record.get_fields_grouped(fields.pluck(:slug).uniq).to_json) %>, '<%= group.id %>', <%= raw group_field_data.to_json %>, <%= group.is_repeat %>); }); </script>
|
56
39
|
</div>
|
57
|
-
<script> jQuery(function(){ build_custom_field(<%= raw(values.to_json) %>, <%= @field.options[:multiple].to_s.to_bool %>, '<%= @field.options[:field_key] %>', '<%= @rand %>', '<%= @field.options[:default_value] if record.new_record? %>'); }); </script>
|
58
40
|
</div>
|
59
|
-
|
60
|
-
|
41
|
+
<% if group.is_repeat %>
|
42
|
+
<div class="panel-footer text-right"><a href="#" class="btn btn-warning duplicate_cutom_group btn-xs"><i class="fa fa-plus"></i> <%= t('camaleon_cms.admin.button.add_new_group', default: 'Add new group')%></a></div>
|
43
|
+
<% end %>
|
44
|
+
</div>
|
61
45
|
<% end %>
|
@@ -1,4 +1,4 @@
|
|
1
1
|
<div class="group-input-fields-content input-group">
|
2
|
-
<input type="url" name="<%=
|
2
|
+
<input type="url" name="<%= field_name %>[<%= field.slug %>][values][]" class="data-error-place-parent form-control input-value <%= "required" if field.options[:required].to_s.to_bool %>" />
|
3
3
|
<span class="input-group-addon btn_upload" onclick="load_upload_audio_field(this);return false;"><i class="fa fa-upload"></i> <%= t('camaleon_cms.admin.button.upload_audio')%></span>
|
4
4
|
</div>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<div class="group-input-fields-content" data-callback-
|
2
|
-
<div class="checkbox"><label><input type="checkbox" value="<%=
|
1
|
+
<div class="group-input-fields-content" data-callback-render="custom_field_checkbox_val">
|
2
|
+
<div class="checkbox"><label><input type="checkbox" value="<%= field.options[:default_value] || 1 %>" name="<%= field_name %>[<%= field.slug %>][values][]" <%= 'checked' if false %> > <%= field.the_name %> </label></div>
|
3
3
|
</div>
|
@@ -1,5 +1,5 @@
|
|
1
|
-
<div class="group-input-fields-content" data-callback-
|
2
|
-
<%
|
3
|
-
<div class="checkbox"><label><input type="checkbox" value="<%= option[:value] %>" name="<%=
|
1
|
+
<div class="group-input-fields-content" data-callback-render="custom_field_checkboxs_val">
|
2
|
+
<% field.options[:multiple_options].each do |option| %>
|
3
|
+
<div class="checkbox"><label><input type="checkbox" value="<%= option[:value] %>" name="<%= field_name %>[<%= field.slug %>][values][]" <%= 'checked' if default_use && option[:default].present? %> > <%= option[:title] %></label></div>
|
4
4
|
<% end %>
|
5
5
|
</div>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<% add_asset_library('colorpicker') %>
|
2
|
-
<div class="group-input-fields-content" data-callback-
|
3
|
-
<div data-color-format="<%=
|
4
|
-
<input type="text" name="<%=
|
2
|
+
<div class="group-input-fields-content" data-callback-render="custom_field_colorpicker_val" style="max-width: 300px;">
|
3
|
+
<div data-color-format="<%= field.options[:color_format].present? ? field.options[:color_format] : 'hex' %>" data-color="#fff" class="input-group color my-colorpicker">
|
4
|
+
<input type="text" name="<%= field_name %>[<%= field.slug %>][values][]" class="data-error-place-parent form-control input-value <%= "required" if field.options[:required].to_s.to_bool %>" />
|
5
5
|
<span class="input-group-addon"><i></i></span>
|
6
6
|
</div>
|
7
7
|
</div>
|
@@ -1,6 +1,6 @@
|
|
1
|
-
<div class="group-input-fields-content" data-callback-
|
2
|
-
<div class="input-group date date-input-box <%= "is_datetimepicker" if
|
3
|
-
<input type="text" data-locale='<%= current_locale %>' name="<%=
|
1
|
+
<div class="group-input-fields-content" data-callback-render="custom_field_date" style="max-width: 300px;">
|
2
|
+
<div class="input-group date date-input-box <%= "is_datetimepicker" if field.options[:type_date].to_s.to_bool %>">
|
3
|
+
<input type="text" data-locale='<%= current_locale %>' name="<%= field_name %>[<%= field.slug %>][values][]" class="data-error-place-parent input-value form-control <%= "required" if field.options[:required].to_s.to_bool %>" />
|
4
4
|
<span class="add-on input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
|
5
5
|
</div>
|
6
6
|
</div>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<div class="group-input-fields-content" data-callback-
|
2
|
-
<textarea id="" name="<%=
|
1
|
+
<div class="group-input-fields-content" data-callback-render="custom_field_editor">
|
2
|
+
<textarea id="" name="<%= field_name %>[<%= field.slug %>][values][]" rows="8" class="form-control <%= 'is_translate' if field.options[:translate].to_s.to_bool %> input-value <%= "required" if field.options[:required].to_s.to_bool %>" <%= "readonly" if true %> <%= "disabled" if field.options[:disabled].present? %>></textarea>
|
3
3
|
</div>
|
@@ -1,3 +1,3 @@
|
|
1
1
|
<div class="group-input-fields-content">
|
2
|
-
<input type="email" name="<%=
|
2
|
+
<input type="email" name="<%= field_name %>[<%= field.slug %>][values][]" class="form-control email input-value <%= "required" if field.options[:required].to_s.to_bool %>" />
|
3
3
|
</div>
|
@@ -1,8 +1,8 @@
|
|
1
|
-
<div class="group-input-fields-content row" data-callback-
|
1
|
+
<div class="group-input-fields-content row" data-callback-render="custom_field_field_attrs_val">
|
2
2
|
<div class="col-md-4">
|
3
|
-
<input type="text" name="<%=
|
3
|
+
<input type="text" name="<%= field_name %>[<%= field.slug %>][values][][attr]" placeholder="<%= t('camaleon_cms.admin.table.attribute') %>" class="<%= 'is_translate' if field.get_option('translate') %> form-control input-attr <%= "required" if field.options[:required].to_s.to_bool %>" />
|
4
4
|
</div>
|
5
5
|
<div class="col-md-8">
|
6
|
-
<input type="text" name="<%=
|
6
|
+
<input type="text" name="<%= field_name %>[<%= field.slug %>][values][][value]" placeholder="<%= t('camaleon_cms.admin.table.value') %>" class="<%= 'is_translate' if field.get_option('translate') %> form-control input-value" />
|
7
7
|
</div>
|
8
8
|
</div>
|
@@ -1,4 +1,4 @@
|
|
1
1
|
<div class="group-input-fields-content input-group">
|
2
|
-
<input type="url" data-formats="<%=
|
2
|
+
<input type="url" data-formats="<%= field.options[:formats] || "" %>" name="<%= field_name %>[<%= field.slug %>][values][]" class="form-control input-value data-error-place-parent file_format <%= "required" if field.options[:required].to_s.to_bool %>" />
|
3
3
|
<span class="input-group-addon btn_upload" onclick="load_upload_file_field(this);return false;"><i class="fa fa-upload"></i> <%= t('camaleon_cms.admin.button.upload_file') %></span>
|
4
4
|
</div>
|