Commit 2c4f2f46 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_corporate_identity: add navigation in corporate identity web

parent 2bd1cb51
......@@ -426,4 +426,136 @@ pre {
}
.ci-web .ci-web-page-content pre code {
white-space: pre;
}
\ No newline at end of file
}
#hidden_fieldset{
display: none;
}
.headteaser {
background: rgb(228,235,241);
text-align: left;
color: #404040;
/* ===== EDIT SVEN ==== */
color: rgb(131,151,166);
/* ===== EDIT SVEN ==== */
font-size: 15px;
line-height: 26px;
}
.headteaser h1, .content h2 {
font-weight: normal;
font-size: 25px;
line-height: 33px;
}
.breadcrumb {
padding: 0;
}
.breadcrumb ul {
margin: 0;
padding: 0;
list-style-type: none;
padding: 0;
}
.breadcrumb ul li {
margin: 0;
padding: 0;
font-size: 13px;
color: rgb(113,134,149);
}
.breadcrumb ul li a {
margin: 0;
padding: 0;
float: left;
padding-right: 14px;
margin-right: 7px;
text-decoration: none;
color: rgb(28,118,187);
background: url(../img/breadmarker.png) no-repeat right 10px;
transition: all 300ms ease-in-out;
-moz-transition: all 300ms ease-in-out;
-webkit-transition: all 300ms ease-in-out;
-o-transition: all 300ms ease-in-out;
}
.breadcrumb ul li a:hover {
color: rgb(2,87,136);
transition: all 200ms ease-in-out;
-moz-transition: all 200ms ease-in-out;
-webkit-transition: all 200ms ease-in-out;
-o-transition: all 200ms ease-in-out;
}
.last-breadcrumb {
background:none!important;
}
.headteaser .teaserText {
padding: 43px 0 0 0;
}
.headteaser .teaserInfo {
margin: 43px 0 0 0;
padding: 10px 0 14px 0;
border-top: 1px solid rgb(180,199,213);
border-bottom: 1px solid rgb(180,199,213);
float: left;
width: 100%;
}
.teaserInfo ul {
list-style-type: none;
margin: 0;
padding: 0;
font-size: 13px;
line-height: 20px;
}
.teaserInfo ul li {
display: block;
float: none;
}
.teaserInfo ul strong {
display: inline-block;
width: 110px;
font-weight: 600;
}
.wrapper:not(#wrapper_site_header) {
width: 80%;
max-width: 64em;
margin: 0 auto;
}
@media only screen and (min-width: 700px) {
.teaserInfo ul li {
display: inline-block;
float: left;
padding: 0 16px 0 16px;
border-right: 1px solid rgb(180,199,213);
}
.teaserInfo ul li:nth-of-type(1) {
padding-left: 4px;
}
.teaserInfo ul strong {
width: auto;
display: block;
}
}
@media(max-width: 64em) {
.wrapper:not(#wrapper_site_header) {
width: auto;
padding: 0 1em;
}
}
......@@ -203,7 +203,7 @@
</item>
<item>
<key> <string>name</string> </key>
<value> <string>container_layout</string> </value>
<value> <string>erp5_ci_web_container_layout</string> </value>
</item>
<item>
<key> <string>pt</string> </key>
......
......@@ -129,7 +129,7 @@
<key> <string>profile_document</string> </key>
<value>
<list>
<string>document_summary</string>
<string>profile_document</string>
</list>
</value>
</item>
......
......@@ -8,7 +8,7 @@
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>document_summary</string> </value>
<value> <string>profile_document</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......@@ -271,7 +271,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>document_summary</string> </value>
<value> <string>profile_document</string> </value>
</item>
<item>
<key> <string>unicode</string> </key>
......
......@@ -8,7 +8,7 @@
content_form python: content_form_id and getattr(here, content_form_id, None) or None;
has_no_layout python: layout_form is None;
has_no_content_form python: content_form is None;
aggregate python: has_no_layout or layout_form.Form_getGroupList(['site_header', 'site_footer', 'header_title', 'breadcrumb', 'document_summary', 'special_header']);
aggregate python: has_no_layout or layout_form.Form_getGroupList(['site_header', 'site_footer', 'header_title', 'breadcrumb', 'profile_document', 'special_header']);
aggregate python: ((aggregate is not has_no_layout) and dict(aggregate)) or {};
mode python: request.get('list_mode', request.get('dialog_mode', None), '');
mode_class python: '%s-mode-content' % (mode);
......@@ -17,7 +17,7 @@
site_footer_area python: aggregate.get('site_footer', []);
header_title_area python: aggregate.get('header_title', []);
breadcrumb_area python: aggregate.get('breadcrumb', []);
document_summary_area python: aggregate.get('document_summary', []);
profile_document_area python: aggregate.get('profile_document', []);
special_header_area python: aggregate.get('special_header', []);
website python: context.getWebSiteValue();
root_url python: website.absolute_url();
......@@ -61,9 +61,10 @@
<tal:block metal:use-macro="here/theme_macros_library/macros/aggregate_render"/>
</tal:block>
<tal:block tal:repeat="aggregate python: [('document_summary', document_summary_area)]">
<tal:block tal:repeat="aggregate python: [('profile_document', profile_document_area)]">
<tal:block metal:use-macro="here/theme_macros_library/macros/aggregate_render"/>
</tal:block>
</tal:block>
<span class="portal_status_message" tal:content="portal_status_message"
......@@ -83,7 +84,7 @@
<tal:comment replace="nothing">Standard Page Form Content ("simplicity: Form is rendered here")</tal:comment>
<tal:block tal:condition="python: not is_front_page">
<tal:block metal:use-macro="here/theme_macros_library/macros/default_content" />
<tal:block tal:replace="structure python: here.asEntireHTML()"></tal:block>
</tal:block>
<tal:comment replace="nothing">Special Page Content (Front page, showing all documents related to default document)</tal:comment>
<tal:block tal:condition="python: layout_form is not None">
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>img</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Image" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>breadmarker.png</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/png</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>8</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>breadmarker.png</string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>6</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -63,10 +63,13 @@
<tal:block tal:repeat="field field_list">
<tal:block tal:define="field_title string: ${field/title};
strip_title python: field_title.strip();
good_render nocall: context/field_render/macros/field_render;
fake_render python: context.theme_macros_library.macros.get(strip_title);
field_render python: good_render if fake_render is None else fake_render;">
<tal:block tal:replace="structure python: context.field_renderer(macro=field_render)" />
fake_render python: context.theme_macros_library.macros.get(strip_title);">
<tal:block tal:condition="fake_render">
<tal:block tal:replace="structure python: context.field_renderer(macro=fake_render)" />
</tal:block>
<tal:block tal:condition="not:fake_render">
<tal:block metal:use-macro="here/field_render/macros/field_render"/>
</tal:block>
</tal:block>
</tal:block>
</fieldset>
......@@ -396,59 +399,44 @@
</tal:block>
</tal:block>
<tal:block metal:define-macro="header_title"><p>BAM-Header-Title</p></tal:block>
<tal:block metal:define-macro="discussions"><p>BAM-Discussions</p></tal:block>
<tal:block metal:define-macro="breadcrumb"><p>BAM-Breadcrumb</p></tal:block>
<tal:block metal:define-macro="document_profile"><p>BAM-Document-Profile</p></tal:block>
<tal:block metal:define-macro="xxxheader_title">
<tal:block metal:define-macro="header_title">
<h1 tal:content="here/getTitle"></h1>
</tal:block>
<tal:block metal:define-macro="xxxbreadcrumb">
<tal:block metal:define-macro="breadcrumb">
<div class="breadcrumb"
tal:define="current_web_section python:request.get('current_web_section', here);
current_web_document python:request.get('current_web_document', here);
portal_path python:request.get('current_web_section_url', current_web_section.absolute_url());
is_web_section_default_document python:request.get('is_web_section_default_document',False);
breadcrumb_list python: current_web_section.getBreadcrumbItemList(current_web_document);">
tal:define="current_web_section python:request.get('current_web_section', here);
current_web_document python:here;
portal_path python:request.get('current_web_section_url', current_web_section.absolute_url());
is_web_section_default_document python:request.get('is_web_section_default_document',False);
breadcrumb_list python: current_web_section.getBreadcrumbItemList(current_web_document);">
<ul>
<li tal:repeat="breadcrumb python: breadcrumb_list[:(is_web_section_default_document and -1 or None)]">
<li tal:repeat="breadcrumb python:breadcrumb_list[:(is_web_section_default_document and -1 or None)]">
<tal:block tal:define="is_last repeat/breadcrumb/end;
is_first repeat/breadcrumb/start;">
<a href="#" tal:attributes="href python: current_web_section.getPermanentURL(breadcrumb[1]);
title python: breadcrumb[2];
class python: test(is_last, 'last-breadcrumb', 'breadcrumb')"
tal:content="python: test(is_first, breadcrumb[0], breadcrumb[1].getShortTitle() or breadcrumb[0])">Title</a>
<a href="#"
tal:attributes="href python:current_web_section.getPermanentURL(breadcrumb[1]);
title python: breadcrumb[2];
class python: test(is_last, 'last-breadcrumb', 'breadcrumb')"
tal:content="python: test(is_first, breadcrumb[0], breadcrumb[1].getShortTitle() or breadcrumb[0])">Title</a>
</tal:block>
</li>
</ul>
</div>
</tal:block>
<tal:block metal:define-macro="xxxprofile_document">
<tal:block metal:define-macro="profile_document">
<span tal:replace="here/getDescription"/>
<div class="teaserInfo">
<ul>
<li><strong>Last Update:</strong><span tal:replace="python: context.getModificationDate().strftime('%Y-%m-%d')"/></li>
<li><strong>Version:</strong><span tal:replace="python: getattr(context, 'getVersion', str)()"/></li>
<li><strong>Language:</strong><span tal:replace="python: getattr(context, 'getLanguage', str)()"/></li>
<li>Social Media Map</li>
</ul>
</div>
</tal:block>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment