deluxe_publisher 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.rspec +1 -0
- data/Gemfile +29 -0
- data/LICENSE +20 -0
- data/README.rdoc +127 -0
- data/Rakefile +61 -0
- data/VERSION +1 -0
- data/app/controllers/deluxe_publisher/comments_controller.rb +93 -0
- data/app/controllers/deluxe_publisher/page_types_controller.rb +115 -0
- data/app/controllers/deluxe_publisher/pages_controller.rb +191 -0
- data/app/controllers/deluxe_publisher/presenter_controller.rb +185 -0
- data/app/controllers/deluxe_publisher/redirects_controller.rb +90 -0
- data/app/controllers/deluxe_publisher/sitemap_controller.rb +10 -0
- data/app/helpers/application_helper.rb +2 -0
- data/app/helpers/deluxe_publisher/comments_helper.rb +2 -0
- data/app/helpers/deluxe_publisher/page_types_helper.rb +13 -0
- data/app/helpers/deluxe_publisher/pages_helper.rb +41 -0
- data/app/helpers/deluxe_publisher/presenter_helper.rb +111 -0
- data/app/helpers/deluxe_publisher/redirects_helper.rb +2 -0
- data/app/helpers/deluxe_publisher/sitemap_helper.rb +2 -0
- data/app/models/ckeditor/asset.rb +88 -0
- data/app/models/ckeditor/attachment_file.rb +40 -0
- data/app/models/ckeditor/picture.rb +23 -0
- data/app/models/deluxe_publisher/comment.rb +6 -0
- data/app/models/deluxe_publisher/content.rb +6 -0
- data/app/models/deluxe_publisher/content_descriptor.rb +4 -0
- data/app/models/deluxe_publisher/page.rb +206 -0
- data/app/models/deluxe_publisher/page_type.rb +55 -0
- data/app/models/deluxe_publisher/redirect.rb +6 -0
- data/app/models/deluxe_publisher.rb +5 -0
- data/app/views/deluxe_publisher/comments/_form.html.erb +31 -0
- data/app/views/deluxe_publisher/comments/edit.html.erb +6 -0
- data/app/views/deluxe_publisher/comments/index.html.erb +31 -0
- data/app/views/deluxe_publisher/comments/new.html.erb +6 -0
- data/app/views/deluxe_publisher/comments/show.html.erb +30 -0
- data/app/views/deluxe_publisher/page_types/_content_descriptors.html.erb +15 -0
- data/app/views/deluxe_publisher/page_types/_form.html.erb +59 -0
- data/app/views/deluxe_publisher/page_types/content_areas_change.js.erb +3 -0
- data/app/views/deluxe_publisher/page_types/edit.html.erb +8 -0
- data/app/views/deluxe_publisher/page_types/index.html.erb +29 -0
- data/app/views/deluxe_publisher/page_types/new.html.erb +7 -0
- data/app/views/deluxe_publisher/page_types/show.html.erb +45 -0
- data/app/views/deluxe_publisher/pages/_form.html.erb +39 -0
- data/app/views/deluxe_publisher/pages/_general.html.erb +108 -0
- data/app/views/deluxe_publisher/pages/_page.html.erb +23 -0
- data/app/views/deluxe_publisher/pages/_page_content.html.erb +16 -0
- data/app/views/deluxe_publisher/pages/_page_links.html.erb +9 -0
- data/app/views/deluxe_publisher/pages/_seo.html.erb +27 -0
- data/app/views/deluxe_publisher/pages/edit.html.erb +5 -0
- data/app/views/deluxe_publisher/pages/index.html.erb +11 -0
- data/app/views/deluxe_publisher/pages/new.html.erb +6 -0
- data/app/views/deluxe_publisher/pages/page_type_change.js.erb +3 -0
- data/app/views/deluxe_publisher/pages/show.html.erb +115 -0
- data/app/views/deluxe_publisher/presenter/create_comment.js.erb +3 -0
- data/app/views/deluxe_publisher/presenter/create_comment_failed.js.erb +1 -0
- data/app/views/deluxe_publisher/presenter/new_comment.js.erb +7 -0
- data/app/views/deluxe_publisher/presenter/preview.html.erb +2 -0
- data/app/views/deluxe_publisher/redirects/_form.html.erb +29 -0
- data/app/views/deluxe_publisher/redirects/edit.html.erb +6 -0
- data/app/views/deluxe_publisher/redirects/index.html.erb +27 -0
- data/app/views/deluxe_publisher/redirects/new.html.erb +5 -0
- data/app/views/deluxe_publisher/redirects/show.html.erb +20 -0
- data/app/views/deluxe_publisher/sitemap/index.xml.builder +12 -0
- data/app/views/deluxe_publisher/templates/simple_blog.html.erb +19 -0
- data/app/views/deluxe_publisher/templates/simple_blog.rss.builder +23 -0
- data/app/views/deluxe_publisher/templates/simple_blog_story.html.erb +9 -0
- data/app/views/deluxe_publisher/templates/simple_page.html.erb +4 -0
- data/app/views/layouts/_deluxe_publisher_comment_form.html.erb +29 -0
- data/app/views/layouts/_deluxe_publisher_comments_list.html.erb +8 -0
- data/app/views/layouts/application.html.erb +14 -0
- data/app/views/layouts/deluxe_publisher.html.erb +36 -0
- data/app/views/layouts/deluxe_publisher_blog.html.erb +63 -0
- data/app/views/layouts/deluxe_publisher_simple.html.erb +30 -0
- data/config/routes.rb +49 -0
- data/deluxe_publisher.gemspec +466 -0
- data/lib/deluxe_publisher/deluxe_publisher_authentication.rb +37 -0
- data/lib/deluxe_publisher/engine.rb +5 -0
- data/lib/deluxe_publisher.rb +40 -0
- data/lib/generators/deluxe_publisher/base/USAGE +8 -0
- data/lib/generators/deluxe_publisher/base/base_generator.rb +45 -0
- data/lib/generators/deluxe_publisher/base/templates/images/add.png +0 -0
- data/lib/generators/deluxe_publisher/base/templates/images/btn_addNewPage.gif +0 -0
- data/lib/generators/deluxe_publisher/base/templates/images/btn_cancel.gif +0 -0
- data/lib/generators/deluxe_publisher/base/templates/images/btn_preview.gif +0 -0
- data/lib/generators/deluxe_publisher/base/templates/images/btn_save.gif +0 -0
- data/lib/generators/deluxe_publisher/base/templates/images/bullet.gif +0 -0
- data/lib/generators/deluxe_publisher/base/templates/images/content_bg.jpg +0 -0
- data/lib/generators/deluxe_publisher/base/templates/images/delete.png +0 -0
- data/lib/generators/deluxe_publisher/base/templates/images/edit.png +0 -0
- data/lib/generators/deluxe_publisher/base/templates/images/header_background.jpg +0 -0
- data/lib/generators/deluxe_publisher/base/templates/images/icon_published.gif +0 -0
- data/lib/generators/deluxe_publisher/base/templates/images/icon_unpublished.gif +0 -0
- data/lib/generators/deluxe_publisher/base/templates/images/logo.gif +0 -0
- data/lib/generators/deluxe_publisher/base/templates/images/minus.gif +0 -0
- data/lib/generators/deluxe_publisher/base/templates/images/plus.gif +0 -0
- data/lib/generators/deluxe_publisher/base/templates/images/show.png +0 -0
- data/lib/generators/deluxe_publisher/base/templates/images/tab_bg.gif +0 -0
- data/lib/generators/deluxe_publisher/base/templates/images/tabs_bg.jpg +0 -0
- data/lib/generators/deluxe_publisher/base/templates/initializer.rb +23 -0
- data/lib/generators/deluxe_publisher/base/templates/javascripts/deluxe_presenter.js +25 -0
- data/lib/generators/deluxe_publisher/base/templates/javascripts/deluxe_publisher.js +86 -0
- data/lib/generators/deluxe_publisher/base/templates/javascripts/jquery-rails.js +158 -0
- data/lib/generators/deluxe_publisher/base/templates/layouts/_deluxe_publisher_comment_form.html.erb +29 -0
- data/lib/generators/deluxe_publisher/base/templates/layouts/_deluxe_publisher_comments_list.html.erb +8 -0
- data/lib/generators/deluxe_publisher/base/templates/layouts/deluxe_publisher_blog.html.erb +74 -0
- data/lib/generators/deluxe_publisher/base/templates/layouts/deluxe_publisher_simple.html.erb +47 -0
- data/lib/generators/deluxe_publisher/base/templates/stylesheets/deluxe_presenter.css +458 -0
- data/lib/generators/deluxe_publisher/base/templates/stylesheets/deluxe_publisher.css +202 -0
- data/lib/generators/deluxe_publisher/base/templates/templates/simple_blog.html.erb +19 -0
- data/lib/generators/deluxe_publisher/base/templates/templates/simple_blog.rss.builder +23 -0
- data/lib/generators/deluxe_publisher/base/templates/templates/simple_blog_story.html.erb +12 -0
- data/lib/generators/deluxe_publisher/base/templates/templates/simple_page.html.erb +4 -0
- data/lib/generators/deluxe_publisher/migration/USAGE +0 -0
- data/lib/generators/deluxe_publisher/migration/migration_generator.rb +18 -0
- data/lib/generators/deluxe_publisher/migration/templates/migration.rb +98 -0
- data/lib/generators/deluxe_publisher/sample_site/sample_site_generator.rb +316 -0
- data/spec/controllers/deluxe_publisher/comments_controller_spec.rb +129 -0
- data/spec/controllers/deluxe_publisher/page_types_controller_spec.rb +125 -0
- data/spec/controllers/deluxe_publisher/pages_controller_spec.rb +129 -0
- data/spec/controllers/deluxe_publisher/presenter_controller_spec.rb +19 -0
- data/spec/controllers/deluxe_publisher/redirects_controller_spec.rb +118 -0
- data/spec/deluxe_publisher_spec.rb +7 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/deluxe_publisher/comments/_form.html.erb +31 -0
- data/spec/dummy/app/views/deluxe_publisher/comments/edit.html.erb +6 -0
- data/spec/dummy/app/views/deluxe_publisher/comments/index.html.erb +31 -0
- data/spec/dummy/app/views/deluxe_publisher/comments/new.html.erb +6 -0
- data/spec/dummy/app/views/deluxe_publisher/comments/show.html.erb +30 -0
- data/spec/dummy/app/views/deluxe_publisher/page_types/_content_descriptors.html.erb +15 -0
- data/spec/dummy/app/views/deluxe_publisher/page_types/_form.html.erb +59 -0
- data/spec/dummy/app/views/deluxe_publisher/page_types/content_areas_change.js.erb +3 -0
- data/spec/dummy/app/views/deluxe_publisher/page_types/edit.html.erb +8 -0
- data/spec/dummy/app/views/deluxe_publisher/page_types/index.html.erb +29 -0
- data/spec/dummy/app/views/deluxe_publisher/page_types/new.html.erb +7 -0
- data/spec/dummy/app/views/deluxe_publisher/page_types/show.html.erb +45 -0
- data/spec/dummy/app/views/deluxe_publisher/pages/_form.html.erb +36 -0
- data/spec/dummy/app/views/deluxe_publisher/pages/_general.html.erb +108 -0
- data/spec/dummy/app/views/deluxe_publisher/pages/_page.html.erb +23 -0
- data/spec/dummy/app/views/deluxe_publisher/pages/_page_content.html.erb +16 -0
- data/spec/dummy/app/views/deluxe_publisher/pages/_page_links.html.erb +9 -0
- data/spec/dummy/app/views/deluxe_publisher/pages/_seo.html.erb +27 -0
- data/spec/dummy/app/views/deluxe_publisher/pages/edit.html.erb +7 -0
- data/spec/dummy/app/views/deluxe_publisher/pages/index.html.erb +10 -0
- data/spec/dummy/app/views/deluxe_publisher/pages/new.html.erb +7 -0
- data/spec/dummy/app/views/deluxe_publisher/pages/page_type_change.js.erb +3 -0
- data/spec/dummy/app/views/deluxe_publisher/pages/show.html.erb +115 -0
- data/spec/dummy/app/views/deluxe_publisher/presenter/create_comment.js.erb +3 -0
- data/spec/dummy/app/views/deluxe_publisher/presenter/create_comment_failed.js.erb +1 -0
- data/spec/dummy/app/views/deluxe_publisher/presenter/new_comment.js.erb +7 -0
- data/spec/dummy/app/views/deluxe_publisher/presenter/preview.html.erb +2 -0
- data/spec/dummy/app/views/deluxe_publisher/templates/simple_blog.html.erb +19 -0
- data/spec/dummy/app/views/deluxe_publisher/templates/simple_blog.rss.builder +23 -0
- data/spec/dummy/app/views/deluxe_publisher/templates/simple_blog_story.html.erb +9 -0
- data/spec/dummy/app/views/deluxe_publisher/templates/simple_page.html.erb +4 -0
- data/spec/dummy/app/views/layouts/_deluxe_publisher_comment_form.html.erb +29 -0
- data/spec/dummy/app/views/layouts/_deluxe_publisher_comments_list.html.erb +8 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/layouts/deluxe_publisher.html.erb +31 -0
- data/spec/dummy/app/views/layouts/deluxe_publisher_blog.html.erb +63 -0
- data/spec/dummy/app/views/layouts/deluxe_publisher_simple.html.erb +30 -0
- data/spec/dummy/config/application.rb +45 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +22 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +26 -0
- data/spec/dummy/config/environments/production.rb +49 -0
- data/spec/dummy/config/environments/test.rb +35 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/deluxe_publisher.rb +23 -0
- data/spec/dummy/config/initializers/inflections.rb +10 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +104 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/migrate/20110405190943_create_deluxe_publisher.rb +135 -0
- data/spec/dummy/db/schema.rb +130 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +26 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/javascripts/application.js +2 -0
- data/spec/dummy/public/javascripts/controls.js +965 -0
- data/spec/dummy/public/javascripts/dragdrop.js +974 -0
- data/spec/dummy/public/javascripts/effects.js +1123 -0
- data/spec/dummy/public/javascripts/prototype.js +6001 -0
- data/spec/dummy/public/javascripts/rails.js +191 -0
- data/spec/dummy/public/stylesheets/.gitkeep +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/factories/comment_factory.rb +4 -0
- data/spec/factories/content_descriptor_factory.rb +5 -0
- data/spec/factories/content_factory.rb +24 -0
- data/spec/factories/page_factory.rb +26 -0
- data/spec/factories/page_type_factory.rb +10 -0
- data/spec/factories/redirect_factory.rb +4 -0
- data/spec/helpers/deluxe_publisher/comments_helper_spec.rb +15 -0
- data/spec/helpers/deluxe_publisher/page_types_helper_spec.rb +26 -0
- data/spec/helpers/deluxe_publisher/pages_helper_spec.rb +65 -0
- data/spec/helpers/deluxe_publisher/presenter_helper_spec.rb +19 -0
- data/spec/helpers/deluxe_publisher/redirects_helper_spec.rb +15 -0
- data/spec/integration/navigation_spec.rb +9 -0
- data/spec/models/deluxe_publisher/comment_spec.rb +5 -0
- data/spec/models/deluxe_publisher/content_descriptor_spec.rb +5 -0
- data/spec/models/deluxe_publisher/content_spec.rb +5 -0
- data/spec/models/deluxe_publisher/page_spec.rb +358 -0
- data/spec/models/deluxe_publisher/page_type_spec.rb +62 -0
- data/spec/models/deluxe_publisher/redirect_spec.rb +17 -0
- data/spec/requests/deluxe_publisher/deluxe_publisher_comments_spec.rb +11 -0
- data/spec/requests/deluxe_publisher/deluxe_publisher_page_types_spec.rb +11 -0
- data/spec/requests/deluxe_publisher/deluxe_publisher_redirects_spec.rb +11 -0
- data/spec/requests/deluxe_publisher/pages_spec.rb +11 -0
- data/spec/routing/deluxe_publisher/comments_routing_spec.rb +35 -0
- data/spec/routing/deluxe_publisher/page_types_routing_spec.rb +47 -0
- data/spec/routing/deluxe_publisher/pages_routing_spec.rb +47 -0
- data/spec/routing/deluxe_publisher/presenter_routing_spec.rb +66 -0
- data/spec/routing/deluxe_publisher/redirects_routing_spec.rb +35 -0
- data/spec/spec_helper.rb +234 -0
- data/spec/views/deluxe_publisher/comments/edit.html.erb_spec.rb +24 -0
- data/spec/views/deluxe_publisher/comments/index.html.erb_spec.rb +32 -0
- data/spec/views/deluxe_publisher/comments/new.html.erb_spec.rb +24 -0
- data/spec/views/deluxe_publisher/comments/show.html.erb_spec.rb +24 -0
- data/spec/views/deluxe_publisher/page_types/edit.html.erb_spec.rb +32 -0
- data/spec/views/deluxe_publisher/page_types/index.html.erb_spec.rb +48 -0
- data/spec/views/deluxe_publisher/page_types/new.html.erb_spec.rb +32 -0
- data/spec/views/deluxe_publisher/page_types/show.html.erb_spec.rb +36 -0
- data/spec/views/deluxe_publisher/pages/edit.html.erb_spec.rb +58 -0
- data/spec/views/deluxe_publisher/pages/index.html.erb_spec.rb +100 -0
- data/spec/views/deluxe_publisher/pages/new.html.erb_spec.rb +81 -0
- data/spec/views/deluxe_publisher/pages/show.html.erb_spec.rb +75 -0
- data/spec/views/deluxe_publisher/presenter/present.html.erb_spec.rb +5 -0
- data/spec/views/deluxe_publisher/presenter/preview.html.erb_spec.rb +5 -0
- data/spec/views/deluxe_publisher/redirects/edit.html.erb_spec.rb +22 -0
- data/spec/views/deluxe_publisher/redirects/index.html.erb_spec.rb +28 -0
- data/spec/views/deluxe_publisher/redirects/new.html.erb_spec.rb +22 -0
- data/spec/views/deluxe_publisher/redirects/show.html.erb_spec.rb +21 -0
- metadata +1006 -0
@@ -0,0 +1,458 @@
|
|
1
|
+
|
2
|
+
/* --------------------------------------------------------------
|
3
|
+
|
4
|
+
Boilerplate reset
|
5
|
+
* Resets default browser CSS.
|
6
|
+
|
7
|
+
-------------------------------------------------------------- */
|
8
|
+
|
9
|
+
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; }
|
10
|
+
body { line-height: 1.5; background: #fff; margin: 1.5em 0; }
|
11
|
+
table { border-collapse: collapse; border-spacing: 0; float: none;}
|
12
|
+
caption, th, td { text-align: left; font-weight:400; }
|
13
|
+
blockquote:before, blockquote:after, q:before, q:after { content: ""; }
|
14
|
+
blockquote, q { quotes: "" ""; }
|
15
|
+
a img { border: none; }
|
16
|
+
input,textarea { margin: 0; }
|
17
|
+
|
18
|
+
/* Removes Firefox imposed outline */
|
19
|
+
a {
|
20
|
+
color: #00458B; /*ADJUSTABLE - Customise link color*/
|
21
|
+
outline: none;
|
22
|
+
}
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
/* Headers / Paragraphs / Lists*/
|
27
|
+
h1 {
|
28
|
+
font-size: 24px;
|
29
|
+
}
|
30
|
+
|
31
|
+
h2 {
|
32
|
+
font-size: 21px;
|
33
|
+
}
|
34
|
+
|
35
|
+
h3 {
|
36
|
+
font-size: 18px;
|
37
|
+
}
|
38
|
+
|
39
|
+
h4 {
|
40
|
+
font-size: 16px;
|
41
|
+
}
|
42
|
+
|
43
|
+
h5 {
|
44
|
+
font-size: 14px;
|
45
|
+
}
|
46
|
+
|
47
|
+
p, #main_content ul {
|
48
|
+
margin-bottom: 2px;
|
49
|
+
}
|
50
|
+
|
51
|
+
li {
|
52
|
+
list-style-position: inside;
|
53
|
+
list-style-type: disc;
|
54
|
+
}
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
/* Client LOGO STYLES */
|
60
|
+
|
61
|
+
#header #logo {
|
62
|
+
background-color: transparent;
|
63
|
+
font-size: 28px;
|
64
|
+
margin-bottom: 20px;
|
65
|
+
text-align: left;
|
66
|
+
}
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
/* CENTERING THE PAGE AND COMMON WIDTHS */
|
71
|
+
|
72
|
+
body {
|
73
|
+
font: 12px/1.5 Arial, "Helvetica Neue", Helvetica, sans-serif;
|
74
|
+
}
|
75
|
+
|
76
|
+
#wrap {
|
77
|
+
margin: 0 auto;
|
78
|
+
position: relative;
|
79
|
+
width: 940px;
|
80
|
+
}
|
81
|
+
|
82
|
+
#header, #primary_nav {
|
83
|
+
margin: 0;
|
84
|
+
width: 940px;
|
85
|
+
}
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
/* Sider Layout */
|
91
|
+
|
92
|
+
#template #sider, #template1 #sider {
|
93
|
+
float: left;
|
94
|
+
margin-right: 10px;
|
95
|
+
/* overflow: hidden; Hidding the sub navigation */
|
96
|
+
width: 180px;
|
97
|
+
}
|
98
|
+
|
99
|
+
#template #main_content_wrap, #template1 #main_content_wrap {
|
100
|
+
display: inline;
|
101
|
+
float: left;
|
102
|
+
margin: 0 0 0 10px;
|
103
|
+
width: 720px;
|
104
|
+
}
|
105
|
+
|
106
|
+
#template #main_content_wrap #main_content, #template1 #main_content_wrap #main_content {
|
107
|
+
margin: 0;
|
108
|
+
padding: 10px;
|
109
|
+
width: 700px;
|
110
|
+
}
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
/* ACROSS THE TOP PRIMARY NAVIGATION */
|
115
|
+
|
116
|
+
#primary_nav {
|
117
|
+
border: 1px solid #fff;
|
118
|
+
border-bottom: 1px solid #999;
|
119
|
+
width: 938px;
|
120
|
+
}
|
121
|
+
|
122
|
+
#template1 #primary_nav {
|
123
|
+
width: 718px;
|
124
|
+
}
|
125
|
+
|
126
|
+
#primary_nav ul li {
|
127
|
+
float: left;
|
128
|
+
list-style-type: none;
|
129
|
+
}
|
130
|
+
|
131
|
+
#primary_nav ul li a {
|
132
|
+
display: block;
|
133
|
+
font-size: 14px;
|
134
|
+
padding: 4px 20px;
|
135
|
+
text-decoration: none;
|
136
|
+
|
137
|
+
}
|
138
|
+
#primary_nav ul li a:hover {
|
139
|
+
text-decoration: underline;
|
140
|
+
}
|
141
|
+
|
142
|
+
/* Suckerfish */
|
143
|
+
|
144
|
+
#primary_nav ul li ul {
|
145
|
+
position: absolute;
|
146
|
+
width: 10em;
|
147
|
+
left: -999em;
|
148
|
+
}
|
149
|
+
|
150
|
+
#primary_nav ul li:hover ul, #primary_nav ul li.sfhover ul {
|
151
|
+
left: auto;
|
152
|
+
}
|
153
|
+
|
154
|
+
#primary_nav ul li:hover ul li a, #primary_nav ul li.sfhover ul li a {
|
155
|
+
padding: 4px 20px;
|
156
|
+
text-align: left;
|
157
|
+
width: 160px;
|
158
|
+
}
|
159
|
+
|
160
|
+
/* Template 3 Sidebar */
|
161
|
+
|
162
|
+
#template3 #sidebar, #template4 #sidebar {
|
163
|
+
float: right;
|
164
|
+
margin-top: 30px;
|
165
|
+
margin-left: 30px;
|
166
|
+
width: 180px;
|
167
|
+
|
168
|
+
}
|
169
|
+
|
170
|
+
#template3 #content_wrapper, #template4 #content_wrapper {
|
171
|
+
padding: 50px 20px;
|
172
|
+
|
173
|
+
}
|
174
|
+
|
175
|
+
#template3 #main_content, #template4 #page_content {
|
176
|
+
float: right;
|
177
|
+
width: 700px;
|
178
|
+
}
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
/* SIDE NAVIGATION */
|
183
|
+
|
184
|
+
#template4 #secondary_nav, #template3 #primary_nav, #template1 #secondary_nav, #template #primary_nav {
|
185
|
+
background-color: #ffffff;
|
186
|
+
border: none;
|
187
|
+
display: inline; /*ie6 fix*/
|
188
|
+
margin: 0 10px 60px 0;
|
189
|
+
width: 180px;
|
190
|
+
}
|
191
|
+
|
192
|
+
#template4 #secondary_nav, #template3 #primary_nav ul, #template1 #secondary_nav ul, #template #primary_nav ul {
|
193
|
+
border: solid 1px #fff;
|
194
|
+
}
|
195
|
+
|
196
|
+
#template4 #secondary_nav li, #template3 #primary_nav ul li, #template1 #secondary_nav ul li, #template #primary_nav ul li {
|
197
|
+
list-style-type: none;
|
198
|
+
position: relative;
|
199
|
+
list-style-position: outside;
|
200
|
+
}
|
201
|
+
|
202
|
+
#template4 #secondary_nav li a, #template3 #primary_nav ul li a, #template1 #secondary_nav ul li a, #template #primary_nav ul li a {
|
203
|
+
border-bottom:1px solid #fff;
|
204
|
+
display: block;
|
205
|
+
padding: 5px;
|
206
|
+
text-align: left;
|
207
|
+
text-decoration: none;
|
208
|
+
width: 168px;
|
209
|
+
}
|
210
|
+
|
211
|
+
|
212
|
+
/* Side Nav - Fly Out (SUCKER FISH) */
|
213
|
+
|
214
|
+
#template3 #primary_nav ul li:hover ul, #template3 #primary_nav ul li.sfhover ul, #template1 #secondary_nav ul li:hover ul, #template1 #secondary_nav ul li.sfhover ul, #template #primary_nav ul li:hover ul, #template #primary_nav ul li.sfhover ul {
|
215
|
+
border-left: solid 1px #fff;
|
216
|
+
border-right: solid 1px #fff;
|
217
|
+
border-top: solid 1px #fff;
|
218
|
+
left: 178px;
|
219
|
+
top: -1px;
|
220
|
+
width: 180px;
|
221
|
+
}
|
222
|
+
|
223
|
+
|
224
|
+
/* MAIN CONTENT */
|
225
|
+
|
226
|
+
#content_body_wrap {
|
227
|
+
clear: both;
|
228
|
+
padding: 20px 0;
|
229
|
+
}
|
230
|
+
|
231
|
+
#main_content {
|
232
|
+
display: inline; /*ie6 fix*/
|
233
|
+
float: left;
|
234
|
+
margin: 0 10px 0 10px;
|
235
|
+
width: 770px;
|
236
|
+
}
|
237
|
+
|
238
|
+
#template2 #main_content {
|
239
|
+
width: 920px;
|
240
|
+
}
|
241
|
+
#session #main_content {
|
242
|
+
width: 940px;
|
243
|
+
height: 400px;
|
244
|
+
margin-right: 0;
|
245
|
+
margin-left: 0;
|
246
|
+
}
|
247
|
+
#session #main_content input {
|
248
|
+
margin-bottom: 10px;
|
249
|
+
}
|
250
|
+
|
251
|
+
#session #main_content div.login_box {
|
252
|
+
margin: 50px;
|
253
|
+
}
|
254
|
+
|
255
|
+
|
256
|
+
/* MAIN CONTENT ELEMENTS */
|
257
|
+
|
258
|
+
#content_links, .right_box, .right, .left {
|
259
|
+
border: 1px solid #999;
|
260
|
+
float: right;
|
261
|
+
margin: 10px 0 10px 10px;
|
262
|
+
padding: 10px;
|
263
|
+
}
|
264
|
+
|
265
|
+
/* 15px padding around images and objects */
|
266
|
+
#content_links img, #content_links object {
|
267
|
+
margin: 15px;
|
268
|
+
}
|
269
|
+
|
270
|
+
.left {
|
271
|
+
float: left;
|
272
|
+
margin: 10px 10px 10px 0;
|
273
|
+
}
|
274
|
+
|
275
|
+
#content_links ul li {
|
276
|
+
list-style-type: none;
|
277
|
+
}
|
278
|
+
|
279
|
+
/*Columns*/
|
280
|
+
|
281
|
+
.full_width {
|
282
|
+
margin-bottom: 10px;
|
283
|
+
}
|
284
|
+
|
285
|
+
.left_col {
|
286
|
+
float: left;
|
287
|
+
margin-right: 2%;
|
288
|
+
width: 49%;
|
289
|
+
}
|
290
|
+
|
291
|
+
.right_col {
|
292
|
+
float: left;
|
293
|
+
width: 49%;
|
294
|
+
}
|
295
|
+
|
296
|
+
.blog_stories, .blog_story {
|
297
|
+
float: left;
|
298
|
+
width: 75%;
|
299
|
+
}
|
300
|
+
#blog_sidebar {
|
301
|
+
float: right;
|
302
|
+
width: 15%;
|
303
|
+
}
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
/* FOOTER CONTENT */
|
308
|
+
|
309
|
+
#footer {
|
310
|
+
clear: both;
|
311
|
+
margin: 20px 0 60px 0;
|
312
|
+
width: 100%;
|
313
|
+
}
|
314
|
+
|
315
|
+
#footer .footer_nav, #footer p {
|
316
|
+
margin: 0;
|
317
|
+
text-align: center;
|
318
|
+
}
|
319
|
+
|
320
|
+
#footer .footer_nav li {
|
321
|
+
display: inline;
|
322
|
+
list-style-type: none;
|
323
|
+
margin:0 10px;
|
324
|
+
}
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
/* ##### Adjustable Variables Mostly Colors##### */
|
329
|
+
|
330
|
+
/*Body (main page) background color and font color*/
|
331
|
+
|
332
|
+
body {
|
333
|
+
background-color: #f0dc8d;
|
334
|
+
color: #666;
|
335
|
+
}
|
336
|
+
|
337
|
+
h1 {
|
338
|
+
color: #5c8727;
|
339
|
+
}
|
340
|
+
h2 {
|
341
|
+
color: #006971;
|
342
|
+
}
|
343
|
+
h3 {
|
344
|
+
color: #df8d19;
|
345
|
+
}
|
346
|
+
h4 {
|
347
|
+
color: #6f1100;
|
348
|
+
}
|
349
|
+
h5 {
|
350
|
+
color: #766441;
|
351
|
+
}
|
352
|
+
|
353
|
+
/*Main Content Area Background Colors*/
|
354
|
+
|
355
|
+
#main_content, #template3 #content_wrapper, #template4 #content_wrapper, #content_body_wrap {
|
356
|
+
background-color: #fff; /*Content background color*/
|
357
|
+
}
|
358
|
+
|
359
|
+
|
360
|
+
/*Border color of foated content*/
|
361
|
+
|
362
|
+
#content_links, .right_box, .right, .left {
|
363
|
+
border-color: #666;
|
364
|
+
}
|
365
|
+
|
366
|
+
|
367
|
+
/*Footer Text Colors*/
|
368
|
+
|
369
|
+
#footer {
|
370
|
+
color: #9c4e1a; /*Has to be set so it stands out from the page color*/
|
371
|
+
}
|
372
|
+
|
373
|
+
#footer a {
|
374
|
+
color: #000000;/*Has to be set to suit page background color*/
|
375
|
+
}
|
376
|
+
|
377
|
+
/*Navigation colors*/
|
378
|
+
|
379
|
+
#primary_nav {
|
380
|
+
border-color: #fff; /*Should match the content backround color*/
|
381
|
+
}
|
382
|
+
|
383
|
+
#primary_nav, #primary_nav ul li, #template4 #secondary_nav li a, #template3 #primary_nav ul li a, #template1 #secondary_nav ul li a, #template #primary_nav ul li a, #primary_nav ul li a {
|
384
|
+
background-color: #9c4e1a;
|
385
|
+
color: #ffffff;
|
386
|
+
}
|
387
|
+
|
388
|
+
#template4 #secondary_nav li a:hover, #template3 #primary_nav ul li a:hover, #template1 #secondary_nav ul li a:hover, #primary_nav ul li a:hover, #template #primary_nav ul li a:hover {
|
389
|
+
background-color: #70655a;
|
390
|
+
}
|
391
|
+
|
392
|
+
/*Side Fly-Out Navigation Colors*/
|
393
|
+
|
394
|
+
#template3 #primary_nav ul li:hover ul li a, #template3 #primary_nav ul li.sfhover ul li a ,#template1 #secondary_nav ul li:hover ul li a, #template1 #secondary_nav ul li.sfhover ul li a, #template #primary_nav ul li:hover ul li a, #template #primary_nav ul li.sfhover ul li a {
|
395
|
+
background-color: #9c4e1a;
|
396
|
+
}
|
397
|
+
|
398
|
+
#template3 #primary_nav ul li:hover ul li a:hover, #template3 #primary_nav ul li.sfhover ul li a:hover ,#template1 #secondary_nav ul li:hover ul li a:hover, #template1 #secondary_nav ul li.sfhover ul li a:hover, #template #primary_nav ul li:hover ul li a:hover, #template #primary_nav ul li.sfhover ul li a:hover {
|
399
|
+
background-color: #70655a;
|
400
|
+
}
|
401
|
+
|
402
|
+
/* #### tables #### */
|
403
|
+
|
404
|
+
#main_content .formatted {
|
405
|
+
border: 1px solid #999999;
|
406
|
+
}
|
407
|
+
#main_content .formatted tr.alt {
|
408
|
+
background: #ffecb4}
|
409
|
+
|
410
|
+
#main_content th, #main_content td {
|
411
|
+
padding-left: 10px;
|
412
|
+
padding-right: 10px;
|
413
|
+
padding-bottom: 1px;
|
414
|
+
padding-top: 1px;
|
415
|
+
}
|
416
|
+
|
417
|
+
#main_content .formatted th, #main_content .formatted td {
|
418
|
+
border-right: 1px solid #999999;
|
419
|
+
}
|
420
|
+
#main_content .formatted th {
|
421
|
+
background: #c3d7a4;
|
422
|
+
text-align: center;
|
423
|
+
font-weight: bold;
|
424
|
+
font-variant: small-caps;
|
425
|
+
font-size: large;
|
426
|
+
color: #000000;
|
427
|
+
}
|
428
|
+
|
429
|
+
/* ##### Bockquotes ##### */
|
430
|
+
|
431
|
+
#main_content blockquote {
|
432
|
+
margin: 50px;
|
433
|
+
padding: 10px;
|
434
|
+
background-color: #9c4e1a;
|
435
|
+
color: #000000;
|
436
|
+
}
|
437
|
+
|
438
|
+
|
439
|
+
/* ##### END OF ADJUSTABLE VARIABLES ##### */
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
/* CLEAR FLOATS WITH CLEARFIX CLASS ON CONTAINER */
|
446
|
+
|
447
|
+
.clearfix:after {
|
448
|
+
content:".";
|
449
|
+
display:block;
|
450
|
+
height:0;
|
451
|
+
clear:both;
|
452
|
+
visibility:hidden;
|
453
|
+
}
|
454
|
+
.clearfix {display:inline-block;}
|
455
|
+
/* Hide from IE Mac \*/
|
456
|
+
.clearfix {display:block;}
|
457
|
+
element { }
|
458
|
+
/* End hide from IE Mac */
|
@@ -0,0 +1,202 @@
|
|
1
|
+
aside, article, section {
|
2
|
+
display: block; }
|
3
|
+
|
4
|
+
/**************************************************************************
|
5
|
+
------------------------------ GENERAL ------------------------------------
|
6
|
+
**************************************************************************/
|
7
|
+
html, body, form, fieldset {
|
8
|
+
margin: 0;
|
9
|
+
padding: 0; }
|
10
|
+
|
11
|
+
html {
|
12
|
+
min-height: 100%;
|
13
|
+
margin-bottom: 1px;
|
14
|
+
font-size: 100.01%; }
|
15
|
+
|
16
|
+
body {
|
17
|
+
background: #89b6c5;
|
18
|
+
font: normal 1em/1.2em "Trebuchet MS", Arial; }
|
19
|
+
|
20
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, dl {
|
21
|
+
margin: 1em 0;
|
22
|
+
padding: 0; }
|
23
|
+
|
24
|
+
li, dd, blockquote {
|
25
|
+
margin-left: 1em; }
|
26
|
+
|
27
|
+
input, select, textarea {
|
28
|
+
font-size: 100%;
|
29
|
+
font-family: inherit; }
|
30
|
+
|
31
|
+
.clearfix:after {
|
32
|
+
content: ".";
|
33
|
+
display: block;
|
34
|
+
height: 0;
|
35
|
+
clear: both;
|
36
|
+
visibility: hidden; }
|
37
|
+
|
38
|
+
a:active {
|
39
|
+
outline: none; }
|
40
|
+
|
41
|
+
a:focus {
|
42
|
+
-moz-outline-style: none; }
|
43
|
+
|
44
|
+
body {
|
45
|
+
margin: 15px auto;
|
46
|
+
font-family: Arial, "MS Trebuchet", sans-serif;
|
47
|
+
background-color: white; }
|
48
|
+
|
49
|
+
header#page_header {
|
50
|
+
height: 100px;
|
51
|
+
margin: 0;
|
52
|
+
padding: 0 5%;
|
53
|
+
background: url(/images/deluxe_publisher/header_background.jpg); }
|
54
|
+
header#page_header h2 {
|
55
|
+
height: 100px;
|
56
|
+
margin: 0 20px 0 10px;
|
57
|
+
float: right; }
|
58
|
+
header#page_header h2 a {
|
59
|
+
display: block;
|
60
|
+
width: 223px;
|
61
|
+
height: 100px;
|
62
|
+
padding: 0;
|
63
|
+
background-image: url(/images/deluxe_publisher/logo.gif); }
|
64
|
+
header#page_header h2 a span {
|
65
|
+
display: none; }
|
66
|
+
header#page_header h1 {
|
67
|
+
margin: 0;
|
68
|
+
padding: 0;
|
69
|
+
color: #fff;
|
70
|
+
font-weight: normal;
|
71
|
+
line-height: 100px;
|
72
|
+
top: 0px;
|
73
|
+
left: 300px; }
|
74
|
+
|
75
|
+
section#content {
|
76
|
+
margin: 0;
|
77
|
+
padding: 20px 10%;
|
78
|
+
min-height: 397px;
|
79
|
+
background: white url(/images/deluxe_publisher/content_bg.jpg) repeat-x bottom; }
|
80
|
+
|
81
|
+
span.page_leaf_title {
|
82
|
+
cursor: pointer;
|
83
|
+
width: 250px;
|
84
|
+
display: inline-block; }
|
85
|
+
|
86
|
+
span.page_title {
|
87
|
+
width: 250px;
|
88
|
+
display: inline-block; }
|
89
|
+
|
90
|
+
span.unpublished {
|
91
|
+
color: #999; }
|
92
|
+
|
93
|
+
ul.page_directory {
|
94
|
+
display: none;
|
95
|
+
padding-left: 5px;
|
96
|
+
padding-bottom: 5px; }
|
97
|
+
|
98
|
+
li.page_link {
|
99
|
+
list-style-type: none; }
|
100
|
+
li.page_link a {
|
101
|
+
font-size: 80%;
|
102
|
+
text-decoration: none;
|
103
|
+
padding-right: 5px;
|
104
|
+
color: #555A5F; }
|
105
|
+
li.page_link a img {
|
106
|
+
padding-right: 3px; }
|
107
|
+
|
108
|
+
form.deluxe_publisher_page article, form.edit_deluxe_publisher_page_type article {
|
109
|
+
margin: 0 0 20px 0;
|
110
|
+
padding: 10px 20px;
|
111
|
+
border: 1px solid #b3b3ae;
|
112
|
+
z-index: 0;
|
113
|
+
background: #f1f9fc url(/images/deluxe_publisher/tabs_bg.jpg) repeat-x top; }
|
114
|
+
form.deluxe_publisher_page article#page_content, form.edit_deluxe_publisher_page_type article#page_content {
|
115
|
+
display: none; }
|
116
|
+
form.deluxe_publisher_page article#seo, form.edit_deluxe_publisher_page_type article#seo {
|
117
|
+
display: none; }
|
118
|
+
form.deluxe_publisher_page fieldset, form.edit_deluxe_publisher_page_type fieldset {
|
119
|
+
padding: 10px;
|
120
|
+
margin-bottom: 20px; }
|
121
|
+
form.deluxe_publisher_page fieldset div.field, form.edit_deluxe_publisher_page_type fieldset div.field {
|
122
|
+
vertical-align: top;
|
123
|
+
display: inline-block;
|
124
|
+
width: 350px; }
|
125
|
+
form.deluxe_publisher_page fieldset div.field label, form.edit_deluxe_publisher_page_type fieldset div.field label {
|
126
|
+
display: block; }
|
127
|
+
form.deluxe_publisher_page fieldset div.check_box_field, form.edit_deluxe_publisher_page_type fieldset div.check_box_field {
|
128
|
+
display: inline-block;
|
129
|
+
width: 350px; }
|
130
|
+
form.deluxe_publisher_page fieldset div.check_box_field label, form.edit_deluxe_publisher_page_type fieldset div.check_box_field label {
|
131
|
+
display: inline; }
|
132
|
+
|
133
|
+
ul#tabs {
|
134
|
+
position: relative;
|
135
|
+
top: 1px;
|
136
|
+
z-index: 10;
|
137
|
+
margin: 0;
|
138
|
+
padding: 0;
|
139
|
+
height: 31px; }
|
140
|
+
ul#tabs li {
|
141
|
+
display: inline; }
|
142
|
+
ul#tabs a {
|
143
|
+
display: block;
|
144
|
+
float: left;
|
145
|
+
width: 107px;
|
146
|
+
height: 31px;
|
147
|
+
margin-right: 3px;
|
148
|
+
text-align: center;
|
149
|
+
background: url(/images/deluxe_publisher/tab_bg.gif) 0 0;
|
150
|
+
text-decoration: none;
|
151
|
+
color: #4a4b3e;
|
152
|
+
line-height: 31px; }
|
153
|
+
ul#tabs a:hover {
|
154
|
+
background: url(/images/deluxe_publisher/tab_bg.gif) -107px 0; }
|
155
|
+
ul#tabs li.on a {
|
156
|
+
background: url(/images/deluxe_publisher/tab_bg.gif) -214px 0; }
|
157
|
+
|
158
|
+
/**************************************************************************
|
159
|
+
------------------------------ Buttons ------------------------------------
|
160
|
+
**************************************************************************/
|
161
|
+
.btn_addNewPage {
|
162
|
+
text-indent: -9999em;
|
163
|
+
display: block;
|
164
|
+
width: 118px;
|
165
|
+
height: 30px;
|
166
|
+
background: url(/images/deluxe_publisher/btn_addNewPage.gif) 0 0; }
|
167
|
+
|
168
|
+
.btn_addNewPage:hover {
|
169
|
+
background: url(/images/deluxe_publisher/btn_addNewPage.gif) 118px 0; }
|
170
|
+
|
171
|
+
.btn_save {
|
172
|
+
width: 73px;
|
173
|
+
height: 30px;
|
174
|
+
background: url(/images/deluxe_publisher/btn_save.gif) 0 0;
|
175
|
+
border: none;
|
176
|
+
text-indent: -9999em; }
|
177
|
+
|
178
|
+
.btn_save:hover {
|
179
|
+
background: url(/images/deluxe_publisher/btn_save.gif) -73px 0; }
|
180
|
+
|
181
|
+
.btn_cancel {
|
182
|
+
display: block;
|
183
|
+
margin-top: -30px;
|
184
|
+
margin-left: 80px;
|
185
|
+
width: 73px;
|
186
|
+
height: 30px;
|
187
|
+
background: url(/images/admin/btn_cancel.gif) 0 0;
|
188
|
+
border: none;
|
189
|
+
text-indent: -9999em; }
|
190
|
+
|
191
|
+
.btn_cancel:hover {
|
192
|
+
background: url(/images/admin/btn_cancel.gif) -73px 0; }
|
193
|
+
|
194
|
+
.btn_preview {
|
195
|
+
text-indent: -9999em;
|
196
|
+
display: block;
|
197
|
+
width: 118px;
|
198
|
+
height: 30px;
|
199
|
+
background: url(/images/deluxe_publisher/btn_preview.gif) 0 0; }
|
200
|
+
|
201
|
+
.btn_preview:hover {
|
202
|
+
background: url(/images/deluxe_publisher/btn_preview.gif) 118px 0; }
|
@@ -0,0 +1,19 @@
|
|
1
|
+
|
2
|
+
<article>
|
3
|
+
<%= raw @page.contents[0].html %>
|
4
|
+
</article>
|
5
|
+
|
6
|
+
<section class="blog_stories">
|
7
|
+
<% @page.blog_stories(:year => @year, :month => @month, :day => @day, :tag => @tag).each do |story| %>
|
8
|
+
<article class="blog_story">
|
9
|
+
<header>
|
10
|
+
<h3><%= story.page_title %></h3>
|
11
|
+
<h4><%= story.publish_at.strftime("%B %d, %Y") %></h4>
|
12
|
+
</header>
|
13
|
+
<div class="blog_story_teaser">
|
14
|
+
<%=raw story.contents[0].html %>
|
15
|
+
</div>
|
16
|
+
<%= link_to("Full Story", story.path) unless story.contents[1].nil? || story.contents[1].html.blank? %>
|
17
|
+
</article>
|
18
|
+
<% end %>
|
19
|
+
</section>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
xml.instruct!
|
2
|
+
|
3
|
+
xml.rss "version" => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/" do
|
4
|
+
xml.channel do
|
5
|
+
|
6
|
+
xml.title @page.browser_title
|
7
|
+
xml.link deluxe_publisher_present_url(:page_path => @page.path[1..-1], :format => "html")
|
8
|
+
xml.pubDate CGI.rfc1123_date @page.children.first.publish_at if @page.children.any?
|
9
|
+
xml.description @page.browser_title
|
10
|
+
|
11
|
+
@page.children.published.find(:all, :order => "publish_at desc").each do |post|
|
12
|
+
xml.item do
|
13
|
+
xml.title post.browser_title
|
14
|
+
xml.link deluxe_publisher_present_url(post.path[1..-1], :format => "html")
|
15
|
+
xml.description post.contents[0].html
|
16
|
+
xml.pubDate CGI.rfc1123_date post.publish_at
|
17
|
+
xml.guid deluxe_publisher_present_url(post.path[1..-1], :format => "html")
|
18
|
+
xml.author ""
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|