home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / AIMP2 / aimp_2.61.583.exe / $TEMP / YandexPackSetup.msi / filF0032A788290C11718405A251B10BE0B < prev    next >
Extensible Markup Language  |  2010-07-12  |  2KB  |  47 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE stylesheet SYSTEM "chrome://yasearch/locale/yasearch.dtd">
  3.  
  4. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  5.   xmlns:html="http://www.w3.org/1999/xhtml"
  6.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  7. >
  8.  
  9. <xsl:output method="xml" encoding="UTF-8" indent="no"/>
  10. <xsl:variable name="error" select="counter/data/@error"/>
  11.  
  12. <xsl:param name="cbl" select="'{'"/>
  13. <xsl:param name="cbr" select="'}'"/>
  14.  
  15. <xsl:template match="counter">
  16.   <toolbarbutton>
  17.     <xsl:attribute name="yaLabel">
  18.       <xsl:choose>
  19.         <xsl:when test="$error = 0">
  20.           <xsl:value-of select="data/@v"/>
  21.         </xsl:when>
  22.         <xsl:otherwise>
  23.           <xsl:text>0</xsl:text>
  24.         </xsl:otherwise>
  25.       </xsl:choose>
  26.     </xsl:attribute>
  27.     <menupopup id="yasearch-moikrug-menupopup">
  28.       <menuitem label="&yasearch.moikrug.reloadCounter.label;"
  29.                 oncommand="Ya.nsIYa.manualRefreshHTTPData('moikrug')"/>
  30.       <menuseparator/>
  31.       <menuitem label="&yasearch.moikrug.open.label;"
  32.                 oncommand="Ya.loadURI('http://moikrug.ru/threads/?from=bar', event, {$cbl}action:1660{$cbr})"/>
  33.       <menuitem label="&yasearch.moikrug.firstcircle.label;"
  34.                 oncommand="Ya.loadURI('http://moikrug.ru/circles/first/users/', event, {$cbl}action:1610{$cbr})"/>
  35.       <menuitem label="&yasearch.moikrug.profile.label;"
  36.                 oncommand="Ya.loadURI('http://moikrug.ru/profile/', event, {$cbl}action:1620{$cbr})"/>
  37.       <menuitem label="&yasearch.moikrug.search.label;"
  38.                 oncommand="Ya.loadURI('http://moikrug.ru/search/?&ok=0', event, {$cbl}action:1630{$cbr})"/>
  39.       <menuitem label="&yasearch.moikrug.vacancies.label;"
  40.                 oncommand="Ya.loadURI('http://moikrug.ru/vacancies/dashboard/', event, {$cbl}action:1640{$cbr})"/>
  41.       <menuitem label="&yasearch.moikrug.services.label;"
  42.                 oncommand="Ya.loadURI('http://moikrug.ru/services/', event, {$cbl}action:1650{$cbr})"/>
  43.     </menupopup>
  44.   </toolbarbutton>
  45. </xsl:template>
  46.  
  47. </xsl:stylesheet>