main : Inclusion principale du gadget Header (V1) - Blogger XML Documentation

Blogger - main [Header GV1]
Gadget Version 1 Gadget Version 2 Balisage
Header Aucun gadget
Original
Description de l'inclusion
main est le nom de l'inclusion principale dans le modèle par défaut de gadget version 1 dans le gadget Header.
L'inclusion génère selon les réglages, la disposition de la bannière et appelle les inclusions qui impriment le nom et la description du blog.
Directives d'usage et niveau de priorité de mise à jour
Thème Version 1
Garantie d'usage : Oui
Priorité faible
Thème Version 2
Garantie d'usage : Oui
Priorité moyenne
Thème Dynamique
Garantie d'usage : Rendu désactivé
Aucune priorité
Thème Version 3
Garantie d'usage : Aucune
Aucune priorité
Inclusion homonyme gadget version 2
main


Contenu de l'inclusion

Le code XML

<b:includable id='main'>
  <b:if cond='data:useImage'>
    <b:if cond='data:imagePlacement == "BEHIND"'>
      <!--
      Show image as background to text. You can't really calculate the width
      reliably in JS because margins are not taken into account by any of
      clientWidth, offsetWidth or scrollWidth, so we don't force a minimum
      width if the user is using shrink to fit.
      This results in a margin-width's worth of pixels being cropped. If the
      user is not using shrink to fit then we expand the header.
      -->
      <b:if cond='data:mobile'>
        <div id='header-inner'>
          <div class='titlewrapper' style='background: transparent'>
            <h1 class='title' style='background: transparent; border-width: 0px'>
              <b:include name='title'/>
            </h1>
          </div>
          <b:include name='description'/>
        </div>
        <b:else/>
        <div expr:style='"background-image: url(\"" + data:sourceUrl + "\"); " + "background-position: " + data:backgroundPositionStyleStr + "; " + data:widthStyleStr + "min-height: " + data:height + "_height: " + data:height + "background-repeat: no-repeat; "' id='header-inner'>
          <div class='titlewrapper' style='background: transparent'>
            <h1 class='title' style='background: transparent; border-width: 0px'>
              <b:include name='title'/>
            </h1>
          </div>
          <b:include name='description'/>
        </div>
      </b:if>
      <b:else/>
      <!--Show the image only-->
      <div id='header-inner'>
        <a expr:href='data:blog.homepageUrl' style='display: block'>
          <img expr:alt='data:title' expr:height='data:height' expr:id='data:widget.instanceId + "_headerimg"' expr:src='data:sourceUrl' expr:width='data:width' style='display: block'/>
        </a>
        <!--Show the description-->
        <b:if cond='data:imagePlacement == "BEFORE_DESCRIPTION"'>
          <b:include name='description'/>
        </b:if>
      </div>
    </b:if>
    <b:else/>
    <!--No header image -->
    <div id='header-inner'>
      <div class='titlewrapper'>
        <h1 class='title'>
          <b:include name='title'/>
        </h1>
      </div>
      <b:include name='description'/>
    </div>
  </b:if>
</b:includable>

Les nœuds parents

ID Inclusion Balisage

Aucun.

Cette inclusion est la première dans le gadget Header.



Spotlight

Populaires cette semaine

Twitter : Bouton mentionner / Mention button