Populaire ce mois

post [GV1]

Gadget TypeGadget VersionLayouts VersionTheme NameUpdate Version
Blog
1
1
2
Par défaut
Révision 1.3.0
Blogger - post [Blog GV1]
post est le nom d'une inclusion du modèle par défaut de gadget version 1 dans le gadget Blog.
L'inclusion affiche l'article et tous ses composants (titre, auteur, date, etc...).


Contenu de l'inclusion

<b:includable id='post' var='post'>
  <div class='post hentry uncustomized-post-template' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>
    <b:if cond='data:post.firstImageUrl'>
      <meta expr:content='data:post.firstImageUrl' itemprop='image_url'/>
    </b:if>
    <meta expr:content='data:blog.blogId' itemprop='blogId'/>
    <meta expr:content='data:post.id' itemprop='postId'/>

    <a expr:name='data:post.id'/>
    <b:if cond='data:post.title'>
      <h3 class='post-title entry-title' itemprop='name'>
      <b:if cond='data:post.link or (data:post.url and data:blog.url != data:post.url)'>
        <a expr:href='data:post.link ? data:post.link : data:post.url'><data:post.title/></a>
      <b:else/>
        <data:post.title/>
      </b:if>
      </h3>
    </b:if>

    <div class='post-header'>
    <div class='post-header-line-1'/>
    </div>

    <!-- Then use the post body as the schema.org description, for good G+/FB snippeting. -->
    <div class='post-body entry-content' expr:id='"post-body-" + data:post.id' expr:itemprop='(data:blog.metaDescription ? "" : "description ") + "articleBody"'>
      <data:post.body/>
      <div style='clear: both;'/> <!-- clear for photos floats -->
    </div>

    <b:if cond='data:post.hasJumpLink'>
      <div class='jump-link'>
        <a expr:href='data:post.url + "#more"' expr:title='data:post.title'><data:post.jumpText/></a>
      </div>
    </b:if>

    <div class='post-footer'>

      <div class='post-footer-line post-footer-line-1'>
<!-- post-author -->
<span class='post-author vcard'>
  <b:if cond='data:top.showAuthor'>
    <data:top.authorLabel/>
      <b:if cond='data:post.authorProfileUrl'>
        <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'>
          <meta expr:content='data:post.authorProfileUrl' itemprop='url'/>
          <a class='g-profile' expr:href='data:post.authorProfileUrl' rel='author' title='author profile'>
            <span itemprop='name'><data:post.author/></span>
          </a>
        </span>
      <b:else/>
        <span class='fn' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'>
          <span itemprop='name'><data:post.author/></span>
        </span>
      </b:if>
  </b:if>
</span>

<!-- post-timestamp -->
<span class='post-timestamp'>
  <b:if cond='data:top.showTimestamp'>
    <data:top.timestampLabel/>
    <b:if cond='data:post.url'>
      <meta expr:content='data:post.url.canonical' itemprop='url'/>
      <a class='timestamp-link' expr:href='data:post.url' rel='bookmark' title='permanent link'><abbr class='published' expr:title='data:post.timestampISO8601' itemprop='datePublished'><data:post.timestamp/></abbr></a>
    </b:if>
  </b:if>
</span>

<!-- reaction-buttons -->
<span class='reaction-buttons'>
  <b:if cond='data:top.showReactions'>
    <table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>
      <td class='reactions-label-cell' nowrap='nowrap' valign='top' width='1%'>
        <span class='reactions-label'>
        <data:top.reactionsLabel/></span>&#160;</td>
      <td><iframe allowtransparency='true' class='reactions-iframe' expr:src='data:post.reactionsUrl' frameborder='0' name='reactions' scrolling='no'/></td>
    </tr></table>
  </b:if>
</span>

<!-- post-comment-link -->
<span class='post-comment-link'>
  <b:include cond='data:blog.pageType not in {"item","static_page"} and data:post.allowComments' data='post' name='comment_count_picker'/>
</span>

<!-- post-icons -->
<span class='post-icons'>
  <!-- email post links -->
  <b:if cond='data:post.emailPostUrl'>
    <span class='item-action'>
    <a expr:href='data:post.emailPostUrl' expr:title='data:top.emailPostMsg'>
      <img alt='' class='icon-action' height='13' src='https://resources.blogblog.com/img/icon18_email.gif' width='18'/>
    </a>
    </span>
  </b:if>

  <!-- quickedit pencil -->
  <b:include data='post' name='postQuickEdit'/>
</span>

<!-- post-share-buttons -->
<div class='post-share-buttons goog-inline-block'>
  <b:include cond='data:post.sharePostUrl' data='post' name='shareButtons'/>
</div>

      </div>

      <div class='post-footer-line post-footer-line-2'>

<!-- post-labels -->
<span class='post-labels'>
  <b:if cond='data:top.showPostLabels and data:post.labels'>
    <data:postLabelsLabel/>
    <b:loop values='data:post.labels' var='label'>
      <a expr:href='data:label.url' rel='tag'><data:label.name/></a><b:if cond='not data:label.isLast'>,</b:if>
    </b:loop>
  </b:if>
</span>

      </div>

      <div class='post-footer-line post-footer-line-3'>

<!-- post-location -->
<span class='post-location'>
  <b:if cond='data:top.showLocation and data:post.location'>
    <data:postLocationLabel/>
    <a expr:href='data:post.location.mapsUrl' target='_blank'><data:post.location.name/></a>
  </b:if>
</span>

      </div>

<!-- author-profile -->
<b:if cond='data:post.authorAboutMe'>
  <div class='author-profile' itemprop='author' itemscope='itemscope' itemtype='http://schema.org/Person'>
    <b:if cond='data:post.authorPhoto.url'>
      <img expr:src='data:post.authorPhoto.url' itemprop='image' width='50px'/>
    </b:if>
    <div>
      <a class='g-profile' expr:href='data:post.authorProfileUrl' itemprop='url' rel='author' title='author profile'>
        <span itemprop='name'><data:post.author/></span>
      </a>
    </div>
    <span itemprop='description'><data:post.authorAboutMe/></span>
  </div>
</b:if>

    </div>
  </div>
</b:includable>


Les nœuds parents

Gadget Type Inclusion Gadget Version Layouts Version Thème
Blog
main 1 1 2
Par défaut


Les autres inclusions du gadget Blog version 1

Spotlight

Populaires cette semaine

LinkedIn : Bouton de partage [Share button]

Le gadget Articles du blog [Blog]