3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# File 'app/seeds/workarea/theme_layout_content_seeds.rb', line 3
def perform
puts "Adding theme layout content..."
content = Content.for("Layout")
content.blocks.create!(
area: "footer_column_1",
type: "html",
data: {
html: "<h3 class='page-footer__heading'>Contact</h3> <p>Weblinc</br>22 south 3rd street </br>Philadelphia </br> PA </br> 19106</p><p>Phone: <a class='link link--secondary' href='tel:215-925-1800'>215-925-1800</a></p>",
}
)
content.blocks.create!(
area: "footer_column_2",
type: "taxonomy",
data: {
header: "Customer Service",
start: Navigation::Taxon
.where(name: "Customer Service")
.first
.id
}
)
content.blocks.create!(
area: "footer_column_3",
type: "taxonomy",
data: {
header: "News",
start: Navigation::Taxon
.where(name: "Customer Service") .first
.id
}
)
end
|