Skip to content

Instantly share code, notes, and snippets.

@fulv
Created November 10, 2015 18:15
Show Gist options
  • Select an option

  • Save fulv/69d4e05a9955e12b1e89 to your computer and use it in GitHub Desktop.

Select an option

Save fulv/69d4e05a9955e12b1e89 to your computer and use it in GitHub Desktop.

Revisions

  1. fulv created this gist Nov 10, 2015.
    19 changes: 19 additions & 0 deletions manifest.cfg
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    [theme]
    title = plonetheme.tango
    description = An example diazo theme
    rules = /++theme++plonetheme.tango/rules.xml
    prefix = /++theme++plonetheme.tango
    doctype = <!DOCTYPE html>
    enabled-bundles =
    disabled-bundles =

    development-css = /++theme++plonetheme.tango/css/main.less
    production-css = /++theme++plonetheme.tango/css/tango-compiled.css
    tinymce-content-css = /++theme++plonetheme.tango/css/business-casual.css

    [theme:overrides]
    directory = template-overrides

    [theme:parameters]
    ajax_load = python: request.form.get('ajax_load')
    portal_url = python: portal.absolute_url()
    23 changes: 23 additions & 0 deletions registry.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    <?xml version="1.0"?>
    <registry>
    <records prefix="plone.resources/tango-main"
    interface='Products.CMFPlone.interfaces.IResourceRegistry'>
    <value key="css">
    <element>++theme++plonetheme.tango/css/main.less</element>
    </value>
    <value key="js">++theme++plonetheme.tango/js/bundle.js</value>
    </records>

    <!-- bundle definition -->
    <records prefix="plone.bundles/tango-bundle"
    interface='Products.CMFPlone.interfaces.IBundleRegistry'>
    <value key="resources">
    <element>tango-main</element>
    </value>
    <value key="enabled">True</value>
    <value key="compile">True</value>
    <value key="jscompilation">++theme++plonetheme.tango/js/bundle-compiled.js</value>
    <value key="csscompilation">++theme++plonetheme.tango/css/tango-compiled.css</value>
    <value key="last_compilation"></value>
    </records>
    </registry>