browser/components/feeds/content/subscribe.xhtml
author Neil Deakin <neil@mozilla.com>
Wed, 22 Apr 2009 08:55:51 -0400
changeset 27618 d02c0b3b889475b09862ab168b0d2458afe5f7c0
parent 24731 ca6426f959b380c30e1bc16ca14646daa5b8f38f
child 34595 10b00c931e7c21629b73f627ec80c692633b6d8f
permissions -rw-r--r--
Bug 454407, use offscreen buffer instead of image buffer for drag feedback, r+sr=roc

<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE html [
  <!ENTITY % htmlDTD
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "DTD/xhtml1-strict.dtd">
  %htmlDTD;
  <!ENTITY % globalDTD
    SYSTEM "chrome://global/locale/global.dtd">
  %globalDTD;
  <!ENTITY % feedDTD
    SYSTEM "chrome://browser/locale/feeds/subscribe.dtd">
  %feedDTD;
]>

<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>

<html id="feedHandler"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  <head>
    <title>&feedPage.title;</title>
    <link rel="stylesheet"
          href="chrome://browser/skin/feeds/subscribe.css"
          type="text/css"
          media="all"/>
    <script type="application/x-javascript"
            src="chrome://browser/content/feeds/subscribe.js"/>
  </head>
  <body onload="SubscribeHandler.writeContent();" onunload="SubscribeHandler.uninit();">
    <div id="feedHeaderContainer">
      <div id="feedHeader" dir="&locale.dir;">
        <div id="feedIntroText">
          <p id="feedSubscriptionInfo1" />
          <p id="feedSubscriptionInfo2" />
        </div>

<!-- XXXmano this can't have any whitespace in it.  Otherwise you would see
     how much XUL-in-XHTML sucks, see bug 348830 -->
        <div id="feedSubscribeLine"
          ><xul:vbox
            ><xul:hbox align="center" 
              ><xul:description id="subscribeUsingDescription"
              /><xul:menulist id="handlersMenuList" aria-labelledby="subscribeUsingDescription"
                ><xul:menupopup menugenerated="true" id="handlersMenuPopup"
                  ><xul:menuitem id="liveBookmarksMenuItem" label="&feedLiveBookmarks;" class="menuitem-iconic" image="chrome://browser/skin/page-livemarks.png" selected="true"
                  /><xul:menuseparator
                /></xul:menupopup
              ></xul:menulist
            ></xul:hbox
            ><xul:hbox
              ><xul:checkbox id="alwaysUse" checked="false"
            /></xul:hbox
            ><xul:hbox align="center"
              ><xul:spacer flex="1"
              /><xul:button label="&feedSubscribeNow;" id="subscribeButton"
            /></xul:hbox
          ></xul:vbox
        ></div
      ></div>
    </div>

    <script type="application/x-javascript">
      SubscribeHandler.init();
    </script>

    <div id="feedBody">
      <div id="feedTitle">
        <a id="feedTitleLink">
          <img id="feedTitleImage"/>
        </a>
        <div id="feedTitleContainer">
          <h1 id="feedTitleText"/>
          <h2 id="feedSubtitleText"/>
        </div>
      </div>
      <div id="feedContent"/>
    </div>
  </body>
</html>