Advertisement
Guest User

rules.xml Plumi modified

a guest
Jan 20th, 2017
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 25.26 KB | None | 0 0
  1. <rules
  2.    xmlns="http://namespaces.plone.org/diazo"
  3.    xmlns:css="http://namespaces.plone.org/diazo/css"
  4.    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  5.  
  6.     <!-- Apply theme to normal Plone pages -->
  7.     <theme href="index.html" css:if-content="body.template-featured_videos_homepage #visual-portal-wrapper" />
  8.     <theme href="video.html" css:if-content="body.template-video_view #visual-portal-wrapper" />
  9.     <theme href="list.html" css:if-content="body.template-video_listing_view #visual-portal-wrapper" />
  10.     <theme href="author.html" css:if-content="body.template-author #visual-portal-wrapper" />
  11.  
  12.     <!--theme href="search.html" css:if-content="body.template-search #visual-portal-wrapper" /-->
  13.     <theme href="text.html" css:if-content="#visual-portal-wrapper" />
  14.     <notheme if="$ajax_load" />
  15.  
  16.     <!-- ALL PAGES -->
  17.     <rules>
  18.         <!-- Drop the viewport meta tag from Plone -->
  19.         <drop css:content="meta[name=viewport]"/>
  20.  
  21.         <!-- Copy all meta tags -->
  22.         <before content="/html/head/meta" css:theme="#css" />
  23.  
  24.         <!-- Get page title -->
  25.         <replace content="/html/head/title" theme="/html/head/title"/>
  26.  
  27.         <!-- Copy the <base> tag -->
  28.         <copy content="/html/head/base" theme="/html/head/base" />
  29.  
  30.         <!-- copy body attrs -->
  31.         <prepend theme="/html/body" content="/html/body/@class" />
  32.         <prepend theme="/html/body" content="/html/body/@id" />
  33.         <prepend theme="/html/body" content="/html/body/@dir" />
  34.  
  35.         <!-- Copy style and link tags in the order they appear in the content -->
  36.         <after content="/html/head/style | /html/head/link" css:theme="#css" />
  37.  
  38.         <!-- Drop the "type" attribute from <script> tags. HTML5 doesn't mandate
  39.             it and we can save a few bytes there. -->
  40.         <drop css:content="script" attributes="type"/>
  41.  
  42.         <!-- Copy script tags in the order they appear in the content but place
  43.             them at the bottom of the theme. -->
  44.         <before
  45.            css:content="head > script"
  46.             css:theme="#javascript_at_bottom"
  47.             />
  48.  
  49.         <!-- Copy inline javascripts from within the body -->
  50.         <!-- reCaptcha needs to stay within the body because they generate html
  51.             in place where the JS is. -->
  52.         <replace
  53.            content="//body//script[not(contains(@src, 'www.google.com/recaptcha/api/challenge'))]"
  54.            css:theme="#javascript_inline"
  55.            method="raw"
  56.            />
  57.  
  58.         <!-- Drop the scripts within the body because we have copied them to the
  59.             end of the page -->
  60.         <drop content="//div[@id='visual-portal-wrapper']//script[not(contains(@src, 'www.google.com/recaptcha/api/challenge'))]"/>
  61.  
  62.         <!-- Drop the javascript target from the theme -->
  63.         <drop css:theme="#javascript_at_bottom"/>
  64.  
  65.         <!-- Copy over the id/class attributes on the body tag.
  66.             This is important for per-section styling -->
  67.         <copy attributes="id dir" css:content="body" css:theme="body" />
  68.  
  69.         <!--drop content licensing on pages other than the video page -->
  70.         <drop css:content="#copyright-citation" css:if-not-content="body.template-video_view" />
  71.         <drop css:content="#copyright-button" css:if-not-content="body.template-video_view" />
  72.         <drop css:content="#copyright-text" css:if-not-content="body.template-video_view" />
  73.  
  74.         <!--portlet managers -->
  75.         <prepend css:content="#portletmanager-plone-leftcolumn" css:theme="#mid-container" />
  76.         <append css:content="#portletmanager-plone-rightcolumn" css:theme="#mid-container" />
  77.  
  78.         <!--right column portlets-->
  79.         <append css:theme="div.sidebar" css:content="#portal-column-two"/>
  80.  
  81.         <!-- footer portlets -->
  82.         <replace theme-children="//div[@class='row footer']/div[@class='columns']" css:content="div.FooterPortletManager1"/>
  83.  
  84.         <append css:content="div.manageFooterPortletsLink" theme="//div[@class='row footer']/div[@class='columns']" />
  85.  
  86.         <!-- drop breadcrumbs -->
  87.         <drop css:content="#portal-breadcrumbs" />
  88.  
  89.         <!-- drop tags on news items -->
  90.         <drop css:content="body.portaltype-news-item div#category" />
  91.  
  92.         <!-- HEADER -->
  93.         <!-- Copy search box -->
  94.         <copy css:content="#portal-searchbox" css:theme="div.search" />  
  95.  
  96.       <!-- TEST 01 TO RE-ADD PORTAL-GLOBALNAV TO PLUMI.SKIN -->
  97.  
  98.         <replace css:content-children='#portal-globalnav' css:theme-children='#portal-globalnav' />
  99.  
  100.         <!-- copy user menu -->
  101.         <rules css:if-content="a#user-name">
  102.             <copy css:content-children="dl#portal-personaltools dd.actionMenuContent > ul" css:theme="#user-menu ul.dropdown" />
  103.             <copy css:content-children="a#user-name" css:theme="ul#user-menu > li > a.user" />
  104.             <copy attributes="href title" css:content="a#user-name" css:theme="ul#user-menu > li > a" />
  105.         </rules>
  106.         <rules css:if-content="ul#portal-personaltools > li#anon-personalbar">
  107.             <copy css:content="a#personaltools-login" css:theme="ul#user-menu" />
  108.             <append css:content="a#personaltools-join" css:theme="ul#user-menu" />
  109.             <drop css:theme="#user-menu ul.dropdown" />
  110.         </rules>
  111.  
  112.         <!-- copy browse menu -->
  113.         <copy css:content-children="dl.portletBrowse > dt" css:theme="ul#browse-menu > li.header-button > a.user" />
  114.         <copy css:content="dd.browse-portlet" css:theme="ul#browse-menu ul.dropdown" />
  115.  
  116.         <!-- copy upload menu -->
  117.         <copy css:content-children="dl.portletPublishPortlet > dt" css:theme="ul#publish-menu > li.header-button > a.user" />
  118.         <copy css:content="dd.publish-portlet" css:theme="ul#publish-menu ul.dropdown" />
  119.  
  120.         <!-- copy language selector -->
  121.         <copy css:content-children="ul#portal-languageselector" css:theme="ul#language-menu" />
  122.  
  123.         <!-- logo -->
  124.         <copy attributes="href title" css:content="a#portal-logo" css:theme="a.main-title" />
  125.         <copy attributes="href title" css:content="a#portal-logo" css:theme="a.main-logo-link" />
  126.  
  127.  
  128.         <!-- RSS icon link -->
  129.         <replace css:theme="a.rss" if-not-path="author">
  130.             <a href="RSS2" class="rss icon"></a>
  131.         </replace>
  132.  
  133.  
  134.         <!-- Content footer is for siteelement doormat, so update this rule if
  135.             doormat is needed for the theme -->
  136.         <drop css:theme="#content-footer" />
  137.         <copy css:content-children=".siteelement-footertext .footertext" css:theme="#colophon" />
  138.  
  139.         <!-- main content -->
  140.         <copy css:content="#portal-column-content" css:theme="#post-content > div.text-content > div.nine" />
  141.         <drop css:content="span.documentModified > span" />
  142.  
  143.         <!-- Userprefs page -->
  144.         <drop css:theme="div.sidebar" if-path="/@@usergroup-userprefs" />
  145.     </rules>
  146.  
  147.  
  148.     <!--rules css:if-path="portal_registration/passwordreset">
  149.        <copy content="/html/head/base" theme="/html/head/base" />
  150.    </rules-->
  151.  
  152.     <!-- Login Page-->
  153.     <rules css:if-content="#login_form">
  154.         <drop css:theme="div.sidebar" />
  155.     </rules>
  156.  
  157.     <!-- Register Page -->
  158.     <rules css:if-content="body.template-register">
  159.         <drop css:theme="div.sidebar" />
  160.     </rules>
  161.  
  162.     <!-- Publish Page -->
  163.     <rules css:if-content="body.template-publish_video">
  164.         <drop css:theme="div.sidebar" />
  165.     </rules>
  166.  
  167.  
  168.     <!-- HOMEPAGE -->
  169.     <rules css:if-content="body.template-featured_videos_homepage">
  170.  
  171.        <prepend css:theme="div.content">
  172.             <div class="row no-v-padding">
  173.                 <xsl:copy-of css:select="#edit-bar" />
  174.                 <xsl:copy-of css:select="dl.portalMessage" />
  175.             </div>
  176.         </prepend>
  177.  
  178.      <!-- TEST 02 TO RE-ADD PORTAL-GLOBALNAV TO PLUMI.SKIN -->
  179.  
  180.      <replace css:content-children='#portal-globalnav' css:theme-children='#portal-globalnav' />
  181.  
  182.         <!-- Featured video -->
  183.         <drop theme="//*[@id='featuredvideo']/.." if-not-content="//video" />
  184.         <replace theme="//*[@id='featuredvideo']/div[1]" content="//video/.."/>
  185.         <copy theme="//div[@id='featuredvideo']//div[1]/a" content="//div[@id='featured-front-page']//div[2]/span[1]/a" />
  186.         <copy theme="//div[@id='featuredvideo']//h3" css:content="#featuredVideoTitle" />
  187.         <replace theme="//div[@id='featuredvideo'][1]//p">
  188.             <div class="featuredVideo-date">
  189.                 <xsl:value-of select="//span[@class='featuredItemDetailsPosted discreet']/span[@class='posted-date']" />
  190.             </div>
  191.             <span class="country">
  192.                 <xsl:copy-of select="//div[@id='featured-front-page']//div[2]//dl[@class='plumi-country plumi-props-listing']/dd/ul/li/a" />
  193.             </span>
  194.             <p>
  195.                 <xsl:copy-of select="substring(//p[@id='featuredVideoDescription']/text(),0,260)" />...
  196.             </p>
  197.         </replace>
  198.         <drop css:theme=".video.featured div.description" css:if-not-content="#featured-item"/>
  199.  
  200.         <!-- RSS icon link to the latest videos feeds -->
  201.         <replace css:theme="#latest-videos-title">
  202.             <div class="full row no-v-padding row-title" id="latest-videos-title">
  203.                 <h4><a href="latestvideos">Latest Videos</a></h4>
  204.                 <a href="latestvideos/RSS2" class="rss icon"></a>
  205.             </div>
  206.  
  207.         </replace>
  208.         <!-- In order for this to work, we need News, Comments, Blogs portlets with more link and dates enabled.
  209.             The portlets take their class names according to their names, so keep the portlets News, Comments, Blogs
  210.             For the featured items, we need portlets Feature 1 and Featured 2, showing 1 item, and the hack on the portlets collection
  211.             to display the image when it sees 1 item -->
  212.  
  213.         <!-- Featured items. Right portlets 1 -->
  214.         <copy css:content="div.featured-filmmaker" css:theme="div.featured-filmmaker" />
  215.         <copy css:content="div#featured-left" css:theme="div#featured-left" />
  216.         <copy css:content="div#featured-right" css:theme="div#featured-right" />
  217.         <replace css:theme="#more-projects">
  218.         <a href="projects" id="more-projects">More Projects</a>
  219.         </replace>
  220.         <!-- Social Networks-->
  221.         <copy css:content-children="div.social-networks" css:theme="div.social-networks" />
  222.         <!-- Latest videos -->
  223.         <replace css:theme="#mid-container #latestvideos">
  224.             <div id="latestvideos" class="row content">
  225.                 <xsl:for-each css:select="#featured-latest-videos dd.featuredItem">
  226.                     <div class="four columns video">
  227.                         <div class="wrapper-under">
  228.                             <div class="under">
  229.                                 <h5><xsl:copy-of css:select="h4 a.featuredItemTitle"/></h5>
  230.                             </div>
  231.                         </div>
  232.                         <div class="proxy-under"></div>
  233.                         <div class="wrapper-image">
  234.                             <div class="rollover">
  235.                                 <p><a><xsl:copy-of select="a[@class='featured-video-image']/@href" /><xsl:copy-of select="substring(p/text(),0, 130)" />...</a></p>
  236.                                 <span class="country"><xsl:copy-of select="dl[@class='plumi-country plumi-props-listing']//a" /></span>
  237.                                 <xsl:value-of select="span[@class='featuredItemDetailsPosted discreet']/span[@class='posted-date']" />
  238.                             </div>
  239.                             <xsl:copy-of css:select="a.featured-video-image"/>
  240.                         </div>
  241.                         <span class="duration"><xsl:copy-of css:select=".featured-video-duration span" /></span>
  242.                     </div>
  243.                 </xsl:for-each>
  244.                 <div class="six columns centered load-more">
  245.                     <a class="button large" href="latestvideos">More Videos</a>
  246.                 </div>
  247.             </div>
  248.         </replace>
  249.     </rules>
  250.  
  251.     <!-- VIDEO VIEW PAGE -->
  252.     <rules css:if-content="body.template-video_view">
  253.  
  254.         <prepend css:theme="div.video-content">
  255.             <div class="row no-v-padding">
  256.                 <xsl:copy-of css:select="#edit-bar" />
  257.                 <xsl:copy-of css:select="dl.portalMessage" />
  258.             </div>
  259.         </prepend>
  260.         <append css:theme="#video-title" css:content="span.documentAuthor" />
  261.         <append css:theme="#video-title" css:content="span.documentModified" />
  262.         <append css:theme="#video-title" css:content="#statistics" />
  263.         <copy css:content="#content h1.documentFirstHeading > span" css:theme="#video-title h1" />
  264.         <copy css:theme=".video" css:content="#video-core" />
  265.         <copy css:theme="#description" css:content="#content p.documentDescription" />
  266.         <copy css:theme="#full-description" css:content="#full-description > div" />
  267.         <copy css:theme="#video-info" css:content="#video-infos" />
  268.         <append css:theme="#video-info" css:content="#video-licensing" />
  269.         <append css:theme="#video-info" css:content="#video-transcoding" />
  270.         <copy css:theme="#video-comments" css:content=".discussion" />
  271.         <append css:theme="#video-comments" content="//*[@class='reply'][1]" />
  272.         <drop css:theme=".video-comments-title" css:if-not-content=".discussion div" />
  273.  
  274.         <replace css:theme=".video-list">
  275.             <ul class="video-list">
  276.             <xsl:for-each css:select="#authors_latest li">
  277.                 <li class="video-item">
  278.                     <a class="video-download"><xsl:copy-of select="a/@href" />
  279.                         <xsl:copy-of select="a/img" />
  280.                         <xsl:copy-of select="a/h5" />
  281.                         <xsl:copy-of select="div[@class='duration']" />
  282.                         <div class="rollover">
  283.                             <xsl:copy-of select="substring(a/@title,0,130)" />...
  284.                             <p><xsl:copy-of select="p/span[@class='posted-date']" /></p>
  285.                         </div>
  286.  
  287.                     </a>
  288.                 </li>
  289.             </xsl:for-each>
  290.             </ul>
  291.         </replace>
  292.     </rules>
  293.  
  294.  
  295.     <!-- VIDEO LISTINGS PAGE -->
  296.     <rules css:if-content="body.template-video_listing_view">
  297.         <!-- Show edit bar on Member listings -->
  298.         <prepend if-path="/Members" css:theme="div#mid-container">
  299.             <div class="row no-v-padding">
  300.                 <xsl:copy-of css:select="#edit-bar" />
  301.                 <xsl:copy-of css:select="dl.portalMessage" />
  302.             </div>
  303.         </prepend>
  304.  
  305.         <!-- video listing -->
  306.         <copy css:theme="#mid-container div.full h4" css:content-children="div#content div h1.documentFirstHeading" />
  307.         <replace css:theme="#mid-container #video-listings">
  308.             <div class="content row" id="video-listings">
  309.             <div class="documentDescription"><xsl:copy-of select="//div[@class='documentDescription']" /></div>
  310.             <div class="documentFullDescription"><xsl:copy-of select="//div[@id='content']//div[1]/div[2]" /></div>
  311.             <xsl:copy-of css:select=".videocount" />
  312.             <div class="listingBarTop"><xsl:copy-of select="//div[@class='listingBar'][1]" /></div>
  313.             <xsl:for-each css:select="#content dl.videos-listing dd.featuredItem">
  314.                 <div class="three columns video tablet-two mobile-one">
  315.                     <div class="wrapper-under">
  316.                         <div class="under">
  317.                             <h5><xsl:copy-of css:select="h4 a.featuredItemTitle"/></h5>
  318.                         </div>
  319.                     </div>
  320.                     <div class="proxy-under"></div>
  321.                     <div class="wrapper-image">
  322.                         <div class="rollover">
  323.                             <p><a><xsl:copy-of select="a[@class='featured-video-image']/@href" /><xsl:copy-of select="substring(p/text(),0, 130)" />...</a></p>
  324.                             <span class="country"><xsl:copy-of select="dl[@class='plumi-country plumi-props-listing']//a" /></span>
  325.                             <xsl:value-of select="span[@class='featuredItemDetailsPosted discreet']/span[@class='posted-date']" />
  326.                         </div>
  327.                         <xsl:copy-of css:select="a.featured-video-image"/>
  328.                     </div>
  329.                     <span class="duration"><xsl:copy-of css:select=".featured-video-duration span" /></span>
  330.                 </div>
  331.             </xsl:for-each>
  332.             <div class="listingBarBottom"><xsl:copy-of select="//div[@class='listingBar'][1]" /></div>
  333.             </div>
  334.         </replace>
  335.     </rules>
  336.  
  337.    <!-- AUTHOR PAGE -->
  338.     <rules css:if-content="body.template-author">
  339.  
  340.      <prepend css:theme="div.content">
  341.             <div class="row no-v-padding">
  342.                 <xsl:copy-of css:select="#edit-bar" />
  343.                 <xsl:copy-of css:select="dl.portalMessage" />
  344.             </div>
  345.         </prepend>
  346.  
  347.         <copy css:theme="#mid-container div#video-title h1" css:content-children="#region-content div h1.documentFirstHeading" />
  348.         <copy css:theme="div.author-image-wrapper" css:content="#author-full-details > img" />
  349.  
  350.         <drop css:theme="li.location" css:if-not-content="div.author-location a" />
  351.         <copy css:theme="li.location" css:content-children="div.author-location a" />
  352.  
  353.         <drop css:theme="li.lang" css:if-not-content="div#author-full-details div.discreet a" />
  354.         <replace css:theme="li.lang a" css:content-children="div#author-full-details div.discreet a" />
  355.  
  356.         <drop css:theme="li.homepage" css:if-not-content="p.homepage a" />
  357.         <copy css:theme="li.homepage a" css:content="p.homepage a" />
  358.  
  359.         <drop css:theme="li.homepages" css:if-not-content="div.other-homepages" />
  360.         <replace css:theme="li.homepages">
  361.             <xsl:for-each css:select="div.other-homepages">
  362.               <li class="homepages">
  363.                 <xsl:copy-of select="a" />
  364.               </li>
  365.             </xsl:for-each>
  366.         </replace>
  367.  
  368.         <drop css:theme="li.interests" css:if-not-content="div.author-interests" />
  369.         <replace css:theme-children="li.interests" css:content-children="div.author-interests" />
  370.  
  371.         <drop css:theme="li.activities" css:if-not-content="div.author-activities" />
  372.         <replace css:theme-children="li.activities" css:content-children="div.author-activities" />
  373.  
  374.         <drop css:theme="li.formats" css:if-not-content="div.author-formats" />
  375.         <replace css:theme-children="li.formats" css:content-children="div.author-formats" />
  376.  
  377.         <drop css:theme="li.description" if-not-content="//div[@id='author-full-details']/p[@class='documentDescription']/text()" />
  378.         <copy css:theme="li.description" css:content-children="div#author-full-details p.documentDescription" />
  379.  
  380.         <drop css:theme="li.paypal" css:if-not-content="div#paypal-donation" />
  381.         <copy css:theme="li.paypal" css:content="div#paypal-donation" />
  382.  
  383.         <drop css:theme=".videos-listing-header" css:if-not-content=".videos-listing-only" />
  384.         <drop css:theme="#video-listings" css:if-not-content=".videos-listing-only" />
  385.  
  386.         <drop css:theme=".news-listing-header" css:if-not-content="dl.news-listing" />
  387.         <drop css:theme="#news-listing" css:if-not-content="dl.news-listing" />
  388.  
  389.         <drop css:theme=".events-listing-header" css:if-not-content="dl.events-listing" />
  390.         <drop css:theme="#events-listing" css:if-not-content="dl.events-listing" />
  391.  
  392.         <!-- video listing -->
  393.         <replace css:theme="#mid-container #video-listings">
  394.             <div class="content row" id="video-listings">
  395.                 <xsl:for-each css:select=".featured-block dl.videos-listing-only dd.featuredItem">
  396.                     <div class="three columns video">
  397.                         <div class="wrapper-under">
  398.                             <div class="under">
  399.                                 <h5>
  400.                                     <xsl:copy-of css:select="h4 a.featuredItemTitle"/>
  401.                                 </h5>
  402.                             </div>
  403.                         </div>
  404.                         <div class="proxy-under"></div>
  405.                         <div class="wrapper-image">
  406.                             <div class="rollover">
  407.                                 <p>
  408.                                     <a><xsl:copy-of select="a[@class='featured-video-image']/@href" /><xsl:copy-of select="substring(p/text(),0, 130)" />...</a>
  409.                                 </p>
  410.                                 <span class="country">
  411.                                     <xsl:copy-of select="dl[@class='plumi-country plumi-props-listing']//a" />
  412.                                 </span>
  413.                                 <xsl:value-of select="span[@class='featuredItemDetailsPosted discreet']/span[@class='posted-date']" />
  414.                             </div>
  415.                             <xsl:copy-of css:select="a.featured-video-image"/>
  416.                         </div>
  417.                         <span class="duration">
  418.                             <xsl:copy-of css:select=".featured-video-duration span" />
  419.                         </span>
  420.                 </div>
  421.             </xsl:for-each>
  422.             <div class="foo" style="clear:both"></div>
  423.             <xsl:copy-of select="//p[@id='all-videos']" />
  424.             <!--xsl:copy-of select="//div[@id='other-published-stuff']" />
  425.            <xsl:copy-of select="//div[@id='contact-area']" /-->
  426.             </div>
  427.         </replace>
  428.  
  429.         <!-- news listing -->
  430.         <!--copy css:theme="#mid-container div.full h4" css:content-children="#region-content div h1.documentFirstHeading" /-->
  431.         <replace css:theme="#news-listing">
  432.         <div class="content row">
  433.             <div class="twelve columns">
  434.                 <ul class="news list">
  435.                     <xsl:for-each css:select=".featured-block dl.news-listing dd.featuredItem">
  436.                         <li>
  437.                             <span class="image">
  438.                                 <xsl:copy-of select="img" />
  439.                             </span>
  440.                             <span class="posted">
  441.                                 <xsl:copy-of select="div/h4" />
  442.                             </span>
  443.                             <span class="posted posted-date">
  444.                                 <xsl:value-of select="div/span[@class='featuredItemDetailsPosted discreet']/span[@class='posted-date']" />
  445.                             </span>
  446.                             <span class="content">
  447.                                 <xsl:copy-of select="substring(div/p[@class='discreet plumi-nice-description']/text(),0, 430)" />
  448.                             </span>
  449.                             <span class="readmore">
  450.                                 <xsl:copy-of select="div/p/span[@class='featured-read-more']/a" />
  451.                             </span>
  452.                         </li>
  453.                     </xsl:for-each>
  454.                 </ul>
  455.             </div>
  456.         </div>
  457.         </replace>
  458.  
  459.         <!-- events listing -->
  460.         <replace css:theme="#events-listing">
  461.             <div class="content row">
  462.                 <div class="twelve columns">
  463.                     <ul class="events list">
  464.                         <xsl:for-each css:select=".featured-block dl.events-listing dd.featuredItem">
  465.                             <li>
  466.                                 <span class="image">
  467.                                     <xsl:copy-of select="img" />
  468.                                 </span>
  469.                                 <span class="posted">
  470.                                     <xsl:copy-of select="div/h4" />
  471.                                 </span>
  472.                                 <span class="posted posted-date">
  473.                                     <xsl:value-of select="div/span[@class='featuredItemDetailsPosted discreet']/span[@class='posted-date']" />
  474.                                 </span>
  475.                                 <span class="content">
  476.                                     <xsl:copy-of select="substring(div/p[@class='discreet plumi-nice-description']/text(),0, 430)" />
  477.                                 </span>
  478.                                 <xsl:for-each select="div/p/a">
  479.                                     <xsl:copy-of select="." />
  480.                                 </xsl:for-each>
  481.                                 <span class="readmore">
  482.                                     <xsl:copy-of select="div/p/span[@class='featured-read-more']/a" />
  483.                                 </span>
  484.                             </li>
  485.                         </xsl:for-each>
  486.                     </ul>
  487.                 </div>
  488.             </div>
  489.         </replace>
  490.  
  491.         <append css:theme=".contact-author-content" css:content="div#contact-area form" />
  492.  
  493.         <!-- RSS icon link -->
  494.         <prepend css:theme="a.rss-videos" content="//a[@class='videos-rss-syndicate']/@href" />
  495.         <prepend css:theme="a.rss-news" content="//a[@class='news-rss-syndicate']/@href" />
  496.         <prepend css:theme="a.rss-events" content="//a[@class='events-rss-syndicate']/@href" />
  497.  
  498.     </rules>
  499.  
  500.         <!-- drop browse/publish menu on pages that doesn't have it -->
  501.         <drop css:if-not-content="#portal-column-one" css:theme="ul#publish-menu" />
  502.         <drop css:if-not-content="#portal-column-one" css:theme="ul#browse-menu" />
  503. </rules>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement