coalla-cms 0.4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +81 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +168 -0
- data/Rakefile +29 -0
- data/app/assets/fonts/glyphicons/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/glyphicons/glyphicons-halflings-regular.svg +229 -0
- data/app/assets/fonts/glyphicons/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/glyphicons/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/images/ajax-loader.gif +0 -0
- data/app/assets/images/blank.gif +0 -0
- data/app/assets/images/bootstrap/glyphicons-halflings-white.png +0 -0
- data/app/assets/images/bootstrap/glyphicons-halflings.png +0 -0
- data/app/assets/javascripts/admin/admin.js +295 -0
- data/app/assets/javascripts/admin/custom_admin.js +0 -0
- data/app/assets/javascripts/admin/jquery-migrate.min.js +2 -0
- data/app/assets/javascripts/admin/photo_uploader.js +67 -0
- data/app/assets/javascripts/admin/vendor/bootstrap.min.js +7 -0
- data/app/assets/javascripts/admin/vendor/jquery-ui-timepicker-addon-ru.js +40 -0
- data/app/assets/javascripts/admin/vendor/jquery.tagsinput.js +365 -0
- data/app/assets/javascripts/admin/vendor/jquery.tokeninput.patched.js +875 -0
- data/app/assets/javascripts/admin/vendor/underscore-min.js +5 -0
- data/app/assets/javascripts/ckeditor/plugins/autogrow/plugin.js +209 -0
- data/app/assets/javascripts/ckeditor/plugins/mediaembed/icons/hidpi/mediaembed.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/mediaembed/icons/mediaembed.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/mediaembed/plugin.js +64 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/LICENSE.txt +303 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/ad-gallery-css-diff.htm +831 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/ad_next.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/ad_prev.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/ad_scroll_back.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/ad_scroll_forward.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/jquery.ad-gallery.css +185 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/jquery.ad-gallery.js +984 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/jquery.ad-gallery.min - ref.js +10 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/jquery.ad-gallery.min.js +1 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/loader.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/opa75.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/placeholder.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/ad-gallery/trans.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/blank.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/fancybox_loading.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/fancybox_loading@2x.gif +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/fancybox_overlay.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/fancybox_sprite.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/fancybox_sprite@2x.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/helpers/fancybox_buttons.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/helpers/jquery.fancybox-buttons.css +97 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/helpers/jquery.fancybox-buttons.js +122 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/helpers/jquery.fancybox-media.js +199 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/helpers/jquery.fancybox-thumbs.css +55 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/helpers/jquery.fancybox-thumbs.js +162 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/jquery.fancybox.css +274 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/jquery.fancybox.js +2020 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/3rdParty/fancybox2/jquery.fancybox.pack.js +46 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/README.md +66 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/dialogs/slideshow.js +1396 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/dialogs/slideshow.min.js +1 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/icons/placeholder.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/icons/slideshow.png +0 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/lang/Serbian_translation.txt +9 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/lang/el.js +37 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/lang/en.js +35 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/lang/fr.js +35 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/lang/ru.js +35 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/lang/sr-latn.js +35 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/lang/sr.js +35 -0
- data/app/assets/javascripts/ckeditor/plugins/slideshow/plugin.js +217 -0
- data/app/assets/stylesheets/admin/admin.scss +302 -0
- data/app/assets/stylesheets/admin/custom_admin.scss +1 -0
- data/app/assets/stylesheets/admin/vendor/bootstrap.min.css +14 -0
- data/app/assets/stylesheets/admin/vendor/jquery.tagsinput.css +99 -0
- data/app/assets/stylesheets/admin/vendor/token-input-facebook.patched.css +126 -0
- data/app/assets/stylesheets/admin/vendor/token-input.patched.css +116 -0
- data/app/controllers/admin/autocomplete_controller.rb +14 -0
- data/app/controllers/admin/image_upload_controller.rb +27 -0
- data/app/controllers/admin/lookups_controller.rb +47 -0
- data/app/controllers/admin/sortable_controller.rb +26 -0
- data/app/controllers/concerns/admin/path_history.rb +39 -0
- data/app/helpers/admin/search_helper.rb +59 -0
- data/app/helpers/admin_helper.rb +29 -0
- data/app/helpers/common_helper.rb +16 -0
- data/app/helpers/lookup_helper.rb +45 -0
- data/app/helpers/nested_fields_helper.rb +12 -0
- data/app/helpers/static_text_formatter.rb +25 -0
- data/app/helpers/twitter_builder_helper.rb +253 -0
- data/app/helpers/twitter_form_builder.rb +196 -0
- data/app/models/file_upload.rb +19 -0
- data/app/models/lookup.rb +6 -0
- data/app/uploaders/file_uploader.rb +10 -0
- data/app/uploaders/generic_image_uploader.rb +74 -0
- data/app/utils/admin_structure.rb +67 -0
- data/app/utils/bootstrap_link_renderer.rb +40 -0
- data/app/utils/table_helpers.rb +196 -0
- data/app/views/admin/base/_sort.haml +34 -0
- data/app/views/admin/common/_file_upload_template.haml +14 -0
- data/app/views/admin/common/_header.html.haml +27 -0
- data/app/views/admin/common/_image_upload_template.html.haml +40 -0
- data/app/views/admin/common/_menu.html.haml +2 -0
- data/app/views/admin/common/_menu_section.haml +10 -0
- data/app/views/admin/common/_menu_separator.haml +1 -0
- data/app/views/admin/common/_nested_fields_for.html.haml +5 -0
- data/app/views/admin/common/_nested_fields_for_element.html.haml +5 -0
- data/app/views/admin/common/_slide.haml +41 -0
- data/app/views/admin/common/_slides.html.haml +17 -0
- data/app/views/admin/common/_table_template.html.haml +14 -0
- data/app/views/admin/common/_upload_form.html.haml +5 -0
- data/app/views/admin/common/image_uploaded.js.haml +7 -0
- data/app/views/admin/common/upload_failed.js.erb +11 -0
- data/app/views/admin/common/upload_image.js.erb +6 -0
- data/app/views/admin/home/dashboard.html.haml +5 -0
- data/app/views/admin/lookups/_form.html.haml +16 -0
- data/app/views/admin/lookups/edit.html.haml +5 -0
- data/app/views/admin/lookups/index.html.haml +6 -0
- data/app/views/layouts/admin.html.haml +38 -0
- data/app/views/structure/_section.haml +16 -0
- data/coalla-cms.gemspec +39 -0
- data/config/locales/devise.ru.yml +59 -0
- data/config/locales/will_paginate.ru.yml +6 -0
- data/lib/coalla/cms/engine.rb +16 -0
- data/lib/coalla/cms/version.rb +5 -0
- data/lib/coalla/ext/mapper.rb +14 -0
- data/lib/coalla/orm/page_slider.rb +53 -0
- data/lib/coalla/orm/relation.rb +32 -0
- data/lib/coalla/orm/sanitized.rb +16 -0
- data/lib/coalla/sanitize/config/default.rb +526 -0
- data/lib/coalla-cms.rb +16 -0
- data/lib/generators/coalla/cms/create_admin_generator.rb +50 -0
- data/lib/generators/coalla/cms/create_admin_login_view_generator.rb +23 -0
- data/lib/generators/coalla/cms/file_uploads/install_generator.rb +35 -0
- data/lib/generators/coalla/cms/file_uploads/mount_generator.rb +34 -0
- data/lib/generators/coalla/cms/file_uploads/templates/add_column_migration.rb.erb +5 -0
- data/lib/generators/coalla/cms/file_uploads/templates/migration.rb +17 -0
- data/lib/generators/coalla/cms/image/install_generator.rb +39 -0
- data/lib/generators/coalla/cms/image/mount_generator.rb +50 -0
- data/lib/generators/coalla/cms/image/templates/migration.rb.erb +9 -0
- data/lib/generators/coalla/cms/image/templates/model.rb.erb +5 -0
- data/lib/generators/coalla/cms/image/templates/mount/migration.rb.erb +6 -0
- data/lib/generators/coalla/cms/image/templates/mount/uploader.rb.erb +3 -0
- data/lib/generators/coalla/cms/image/templates/uploader.rb.erb +3 -0
- data/lib/generators/coalla/cms/init_generator.rb +113 -0
- data/lib/generators/coalla/cms/lookups/install_generator.rb +43 -0
- data/lib/generators/coalla/cms/lookups/templates/migration.rb +13 -0
- data/lib/generators/coalla/cms/market/install_generator.rb +71 -0
- data/lib/generators/coalla/cms/market/templates/controllers/categories_controller.rb +47 -0
- data/lib/generators/coalla/cms/market/templates/controllers/products_controller.rb +50 -0
- data/lib/generators/coalla/cms/market/templates/controllers/properties_controller.rb +59 -0
- data/lib/generators/coalla/cms/market/templates/market.rb +5 -0
- data/lib/generators/coalla/cms/market/templates/market.ru.yml +53 -0
- data/lib/generators/coalla/cms/market/templates/migrations/create_categories.rb +15 -0
- data/lib/generators/coalla/cms/market/templates/migrations/create_product_properties.rb +18 -0
- data/lib/generators/coalla/cms/market/templates/migrations/create_products.rb +18 -0
- data/lib/generators/coalla/cms/market/templates/migrations/create_properties.rb +11 -0
- data/lib/generators/coalla/cms/market/templates/models/category.rb +36 -0
- data/lib/generators/coalla/cms/market/templates/models/product.rb +16 -0
- data/lib/generators/coalla/cms/market/templates/models/product_property.rb +14 -0
- data/lib/generators/coalla/cms/market/templates/models/property.rb +7 -0
- data/lib/generators/coalla/cms/market/templates/views/categories/_form.html.haml +10 -0
- data/lib/generators/coalla/cms/market/templates/views/categories/edit.html.haml +5 -0
- data/lib/generators/coalla/cms/market/templates/views/categories/index.html.haml +17 -0
- data/lib/generators/coalla/cms/market/templates/views/categories/new.html.haml +4 -0
- data/lib/generators/coalla/cms/market/templates/views/products/_form.html.haml +17 -0
- data/lib/generators/coalla/cms/market/templates/views/products/_product_property_fields.html.haml +13 -0
- data/lib/generators/coalla/cms/market/templates/views/products/edit.html.haml +5 -0
- data/lib/generators/coalla/cms/market/templates/views/products/index.html.haml +17 -0
- data/lib/generators/coalla/cms/market/templates/views/products/new.html.haml +4 -0
- data/lib/generators/coalla/cms/market/templates/views/properties/_form.html.haml +9 -0
- data/lib/generators/coalla/cms/market/templates/views/properties/edit.html.haml +5 -0
- data/lib/generators/coalla/cms/market/templates/views/properties/index.html.haml +15 -0
- data/lib/generators/coalla/cms/market/templates/views/properties/new.html.haml +4 -0
- data/lib/generators/coalla/cms/news/scaffold_generator.rb +50 -0
- data/lib/generators/coalla/cms/news/templates/entity.rb.erb +10 -0
- data/lib/generators/coalla/cms/news/templates/entity_controller_template.rb.erb +47 -0
- data/lib/generators/coalla/cms/news/templates/entity_image_uploader.rb.erb +7 -0
- data/lib/generators/coalla/cms/news/templates/migration.rb.erb +15 -0
- data/lib/generators/coalla/cms/news/templates/views/_form.haml.erb +16 -0
- data/lib/generators/coalla/cms/news/templates/views/edit.haml.erb +5 -0
- data/lib/generators/coalla/cms/news/templates/views/index.haml.erb +18 -0
- data/lib/generators/coalla/cms/news/templates/views/new.haml.erb +5 -0
- data/lib/generators/coalla/cms/orm_helpers.rb +31 -0
- data/lib/generators/coalla/cms/scaffold_generator.rb +53 -0
- data/lib/generators/coalla/cms/scaffold_helper.rb +11 -0
- data/lib/generators/coalla/cms/setup_admin_generator.rb +60 -0
- data/lib/generators/coalla/cms/setup_routes_generator.rb +28 -0
- data/lib/generators/coalla/cms/slider/init_generator.rb +41 -0
- data/lib/generators/coalla/cms/slider/templates/migration.rb.erb +25 -0
- data/lib/generators/coalla/cms/slider/templates/slider_image.rb.erb +10 -0
- data/lib/generators/coalla/cms/slider/templates/slider_image_uploader.rb.erb +7 -0
- data/lib/generators/coalla/cms/slider/templates/slider_upload_controller.rb.erb +19 -0
- data/lib/generators/coalla/cms/templates/.gitattributes +4 -0
- data/lib/generators/coalla/cms/templates/.gitignore +86 -0
- data/lib/generators/coalla/cms/templates/activerecord.ru.yml +13 -0
- data/lib/generators/coalla/cms/templates/assets.rb +13 -0
- data/lib/generators/coalla/cms/templates/controllers/admin/base_controller.rb.erb +35 -0
- data/lib/generators/coalla/cms/templates/controllers/admin/home_controller.rb.erb +6 -0
- data/lib/generators/coalla/cms/templates/controllers/admin/scaffold_controller_template.rb.erb +45 -0
- data/lib/generators/coalla/cms/templates/controllers/home_controller.rb.erb +6 -0
- data/lib/generators/coalla/cms/templates/database.yml.erb +35 -0
- data/lib/generators/coalla/cms/templates/devise.ru.yml +59 -0
- data/lib/generators/coalla/cms/templates/initializers/carrierwave.rb +51 -0
- data/lib/generators/coalla/cms/templates/migration.rb +11 -0
- data/lib/generators/coalla/cms/templates/migration_existing.rb +15 -0
- data/lib/generators/coalla/cms/templates/schedule.rb +3 -0
- data/lib/generators/coalla/cms/templates/structure.rb +0 -0
- data/lib/generators/coalla/cms/templates/views/admin/scaffold_template/_form.html.haml.erb +14 -0
- data/lib/generators/coalla/cms/templates/views/admin/scaffold_template/edit.html.haml.erb +5 -0
- data/lib/generators/coalla/cms/templates/views/admin/scaffold_template/index.html.haml.erb +15 -0
- data/lib/generators/coalla/cms/templates/views/admin/scaffold_template/new.html.haml.erb +4 -0
- data/lib/generators/coalla/cms/templates/views/administrators/sessions/new.html.haml +19 -0
- data/lib/generators/coalla/cms/templates/views/home/index.html.haml.erb +1 -0
- data/lib/generators/coalla/cms/wysiwyg/ckeditor_generator.rb +17 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/mediaembed/icons/hidpi/mediaembed.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/mediaembed/icons/mediaembed.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/mediaembed/plugin.js +64 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/LICENSE.txt +303 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/ad-gallery-css-diff.htm +831 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/ad_next.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/ad_prev.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/ad_scroll_back.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/ad_scroll_forward.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/jquery.ad-gallery.css +185 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/jquery.ad-gallery.js +984 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/jquery.ad-gallery.min - ref.js +10 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/jquery.ad-gallery.min.js +1 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/loader.gif +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/opa75.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/placeholder.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/ad-gallery/trans.gif +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/blank.gif +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/fancybox_loading.gif +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/fancybox_loading@2x.gif +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/fancybox_overlay.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/fancybox_sprite.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/fancybox_sprite@2x.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/helpers/fancybox_buttons.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/helpers/jquery.fancybox-buttons.css +97 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/helpers/jquery.fancybox-buttons.js +122 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/helpers/jquery.fancybox-media.js +199 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/helpers/jquery.fancybox-thumbs.css +55 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/helpers/jquery.fancybox-thumbs.js +162 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/jquery.fancybox.css +274 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/jquery.fancybox.js +2020 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/3rdParty/fancybox2/jquery.fancybox.pack.js +46 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/README.md +66 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/dialogs/slideshow.js +1396 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/dialogs/slideshow.min.js +1 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/icons/placeholder.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/icons/slideshow.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/lang/Serbian_translation.txt +9 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/lang/el.js +37 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/lang/en.js +35 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/lang/fr.js +35 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/lang/ru.js +35 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/lang/sr-latn.js +35 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/lang/sr.js +35 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/ckeditor/plugins/slideshow/plugin.js +217 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/iframe/default/lbl-blockquote.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/iframe/default/lbl-h1.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/iframe/default/lbl-h2.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/iframe/default/lbl-h3.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/iframe/default/lbl-h4.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/iframe/default/lbl-h5.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/iframe/default/lbl-h6.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/iframe/default/lbl-p.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/iframe/default/lbl-pre.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/iframe/default/wymiframe.css +276 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/iframe/default/wymiframe.html +26 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/jquery.wymeditor.js +4819 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/lang/en.js +45 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/lang/ru.js +55 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/plugins/imageupload/icons.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/plugins/imageupload/jquery.wymeditor.imageupload.js +150 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/plugins/resizable/jquery.wymeditor.resizable.js +91 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/plugins/resizable/readme.txt +124 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/compact/icons.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/compact/skin.css +134 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/compact/skin.js +35 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/default/icons.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/default/skin.css +341 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/default/skin.js +40 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/minimal/images/bg.header.gif +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/minimal/images/bg.selector.silver.gif +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/minimal/images/bg.wymeditor.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/minimal/images/icons.silver.gif +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/minimal/skin.css +131 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/minimal/skin.js +30 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/silver/COPYING +674 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/silver/README +27 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/silver/images/bg.header.gif +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/silver/images/bg.selector.silver.gif +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/silver/images/bg.wymeditor.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/silver/images/icons.silver.gif +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/silver/skin.css +297 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/silver/skin.js +61 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/twopanels/icons.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/twopanels/skin.css +134 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/twopanels/skin.js +39 -0
- data/lib/generators/coalla/cms/wysiwyg/templates/wymeditor/skins/wymeditor_icon.png +0 -0
- data/lib/generators/coalla/cms/wysiwyg/wymeditor_generator.rb +17 -0
- metadata +581 -0
@@ -0,0 +1,162 @@
|
|
1
|
+
/*!
|
2
|
+
* Thumbnail helper for fancyBox
|
3
|
+
* version: 1.0.7 (Mon, 01 Oct 2012)
|
4
|
+
* @requires fancyBox v2.0 or later
|
5
|
+
*
|
6
|
+
* Usage:
|
7
|
+
* $(".fancybox").fancybox({
|
8
|
+
* helpers : {
|
9
|
+
* thumbs: {
|
10
|
+
* width : 50,
|
11
|
+
* height : 50
|
12
|
+
* }
|
13
|
+
* }
|
14
|
+
* });
|
15
|
+
*
|
16
|
+
*/
|
17
|
+
(function ($) {
|
18
|
+
//Shortcut for fancyBox object
|
19
|
+
var F = $.fancybox;
|
20
|
+
|
21
|
+
//Add helper object
|
22
|
+
F.helpers.thumbs = {
|
23
|
+
defaults : {
|
24
|
+
width : 50, // thumbnail width
|
25
|
+
height : 50, // thumbnail height
|
26
|
+
position : 'bottom', // 'top' or 'bottom'
|
27
|
+
source : function ( item ) { // function to obtain the URL of the thumbnail image
|
28
|
+
var href;
|
29
|
+
|
30
|
+
if (item.element) {
|
31
|
+
href = $(item.element).find('img').attr('src');
|
32
|
+
}
|
33
|
+
|
34
|
+
if (!href && item.type === 'image' && item.href) {
|
35
|
+
href = item.href;
|
36
|
+
}
|
37
|
+
|
38
|
+
return href;
|
39
|
+
}
|
40
|
+
},
|
41
|
+
|
42
|
+
wrap : null,
|
43
|
+
list : null,
|
44
|
+
width : 0,
|
45
|
+
|
46
|
+
init: function (opts, obj) {
|
47
|
+
var that = this,
|
48
|
+
list,
|
49
|
+
thumbWidth = opts.width,
|
50
|
+
thumbHeight = opts.height,
|
51
|
+
thumbSource = opts.source;
|
52
|
+
|
53
|
+
//Build list structure
|
54
|
+
list = '';
|
55
|
+
|
56
|
+
for (var n = 0; n < obj.group.length; n++) {
|
57
|
+
list += '<li><a style="width:' + thumbWidth + 'px;height:' + thumbHeight + 'px;" href="javascript:jQuery.fancybox.jumpto(' + n + ');"></a></li>';
|
58
|
+
}
|
59
|
+
|
60
|
+
this.wrap = $('<div id="fancybox-thumbs"></div>').addClass(opts.position).appendTo('body');
|
61
|
+
this.list = $('<ul>' + list + '</ul>').appendTo(this.wrap);
|
62
|
+
|
63
|
+
//Load each thumbnail
|
64
|
+
$.each(obj.group, function (i) {
|
65
|
+
var href = thumbSource( obj.group[ i ] );
|
66
|
+
|
67
|
+
if (!href) {
|
68
|
+
return;
|
69
|
+
}
|
70
|
+
|
71
|
+
$("<img />").load(function () {
|
72
|
+
var width = this.width,
|
73
|
+
height = this.height,
|
74
|
+
widthRatio, heightRatio, parent;
|
75
|
+
|
76
|
+
if (!that.list || !width || !height) {
|
77
|
+
return;
|
78
|
+
}
|
79
|
+
|
80
|
+
//Calculate thumbnail width/height and center it
|
81
|
+
widthRatio = width / thumbWidth;
|
82
|
+
heightRatio = height / thumbHeight;
|
83
|
+
|
84
|
+
parent = that.list.children().eq(i).find('a');
|
85
|
+
|
86
|
+
if (widthRatio >= 1 && heightRatio >= 1) {
|
87
|
+
if (widthRatio > heightRatio) {
|
88
|
+
width = Math.floor(width / heightRatio);
|
89
|
+
height = thumbHeight;
|
90
|
+
|
91
|
+
} else {
|
92
|
+
width = thumbWidth;
|
93
|
+
height = Math.floor(height / widthRatio);
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
$(this).css({
|
98
|
+
width : width,
|
99
|
+
height : height,
|
100
|
+
top : Math.floor(thumbHeight / 2 - height / 2),
|
101
|
+
left : Math.floor(thumbWidth / 2 - width / 2)
|
102
|
+
});
|
103
|
+
|
104
|
+
parent.width(thumbWidth).height(thumbHeight);
|
105
|
+
|
106
|
+
$(this).hide().appendTo(parent).fadeIn(300);
|
107
|
+
|
108
|
+
}).attr('src', href);
|
109
|
+
});
|
110
|
+
|
111
|
+
//Set initial width
|
112
|
+
this.width = this.list.children().eq(0).outerWidth(true);
|
113
|
+
|
114
|
+
this.list.width(this.width * (obj.group.length + 1)).css('left', Math.floor($(window).width() * 0.5 - (obj.index * this.width + this.width * 0.5)));
|
115
|
+
},
|
116
|
+
|
117
|
+
beforeLoad: function (opts, obj) {
|
118
|
+
//Remove self if gallery do not have at least two items
|
119
|
+
if (obj.group.length < 2) {
|
120
|
+
obj.helpers.thumbs = false;
|
121
|
+
|
122
|
+
return;
|
123
|
+
}
|
124
|
+
|
125
|
+
//Increase bottom margin to give space for thumbs
|
126
|
+
obj.margin[ opts.position === 'top' ? 0 : 2 ] += ((opts.height) + 15);
|
127
|
+
},
|
128
|
+
|
129
|
+
afterShow: function (opts, obj) {
|
130
|
+
//Check if exists and create or update list
|
131
|
+
if (this.list) {
|
132
|
+
this.onUpdate(opts, obj);
|
133
|
+
|
134
|
+
} else {
|
135
|
+
this.init(opts, obj);
|
136
|
+
}
|
137
|
+
|
138
|
+
//Set active element
|
139
|
+
this.list.children().removeClass('active').eq(obj.index).addClass('active');
|
140
|
+
},
|
141
|
+
|
142
|
+
//Center list
|
143
|
+
onUpdate: function (opts, obj) {
|
144
|
+
if (this.list) {
|
145
|
+
this.list.stop(true).animate({
|
146
|
+
'left': Math.floor($(window).width() * 0.5 - (obj.index * this.width + this.width * 0.5))
|
147
|
+
}, 150);
|
148
|
+
}
|
149
|
+
},
|
150
|
+
|
151
|
+
beforeClose: function () {
|
152
|
+
if (this.wrap) {
|
153
|
+
this.wrap.remove();
|
154
|
+
}
|
155
|
+
|
156
|
+
this.wrap = null;
|
157
|
+
this.list = null;
|
158
|
+
this.width = 0;
|
159
|
+
}
|
160
|
+
}
|
161
|
+
|
162
|
+
}(jQuery));
|
@@ -0,0 +1,274 @@
|
|
1
|
+
/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */
|
2
|
+
.fancybox-wrap,
|
3
|
+
.fancybox-skin,
|
4
|
+
.fancybox-outer,
|
5
|
+
.fancybox-inner,
|
6
|
+
.fancybox-image,
|
7
|
+
.fancybox-wrap iframe,
|
8
|
+
.fancybox-wrap object,
|
9
|
+
.fancybox-nav,
|
10
|
+
.fancybox-nav span,
|
11
|
+
.fancybox-tmp
|
12
|
+
{
|
13
|
+
padding: 0;
|
14
|
+
margin: 0;
|
15
|
+
border: 0;
|
16
|
+
outline: none;
|
17
|
+
vertical-align: top;
|
18
|
+
}
|
19
|
+
|
20
|
+
.fancybox-wrap {
|
21
|
+
position: absolute;
|
22
|
+
top: 0;
|
23
|
+
left: 0;
|
24
|
+
z-index: 8020;
|
25
|
+
}
|
26
|
+
|
27
|
+
.fancybox-skin {
|
28
|
+
position: relative;
|
29
|
+
background: #f9f9f9;
|
30
|
+
color: #444;
|
31
|
+
text-shadow: none;
|
32
|
+
-webkit-border-radius: 4px;
|
33
|
+
-moz-border-radius: 4px;
|
34
|
+
border-radius: 4px;
|
35
|
+
}
|
36
|
+
|
37
|
+
.fancybox-opened {
|
38
|
+
z-index: 8030;
|
39
|
+
}
|
40
|
+
|
41
|
+
.fancybox-opened .fancybox-skin {
|
42
|
+
-webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
|
43
|
+
-moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
|
44
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
|
45
|
+
}
|
46
|
+
|
47
|
+
.fancybox-outer, .fancybox-inner {
|
48
|
+
position: relative;
|
49
|
+
}
|
50
|
+
|
51
|
+
.fancybox-inner {
|
52
|
+
overflow: hidden;
|
53
|
+
}
|
54
|
+
|
55
|
+
.fancybox-type-iframe .fancybox-inner {
|
56
|
+
-webkit-overflow-scrolling: touch;
|
57
|
+
}
|
58
|
+
|
59
|
+
.fancybox-error {
|
60
|
+
color: #444;
|
61
|
+
font: 14px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
|
62
|
+
margin: 0;
|
63
|
+
padding: 15px;
|
64
|
+
white-space: nowrap;
|
65
|
+
}
|
66
|
+
|
67
|
+
.fancybox-image, .fancybox-iframe {
|
68
|
+
display: block;
|
69
|
+
width: 100%;
|
70
|
+
height: 100%;
|
71
|
+
}
|
72
|
+
|
73
|
+
.fancybox-image {
|
74
|
+
max-width: 100%;
|
75
|
+
max-height: 100%;
|
76
|
+
}
|
77
|
+
|
78
|
+
#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
|
79
|
+
background-image: url('fancybox_sprite.png');
|
80
|
+
}
|
81
|
+
|
82
|
+
#fancybox-loading {
|
83
|
+
position: fixed;
|
84
|
+
top: 50%;
|
85
|
+
left: 50%;
|
86
|
+
margin-top: -22px;
|
87
|
+
margin-left: -22px;
|
88
|
+
background-position: 0 -108px;
|
89
|
+
opacity: 0.8;
|
90
|
+
cursor: pointer;
|
91
|
+
z-index: 8060;
|
92
|
+
}
|
93
|
+
|
94
|
+
#fancybox-loading div {
|
95
|
+
width: 44px;
|
96
|
+
height: 44px;
|
97
|
+
background: url('fancybox_loading.gif') center center no-repeat;
|
98
|
+
}
|
99
|
+
|
100
|
+
.fancybox-close {
|
101
|
+
position: absolute;
|
102
|
+
top: -18px;
|
103
|
+
right: -18px;
|
104
|
+
width: 36px;
|
105
|
+
height: 36px;
|
106
|
+
cursor: pointer;
|
107
|
+
z-index: 8040;
|
108
|
+
}
|
109
|
+
|
110
|
+
.fancybox-nav {
|
111
|
+
position: absolute;
|
112
|
+
top: 0;
|
113
|
+
width: 40%;
|
114
|
+
height: 100%;
|
115
|
+
cursor: pointer;
|
116
|
+
text-decoration: none;
|
117
|
+
background: transparent url('blank.gif'); /* helps IE */
|
118
|
+
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
119
|
+
z-index: 8040;
|
120
|
+
}
|
121
|
+
|
122
|
+
.fancybox-prev {
|
123
|
+
left: 0;
|
124
|
+
}
|
125
|
+
|
126
|
+
.fancybox-next {
|
127
|
+
right: 0;
|
128
|
+
}
|
129
|
+
|
130
|
+
.fancybox-nav span {
|
131
|
+
position: absolute;
|
132
|
+
top: 50%;
|
133
|
+
width: 36px;
|
134
|
+
height: 34px;
|
135
|
+
margin-top: -18px;
|
136
|
+
cursor: pointer;
|
137
|
+
z-index: 8040;
|
138
|
+
visibility: hidden;
|
139
|
+
}
|
140
|
+
|
141
|
+
.fancybox-prev span {
|
142
|
+
left: 10px;
|
143
|
+
background-position: 0 -36px;
|
144
|
+
}
|
145
|
+
|
146
|
+
.fancybox-next span {
|
147
|
+
right: 10px;
|
148
|
+
background-position: 0 -72px;
|
149
|
+
}
|
150
|
+
|
151
|
+
.fancybox-nav:hover span {
|
152
|
+
visibility: visible;
|
153
|
+
}
|
154
|
+
|
155
|
+
.fancybox-tmp {
|
156
|
+
position: absolute;
|
157
|
+
top: -99999px;
|
158
|
+
left: -99999px;
|
159
|
+
visibility: hidden;
|
160
|
+
max-width: 99999px;
|
161
|
+
max-height: 99999px;
|
162
|
+
overflow: visible !important;
|
163
|
+
}
|
164
|
+
|
165
|
+
/* Overlay helper */
|
166
|
+
|
167
|
+
.fancybox-lock {
|
168
|
+
overflow: hidden !important;
|
169
|
+
width: auto;
|
170
|
+
}
|
171
|
+
|
172
|
+
.fancybox-lock body {
|
173
|
+
overflow: hidden !important;
|
174
|
+
}
|
175
|
+
|
176
|
+
.fancybox-lock-test {
|
177
|
+
overflow-y: hidden !important;
|
178
|
+
}
|
179
|
+
|
180
|
+
.fancybox-overlay {
|
181
|
+
position: absolute;
|
182
|
+
top: 0;
|
183
|
+
left: 0;
|
184
|
+
overflow: hidden;
|
185
|
+
display: none;
|
186
|
+
z-index: 8010;
|
187
|
+
background: url('fancybox_overlay.png');
|
188
|
+
}
|
189
|
+
|
190
|
+
.fancybox-overlay-fixed {
|
191
|
+
position: fixed;
|
192
|
+
bottom: 0;
|
193
|
+
right: 0;
|
194
|
+
}
|
195
|
+
|
196
|
+
.fancybox-lock .fancybox-overlay {
|
197
|
+
overflow: auto;
|
198
|
+
overflow-y: scroll;
|
199
|
+
}
|
200
|
+
|
201
|
+
/* Title helper */
|
202
|
+
|
203
|
+
.fancybox-title {
|
204
|
+
visibility: hidden;
|
205
|
+
font: normal 13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;
|
206
|
+
position: relative;
|
207
|
+
text-shadow: none;
|
208
|
+
z-index: 8050;
|
209
|
+
}
|
210
|
+
|
211
|
+
.fancybox-opened .fancybox-title {
|
212
|
+
visibility: visible;
|
213
|
+
}
|
214
|
+
|
215
|
+
.fancybox-title-float-wrap {
|
216
|
+
position: absolute;
|
217
|
+
bottom: 0;
|
218
|
+
right: 50%;
|
219
|
+
margin-bottom: -35px;
|
220
|
+
z-index: 8050;
|
221
|
+
text-align: center;
|
222
|
+
}
|
223
|
+
|
224
|
+
.fancybox-title-float-wrap .child {
|
225
|
+
display: inline-block;
|
226
|
+
margin-right: -100%;
|
227
|
+
padding: 2px 20px;
|
228
|
+
background: transparent; /* Fallback for web browsers that doesn't support RGBa */
|
229
|
+
background: rgba(0, 0, 0, 0.8);
|
230
|
+
-webkit-border-radius: 15px;
|
231
|
+
-moz-border-radius: 15px;
|
232
|
+
border-radius: 15px;
|
233
|
+
text-shadow: 0 1px 2px #222;
|
234
|
+
color: #FFF;
|
235
|
+
font-weight: bold;
|
236
|
+
line-height: 24px;
|
237
|
+
white-space: nowrap;
|
238
|
+
}
|
239
|
+
|
240
|
+
.fancybox-title-outside-wrap {
|
241
|
+
position: relative;
|
242
|
+
margin-top: 10px;
|
243
|
+
color: #fff;
|
244
|
+
}
|
245
|
+
|
246
|
+
.fancybox-title-inside-wrap {
|
247
|
+
padding-top: 10px;
|
248
|
+
}
|
249
|
+
|
250
|
+
.fancybox-title-over-wrap {
|
251
|
+
position: absolute;
|
252
|
+
bottom: 0;
|
253
|
+
left: 0;
|
254
|
+
color: #fff;
|
255
|
+
padding: 10px;
|
256
|
+
background: #000;
|
257
|
+
background: rgba(0, 0, 0, .8);
|
258
|
+
}
|
259
|
+
|
260
|
+
/*Retina graphics!*/
|
261
|
+
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
|
262
|
+
only screen and (min--moz-device-pixel-ratio: 1.5),
|
263
|
+
only screen and (min-device-pixel-ratio: 1.5){
|
264
|
+
|
265
|
+
#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
|
266
|
+
background-image: url('fancybox_sprite@2x.png');
|
267
|
+
background-size: 44px 152px; /*The size of the normal image, half the size of the hi-res image*/
|
268
|
+
}
|
269
|
+
|
270
|
+
#fancybox-loading div {
|
271
|
+
background-image: url('fancybox_loading@2x.gif');
|
272
|
+
background-size: 24px 24px; /*The size of the normal image, half the size of the hi-res image*/
|
273
|
+
}
|
274
|
+
}
|