Logo Search packages:      
Sourcecode: zope-cpsskins version File versions  Download package

def CPSSkins::PortalTheme::PortalTheme::renderIcon (   self  ) 

Generates the shortcut icon for this theme.

Definition at line 268 of file PortalTheme.py.

00268                         :
        """ Generates the shortcut icon for this theme."""

        rendered = None
        shortcut_icon = self.shortcut_icon
        if shortcut_icon:
            icon_dir = getattr(self, 'icons', None)
            if icon_dir is not None:
                icon_obj = getattr(icon_dir, shortcut_icon, None);
                if icon_obj is not None:
                    path = '/' + icon_obj.absolute_url(1)
                    mimetype = icon_obj.content_type
                    rendered = '<!-- Shortcut icon -->'
                    rendered += SHORTCUT_ICON_HTML % (
                        path, mimetype, path, mimetype)
        return rendered

    security.declarePublic('renderCSS')
    def renderCSS(self, **kw):


Generated by  Doxygen 1.6.0   Back to index