camaleon_cms 1.0.6 → 1.0.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d04da9c72bd60007ce6782ea3b4dee7283d482e
4
- data.tar.gz: b097e968fc8eb8110ad743253adffb5a7c193410
3
+ metadata.gz: 131a13eefc84861802b2115956ae6dd952a34b04
4
+ data.tar.gz: f66a3b0b3b430310afd29eea8f2ab31ff5520ab0
5
5
  SHA512:
6
- metadata.gz: 0e5e8e7c6fbd11ede07e3af21a39513ebb7a8b573a71edced3bfc8275d68afd95b0368ac681b430a0de464f84f57fe9e3296691fb7353ee95b03acbf77aa33fe
7
- data.tar.gz: 1850c3e2d6ee182f9b57588448333c424dcb60a1a3dde5c63debaf95fd5f42b2e771111584c8b812c0fa80ccceea4cb0e0cf45b7c5fa612792f2e0d5e4a6d435
6
+ metadata.gz: 149b43772e79e4f34b89606db246b88122f7e3aad450b657d7fc0a0f097722b0ce0b56ad1eb3b6a7d38bab04042890210b4f82493c2d3302ca1bc40fb7bd6058
7
+ data.tar.gz: 5c86f3f41673b761f2d78616a4afe158c5f499b4055520d5a4b6016781540977d65d9556955d1d5343bf0a50c2514a636cac91ca586b84948015f8ce105d5d71
@@ -80,12 +80,12 @@ jQuery(function(){
80
80
  * modal_size: "modal-lg", "modal-sm", ""(default as normal "")
81
81
  * callback: function evaluated after modal shown
82
82
  * type: modal color (primary|default|success)
83
- * zindex: Integer zindex position (default nil)
83
+ * zindex: Integer zindex position (default null)
84
84
  * on_submit: Function executed after submit button click (if this is present, enable the submit button beside cancel button)
85
85
  * return modal object
86
86
  */
87
87
  function open_modal(settings){
88
- var def = {title: "", content: null, url: null, show_footer: false, mode: "inline", ajax_params: {}, zindex: nil, modal_size: "", type: '', modal_settings:{}, on_submit: null, callback: function(){}}
88
+ var def = {title: "", content: null, url: null, show_footer: false, mode: "inline", ajax_params: {}, zindex: null, modal_size: "", type: '', modal_settings:{}, on_submit: null, callback: function(){}}
89
89
  settings = $.extend({}, def, settings);
90
90
  var modal = $('<div id="ow_inline_modal" class="modal fade modal-'+settings.type+'">'+
91
91
  '<div class="modal-dialog '+settings.modal_size+'">'+
@@ -161,4 +161,4 @@ function wait_modal(){
161
161
  }
162
162
  var loading_modal = new wait_modal();
163
163
  function showLoading(){ $("body > .modal").not("#pleaseWaitDialog").hide(); loading_modal.show(); }
164
- function hideLoading(){ loading_modal.hide(); $("body > .modal").not("#pleaseWaitDialog").show(); }
164
+ function hideLoading(){ loading_modal.hide(); $("body > .modal").not("#pleaseWaitDialog").show(); }
@@ -9,8 +9,9 @@
9
9
  module FrontendConcern extend ActiveSupport::Concern
10
10
  # visiting sitemap.xml
11
11
  def sitemap
12
- r = {layout: (params[:format] == "html" ? (self.send :_layout) : false), render: "sitemap"}
12
+ r = {layout: (params[:format] == "html" ? (self.send :_layout) : false), render: "sitemap", custom: "", format: params[:format]}
13
13
  hooks_run("on_render_sitemap", r)
14
+ @custom_sitemap = r[:custom]
14
15
  render r[:render], layout: r[:layout]
15
16
  end
16
17
 
@@ -16,4 +16,5 @@
16
16
  <% end %>
17
17
  </li>
18
18
  <% end %>
19
+ <%= raw @custom_sitemap %>
19
20
  </ul>
@@ -44,5 +44,5 @@ xml.urlset "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do
44
44
  end
45
45
  end
46
46
  end
47
-
47
+ instance_eval(@custom_sitemap)
48
48
  end
@@ -1,3 +1,3 @@
1
1
  module CamaleonCms
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: camaleon_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Owen Peredo Diaz