normalPost [GV2 Markup]

Gadget TypeGadget VersionLayouts VersionTheme NameUpdate Version
Common
2
3
Notable
Révision 1.3.0
Blogger - normalPost [Common GV2 Markup]
normalPost est le nom d'une inclusion Commune. Ces variantes sont spécifiques au thème Notable et deviennent prioritaires par rapport à la version originale dans l'éditeur XML. Mais comme cette dernière n'existe pas, la question de priorité ne se pose pas.


Disponibilité des variantes de l'inclusion

Emplacement du code Gadget Type Maquette originale Contempo Emporio Notable Soho
Éditeur XML
Common
inexistant inexistant inexistant Marquage inexistant
Serveur Blogger inexistant inexistant inexistant inexistant inexistant


Marquage dans Contempo

Inexistant.


Marquage dans Emporio

Inexistant.


Marquage dans Notable

Ce marquage a été conçu pour fonctionner avec les gadgets Blog et PopularPosts et reconstruit intégralement l'article.

<b:includable id='normalPost'>
  <b:if cond='(not data:view.isSingleItem or data:widget.type == "PopularPosts")'>
    <b:if cond='data:post.featuredImage and (data:widget.type != "PopularPosts" or data:this.postDisplay.showFeaturedImage)'>
      <a class='snippet-thumbnail' expr:href='data:post.url'>
        <b:if cond='data:post.featuredImage.isResizable'>
          <span class='snippet-thumbnail-img' expr:id='"snippet_thumbnail_id_" + data:post.id'/>
          <style>
            @media (min-width: 1168px) {
              <b:eval expr='"#snippet_thumbnail_id_" + data:post.id'/> {
                background-image: url(<b:eval expr='resizeImage(data:post.featuredImage, 256, "1:1").cssEscaped'/>);
              }
            }
            @media (min-width: 969px) and (max-width: 1167px) {
              <b:eval expr='"#snippet_thumbnail_id_" + data:post.id'/> {
                background-image: url(<b:eval expr='resizeImage(data:post.featuredImage, 1167, "3:2").cssEscaped'/>);
              }
            }
            @media (min-width: 601px) and (max-width: 968px) {
              <b:eval expr='"#snippet_thumbnail_id_" + data:post.id'/> {
                background-image: url(<b:eval expr='resizeImage(data:post.featuredImage, 968, "3:2").cssEscaped'/>);
              }
            }
            @media (max-width: 600px) {
              <b:eval expr='"#snippet_thumbnail_id_" + data:post.id'/> {
                background-image: url(<b:eval expr='resizeImage(data:post.featuredImage, 600, "3:2").cssEscaped'/>);
              }
            }
          </style>
        <b:else/>
          <img expr:src='data:post.featuredImage'/>
        </b:if>

      </a>
    <b:else/>
      <div class='snippet-thumbnail thumbnail-empty'/>
    </b:if>
  </b:if>
  <div class='post-content container'>
    <div class='post-title-container'>
      <b:include data='post' name='postTitlepostTitleGV2 (default)GV2 (markup)'/>
    </div>
    <div class='post-header-container container'>
      <b:if cond='data:view.isSingleItem and data:widgets.Blog.first.allBylineItems.author and data:post.author.authorPhoto.image and data:widget.type != "PopularPosts"'>
        <div class='post-author-profile-pic-container'>
          <b:include data='{ image: data:post.author.authorPhoto.image, imageRatio: "1:1", imageSizes: [84, 168], sourceSizes: "84px", imageClass: "post-author-profile-pic" }' name='responsiveImage'/>
        </div>
      </b:if>
      <b:include data='post' name='headerByline'/>
    </div>
    <b:if cond='data:view.isSingleItem and data:widget.type != "PopularPosts"'>
      <div class='post-body-container'>
        <b:include data='post' name='postBody'/>
        <div class='post-sidebar invisible'>
          <b:with value='data:widget.instanceId + "-normalpostsidebar-" + data:post.id' var='sharingId'>
            <b:include cond='data:post.shareUrl' data='{ shareButtonClass: "post-share-buttons-top", overridden: true }' name='maybeAddShareButtons'/>
          </b:with>
          <b:if cond='data:post.labels and !data:post.labels.empty and data:widgets.Blog.first.allBylineItems.labels'>
            <div class='post-labels-sidebar'>
              <h3><data:messages.labels/></h3>
              <b:include data='post' name='postLabels'/>
            </div>
          </b:if>
        </div>
      </div>
    <b:else/>
      <b:include cond='data:this.postDisplay.showSnippet ?: true' data='post' name='postBodySnippet'/>
    </b:if>
    <b:include data='post' name='postFooter'/>
  </div>
</b:includable>
Les nœuds parents

Gadget Type Inclusion Gadget Version Layouts Version Thème
Blog
post 2 3
Notable
PopularPosts
snippetedPostContent 2 3
Notable


Marquage dans Soho

Inexistant.


La version originale de l'inclusion

Inexistante.


Retourner dans la vue d'ensemble des inclusions Communes Version 2

Populaires cette semaine

Facebook : Bouton J'aime [Like button]