Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Mukul
erp5
Commits
3de0f6b0
Commit
3de0f6b0
authored
Dec 07, 2017
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity: add missing files
parent
d5cb9087
Changes
31
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
1984 additions
and
0 deletions
+1984
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet.xml
...lateItem/portal_skins/erp5_corporate_identity_leaflet.xml
+47
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_createLeaflet.xml
...erp5_corporate_identity_leaflet/WebPage_createLeaflet.xml
+58
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_createLeaflet.zpt
...erp5_corporate_identity_leaflet/WebPage_createLeaflet.zpt
+69
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_createLeafletContent.xml
...rporate_identity_leaflet/WebPage_createLeafletContent.xml
+58
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_createLeafletContent.zpt
...rporate_identity_leaflet/WebPage_createLeafletContent.zpt
+47
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_createLeafletFooter.xml
...orporate_identity_leaflet/WebPage_createLeafletFooter.xml
+58
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_createLeafletFooter.zpt
...orporate_identity_leaflet/WebPage_createLeafletFooter.zpt
+65
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_createLeafletHeader.xml
...orporate_identity_leaflet/WebPage_createLeafletHeader.xml
+58
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_createLeafletHeader.zpt
...orporate_identity_leaflet/WebPage_createLeafletHeader.zpt
+41
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_createLegalese.xml
...rp5_corporate_identity_leaflet/WebPage_createLegalese.xml
+58
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_createLegalese.zpt
...rp5_corporate_identity_leaflet/WebPage_createLegalese.zpt
+55
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_exportAsLeaflet.py
...rp5_corporate_identity_leaflet/WebPage_exportAsLeaflet.py
+17
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_exportAsLeaflet.xml
...p5_corporate_identity_leaflet/WebPage_exportAsLeaflet.xml
+62
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_printAsLeaflet.py
...erp5_corporate_identity_leaflet/WebPage_printAsLeaflet.py
+17
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_printAsLeaflet.xml
...rp5_corporate_identity_leaflet/WebPage_printAsLeaflet.xml
+62
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_updateLeafletDialog.py
...corporate_identity_leaflet/WebPage_updateLeafletDialog.py
+24
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_updateLeafletDialog.xml
...orporate_identity_leaflet/WebPage_updateLeafletDialog.xml
+62
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_viewAsLeaflet.py
.../erp5_corporate_identity_leaflet/WebPage_viewAsLeaflet.py
+313
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_viewAsLeaflet.xml
...erp5_corporate_identity_leaflet/WebPage_viewAsLeaflet.xml
+62
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_viewAsWeb.py
...kins/erp5_corporate_identity_leaflet/WebPage_viewAsWeb.py
+17
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_viewAsWeb.xml
...ins/erp5_corporate_identity_leaflet/WebPage_viewAsWeb.xml
+62
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/leaflet_css.xml
...tal_skins/erp5_corporate_identity_leaflet/leaflet_css.xml
+26
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/leaflet_css/leaflet.css.css
...p5_corporate_identity_leaflet/leaflet_css/leaflet.css.css
+273
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/leaflet_css/leaflet.css.xml
...p5_corporate_identity_leaflet/leaflet_css/leaflet.css.xml
+28
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/leaflet_css/leaflet.pdf.css.css
...orporate_identity_leaflet/leaflet_css/leaflet.pdf.css.css
+253
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/leaflet_css/leaflet.pdf.css.xml
...orporate_identity_leaflet/leaflet_css/leaflet.pdf.css.xml
+28
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/leaflet_img.xml
...tal_skins/erp5_corporate_identity_leaflet/leaflet_img.xml
+26
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/leaflet_img/recycle.png.png
...p5_corporate_identity_leaflet/leaflet_img/recycle.png.png
+0
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/leaflet_img/recycle.png.xml
...p5_corporate_identity_leaflet/leaflet_img/recycle.png.xml
+36
-0
bt5/erp5_corporate_identity/bt/template_registered_skin_selection_list
...orate_identity/bt/template_registered_skin_selection_list
+1
-0
bt5/erp5_corporate_identity/bt/template_skin_id_list
bt5/erp5_corporate_identity/bt/template_skin_id_list
+1
-0
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet.xml
0 → 100644
View file @
3de0f6b0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Folder"
module=
"OFS.Folder"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_local_properties
</string>
</key>
<value>
<tuple>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
business_template_skin_layer_priority
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
float
</string>
</value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key>
<string>
_objects
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
business_template_skin_layer_priority
</string>
</key>
<value>
<float>
100.0
</float>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
erp5_corporate_identity_leaflet
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
two page flyer
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_createLeaflet.xml
0 → 100644
View file @
3de0f6b0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ZopePageTemplate"
module=
"Products.PageTemplates.ZopePageTemplate"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
expand
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
WebPage_createLeaflet
</string>
</value>
</item>
<item>
<key>
<string>
output_encoding
</string>
</key>
<value>
<string>
utf-8
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<unicode></unicode>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_createLeaflet.zpt
0 → 100644
View file @
3de0f6b0
<tal:comment
replace=
"nothing"
>
"""
================================================================================
Generates the complete leaflet
================================================================================
"""
</tal:comment>
<tal:block
tal:define=
"leaflet_theme python: options.get('leaflet_theme');
leaflet_title python: options.get('leaflet_title');
leaflet_language python: options.get('leaflet_language');
leaflet_theme_css_font_list python: options.get('leaflet_theme_css_font_list');
leaflet_theme_css_url python: options.get('leaflet_theme_css_url');
leaflet_template_css_url python: options.get('leaflet_template_css_url');
leaflet_organisation python: options.get('leaflet_organisation');
leaflet_organisation_claim python: options.get('leaflet_organisation_claim');
leaflet_logo_url python: options.get('leaflet_logo_url');
leaflet_copyright python: options.get('leaflet_copyright');
leaflet_full_reference python: options.get('leaflet_full_reference');
leaflet_year python: options.get('leaflet_year');
leaflet_contributor_list python: options.get('leaflet_contributor_list');
leaflet_organisation python: options.get('leaflet_organisation');
leaflet_address python: options.get('leaflet_address');
leaflet_postal_code python: options.get('leaflet_postal_code');
leaflet_city python: options.get('leaflet_city');
leaflet_country python: options.get('lleaflet_country');
leaflet_email python: options.get('leaflet_email');
leaflet_phone python: options.get('leaflet_phone');
leaflet_date python: options.get('leaflet_date');
leaflet_content python: options.get('leaflet_content');
leaflet_display_side python: options.get('leaflet_display_side');
leaflet_theme_logo_url python: options.get('leaflet_theme_logo_url');
leaflet_theme_logo_alt python: options.get('leaflet_theme_logo_alt');
leaflet_recycle_url python: options.get('leaflet_recycle_url');
leaflet_css python: options.get('leaflet_css');"
>
<!DOCTYPE html>
<html
tal:attributes=
"class python: ''.join(['ci-', leaflet_theme, ' ci-', leaflet_language])"
>
<head>
<meta
charset=
"utf-8"
>
<title
tal:content=
"leaflet_title"
></title>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<tal:block
tal:repeat=
"font_url leaflet_theme_css_font_list"
>
<link
rel=
"stylesheet"
tal:attributes=
"href font_url"
/>
</tal:block>
<link
rel=
"stylesheet"
tal:attributes=
"href python: ''.join([leaflet_theme_css_url, '?portal_skin=Leaflet'])"
/>
<link
rel=
"stylesheet"
tal:attributes=
"href python: ''.join([leaflet_template_css_url, '?portal_skin=Leaflet'])"
/>
<tal:block
tal:condition=
"python: leaflet_css is not None"
>
<style
type=
"text/css"
tal:content=
"python: leaflet_css"
></style>
</tal:block>
<script
type=
"text/javascript"
>
function
setPlaceholdersWithUrlParameters
()
{
var
vars
=
{};
var
x
=
window
.
location
.
search
.
substring
(
1
).
split
(
'
&
'
);
for
(
var
i
in
x
)
{
var
z
=
x
[
i
].
split
(
'
=
'
,
2
);
vars
[
z
[
0
]]
=
unescape
(
z
[
1
]);}
var
x
=
[
'
frompage
'
,
'
topage
'
,
'
page
'
,
'
webpage
'
,
'
section
'
,
'
subsection
'
,
'
subsubsection
'
];
for
(
var
i
in
x
)
{
var
y
=
document
.
getElementsByClassName
(
x
[
i
]);
for
(
var
j
=
0
;
j
<
y
.
length
;
++
j
)
y
[
j
].
textContent
=
vars
[
x
[
i
]];
}
}
</script>
</head>
<body
class=
"ci-leaflet"
onload=
"setPlaceholdersWithUrlParameters()"
>
<tal:block
metal:use-macro=
"context/WebPage_createLeafletHeader/macros/leaflet_header"
/>
<tal:block
metal:use-macro=
"context/WebPage_createLeafletContent/macros/leaflet_content"
/>
<tal:block
metal:use-macro=
"context/WebPage_createLeafletFooter/macros/leaflet_footer"
/>
</body>
</html>
</tal:block>
\ No newline at end of file
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_createLeafletContent.xml
0 → 100644
View file @
3de0f6b0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ZopePageTemplate"
module=
"Products.PageTemplates.ZopePageTemplate"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
expand
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
WebPage_createLeafletContent
</string>
</value>
</item>
<item>
<key>
<string>
output_encoding
</string>
</key>
<value>
<string>
utf-8
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<unicode></unicode>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_createLeafletContent.zpt
0 → 100644
View file @
3de0f6b0
<tal:comment
replace=
"nothing"
>
"""
================================================================================
Generate leaflet content
================================================================================
"""
</tal:comment>
<tal:block
tal:define=
"leaflet_theme python: options.get('leaflet_theme');
leaflet_title python: options.get('leaflet_title');
leaflet_language python: options.get('leaflet_language');
leaflet_theme_css_font_list python: options.get('leaflet_theme_css_font_list');
leaflet_theme_css_url python: options.get('leaflet_theme_css_url');
leaflet_template_css_url python: options.get('leaflet_template_css_url');
leaflet_display_side python: options.get('leaflet_display_side');
leaflet_content python: options.get('leaflet_content');
leaflet_css python: options.get('leaflet_css');"
>
<!DOCTYPE html>
<html
tal:attributes=
"class python: ''.join(['ci-', leaflet_theme, ' ci-', leaflet_language])"
>
<head>
<meta
charset=
"utf-8"
>
<title
tal:content=
"leaflet_title"
></title>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<tal:block
tal:repeat=
"font_url leaflet_theme_css_font_list"
>
<link
rel=
"stylesheet"
tal:attributes=
"href font_url"
/>
</tal:block>
<link
rel=
"stylesheet"
tal:attributes=
"href python: ''.join([leaflet_theme_css_url, '?portal_skin=Leaflet'])"
/>
<link
rel=
"stylesheet"
tal:attributes=
"href python: ''.join([leaflet_template_css_url, '?portal_skin=Leaflet'])"
/>
<tal:block
tal:condition=
"python: leaflet_css is not None"
>
<style
type=
"text/css"
tal:content=
"python: leaflet_css"
></style>
</tal:block>
</head>
<body
class=
"ci-leaflet"
>
<tal:block
metal:use-macro=
"context/WebPage_createLeafletContent/macros/leaflet_content"
/>
</body>
</html>
</tal:block>
<tal:block
tal:condition=
"python: False"
>
<tal:block
metal:define-macro=
"leaflet_content"
>
<div
class=
"ci-two-page-main"
>
<h1
tal:content=
"python: leaflet_title"
></h1>
<div
tal:attributes=
"class python: 'ci-leaflet-body ' + ('' if leaflet_display_side == 1 else 'ci-leaflet-body-fullwidth')"
>
<tal:block
tal:content=
"structure leaflet_content"
></tal:block>
</div>
</div>
</tal:block>
</tal:block>
\ No newline at end of file
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_createLeafletFooter.xml
0 → 100644
View file @
3de0f6b0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ZopePageTemplate"
module=
"Products.PageTemplates.ZopePageTemplate"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
expand
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
WebPage_createLeafletFooter
</string>
</value>
</item>
<item>
<key>
<string>
output_encoding
</string>
</key>
<value>
<string>
utf-8
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<unicode></unicode>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_createLeafletFooter.zpt
0 → 100644
View file @
3de0f6b0
<tal:comment
replace=
"nothing"
>
"""
================================================================================
Generate the leaflet footer
================================================================================
"""
</tal:comment>
<tal:block
tal:define=
"leaflet_theme python: options.get('leaflet_theme');
leaflet_title python: options.get('leaflet_title');
leaflet_language python: options.get('leaflet_language');
leaflet_theme_css_font_list python: options.get('leaflet_theme_css_font_list');
leaflet_theme_css_url python: options.get('leaflet_theme_css_url');
leaflet_template_css_url python: options.get('leaflet_template_css_url');
leaflet_logo_url python: options.get('leaflet_logo_url');
leaflet_copyright python: options.get('leaflet_copyright');
leaflet_full_reference python: options.get('leaflet_full_reference');
leaflet_year python: options.get('leaflet_year');
leaflet_contributor_list python: options.get('leaflet_contributor_list');"
>
<!DOCTYPE html>
<html
tal:attributes=
"class python: ''.join(['ci-', leaflet_theme, ' ci-', leaflet_language])"
>
<head>
<meta
charset=
"utf-8"
>
<title
tal:content=
"leaflet_title"
></title>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<tal:block
tal:repeat=
"font_url leaflet_theme_css_font_list"
>
<link
rel=
"stylesheet"
tal:attributes=
"href font_url"
/>
</tal:block>
<link
rel=
"stylesheet"
tal:attributes=
"href python: ''.join([leaflet_theme_css_url, '?portal_skin=Leaflet'])"
/>
<link
rel=
"stylesheet"
tal:attributes=
"href python: ''.join([leaflet_template_css_url, '?portal_skin=Leaflet'])"
/>
<script
type=
"text/javascript"
>
function
setPlaceholdersWithUrlParameters
()
{
var
vars
=
{};
var
x
=
window
.
location
.
search
.
substring
(
1
).
split
(
'
&
'
);
for
(
var
i
in
x
)
{
var
z
=
x
[
i
].
split
(
'
=
'
,
2
);
vars
[
z
[
0
]]
=
unescape
(
z
[
1
]);}
var
x
=
[
'
frompage
'
,
'
topage
'
,
'
page
'
,
'
webpage
'
,
'
section
'
,
'
subsection
'
,
'
subsubsection
'
];
for
(
var
i
in
x
)
{
var
y
=
document
.
getElementsByClassName
(
x
[
i
]);
for
(
var
j
=
0
;
j
<
y
.
length
;
++
j
)
y
[
j
].
textContent
=
vars
[
x
[
i
]];
}
}
</script>
</head>
<body
class=
"ci-leaflet"
onload=
"setPlaceholdersWithUrlParameters()"
>
<tal:block
metal:use-macro=
"context/WebPage_createLeafletFooter/macros/leaflet_footer"
/>
</body>
</html>
</tal:block>
<tal:block
tal:condition=
"python: False"
>
<tal:block
metal:define-macro=
"leaflet_footer"
>
<div
class=
"ci-leaflet-footer"
>
<div
class=
"ci-leaflet-container-left"
>
<tal:block
tal:condition=
"python: leaflet_logo_url != ''"
>
<img
alt=
"Logo"
tal:attributes=
"src python: leaflet_logo_url"
/>
</tal:block>
</div>
<div
class=
"ci-leaflet-container-center"
tal:content=
"python: leaflet_full_reference"
></div>
<div
class=
"ci-leaflet-container-right"
>
<span>
©
</span><span
tal:content=
"python: leaflet_year + ' ' + leaflet_copyright"
></span>
<br/>
<span
tal:content=
"python: leaflet_contributor_list"
></span>
<span
class=
"page"
></span>
|
<span
class=
"topage"
></span>
</div>
</div>
</tal:block>
</tal:block>
\ No newline at end of file
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_createLeafletHeader.xml
0 → 100644
View file @
3de0f6b0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ZopePageTemplate"
module=
"Products.PageTemplates.ZopePageTemplate"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
expand
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
WebPage_createLeafletHeader
</string>
</value>
</item>
<item>
<key>
<string>
output_encoding
</string>
</key>
<value>
<string>
utf-8
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<unicode></unicode>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_createLeafletHeader.zpt
0 → 100644
View file @
3de0f6b0
<tal:comment
replace=
"nothing"
>
"""
================================================================================
Generates the leaflet header
================================================================================
"""
</tal:comment>
<tal:block
tal:define=
"leaflet_theme python: options.get('leaflet_theme');
leaflet_title python: options.get('leaflet_title');
leaflet_language python: options.get('leaflet_language');
leaflet_theme_css_font_list python: options.get('leaflet_theme_css_font_list');
leaflet_theme_css_url python: options.get('leaflet_theme_css_url');
leaflet_template_css_url python: options.get('leaflet_template_css_url');
leaflet_organisation python: options.get('leaflet_organisation');
leaflet_organisation_claim python: options.get('leaflet_organisation_claim');"
>
<!DOCTYPE html>
<html
tal:attributes=
"class python: ''.join(['ci-', leaflet_theme, ' ci-', leaflet_language])"
>
<head>
<meta
charset=
"utf-8"
>
<title
tal:content=
"leaflet_title"
></title>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<tal:block
tal:repeat=
"font_url leaflet_theme_css_font_list"
>
<link
rel=
"stylesheet"
tal:attributes=
"href font_url"
/>
</tal:block>
<link
rel=
"stylesheet"
tal:attributes=
"href python: ''.join([leaflet_theme_css_url, '?portal_skin=Leaflet'])"
/>
<link
rel=
"stylesheet"
tal:attributes=
"href python: ''.join([leaflet_template_css_url, '?portal_skin=Leaflet'])"
/>
</head>
<body
class=
"ci-leaflet"
>
<tal:block
metal:use-macro=
"context/WebPage_createLeafletHeader/macros/leaflet_header"
/>
</body>
</html>
</tal:block>
<tal:block
tal:condition=
"python: False"
>
<tal:block
metal:define-macro=
"leaflet_header"
>
<div
class=
"ci-leaflet-header"
>
<p
class=
"ci-leaflet-source-header"
tal:content=
"python: ''.join([leaflet_organisation, ':', leaflet_organisation_claim])"
></p>
<p
class=
"ci-leaflet-sheet-header"
i18n:translate=
""
i18n:domain=
"erp5_ui"
>
Data Sheet
</p>
</div>
</tal:block>
</tal:block>
\ No newline at end of file
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_createLegalese.xml
0 → 100644
View file @
3de0f6b0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ZopePageTemplate"
module=
"Products.PageTemplates.ZopePageTemplate"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
expand
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
WebPage_createLegalese
</string>
</value>
</item>
<item>
<key>
<string>
output_encoding
</string>
</key>
<value>
<string>
utf-8
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<unicode></unicode>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_createLegalese.zpt
0 → 100644
View file @
3de0f6b0
<tal:comment replace="nothing">
"""
================================================================================
Generate leaflet legalese
================================================================================
"""
</tal:comment>
<tal:block tal:define="leaflet_organisation python: options.get('leaflet_organisation');
leaflet_logo_url python: options.get('leaflet_logo_url');
leaflet_address python: options.get('leaflet_address');
leaflet_postal_code python: options.get('leaflet_postal_code');
leaflet_city python: options.get('leaflet_city');
leaflet_country python: options.get('leaflet_country');
leaflet_email python: options.get('leaflet_email');
leaflet_phone python: options.get('leaflet_phone');
leaflet_date python: options.get('leaflet_date');
leaflet_year python: options.get('leaflet_year');
leaflet_recycle_url python: options.get('leaflet_recycle_url');">
<div id="legalese">
<p class="top"><span>©</span><span tal:content="python: ''.join([leaflet_organisation, ' ', leaflet_year])"></span></p>
<p>
<span tal:content="python: leaflet_organisation"></span><br />
<span tal:content="python: leaflet_address"></span><br />
<span tal:content="python: ''.join([leaflet_postal_code, ' ', leaflet_city])"></span><br />
<span tal:content="python: leaflet_country"></span><br />
<span tal:content="python: leaflet_email"></span><br />
<span tal:content="python: leaflet_phone"></span>
</p>
<p>
<span i18n:translate="" i18n:domain="erp5_ui">Printed in</span>
<span tal:content="python: leaflet_country"></span><br />
<span tal:content="python: leaflet_date"></span><br />
<span i18n:translate="" i18n:domain="erp5_ui">All rights reserved</span>
</p>
<p i18n:translate="" i18n:domain="erp5_ui">
All other company, product, or service names may be trademarks or service
marks of others and are the property of their respective owners. References
in this publication to the companies products or services do not imply that
the company intends to make these available in all countries in which it
operates.
</p>
<p i18n:translate="" i18n:domain="erp5_ui">
The customer is responsible for ensuring compliance with legal requirements.
It is the responsibility of the customer to seek the advice of competent legal
counsel as to the identification and interpretation of relevant laws and
regulatory requirements that may affect the customer's business and any
actions the customer may have to take to comply with these laws.
</p>
<p class="bottom">
<img tal:attributes="src python: leaflet_recycle_url" alt="foo" />
<span i18n:translate="" i18n:domain="erp5_ui">Please recycle</span>
</p>
</div>
</tal:block>
\ No newline at end of file
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_exportAsLeaflet.py
0 → 100644
View file @
3de0f6b0
"""
================================================================================
Export WebPage as Leaflet
================================================================================
"""
return
context
.
WebPage_viewAsLeaflet
(
format
=
format
,
display_side
=
display_side
,
display_svg
=
display_svg
,
override_leaflet_header_title
=
override_leaflet_header_title
,
override_source_organisation_title
=
override_source_organisation_title
,
override_source_person_title
=
override_source_person_title
,
document_save
=
document_save
,
document_download
=
document_download
,
batch_mode
=
batch_mode
,
**
kw
)
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_exportAsLeaflet.xml
0 → 100644
View file @
3de0f6b0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
format="html", display_side=1, document_download=None, batch_mode=False, document_save=None, display_svg=None, override_leaflet_header_title=None, override_source_organisation_title=None,override_source_person_title=None,**kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
WebPage_exportAsLeaflet
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_printAsLeaflet.py
0 → 100644
View file @
3de0f6b0
"""
================================================================================
Print WebPage as Leaflet
================================================================================
"""
return
context
.
WebPage_viewAsLeaflet
(
format
=
format
,
display_side
=
display_side
,
display_svg
=
display_svg
,
override_source_organisation_title
=
override_source_organisation_title
,
override_source_person_title
=
override_source_person_title
,
override_leaflet_header_title
=
override_leaflet_header_title
,
document_save
=
document_save
,
document_download
=
document_download
,
batch_mode
=
False
,
**
kw
)
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_printAsLeaflet.xml
0 → 100644
View file @
3de0f6b0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
format="pdf",display_side=1, document_download=None, batch_mode=False, document_save=None, override_leaflet_header_title=None, override_source_organisation_title=None,override_source_person_title=None, display_svg=None, **kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
WebPage_printAsLeaflet
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_updateLeafletDialog.py
0 → 100644
View file @
3de0f6b0
"""
================================================================================
Update a leaflet dialog with parameters manually entered
================================================================================
"""
from
Products.ERP5Type.Message
import
translateString
if
dialog_id
is
not
None
:
return
context
.
Base_redirect
(
dialog_id
,
keep_items
=
dict
(
portal_status_message
=
translateString
(
'Preview updated.'
),
cancel_url
=
cancel_url
,
portal_skin
=
portal_skin
,
override_source_organisation_title
=
override_source_organisation_title
,
override_source_person_title
=
override_source_person_title
,
override_leaflet_header_title
=
override_leaflet_header_title
,
format
=
format
,
display_svg
=
display_svg
,
display_side
=
display_side
,
document_save
=
document_save
,
document_download
=
document_download
,
**
kw
)
)
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_updateLeafletDialog.xml
0 → 100644
View file @
3de0f6b0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
dialog_id=None, document_download=None, cancel_url=None, document_save=None, portal_skin=None, format=None, display_side=None, display_svg=None, override_source_organisation_title=None,override_source_person_title=None, override_leaflet_header_title=None, *args,**kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
WebPage_updateLeafletDialog
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_viewAsLeaflet.py
0 → 100644
View file @
3de0f6b0
"""
================================================================================
MAIN FILE: render two pager in different output formats
================================================================================
"""
# kw-parameters (* default)
# ------------------------------------------------------------------------------
# format: output in html*, pdf
# display_side: display side bar (1)* or not (0)
# display_svg: display images as svg or png*
# transformation: convert content into nothing*, book
# ------
# override_leaflet_header_title custom title to use in the leaflet header
# override_source_organisation_title used instead of follow-up organisation
# override_source_person_title used instead of contributor
# override_batch_mode used for tests
# ------
# document_downalod: download file directly (default None)
# document_save: save file in document module (default None)
import
re
from
Products.PythonScripts.standard
import
html_quote
from
base64
import
b64encode
from
datetime
import
datetime
blank
=
''
# -------------------------- External parameters ------------------------------
# eg "Nexedi" specific parameters
customHandler
=
getattr
(
context
,
"WebPage_getCustomParameter"
,
None
)
# parameters common to all templates
commonHandler
=
getattr
(
context
,
"WebPage_getCommonParameter"
,
None
)
commonProxyHandler
=
getattr
(
context
,
"WebPage_getCommonProxyParameter"
,
None
)
def
getCustomParameter
(
my_parameter
,
my_override_data
):
if
customHandler
is
not
None
:
source_data
=
my_override_data
or
leaflet_uid
return
customHandler
(
parameter
=
my_parameter
,
source_data
=
source_data
)
def
getCommonParameter
(
my_parameter
,
my_override_data
):
if
commonHandler
is
not
None
:
source_data
=
my_override_data
or
leaflet_uid
return
commonHandler
(
parameter
=
my_parameter
,
source_data
=
source_data
)
def
getCommonProxyParameter
(
my_parameter
,
my_override_data
):
if
commonProxyHandler
is
not
None
:
source_data
=
my_override_data
or
leaflet_uid
return
commonProxyHandler
(
parameter
=
my_parameter
,
source_data
=
source_data
)
# ------------------ HTML cleanup/converter methods ----------------------------
def
removeLegalesePlaceholders
(
content
):
content
=
content
.
replace
(
"${legalese}"
,
""
)
content
=
content
.
replace
(
"${document_id}"
,
""
)
return
content
def
setOverrideParam
(
my_context
,
my_override
,
my_param
):
if
my_override
is
not
None
and
my_override
is
not
blank
:
return
html_quote
(
my_override
)
return
getattr
(
my_context
,
my_param
)
or
None
# XXX how to set checkbox correctly?
def
setToNone
(
param
):
if
param
==
blank
or
param
==
None
or
param
==
0
or
param
==
str
(
0
):
return
None
else
:
return
param
# -------------------------- Setup ---------------------------------------------
leaflet
=
context
leaflet_prefix
=
"Leaflet."
leaflet_format
=
kw
.
get
(
'format'
,
'html'
)
leaflet_layout
=
kw
.
get
(
'transformation'
,
None
)
leaflet_transformation
=
kw
.
get
(
'transformation'
,
None
)
leaflet_display_side
=
setToNone
(
kw
.
get
(
'display_side'
,
1
))
# sigh for time lost
if
leaflet_display_side
==
'1'
:
leaflet_display_side
=
1
leaflet_display_svg
=
setToNone
(
kw
.
get
(
'display_svg'
,
"png"
))
leaflet_download
=
setToNone
(
kw
.
get
(
'document_download'
,
None
))
leaflet_save
=
setToNone
(
kw
.
get
(
'document_save'
,
None
))
override_leaflet_header_title
=
kw
.
get
(
'override_leaflet_header_title'
,
None
)
override_source_person_title
=
kw
.
get
(
'override_source_person_title'
,
None
)
override_source_organisation_title
=
kw
.
get
(
"override_source_organisation_title"
,
None
)
override_batch_mode
=
kw
.
get
(
'batch_mode'
,
False
)
# -------------------------- Document Parameters ------------------------------
leaflet_uid
=
leaflet
.
getUid
()
leaflet_url
=
leaflet
.
getAbsoluteUrl
()
leaflet_content
=
leaflet
.
getTextContent
()
leaflet_title
=
leaflet
.
getTitle
()
leaflet_relative_url
=
leaflet
.
getRelativeUrl
()
leaflet_language
=
leaflet
.
getLanguage
()
leaflet_description
=
leaflet
.
getDescription
()
leaflet_creation_date
=
leaflet
.
getCreationDate
()
leaflet_date
=
leaflet_creation_date
.
strftime
(
'%Y-%b'
)
leaflet_year
=
leaflet_creation_date
.
strftime
(
'%Y'
)
leaflet_reference
=
leaflet
.
getReference
()
leaflet_version
=
leaflet
.
getVersion
()
or
"001"
leaflet_aggregate_list
=
[]
leaflet_modification_date
=
leaflet
.
getModificationDate
()
# XXX not matter what, live tests will say \xc2\xa9 and erp5 \xa9
#leaflet_copy = u"\u00A9".encode('utf-8') | unicode('©', 'utf8') | '©'.encode('utf-8').strip()
if
leaflet_language
and
leaflet_format
==
"pdf"
:
leaflet
.
REQUEST
[
'AcceptLanguage'
].
set
(
leaflet_language
,
10
)
if
leaflet_reference
is
None
:
leaflet_reference
=
leaflet_prefix
+
leaflet_title
.
replace
(
" "
,
"."
)
leaflet_full_reference
=
'-'
.
join
([
leaflet_reference
,
leaflet_version
,
leaflet_language
])
# ---------------------------- Theme Parameters --------------------------------
leaflet_theme
=
leaflet
.
Base_getThemeDict
(
custom_theme
=
getCustomParameter
(
"theme"
,
None
),
override_batch_mode
=
override_batch_mode
,
format
=
leaflet_format
,
url
=
leaflet_url
,
css_path
=
"/leaflet_css/leaflet"
)
if
override_leaflet_header_title
is
not
None
:
leaflet_theme
[
"theme_logo_description"
]
=
html_quote
(
override_leaflet_header_title
)
leaflet_recycle_url
=
''
.
join
([
leaflet_url
,
"/leaflet_img/recycle.png?portal_skin=Leaflet"
])
leaflet_css
=
''
.
join
([
'html .ci-leaflet #left-summary:before {'
,
'background: url("%s") center no-repeat;'
%
(
leaflet_theme
.
get
(
"enhanced_logo_url"
)),
'background-size: contain;'
,
'}'
])
# ---------------------------------- Source ------------------------------------
leaflet_source
=
leaflet
.
Base_getSourceDict
(
override_source_person_title
=
override_source_person_title
,
override_source_organisation_title
=
override_source_organisation_title
,
default_company_title
=
getCustomParameter
(
"default_company_title"
,
None
),
default_bank_account_uid
=
getCustomParameter
(
"default_bank_account_uid"
,
None
),
theme_logo_url
=
leaflet_theme
.
get
(
"theme_logo_url"
,
None
)
)
if
leaflet_source
.
get
(
"enhanced_logo_url"
)
!=
blank
:
leaflet_css
=
''
.
join
([
leaflet_css
,
'html .ci-leaflet #legalese:before {'
,
'background: url("%s") center no-repeat;'
%
(
leaflet_source
.
get
(
"enhanced_logo_url"
)),
'background-size: contain;'
,
'content: "";'
,
'display: block;'
,
'height: 60px;'
,
'}'
])
# --------------------------- Content Upgrades ---------------------------------
leaflet_content
=
removeLegalesePlaceholders
(
leaflet_content
)
# custom layout in leaflet
for
image
in
re
.
findall
(
'(<div class="left-icon">.*?<
\
/di
v
>)'
,
leaflet_content
):
img_caption
=
blank
caption_list
=
re
.
findall
(
'<p class="excerpt">(.*?)</p>'
,
image
,
re
.
S
)
if
len
(
caption_list
)
>
0
:
img_caption
=
caption_list
[
0
]
leaflet_content
=
leaflet_content
.
replace
(
image
,
context
.
WebPage_validateImage
(
img_string
=
image
,
img_svg_format
=
leaflet_display_svg
,
img_caption
=
img_caption
)
)
# legalese
if
leaflet_display_side
:
leaflet_legalese
=
leaflet
.
WebPage_createLegalese
(
leaflet_organisation
=
leaflet_source
.
get
(
"organisation_title"
,
None
)
or
blank
,
leaflet_address
=
leaflet_source
.
get
(
"address"
,
None
)
or
blank
,
leaflet_postal_code
=
leaflet_source
.
get
(
"postal_code"
,
None
)
or
blank
,
leaflet_city
=
leaflet_source
.
get
(
"city"
,
None
)
or
blank
,
leaflet_country
=
leaflet_source
.
get
(
"country"
,
None
)
or
blank
,
leaflet_email
=
leaflet_source
.
get
(
"email"
,
None
)
or
blank
,
leaflet_phone
=
leaflet_source
.
get
(
"phone"
,
None
)
or
blank
,
leaflet_date
=
leaflet_date
,
leaflet_year
=
leaflet_year
,
leaflet_recycle_url
=
leaflet_recycle_url
,
)
leaflet_content
=
leaflet_legalese
+
leaflet_content
# ========================= TRANSFORMATION: book ===============================
# XXX still dirty
#if leaflet_transformation == "book":
#
# leaflet_summary = re.findall('<div id="left-summary">.*?<\/div>', leaflet_content, re.S)
# leaflet_content = leaflet_content.replace(leaflet_summary[0], "")
#
# for table in re.findall('(<table.*?<\/table>)', leaflet_content):
# leaflet_content = leaflet_content.replace(table, context.WebPage_validateTable(table_string=table))
#
# for link in re.findall('(<a.*?<\/a>)', leaflet_content):
# leaflet_content = leaflet_content.replace(link, context.WebPage_validateLink(link_string=link, link_toc=true))
#
# leaflet_content = leaflet_content.replace('<h2 class="summary">', '<h1>')
# leaflet_content = leaflet_content.replace('</h2>', '</h1>')
# leaflet_stripped_content = re.findall('<div id="main-content">(.*)?<\/div>', leaflet_content, re.S)
# leaflet_content = leaflet_stripped_content[0]
# intro = '<h1 i18n:translate="" i18n:domain="erp5_ui">Introduction</h1>'
# description = '<p>' + leaflet_description + '</p>'
# toc = '${WebPage_insertTableOfReferences}'
# header = '<h1>' + leaflet_title + '</h1>'
#
# leaflet_content = ''.join([intro, description, toc, header, leaflet_content])
# ============================= Format: html ===================================
if
leaflet_format
==
"html"
:
leaflet
.
REQUEST
.
RESPONSE
.
setHeader
(
"Content-Type"
,
"text/html;"
)
return
leaflet
.
WebPage_createLeaflet
(
leaflet_theme
=
leaflet_theme
.
get
(
"theme"
),
leaflet_title
=
leaflet_title
,
leaflet_language
=
leaflet_language
,
leaflet_theme_css_font_list
=
leaflet_theme
.
get
(
"theme_css_font_list"
),
leaflet_theme_css_url
=
leaflet_theme
.
get
(
"theme_css_url"
),
leaflet_template_css_url
=
leaflet_theme
.
get
(
"template_css_url"
),
leaflet_organisation
=
leaflet_source
.
get
(
"organisation_title"
,
blank
),
leaflet_organisation_claim
=
leaflet_theme
.
get
(
"theme_logo_description"
)
or
blank
,
leaflet_logo_url
=
leaflet_source
.
get
(
"enhanced_logo_url"
),
leaflet_copyright
=
leaflet_source
.
get
(
"organisation_title"
,
blank
),
leaflet_full_reference
=
leaflet_full_reference
,
leaflet_year
=
leaflet_year
,
leaflet_contributor_list
=
leaflet_source
.
get
(
"contributor_title_string"
)
or
blank
,
leaflet_content
=
leaflet_content
,
leaflet_display_side
=
leaflet_display_side
,
leaflet_theme_logo_url
=
leaflet_theme
.
get
(
"theme_logo_url"
),
leaflet_theme_logo_alt
=
leaflet_theme
.
get
(
"theme_logo_alt"
),
leaflet_css
=
leaflet_css
,
)
# ============================= Format: pdf ====================================
if
leaflet_format
==
"pdf"
:
leaflet_head
=
leaflet
.
WebPage_createLeafletHeader
(
leaflet_theme
=
leaflet_theme
.
get
(
"theme"
),
leaflet_title
=
leaflet_title
,
leaflet_language
=
leaflet_language
,
leaflet_theme_css_font_list
=
leaflet_theme
.
get
(
"theme_css_font_list"
),
leaflet_theme_css_url
=
leaflet_theme
.
get
(
"theme_css_url"
),
leaflet_template_css_url
=
leaflet_theme
.
get
(
"template_css_url"
),
leaflet_organisation
=
leaflet_source
.
get
(
"organisation_title"
,
blank
),
leaflet_organisation_claim
=
leaflet_theme
.
get
(
"theme_logo_description"
),
)
leaflet_foot
=
leaflet
.
WebPage_createLeafletFooter
(
leaflet_theme
=
leaflet_theme
.
get
(
"theme"
),
leaflet_title
=
leaflet_title
,
leaflet_language
=
leaflet_language
,
leaflet_theme_css_font_list
=
leaflet_theme
.
get
(
"theme_css_font_list"
),
leaflet_theme_css_url
=
leaflet_theme
.
get
(
"theme_css_url"
),
leaflet_template_css_url
=
leaflet_theme
.
get
(
"template_css_url"
),
leaflet_logo_url
=
leaflet_source
.
get
(
"enhanced_logo_url"
),
leaflet_copyright
=
leaflet_source
.
get
(
"organisation_title"
,
blank
),
leaflet_full_reference
=
leaflet_full_reference
,
leaflet_year
=
leaflet_year
,
leaflet_contributor_list
=
leaflet_source
.
get
(
"contributor_title_string"
),
)
leaflet_content
=
leaflet
.
WebPage_createLeafletContent
(
leaflet_theme
=
leaflet_theme
.
get
(
"theme"
),
leaflet_title
=
leaflet_title
,
leaflet_language
=
leaflet_language
,
leaflet_theme_css_font_list
=
leaflet_theme
.
get
(
"theme_css_font_list"
),
leaflet_theme_css_url
=
leaflet_theme
.
get
(
"theme_css_url"
),
leaflet_template_css_url
=
leaflet_theme
.
get
(
"template_css_url"
),
leaflet_content
=
leaflet_content
,
leaflet_display_side
=
leaflet_display_side
,
leaflet_theme_logo_url
=
leaflet_theme
.
get
(
"theme_logo_url"
),
leaflet_theme_logo_alt
=
leaflet_theme
.
get
(
"theme_logo_description"
),
leaflet_css
=
leaflet_css
)
# ================ encode and build cloudoo elements =========================
embedded_html_data
=
leaflet
.
Base_convertHtmlToSingleFile
(
leaflet_content
,
allow_script
=
True
)
header_embedded_html_data
=
leaflet
.
Base_convertHtmlToSingleFile
(
leaflet_head
,
allow_script
=
True
)
footer_embedded_html_data
=
leaflet
.
Base_convertHtmlToSingleFile
(
leaflet_foot
,
allow_script
=
True
)
pdf_file
=
leaflet
.
Base_cloudoooDocumentConvert
(
embedded_html_data
,
"html"
,
"pdf"
,
conversion_kw
=
dict
(
encoding
=
"utf8"
,
orientation
=
"portrait"
,
margin_top
=
50
,
margin_bottom
=
20
,
margin_left
=
0
,
margin_right
=
0
,
header_html_data
=
b64encode
(
header_embedded_html_data
),
header_spacing
=
10
,
footer_html_data
=
b64encode
(
footer_embedded_html_data
),
footer_spacing
=
3
)
)
return
leaflet
.
WebPage_finishPdfCreation
(
doc_download
=
leaflet_download
,
doc_save
=
leaflet_save
,
doc_version
=
leaflet_version
,
doc_title
=
leaflet_title
,
doc_relative_url
=
leaflet_relative_url
,
doc_aggregate_list
=
leaflet_aggregate_list
,
doc_language
=
leaflet_language
,
doc_modification_date
=
leaflet_modification_date
,
doc_reference
=
leaflet_reference
,
doc_full_reference
=
leaflet_full_reference
,
doc_pdf_file
=
pdf_file
)
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_viewAsLeaflet.xml
0 → 100644
View file @
3de0f6b0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
*args,**kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
WebPage_viewAsLeaflet
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_viewAsWeb.py
0 → 100644
View file @
3de0f6b0
"""
================================================================================
View as Leaflet (using portal_skin=Leaflet)
================================================================================
"""
return
context
.
WebPage_viewAsLeaflet
(
format
=
format
,
display_side
=
display_side
,
display_svg
=
display_svg
,
override_source_organisation_title
=
override_source_organisation_title
,
override_source_person_title
=
override_source_person_title
,
override_leaflet_header_title
=
override_leaflet_header_title
,
document_save
=
document_save
,
document_download
=
document_download
,
batch_mode
=
batch_mode
,
**
kw
)
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/WebPage_viewAsWeb.xml
0 → 100644
View file @
3de0f6b0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
format="html",display_side=None, batch_mode=False, document_download=None, document_save=None, override_leaflet_header_title=None, override_source_organisation_title=None,override_source_person_title=None,display_svg=None,**kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
WebPage_viewAsWeb
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/leaflet_css.xml
0 → 100644
View file @
3de0f6b0
<?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>
leaflet_css
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/leaflet_css/leaflet.css.css
0 → 100644
View file @
3de0f6b0
/* === font size === */
.ci-leaflet
h1
,
.ci-leaflet
#left-summary
.title
,
.ci-leaflet
p
.ci-leaflet-source-header
,
.ci-leaflet
p
.ci-leaflet-sheet-header
{
font-size
:
/*42px;*/
28px
;
}
.ci-leaflet
h2
,
.ci-leaflet
#main-content
.summary
,
.ci-leaflet
#legalese
.bottom
{
font-size
:
/*30px;*/
18px
;
}
.ci-leaflet
p
,
.ci-leaflet
li
,
.ci-leaflet
div
p
:last-child
{
font-size
:
/*26px;*/
16px
;
}
.ci-leaflet
#left-summary
li
{
font-size
:
/*24px;*/
16px
;
}
.ci-leaflet-footer
div
{
font-size
:
/*18px;*/
14px
;
}
.ci-leaflet
#legalese
p
,
.ci-leaflet
#legalese
span
,
.ci-leaflet
#left-summary
.excerpt
,
.ci-leaflet
#main-content
.left-icon
.excerpt
{
font-size
:
/*20px;*/
14px
;
}
/* === font style === */
.ci-leaflet
#main-content
.summary
{
font-style
:
italic
;
}
/* === pre set === */
html
,
body
{
margin
:
0
;
padding
:
0
;
}
html
{
width
:
100%
;
height
:
100%
;
}
/* === header === */
.ci-leaflet
.ci-leaflet-header
{
position
:
static
;
width
:
100%
;
min-height
:
52mm
;
text-align
:
right
;
}
.ci-leaflet
.ci-leaflet-header
{
vertical-align
:
middle
;
width
:
100%
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
5mm
10mm
5mm
5mm
;
}
.ci-leaflet
.ci-leaflet-header
p
{
margin
:
0
;
padding
:
0
;
text-align
:
right
;
}
/* ===== footer ===== */
.ci-leaflet
.ci-leaflet-footer
{
position
:
static
;
}
.ci-leaflet
.ci-leaflet-footer
div
{
display
:
inline-block
;
vertical-align
:
middle
;
width
:
33%
;
text-align
:
center
;
}
@media
(
max-width
:
720px
)
{
.ci-leaflet
.ci-leaflet-footer
div
{
width
:
31%
;
}
}
.ci-leaflet
.ci-leaflet-container-left
img
{
max-width
:
8em
;
min-width
:
initial
;
height
:
4em
;
}
.ci-leaflet
.ci-leaflet-container-left
{
text-align
:
left
;
}
.ci-leaflet
.ci-leaflet-container-right
{
text-align
:
right
;
}
/* ===== body ===== */
.ci-leaflet
#main-content
img
{
display
:
block
;
}
@media
(
max-width
:
720px
)
{
.ci-leaflet
.ci-leaflet-main
{
padding
:
0
1em
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.ci-leaflet
h1
{
text-align
:
left
;
padding-left
:
33%
/* width left-summary + padding main-content */
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
@media
(
max-width
:
720px
)
{
.ci-leaflet
h1
{
width
:
100%
;
text-align
:
center
;
padding
:
0
;
margin-top
:
1em
;
margin-bottom
:
1em
;
display
:
block
;
}
}
/* ----- legalese ----- */
.ci-leaflet
#legalese
{
width
:
32%
;
vertical-align
:
bottom
;
display
:
inline-block
;
padding
:
0
2em
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
text-align
:
justify
;
text-align-last
:
left
;
}
.ci-leaflet
#legalese
.bottom
img
{
max-height
:
1em
;
vertical-align
:
middle
;
}
@media
(
max-width
:
720px
)
{
.ci-leaflet
#legalese
{
width
:
100%
;
display
:
block
;
float
:
right
;
}
}
/* ----- summary ----- */
.ci-leaflet
#left-summary
{
width
:
32%
;
vertical-align
:
top
;
display
:
inline-block
;
padding-left
:
3em
;
padding-right
:
3em
;
margin-top
:
-4em
;
margin-bottom
:
3em
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
position
:
absolute
;
left
:
0
;
}
@media
(
max-width
:
720px
)
{
.ci-leaflet
#left-summary
{
display
:
block
;
width
:
100%
;
margin-top
:
0
;
position
:
static
;
left
:
auto
;
}
}
.ci-leaflet
#left-summary
ul
{
padding-bottom
:
1.5em
;
border-bottom
:
2px
solid
#a1a1a1
;
list-style-position
:
outside
;
padding-left
:
0
;
list-style-type
:
square
;
/* inconsistent text-document uses custom circles! */
}
.ci-leaflet
#left-summary
ul
li
{
margin
:
.5em
0
;
}
.ci-leaflet
#left-summary
.title
{
padding-top
:
1em
;
border-top
:
2px
solid
#a1a1a1
;
}
/* ----- content ----- */
.ci-leaflet
#main-content
{
display
:
inline-block
;
vertical-align
:
bottom
;
}
@media
(
max-width
:
720px
)
{
.ci-leaflet
#main-content
{
display
:
block
;
width
:
100%
;
}
}
/* === fullwidth === */
.ci-leaflet
.ci-leaflet-body-fullwidth
#left-summary
,
.ci-leaflet
.ci-leaflet-body-fullwidth
#legalese
{
display
:
none
;
}
.ci-leaflet
.ci-leaflet-body-fullwidth
#main-content
{
width
:
auto
;
padding
:
15px
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
/* ===== logo ===== */
.ci-leaflet
#left-summary
:before
{
content
:
""
;
display
:
block
;
background-size
:
60%
;
background-position
:
center
;
width
:
100%
;
height
:
18em
;
}
.ci-leaflet
#main-content
{
width
:
63%
;
display
:
inline-block
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding-right
:
0
;
padding-left
:
1%
;
/* to align with <h1>*/
text-align
:
justify
;
text-align-last
:
left
;
vertical-align
:
top
;
}
.ci-leaflet
#main-content
.excerpt
{
text-align
:
center
;
text-align-last
:
center
;
}
@media
(
max-width
:
720px
)
{
.ci-leaflet
#main-content
{
display
:
block
;
width
:
100%
;
}
}
/* WARNING: copy these before modifying because changes seem to
resize all fonts in the whole document */
/*
.ci-leaflet #main-content > .left-icon {
position: absolute;
margin-top: 20mm;
margin-bottom: 10mm;
width: 30%;
left: 10mm;
text-align: center;
padding-right: 1%;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
*/
/* just place your images correctly... *//*
.ci-leaflet #main-content > .left-icon ~ .left-icon {
margin-top: 0;
margin-bottom: 0;
}
*/
.ci-leaflet
#main-content
.left-icon
img
{
width
:
100%
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
0
1em
;
}
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/leaflet_css/leaflet.css.xml
0 → 100644
View file @
3de0f6b0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"File"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
leaflet.css
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/css
</string>
</value>
</item>
<item>
<key>
<string>
precondition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/leaflet_css/leaflet.pdf.css.css
0 → 100644
View file @
3de0f6b0
/* === pre set === */
html
,
body
{
margin
:
0
;
padding
:
0
;
}
html
{
width
:
100%
;
height
:
100%
;
}
/* === font size === */
.ci-leaflet
h1
,
.ci-leaflet
#left-summary
.title
,
.ci-leaflet
p
.ci-leaflet-source-header
,
.ci-leaflet
p
.ci-leaflet-sheet-header
{
font-size
:
/*42px;*/
28px
;
}
.ci-leaflet
h2
,
.ci-leaflet
#main-content
.summary
,
.ci-leaflet
#legalese
.bottom
{
font-size
:
/*30px;*/
18px
;
}
.ci-leaflet
p
,
.ci-leaflet
li
,
.ci-leaflet
div
p
:last-child
{
font-size
:
/*26px;*/
16px
;
}
.ci-leaflet
#left-summary
li
{
font-size
:
/*24px;*/
16px
;
}
.ci-leaflet-footer
div
{
font-size
:
/*18px;*/
14px
;
}
.ci-leaflet
#legalese
p
,
.ci-leaflet
#legalese
span
,
.ci-leaflet
#left-summary
.excerpt
,
.ci-leaflet
#main-content
.left-icon
.excerpt
{
font-size
:
/*20px;*/
14px
;
}
/* === font style === */
.ci-leaflet
#main-content
.summary
{
font-style
:
italic
;
}
/* === page breaks === */
.ci-leaflet
img
,
.ci-leaflet
table
{
page-break-inside
:
avoid
;
}
.ci-leaflet
.ci-leaflet-main
p
,
.ci-leaflet
.ci-leaflet-main
h2
{
page-break-inside
:
avoid
;
}
/* === header === */
.ci-leaflet
.ci-leaflet-header
{
position
:
static
;
width
:
100%
;
min-height
:
52mm
;
text-align
:
right
;
}
.ci-leaflet
.ci-leaflet-header
{
vertical-align
:
middle
;
width
:
100%
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
5mm
10mm
5mm
5mm
;
}
.ci-leaflet
.ci-leaflet-header
p
{
margin
:
0
;
padding
:
0
;
text-align
:
right
;
}
/* ===== footer ===== */
.ci-leaflet
.ci-leaflet-footer
{
position
:
static
;
}
.ci-leaflet
.ci-leaflet-footer
div
{
display
:
inline-block
;
vertical-align
:
middle
;
width
:
33%
;
text-align
:
center
;
}
.ci-leaflet
.ci-leaflet-container-left
img
{
max-height
:
16mm
;
}
.ci-leaflet
.ci-leaflet-container-left
{
text-align
:
left
;
}
.ci-leaflet
.ci-leaflet-container-right
{
text-align
:
right
;
}
/* ===== content ===== */
.ci-leaflet
.ci-leaflet-main
{
padding-left
:
20mm
;
padding-right
:
20mm
;
width
:
100%
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
.ci-leaflet
h1
{
text-align
:
left
;
padding-left
:
33%
/* width left-summary + padding main-content */
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
.ci-leaflet
#left-summary
{
width
:
28%
;
position
:
absolute
;
left
:
5mm
;
top
:
0
;
padding-left
:
10mm
;
padding-right
:
10mm
;
margin-top
:
10mm
;
margin-bottom
:
10mm
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
.ci-leaflet
#left-summary
ul
{
padding-bottom
:
6mm
;
border-bottom
:
2px
solid
#a1a1a1
;
list-style-position
:
outside
;
padding-left
:
0
;
list-style-type
:
square
;
/* inconsistent text-document uses custom circles! */
}
.ci-leaflet
#left-summary
ul
li
{
margin
:
1mm
0
;
}
.ci-leaflet
#left-summary
.title
{
padding-top
:
2mm
;
border-top
:
2px
solid
#a1a1a1
;
}
/* === fullwidth === */
.ci-leaflet
.ci-leaflet-body-fullwidth
#left-summary
,
.ci-leaflet
.ci-leaflet-body-fullwidth
#legalese
{
display
:
none
;
}
.ci-leaflet
.ci-leaflet-body-fullwidth
#main-content
{
width
:
auto
;
padding
:
15px
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
.ci-leaflet
.ci-leaflet-body-fullwidth
#main-content
.left-icon
{
position
:
static
;
margin
:
0
auto
;
padding
:
0
;
width
:
70%
;
text-align
:
center
;
}
/* ===== logo ===== */
.ci-leaflet
#left-summary
:before
{
content
:
""
;
display
:
block
;
background-size
:
60%
;
background-position
:
center
;
width
:
100%
;
height
:
50mm
;
}
.ci-leaflet
#main-content
{
width
:
63%
;
display
:
inline-block
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding-right
:
0
;
padding-left
:
1%
;
/* to align with <h1>*/
text-align
:
justify
;
text-align-last
:
left
;
vertical-align
:
bottom
;
min-height
:
552mm
;
}
/* WARNING: copy these before modifying because changes seem to
resize all fonts in the whole document */
.ci-leaflet
#main-content
>
.left-icon
{
position
:
absolute
;
margin-top
:
20mm
;
margin-bottom
:
10mm
;
width
:
28%
;
left
:
5mm
;
text-align
:
center
;
padding-right
:
1%
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
.ci-leaflet
#main-content
.left-icon
{
padding-top
:
15%
;
}
.ci-leaflet
#main-content
.left-icon
~
.left-icon
{
padding-top
:
4%
;
}
.ci-leaflet
#main-content
.left-icon
img
{
width
:
100%
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
0
2mm
;
}
.ci-leaflet
#main-content
.left-icon
.excerpt
{
line-height
:
14px
;
}
.ci-leaflet
#main-content
p
img
{
max-width
:
100%
;
display
:
block
;
}
/* === legalse === */
.ci-leaflet
#legalese
{
width
:
28%
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
display
:
inline-block
;
vertical-align
:
bottom
;
margin
:
0
;
padding
:
1em
;
text-align
:
left
;
text-align
:
justify
;
text-align-last
:
left
;
}
.ci-leaflet
#legalese
.top
{
border-top
:
2px
solid
#a1a1a1
;
padding-top
:
4mm
;
}
.ci-leaflet
#legalese
.bottom
{
margin
:
0
;
padding
:
3mm
0
;
padding-left
:
12mm
;
display
:
block
;
border-bottom
:
2px
solid
#a1a1a1
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
.ci-leaflet
#legalese
.bottom
img
{
max-height
:
1em
;
vertical-align
:
middle
;
}
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/leaflet_css/leaflet.pdf.css.xml
0 → 100644
View file @
3de0f6b0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"File"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
leaflet.pdf.css
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/css
</string>
</value>
</item>
<item>
<key>
<string>
precondition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/leaflet_img.xml
0 → 100644
View file @
3de0f6b0
<?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>
leaflet_img
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/leaflet_img/recycle.png.png
0 → 100644
View file @
3de0f6b0
18.8 KB
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_leaflet/leaflet_img/recycle.png.xml
0 → 100644
View file @
3de0f6b0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Image"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
recycle.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>
123
</int>
</value>
</item>
<item>
<key>
<string>
precondition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
width
</string>
</key>
<value>
<int>
128
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_corporate_identity/bt/template_registered_skin_selection_list
View file @
3de0f6b0
erp5_corporate_identity_leaflet | Leaflet
erp5_corporate_identity_letter | Letter
erp5_corporate_identity_slide | Slide
\ No newline at end of file
bt5/erp5_corporate_identity/bt/template_skin_id_list
View file @
3de0f6b0
erp5_corporate_identity
erp5_corporate_identity_leaflet
erp5_corporate_identity_letter
erp5_corporate_identity_slide
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment