Imported from SVN by Bitbucket
This commit is contained in:
5
caotek/tcshome_theme/__init__.py
Executable file
5
caotek/tcshome_theme/__init__.py
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- extra stuff goes here -*-
|
||||
|
||||
|
||||
def initialize(context):
|
||||
"""Initializer called when used as a Zope 2 product."""
|
||||
1
caotek/tcshome_theme/browser/__init__.py
Executable file
1
caotek/tcshome_theme/browser/__init__.py
Executable file
@@ -0,0 +1 @@
|
||||
#
|
||||
39
caotek/tcshome_theme/browser/configure.zcml
Executable file
39
caotek/tcshome_theme/browser/configure.zcml
Executable file
@@ -0,0 +1,39 @@
|
||||
<configure
|
||||
xmlns="http://namespaces.zope.org/zope"
|
||||
xmlns:browser="http://namespaces.zope.org/browser"
|
||||
i18n_domain="caotek.tcshome_theme">
|
||||
|
||||
<!-- 'tcshome.org site theme' Zope 3 browser layer -->
|
||||
<interface
|
||||
interface=".interfaces.IThemeSpecific"
|
||||
type="zope.publisher.interfaces.browser.IBrowserSkinType"
|
||||
name="tcshome.org Site theme"
|
||||
/>
|
||||
|
||||
<!-- Viewlets registration -->
|
||||
<browser:viewlet
|
||||
name="caotek.tcshome_theme.footer"
|
||||
manager="plone.app.layout.viewlets.interfaces.IPortalFooter"
|
||||
class="plone.app.layout.viewlets.common.FooterViewlet"
|
||||
template="templates/footer.pt"
|
||||
layer=".interfaces.IThemeSpecific"
|
||||
permission="zope2.View"
|
||||
/>
|
||||
|
||||
<!-- Zope 3 browser resources -->
|
||||
|
||||
<!-- Resource directory for images -->
|
||||
<browser:resourceDirectory
|
||||
name="caotek.tcshome_theme.images"
|
||||
directory="images"
|
||||
layer=".interfaces.IThemeSpecific"
|
||||
/>
|
||||
|
||||
<!-- Resource directory for stylesheets -->
|
||||
<browser:resourceDirectory
|
||||
name="caotek.tcshome_theme.stylesheets"
|
||||
directory="stylesheets"
|
||||
layer=".interfaces.IThemeSpecific"
|
||||
/>
|
||||
|
||||
</configure>
|
||||
56
caotek/tcshome_theme/browser/images/README.txt
Executable file
56
caotek/tcshome_theme/browser/images/README.txt
Executable file
@@ -0,0 +1,56 @@
|
||||
README for the 'browser/images/' directory
|
||||
==========================================
|
||||
|
||||
This folder is a Zope 3 Resource Directory acting as a repository for images.
|
||||
|
||||
Its declaration is located in 'browser/configure.zcml':
|
||||
|
||||
<!-- Resource directory for images -->
|
||||
<browser:resourceDirectory
|
||||
name="caotek.tcshome_theme.images"
|
||||
directory="images"
|
||||
layer=".interfaces.IThemeSpecific"
|
||||
/>
|
||||
|
||||
An image placed in this directory (e.g. 'logo.png') can be accessed from
|
||||
this relative URL:
|
||||
|
||||
"++resource++caotek.tcshome_theme.images/logo.png"
|
||||
|
||||
Note that it might be better to register each of these resources separately if
|
||||
you want them to be overridable from zcml directives.
|
||||
|
||||
The only way to override a resource in a resource directory is to override the
|
||||
entire directory (all elements have to be copied over).
|
||||
|
||||
A Zope 3 browser resource declared like this in 'browser/configure.zcml':
|
||||
|
||||
<browser:resource
|
||||
name="logo.png"
|
||||
file="images/logo.png"
|
||||
layer=".interfaces.IThemeSpecific"
|
||||
/>
|
||||
|
||||
can be accessed from this relative URL:
|
||||
|
||||
"++resource++logo.png"
|
||||
|
||||
Notes
|
||||
-----
|
||||
|
||||
* Whatever the way they are declared (in bulk inside a resource directory or
|
||||
as separate resources), images registered as Zope 3 browser resources don't
|
||||
have all the attributes that Zope 2 image objects have (i.e. the 'title'
|
||||
property and the 'tag()' and 'get_size()' methods).
|
||||
This means that if you want the html tag of your image to be auto-generated
|
||||
(this is the case by default for the portal logo), you should store it in a
|
||||
directory that is located in the 'skins/' folder of your package, registered
|
||||
as a File System Directory View in the 'portal_skins' tool, and added to the
|
||||
layers of your skin.
|
||||
|
||||
* Customizing/overriding images that are originally accessed from the
|
||||
'portal_skins' tool (e.g. Plone default logo and icons) can be done inside
|
||||
that tool only. There is no known way to do it with Zope 3 browser
|
||||
resources.
|
||||
Vice versa, there is no known (easy) way to override a Zope 3 browser
|
||||
resource from a skin layer in 'portal_skins'.
|
||||
6
caotek/tcshome_theme/browser/interfaces.py
Executable file
6
caotek/tcshome_theme/browser/interfaces.py
Executable file
@@ -0,0 +1,6 @@
|
||||
from plone.theme.interfaces import IDefaultPloneLayer
|
||||
|
||||
|
||||
class IThemeSpecific(IDefaultPloneLayer):
|
||||
"""Marker interface that defines a Zope 3 browser layer.
|
||||
"""
|
||||
61
caotek/tcshome_theme/browser/stylesheets/README.txt
Executable file
61
caotek/tcshome_theme/browser/stylesheets/README.txt
Executable file
@@ -0,0 +1,61 @@
|
||||
README for the 'browser/stylesheets/' directory
|
||||
===============================================
|
||||
|
||||
This folder is a Zope 3 Resource Directory acting as a repository for
|
||||
stylesheets.
|
||||
|
||||
Its declaration is located in 'browser/configure.zcml':
|
||||
|
||||
<!-- Resource directory for stylesheets -->
|
||||
<browser:resourceDirectory
|
||||
name="caotek.tcshome_theme.stylesheets"
|
||||
directory="stylesheets"
|
||||
layer=".interfaces.IThemeSpecific"
|
||||
/>
|
||||
|
||||
A stylesheet placed in this directory (e.g. 'main.css') can be accessed from
|
||||
this relative URL:
|
||||
|
||||
"++resource++caotek.tcshome_theme.stylesheets/main.css"
|
||||
|
||||
Note that it might be better to register each of these resources separately if
|
||||
you want them to be overridable from zcml directives.
|
||||
|
||||
The only way to override a resource in a resource directory is to override the
|
||||
entire directory (all elements have to be copied over).
|
||||
|
||||
A Zope 3 browser resource declared like this in 'browser/configure.zcml':
|
||||
|
||||
<browser:resource
|
||||
name="main.css"
|
||||
file="stylesheets/main.css"
|
||||
layer=".interfaces.IThemeSpecific"
|
||||
/>
|
||||
|
||||
can be accessed from this relative URL:
|
||||
|
||||
"++resource++main.css"
|
||||
|
||||
Notes
|
||||
-----
|
||||
|
||||
* Stylesheets registered as Zope 3 resources might be flagged as not found in
|
||||
the 'portal_css' tool if the layer they are registered for doesn't match the
|
||||
default skin set in 'portal_skins'.
|
||||
This can be confusing but it must be considered as a minor bug in the CSS
|
||||
registry instead of a lack in the way Zope 3 resources are handled in
|
||||
Zope 2.
|
||||
|
||||
* There might be a way to interpret DTML from a Zope 3 resource view.
|
||||
Although, if you need to use DTML for setting values in a stylesheet (the
|
||||
same way as in default Plone stylesheets where values are read from
|
||||
'base_properties'), it is much easier to store it in a directory that is
|
||||
located in the 'skins/' folder of your package, registered as a File System
|
||||
Directory View in the 'portal_skins' tool, and added to the layers of your
|
||||
skin.
|
||||
|
||||
* Customizing/overriding stylesheets that are originally accessed from the
|
||||
'portal_skins' tool (e.g. Plone default stylesheets) can be done inside that
|
||||
tool only. There is no known way to do it with Zope 3 browser resources.
|
||||
Vice versa, there is no known way to override a Zope 3 browser resource from
|
||||
a skin layer in 'portal_skins'.
|
||||
2
caotek/tcshome_theme/browser/stylesheets/main.css
Executable file
2
caotek/tcshome_theme/browser/stylesheets/main.css
Executable file
@@ -0,0 +1,2 @@
|
||||
/* Stylesheet for the 'tcshome.org site theme' Plone theme */
|
||||
|
||||
67
caotek/tcshome_theme/browser/templates/footer.pt
Executable file
67
caotek/tcshome_theme/browser/templates/footer.pt
Executable file
@@ -0,0 +1,67 @@
|
||||
<div metal:define-macro="portal_footer"
|
||||
i18n:domain="plone"
|
||||
class="row">
|
||||
<div class="cell width-full position-0">
|
||||
<div id="portal-footer"
|
||||
tal:define="portal_state context/@@plone_portal_state;
|
||||
portal_url portal_state/portal_url;">
|
||||
|
||||
<table width="100%" align="center">
|
||||
<tr valign="top">
|
||||
<td width=25%>
|
||||
<p align="left">
|
||||
<b>Nhạc</b><br />
|
||||
<a href="/songs/albums/">Tập nhạc</a><br />
|
||||
<a href="/songs/titles/">Bài hát</a><br />
|
||||
<a href="/songs/ghita/">Nhạc soạn cho ghita</a><br />
|
||||
<a href="/songs/mp3/">MP3</a>
|
||||
</p>
|
||||
<br />
|
||||
<p align="left">
|
||||
<b>Thơ-Văn</b><br />
|
||||
<a href="/writings/">Bài viết và thơ của TCS</a><br />
|
||||
</p>
|
||||
</td>
|
||||
<td width=25%>
|
||||
<p align="left">
|
||||
<b>Tranh</b><br />
|
||||
<a href="/paintings/chan-dung/">Chân dung</a><br />
|
||||
<a href="/paintings/bia-tap-nhac/">Bìa Tập nhạc</a><br />
|
||||
<a href="/paintings/but-tich/">Bút tích</a><br />
|
||||
<a href="/paintings/ky-hoa-chan-dung/">Ký họa chân dung</a><br />
|
||||
<a href="/paintings/trien-lam-tranh-1990/">Triển lãm tranh, 1990</a><br />
|
||||
<a href="/paintings/buu-chi-ve-tcs">Bửu Chỉ vẽ TCS</a><br />
|
||||
<a href="/paintings/dinh-cuong-ve-tcs">Ðinh Cường vẽ TCS</a><br />
|
||||
<a href="/paintings/dinh-truong-chinh-ve-tcs">Ðinh Trường Chinh vẽ TCS</a><br />
|
||||
<a href="/paintings/ban-be-ve-tcs/">Bạn bè vẽ TCS</a>
|
||||
</p>
|
||||
</td>
|
||||
<td width=25%>
|
||||
<p align="left">
|
||||
<b>Hình ảnh</b><br />
|
||||
<a href="/photos/album-1/">Trịnh Công Sơn </a><br />
|
||||
<a href="/photos/album-2/">TCS và bạn bè </a><br />
|
||||
<a href="/photos/album-3/">Các ca sĩ Trịnh</a>
|
||||
</p>
|
||||
</td>
|
||||
<td width=25%>
|
||||
<p align="left">
|
||||
<b>Góc người mến mộ</b><br />
|
||||
<a href="/ban-be/vinh-biet-anh-son/">Vĩnh biệt anh Sơn</a><br />
|
||||
<a href="/ban-be/articles/">Bài viết về TCS</a><br />
|
||||
<a href="/ban-be/poems/">Thơ về TCS</a><br />
|
||||
<a href="/ban-be/books/">Sách - Luận văn</a><br />
|
||||
<a href="/ban-be/sinh-hoat/">Các đêm nhạc TCS</a><br />
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
<p align="center">
|
||||
Copyright © 2004-2006 by <a href="" tal:attributes="href string:$portal_url/about/apropos-de-tcs-association-culturelle">TCS-Association Culturelle</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
1
caotek/tcshome_theme/browser/viewlet.pt
Executable file
1
caotek/tcshome_theme/browser/viewlet.pt
Executable file
@@ -0,0 +1 @@
|
||||
<div tal:content="view/computed_value|nothing"/>
|
||||
2
caotek/tcshome_theme/browser/viewlets.py
Executable file
2
caotek/tcshome_theme/browser/viewlets.py
Executable file
@@ -0,0 +1,2 @@
|
||||
#from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
|
||||
#from plone.app.layout.viewlets.common import ViewletBase
|
||||
13
caotek/tcshome_theme/configure.zcml
Executable file
13
caotek/tcshome_theme/configure.zcml
Executable file
@@ -0,0 +1,13 @@
|
||||
<configure
|
||||
xmlns="http://namespaces.zope.org/zope"
|
||||
xmlns:five="http://namespaces.zope.org/five"
|
||||
xmlns:cmf="http://namespaces.zope.org/cmf"
|
||||
xmlns:i18n="http://namespaces.zope.org/i18n"
|
||||
i18n_domain="caotek.caotek_theme">
|
||||
|
||||
<five:registerPackage package="." initialize=".initialize" />
|
||||
<include package=".browser" />
|
||||
<include file="skins.zcml" />
|
||||
<include file="profiles.zcml" />
|
||||
|
||||
</configure>
|
||||
22
caotek/tcshome_theme/profiles.zcml
Executable file
22
caotek/tcshome_theme/profiles.zcml
Executable file
@@ -0,0 +1,22 @@
|
||||
<configure
|
||||
xmlns="http://namespaces.zope.org/zope"
|
||||
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
|
||||
i18n_domain="caotek.tcshome_theme">
|
||||
|
||||
<genericsetup:registerProfile
|
||||
name="default"
|
||||
title="tcshome.org site theme"
|
||||
directory="profiles/default"
|
||||
description='Extension profile for the "tcshome.org Site" Plone theme.'
|
||||
provides="Products.GenericSetup.interfaces.EXTENSION"
|
||||
/>
|
||||
|
||||
<genericsetup:importStep
|
||||
name="caotek.tcshome_theme.various"
|
||||
title="tcshome.org Site theme: miscellaneous import steps"
|
||||
description="Various import steps that are not handled by GS import/export handlers."
|
||||
handler="caotek.tcshome_theme.setuphandlers.setupVarious">
|
||||
<depends name="skins"/>
|
||||
</genericsetup:importStep>
|
||||
|
||||
</configure>
|
||||
1
caotek/tcshome_theme/profiles/default/caotek.tcshome_theme_various.txt
Executable file
1
caotek/tcshome_theme/profiles/default/caotek.tcshome_theme_various.txt
Executable file
@@ -0,0 +1 @@
|
||||
This file is used as a marker in setuphandlers.py.
|
||||
10
caotek/tcshome_theme/profiles/default/cssregistry.xml
Executable file
10
caotek/tcshome_theme/profiles/default/cssregistry.xml
Executable file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0"?>
|
||||
<object name="portal_css">
|
||||
|
||||
<stylesheet title=""
|
||||
id="styles.css"
|
||||
media="screen" rel="stylesheet" rendering="import"
|
||||
cacheable="True" compression="safe" cookable="True"
|
||||
enabled="1" expression=""/>
|
||||
|
||||
</object>
|
||||
4
caotek/tcshome_theme/profiles/default/jsregistry.xml
Executable file
4
caotek/tcshome_theme/profiles/default/jsregistry.xml
Executable file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0"?>
|
||||
<object name="portal_javascripts">
|
||||
|
||||
</object>
|
||||
4
caotek/tcshome_theme/profiles/default/metadata.xml
Executable file
4
caotek/tcshome_theme/profiles/default/metadata.xml
Executable file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0"?>
|
||||
<metadata>
|
||||
<version>1000</version>
|
||||
</metadata>
|
||||
19
caotek/tcshome_theme/profiles/default/skins.xml
Executable file
19
caotek/tcshome_theme/profiles/default/skins.xml
Executable file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0"?>
|
||||
<object name="portal_skins" allow_any="False" cookie_persistence="False"
|
||||
default_skin="tcshome.org Site theme">
|
||||
|
||||
<object name="tcshome_theme_images"
|
||||
meta_type="Filesystem Directory View"
|
||||
directory="caotek.tcshome_theme:skins/tcshome_theme_images"/>
|
||||
<object name="tcshome_theme_styles"
|
||||
meta_type="Filesystem Directory View"
|
||||
directory="caotek.tcshome_theme:skins/tcshome_theme_styles"/>
|
||||
|
||||
<skin-path name="tcshome.org Site theme" based-on="Sunburst Theme">
|
||||
<layer name="tcshome_theme_images"
|
||||
insert-after="custom"/>
|
||||
<layer name="tcshome_theme_styles"
|
||||
insert-after="tcshome_theme_images"/>
|
||||
</skin-path>
|
||||
|
||||
</object>
|
||||
16
caotek/tcshome_theme/profiles/default/viewlets.xml
Executable file
16
caotek/tcshome_theme/profiles/default/viewlets.xml
Executable file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0"?>
|
||||
<object>
|
||||
|
||||
<order manager="plone.portalfooter" skinname="tcshome.org Site theme"
|
||||
based-on="Plone Default">
|
||||
<viewlet name="caotek.tcshome_theme.footer"
|
||||
insert-before="*" />
|
||||
</order>
|
||||
|
||||
<hidden manager="plone.portalfooter" skinname="tcshome.org Site theme">
|
||||
<viewlet name="plone.footer" />
|
||||
<viewlet name="plone.colophon" />
|
||||
<viewlet name="plone.site_actions" />
|
||||
</hidden>
|
||||
|
||||
</object>
|
||||
11
caotek/tcshome_theme/setuphandlers.py
Executable file
11
caotek/tcshome_theme/setuphandlers.py
Executable file
@@ -0,0 +1,11 @@
|
||||
def setupVarious(context):
|
||||
|
||||
# Ordinarily, GenericSetup handlers check for the existence of XML files.
|
||||
# Here, we are not parsing an XML file, but we use this text file as a
|
||||
# flag to check that we actually meant for this import step to be run.
|
||||
# The file is found in profiles/default.
|
||||
|
||||
if context.readDataFile('caotek.tcshome_theme_various.txt') is None:
|
||||
return
|
||||
|
||||
# Add additional setup code here
|
||||
10
caotek/tcshome_theme/skins.zcml
Executable file
10
caotek/tcshome_theme/skins.zcml
Executable file
@@ -0,0 +1,10 @@
|
||||
<configure
|
||||
xmlns="http://namespaces.zope.org/zope"
|
||||
xmlns:cmf="http://namespaces.zope.org/cmf"
|
||||
i18n_domain="caotek.tcshome_theme">
|
||||
|
||||
<!-- File System Directory Views registration -->
|
||||
<cmf:registerDirectory name="tcshome_theme_images"/>
|
||||
<cmf:registerDirectory name="tcshome_theme_styles"/>
|
||||
|
||||
</configure>
|
||||
3
caotek/tcshome_theme/skins/tcshome_theme_images/CONTENT.txt
Executable file
3
caotek/tcshome_theme/skins/tcshome_theme_images/CONTENT.txt
Executable file
@@ -0,0 +1,3 @@
|
||||
This folder holds Filesystem Image files that are registered for the
|
||||
'tcshome.org site theme' Skin Selection only.
|
||||
They act as replacement for the default Plone (or 3rd party products) ones.
|
||||
BIN
caotek/tcshome_theme/skins/tcshome_theme_images/favicon.ico
Executable file
BIN
caotek/tcshome_theme/skins/tcshome_theme_images/favicon.ico
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
BIN
caotek/tcshome_theme/skins/tcshome_theme_images/tcshome-logo.png
Executable file
BIN
caotek/tcshome_theme/skins/tcshome_theme_images/tcshome-logo.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 8.0 KiB |
10
caotek/tcshome_theme/skins/tcshome_theme_styles/CONTENT.txt
Executable file
10
caotek/tcshome_theme/skins/tcshome_theme_styles/CONTENT.txt
Executable file
@@ -0,0 +1,10 @@
|
||||
This folder holds stylesheet files that are registered for the
|
||||
'caotek theme' Skin Selection only.
|
||||
|
||||
It is a repository for customizations of the default Plone stylesheets,
|
||||
as well as for package specific stylesheets.
|
||||
|
||||
|
||||
Note
|
||||
Stylesheet files that don't use DTML can also stored in the 'browser'
|
||||
folder and accessed as Zope 3 file resources.
|
||||
46
caotek/tcshome_theme/skins/tcshome_theme_styles/base_properties.props
Executable file
46
caotek/tcshome_theme/skins/tcshome_theme_styles/base_properties.props
Executable file
@@ -0,0 +1,46 @@
|
||||
title:string=caotek theme's color, font, logo and border defaults
|
||||
|
||||
plone_skin:string=tcshome theme
|
||||
logoName:string=tcshome-logo.png
|
||||
|
||||
fontFamily:string="Lucida Grande", Verdana, Lucida, Helvetica, Arial, sans-serif
|
||||
fontBaseSize:string=69%
|
||||
fontColor:string=Black
|
||||
fontSmallSize:string=85%
|
||||
|
||||
backgroundColor:string=White
|
||||
|
||||
linkColor:string=#436976
|
||||
linkActiveColor:string=Red
|
||||
linkVisitedColor:string=Purple
|
||||
|
||||
borderWidth:string=1px
|
||||
borderStyle:string=solid
|
||||
borderStyleAnnotations:string=dashed
|
||||
|
||||
globalBorderColor:string=#8cacbb
|
||||
globalBackgroundColor:string=#dee7ec
|
||||
globalFontColor:string=#436976
|
||||
|
||||
headingFontFamily:string="Lucida Grande", Verdana, Lucida, Helvetica, Arial, sans-serif
|
||||
|
||||
contentViewBorderColor:string=#74ae0b
|
||||
contentViewBackgroundColor:string=#cde2a7
|
||||
contentViewFontColor:string=#578308
|
||||
|
||||
inputFontColor:string=Black
|
||||
|
||||
textTransform:string=lowercase
|
||||
|
||||
evenRowBackgroundColor:string=#eef3f5
|
||||
oddRowBackgroundColor:string=transparent
|
||||
|
||||
notifyBorderColor:string=#ffa500
|
||||
notifyBackgroundColor:string=#ffce7b
|
||||
|
||||
discreetColor:string=#76797c
|
||||
helpBackgroundColor:string=#ffffe1
|
||||
|
||||
portalMinWidth:string=70em
|
||||
columnOneWidth:string=16em
|
||||
columnTwoWidth:string=16em
|
||||
62
caotek/tcshome_theme/skins/tcshome_theme_styles/styles.css
Executable file
62
caotek/tcshome_theme/skins/tcshome_theme_styles/styles.css
Executable file
@@ -0,0 +1,62 @@
|
||||
/************************
|
||||
tcs-home Theme Palette :
|
||||
- steel blue : #4086AA
|
||||
- blue : #91C3DC
|
||||
- battleship grey : #87907D
|
||||
- bud : #AAB6A2
|
||||
- emperor gray : #555555
|
||||
- dove gray : #666666
|
||||
http://www.colorcombos.com/color-schemes/250/ColorCombo250.html
|
||||
|
||||
*************************/
|
||||
|
||||
body {background: #666666;}
|
||||
|
||||
div.row {
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
#visual-portal-wrapper {
|
||||
width: 60em;
|
||||
margin: 0 auto 15px auto;
|
||||
background-color: white;
|
||||
border-radius: 0px 0px 10px 10px;
|
||||
-moz-border-radius: 0px 0px 10px 10px;
|
||||
-webkit-border-bottom-right-radius: 10px;
|
||||
-webkit-border-bottom-left-radius: 10px;
|
||||
-webkit-box-shadow: 0px 5px 20px ;
|
||||
-moz-box-shadow: 0px 5px 20px ;
|
||||
box-shadow: 0px 5px 20px ;
|
||||
}
|
||||
|
||||
#searchGadget {
|
||||
border-radius: 10px;
|
||||
-moz-border-radius: 10px;
|
||||
-webkit-border-radius: 10px;
|
||||
border: 1px solid #C3C3C3;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
/* sections */
|
||||
#portal-globalnav {
|
||||
clear: both;
|
||||
background: #555555;
|
||||
/* ensure top navigation dont touches portlets, content etc.. #10491 */
|
||||
margin: 0 0 1em 0;
|
||||
}
|
||||
#portal-globalnav li a {
|
||||
background-color: #555555;
|
||||
color: #fff;}
|
||||
|
||||
#portal-globalnav li a:hover,
|
||||
#portal-globalnav li.selected a,
|
||||
#portal-globalnav li.selected a:hover {background-color: #AAB6A2;}
|
||||
|
||||
#portal-footer {
|
||||
font-size: 75%;
|
||||
color: #000000;
|
||||
background: #F5F5F5;
|
||||
padding: 1em 0 0 3em;
|
||||
margin: 1em 0;
|
||||
line-height: 2em;
|
||||
}
|
||||
4
caotek/tcshome_theme/skins/tcshome_theme_styles/styles.css.metadata
Executable file
4
caotek/tcshome_theme/skins/tcshome_theme_styles/styles.css.metadata
Executable file
@@ -0,0 +1,4 @@
|
||||
[default]
|
||||
title=
|
||||
content_type=text/css
|
||||
precondition=
|
||||
55
caotek/tcshome_theme/tests.py
Executable file
55
caotek/tcshome_theme/tests.py
Executable file
@@ -0,0 +1,55 @@
|
||||
import unittest
|
||||
|
||||
#from zope.testing import doctestunit
|
||||
#from zope.component import testing
|
||||
from Testing import ZopeTestCase as ztc
|
||||
|
||||
from Products.Five import fiveconfigure
|
||||
from Products.PloneTestCase import PloneTestCase as ptc
|
||||
from Products.PloneTestCase.layer import PloneSite
|
||||
ptc.setupPloneSite()
|
||||
|
||||
import caotek.caotek_theme
|
||||
|
||||
|
||||
class TestCase(ptc.PloneTestCase):
|
||||
|
||||
class layer(PloneSite):
|
||||
|
||||
@classmethod
|
||||
def setUp(cls):
|
||||
fiveconfigure.debug_mode = True
|
||||
ztc.installPackage(caotek.caotek_theme)
|
||||
fiveconfigure.debug_mode = False
|
||||
|
||||
@classmethod
|
||||
def tearDown(cls):
|
||||
pass
|
||||
|
||||
|
||||
def test_suite():
|
||||
return unittest.TestSuite([
|
||||
|
||||
# Unit tests
|
||||
#doctestunit.DocFileSuite(
|
||||
# 'README.txt', package='caotek.caotek_theme',
|
||||
# setUp=testing.setUp, tearDown=testing.tearDown),
|
||||
|
||||
#doctestunit.DocTestSuite(
|
||||
# module='caotek.caotek_theme.mymodule',
|
||||
# setUp=testing.setUp, tearDown=testing.tearDown),
|
||||
|
||||
|
||||
# Integration tests that use PloneTestCase
|
||||
#ztc.ZopeDocFileSuite(
|
||||
# 'README.txt', package='caotek.caotek_theme',
|
||||
# test_class=TestCase),
|
||||
|
||||
#ztc.FunctionalDocFileSuite(
|
||||
# 'browser.txt', package='caotek.caotek_theme',
|
||||
# test_class=TestCase),
|
||||
|
||||
])
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main(defaultTest='test_suite')
|
||||
1
caotek/tcshome_theme/version.txt
Executable file
1
caotek/tcshome_theme/version.txt
Executable file
@@ -0,0 +1 @@
|
||||
4.1.6
|
||||
Reference in New Issue
Block a user