예제 #1
0
class IClassOnView(model.Schema):
    """ Marker interface """
    class_on_view = schema.TextLine(
        title=_(u'label_class_on_view', default=u'CSS Class'),
        description=_(u'help_class_on_view', default=u'CSS Class'),
        required=False,
    )

    model.fieldset('layout', label=_(u'Layout'), fields=[
        'class_on_view',
    ])
class OnlineServicesView(BrowserView):
    display_name = _('Layout servizi online')
class AreeTematicheView(BrowserView):
    display_name = _('Link aree tematiche')
class GalleryView(BrowserView):
    display_name = _('Gallery layout')
class VideoView(BrowserView):
    display_name = _('Video layout')
class NewsView(BrowserView):
    display_name = _('News layout with image')
class ServiziAreaTematicaView(BrowserView):
    """
    Custom view that shows servizi in area tematica
    """
    display_name = _('Servizi in area tematica')
class NewsAreaTematicaView(BrowserView):
    """
    Custom view that shows news in area tematica
    """
    display_name = _('News in area tematica')
class NewsBigPhotoView(BrowserView):
    """
    Custom view that shows a news with a big photo on the background
    """
    display_name = _('News with big photo')
class NewsHighlightView(BrowserView):
    """
    Custom view that shows an highlighted news
    """

    display_name = _('News highlight')
class SightsView(BrowserView):
    """
    Custom view that shows sights
    """

    display_name = _('Sights layout')
예제 #12
0
class IDesignPloneThemeSettings(model.Schema):

    available_types = schema.List(
        title=_(u'heading_available_portaltypes',
                default=u'Shareable content types'),
        description=_(u'description_available_portaltypes',
                      default=u'List of content-types that can be enable '
                      u'for social sharing.'),
        required=False,
        default=[],
        missing_value=[],
        value_type=schema.Choice(
            vocabulary='plone.app.vocabularies.UserFriendlyTypes'))

    available_socials = schema.List(
        title=_(u'heading_available_socials',
                default=u'Enabled social networks'),
        description=_(u'description_available_socials',
                      default=u'List of social networks enabled for sharing.'),
        required=False,
        default=[],
        missing_value=[],
        value_type=schema.Choice(
            vocabulary='design.plone.theme.vocabularies.SocialsVocabulary'))

    follow_us_links = schema.List(
        title=_(u'follow_us_links_label', default=u'Follow us links'),
        description=_(u'follow_us_links_description',
                      default=u'List of links to external social networks.'
                      u' These links are showed in the header.\n'
                      u'If there isn\'t a related icon in the theme, '
                      u'the link will not appear properly.\n'
                      u'Available icons are: facebook, twitter, '
                      u'youtube, medium, linkedin, storify, rss, '
                      u'newsletter and instagram.\n'
                      u'Insert a list of values (one per row) in the '
                      u'following form: social_id|url where social_id'
                      u' is one of the social with available icons.'),
        required=False,
        default=[],
        missing_value=[],
        value_type=schema.TextLine())

    header_link_label = schema.TextLine(
        title=_(u'header_link_label', default=u'Header link label'),
        description=_(u'header_link_label_desc',
                      default=u'Label for the link in the header of the site'),
        required=False,
    )

    header_link_url = schema.URI(
        title=_(u'header_link_url', default=u'Header link url'),
        description=_(u'header_link_url_desc',
                      default=u'URL of the link in the header'),
        required=False,
    )

    header_second_link_label = schema.TextLine(
        title=_(u'header_second_link_label',
                default=u'Header second link label'),
        description=_(u'header_second_link_label_desc',
                      default=u'Label for the link in the header of\
                              the site at right'),
        required=False)

    header_second_link_url = schema.URI(
        title=_(u'header_second_link_url', default=u'Header second link url'),
        description=_(u'header_second_link_url_desc',
                      default=u'URL of the link in the header at right'),
        required=False)

    login_button_visible = schema.Bool(title=_(u'login_button_bisible',
                                               default=u'Show login button'),
                                       default=False,
                                       required=False)