[11393] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
| 2 | <rules |
---|
| 3 | xmlns="http://namespaces.plone.org/diazo" |
---|
| 4 | xmlns:css="http://namespaces.plone.org/diazo/css" |
---|
| 5 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
---|
| 6 | xmlns:xi="http://www.w3.org/2001/XInclude"> |
---|
| 7 | |
---|
| 8 | <!-- Cases where we do not want themes... --> |
---|
| 9 | <notheme if-path="/++grokui++" /> <!-- do not theme GrokUI --> |
---|
| 10 | <notheme if-path="/_debug" /><!-- output by debugger --> |
---|
| 11 | <notheme css:if-content="div#error-area" /> |
---|
| 12 | |
---|
| 13 | <!-- use error page if there is a <table class="layout"> |
---|
| 14 | tag in content. This tag is rendered in Zope 3 errors. --> |
---|
| 15 | <rules css:if-content="table#layout"> |
---|
| 16 | <theme href="error-zope.html" /> |
---|
| 17 | <replace css:theme-children="#kofa-error-message" |
---|
| 18 | css:content-children="h3" /> |
---|
| 19 | </rules> |
---|
| 20 | <!-- use error page if there is no <div> tag in content. |
---|
| 21 | This happens if something in the application went wrong. --> |
---|
| 22 | <rules css:if-not-content="div"> |
---|
| 23 | <theme href="error-zope.html" /> |
---|
| 24 | <replace css:theme-children="#kofa-error-message" |
---|
| 25 | css:content-children="body" /> |
---|
| 26 | </rules> |
---|
| 27 | |
---|
| 28 | <!-- regular rules --> |
---|
| 29 | <rules css:if-content="body.kofa-body"> |
---|
| 30 | |
---|
| 31 | <theme href="theme.html" /> |
---|
| 32 | |
---|
| 33 | <!-- head elements --> |
---|
| 34 | <replace css:theme="html head title" |
---|
| 35 | css:content="html head title" /> |
---|
| 36 | |
---|
| 37 | <!-- left top navigation --> |
---|
| 38 | <replace css:theme-children="ul.kofa-navbar-left" |
---|
| 39 | css:content-children="ul.kofa-navbar-left" /> |
---|
| 40 | |
---|
| 41 | <!-- right side top navigation --> |
---|
| 42 | <replace css:theme-children="ul.kofa-navbar-right" |
---|
| 43 | css:content-children="ul.kofa-navbar-right" /> |
---|
| 44 | |
---|
[13519] | 45 | <!-- maintenance mode warning --> |
---|
| 46 | <drop css:theme="div.kofa-maintenance" |
---|
| 47 | css:if-not-content="div.maintenance-warning" /> |
---|
| 48 | <replace css:theme-children="div.maintenance-warning" |
---|
| 49 | css:content-children="div.maintenance-warning" /> |
---|
| 50 | |
---|
[11393] | 51 | <!-- breadcrumbs --> |
---|
| 52 | <drop css:theme="div.kofa-breadcrumbs-box-long" |
---|
| 53 | css:if-not-content="ul.breadcrumb" /> |
---|
| 54 | <drop css:theme="div.kofa-breadcrumbs-box-long" |
---|
| 55 | css:if-content="div.wfstatus" /> |
---|
| 56 | <drop css:theme="div.kofa-breadcrumbs-box-short" |
---|
| 57 | css:if-not-content="ul.breadcrumb" /> |
---|
| 58 | <drop css:theme="div.kofa-breadcrumbs-box-short" |
---|
| 59 | css:if-not-content="div.wfstatus" /> |
---|
| 60 | <replace css:theme-children="ol.kofa-breadcrumbs" |
---|
| 61 | css:content-children="ul.breadcrumb" /> |
---|
| 62 | |
---|
| 63 | <!-- student status --> |
---|
| 64 | <drop css:theme="div.kofa-student-status-box" |
---|
| 65 | css:if-not-content="div.wfstatus" /> |
---|
| 66 | <replace css:theme-children="div.wfstatus" |
---|
| 67 | css:content-children="div.wfstatus" /> |
---|
| 68 | |
---|
| 69 | <!-- sidebar --> |
---|
| 70 | |
---|
| 71 | <drop css:theme="div.kofa-sidebar" |
---|
| 72 | css:if-not-content="div.sidebar" /> |
---|
| 73 | <replace css:theme-children="div.sidebar-nav" |
---|
| 74 | css:content-children="div.sidebar" /> |
---|
| 75 | |
---|
| 76 | <!-- content --> |
---|
| 77 | |
---|
| 78 | <!-- drop one of the both content areas, depending on sidebar --> |
---|
| 79 | |
---|
| 80 | <drop css:theme="div.kofa-content-narrow" |
---|
| 81 | css:if-not-content="div.sidebar" /> |
---|
| 82 | <drop css:theme="div.kofa-content-wide" |
---|
| 83 | css:if-content="div.sidebar" /> |
---|
| 84 | <replace css:theme-children="div.kofa-content" |
---|
| 85 | css:content-children="div.kofa-content" /> |
---|
| 86 | |
---|
| 87 | |
---|
| 88 | <!-- scripts --> |
---|
| 89 | <drop css:theme="script.kofa-script-tooltip" |
---|
[11447] | 90 | css:if-not-content="[data-toggle='tooltip']" /> |
---|
[11393] | 91 | |
---|
| 92 | <drop css:theme="script.kofa-script-datepicker" |
---|
| 93 | css:if-not-content="input.datepicker-le-year" /> |
---|
| 94 | |
---|
| 95 | <drop css:theme="script.kofa-script-datatable" |
---|
| 96 | css:if-not-content="table.kofa-data-table" /> |
---|
| 97 | |
---|
[14451] | 98 | <drop css:theme="script.kofa-filterByText" |
---|
| 99 | css:if-not-content="input.kofa-filterbox" /> |
---|
[11447] | 100 | |
---|
[11393] | 101 | <!-- |
---|
| 102 | <after css:theme-children="html head" |
---|
| 103 | css:content="html head meta" /> |
---|
| 104 | --> |
---|
| 105 | <!-- |
---|
| 106 | <after css:theme-children="html head" |
---|
| 107 | css:content="html head base" /> |
---|
| 108 | --> |
---|
| 109 | |
---|
| 110 | <!-- top navigation --> |
---|
| 111 | <!-- left top navigation --> |
---|
| 112 | <!-- |
---|
| 113 | <replace css:theme-children="ul.kofa-navbar-left" |
---|
| 114 | css:content-children="ul.kofa-navbar-left" /> |
---|
| 115 | --> |
---|
| 116 | |
---|
| 117 | <!-- Make all data tables responsive --> |
---|
| 118 | |
---|
| 119 | <replace css:content="table.kofa-data-table"> |
---|
| 120 | <div class="table-responsive"> |
---|
| 121 | <xsl:apply-templates css:select="table.kofa-data-table" mode="raw"/> |
---|
| 122 | </div> |
---|
| 123 | </replace> |
---|
| 124 | |
---|
| 125 | </rules> |
---|
| 126 | |
---|
| 127 | </rules> |
---|