Changeset 10239 for main/ngren.theme


Ignore:
Timestamp:
28 May 2013, 12:23:50 (11 years ago)
Author:
uli
Message:

Cleanup: untabify, remove whitespace, shorten lines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/ngren.theme/branches/ulif-user-dropdown/ngren/theme/ngren_theme/rules.xml

    r10238 r10239  
    66    xmlns:xi="http://www.w3.org/2001/XInclude">
    77
    8         <theme href="home.html" css:if-content="body.template-frontpageview" />
    9         <theme href="full.html" css:if-content="#portal-column-content.width-full"/>
    10         <theme href="example.html"/>
    11         <notheme if="$ajax_load" />
    12         <!--<notheme if="contains($path, 'manage')"/>-->
    13         <notheme if="contains($path, 'plugins')"/>
    14         <notheme if="contains($path, 'querybuilder')"/>
    15         <notheme if="contains($path, 'advanced/anchor.htm')"/>
    16         <notheme if="contains($path, 'advanced/source_editor.htm')"/>
    17         <notheme if="contains($path, 'image_view_fullscreen')"/>
    18         <notheme if-path="@@manage-viewlets" />
     8  <theme href="home.html" css:if-content="body.template-frontpageview" />
     9  <theme href="full.html" css:if-content="#portal-column-content.width-full"/>
     10  <theme href="example.html"/>
     11  <notheme if="$ajax_load" />
     12  <!--<notheme if="contains($path, 'manage')"/>-->
     13  <notheme if="contains($path, 'plugins')"/>
     14  <notheme if="contains($path, 'querybuilder')"/>
     15  <notheme if="contains($path, 'advanced/anchor.htm')"/>
     16  <notheme if="contains($path, 'advanced/source_editor.htm')"/>
     17  <notheme if="contains($path, 'image_view_fullscreen')"/>
     18  <notheme if-path="@@manage-viewlets" />
    1919
    20        
    21         <!-- Head -->
    22         <before content="/html/head/meta" css:theme="meta" />
    23         <replace theme="/html/head/title" content="/html/head/title"
    24                  if-not-path="/" />
    25     <replace theme="/html/head/base" content="/html/head/base" />
    26         <append theme="/html/head" content="/html/head/script" />
    27     <append theme="/html/head" content="/html/head/link | /html/head/style" />
    28    
    29    
    30     <!-- Top / Header -->
    31     <copy attributes="href" css:content='#portal-logo' css:theme="#logo-container a" />
    3220
    33     <!-- User options (upper right) -->
    34     <!--      user name in options menu   -->
    35     <replace css:theme-children="#user-options-name"
    36              css:content-children="#portal-personaltools li:nth-child(1) a" />
     21  <!-- Head -->
     22  <before content="/html/head/meta" css:theme="meta" />
     23  <replace theme="/html/head/title" content="/html/head/title"
     24           if-not-path="/" />
     25  <replace theme="/html/head/base" content="/html/head/base" />
     26  <append theme="/html/head" content="/html/head/script" />
     27  <append theme="/html/head" content="/html/head/link | /html/head/style" />
    3728
    38     <!--      href of username link -->
    39     <copy attributes="href"
    40           css:content="#portal-personaltools li:nth-child(1) a"
    41           css:theme="#user-options a:nth-child(1)" />
    42     <!--      2nd to last link of user options (separators filtered out) -->
    43     <copy css:theme="#user-options ul">
    44       <xsl:for-each css:select="#portal-personaltools li">
    45         <xsl:if test="not(position() mod 2 = 0)">
    46           <xsl:if test="not(position() = 1)">
    47             <xsl:copy-of select="." />
    48           </xsl:if>
     29
     30  <!-- Top / Header -->
     31  <copy attributes="href" css:content='#portal-logo' css:theme="#logo-container a" />
     32
     33  <!-- User options (upper right) -->
     34  <!--      user name in options menu   -->
     35  <replace css:theme-children="#user-options-name"
     36           css:content-children="#portal-personaltools li:nth-child(1) a" />
     37  <!--      href of username link -->
     38  <copy attributes="href"
     39        css:content="#portal-personaltools li:nth-child(1) a"
     40        css:theme="#user-options a:nth-child(1)" />
     41
     42  <!--      2nd to last link of user options (separators filtered out)
     43            These go into user options dropdown
     44  -->
     45  <copy css:theme="#user-options ul">
     46    <xsl:for-each css:select="#portal-personaltools li">
     47      <xsl:if test="not(position() mod 2 = 0)">
     48        <xsl:if test="not(position() = 1)">
     49          <xsl:copy-of select="." />
    4950        </xsl:if>
    50       </xsl:for-each>
    51     </copy>
    52        
    53         <replace css:theme=".navbar-form" css:content="#portal-searchbox form"/>
    54         <drop css:content=".searchSection"/>
    55         <drop css:content="#LSResult"/>
    56        
    57        
    58         <replace css:theme-children="#menu-collapse .nav" css:content-children="#portal-globalnav"/>
    59         <!-- Frontpage Content -->
    60         <replace css:theme=".full-col" css:content=".full-col" css:if-content="body.template-frontpageview"/>
    61         <replace css:theme=".rslides" css:content=".rslides"/>
    62         <replace css:theme=".left-col" css:content=".left-col" css:if-content="body.template-frontpageview"/>
    63        
    64        
    65         <replace css:theme-children=".right-col" css:content-children="#portal-column-two" css:if-not-content="body.template-frontpageview"/>
    66         <replace css:theme-children=".right-col" css:content-children="#newsportlet" css:if-content="body.template-frontpageview"/>
    67        
    68        
    69         <!-- Content -->
    70         <before css:theme=".rslides_container" css:content="#edit-bar"/>
    71        
    72         <copy css:theme=".content-container" css:content-children="#portal-column-content"/>
    73        
    74         <!-- Footer -->
    75         <replace css:theme=".footer .section" css:content="#portal-footer-wrapper .section"/>
    76        
     51      </xsl:if>
     52    </xsl:for-each>
     53  </copy>
     54
     55  <replace css:theme=".navbar-form" css:content="#portal-searchbox form"/>
     56  <drop css:content=".searchSection"/>
     57  <drop css:content="#LSResult"/>
     58
     59
     60  <replace css:theme-children="#menu-collapse .nav"
     61           css:content-children="#portal-globalnav"/>
     62  <!-- Frontpage Content -->
     63  <replace css:theme=".full-col" css:content=".full-col"
     64           css:if-content="body.template-frontpageview"/>
     65  <replace css:theme=".rslides" css:content=".rslides"/>
     66  <replace css:theme=".left-col" css:content=".left-col"
     67           css:if-content="body.template-frontpageview"/>
     68
     69
     70  <replace css:theme-children=".right-col"
     71           css:content-children="#portal-column-two"
     72           css:if-not-content="body.template-frontpageview"/>
     73  <replace css:theme-children=".right-col"
     74           css:content-children="#newsportlet"
     75           css:if-content="body.template-frontpageview"/>
     76
     77  <!-- Content -->
     78  <before css:theme=".rslides_container" css:content="#edit-bar"/>
     79
     80  <copy css:theme=".content-container"
     81        css:content-children="#portal-column-content"/>
     82
     83  <!-- Footer -->
     84  <replace css:theme=".footer .section"
     85           css:content="#portal-footer-wrapper .section"/>
     86
    7787</rules>
Note: See TracChangeset for help on using the changeset viewer.