app/helpers/pages_helper.rb in mcms_pages-0.0.4 vs app/helpers/pages_helper.rb in mcms_pages-0.0.5
- old
+ new
@@ -20,23 +20,23 @@
# using case statement to decide layout name
case count
when 2
- return "two_column_layout"
+ return "two-column"
when 3
- return "three_column_layout"
+ return "three-column"
when 1
- return "one_column_layout"
+ return "one-column"
else
- return "default_layout"
+ return "default"
end # end case statement
end #end method
@@ -117,9 +117,20 @@
end # end loop
# return hash
part_pages
+
+ end # end method
+
+ # @param : None
+ # @return : Hash
+ # @purpose : To return hash of all possible layout parts
+ def layout_parts
+
+ layout_parts = ["header","footer","left","right","main"]
+
+ layout_parts
end # end method
end # end module