Last active
April 5, 2018 20:09
-
-
Save oliverdoetsch/1927328 to your computer and use it in GitHub Desktop.
Responsive Blogger-Layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<!DOCTYPE html> | |
<html b:version='2' class='v2' expr:dir='data:blog.languageDirection' lang='de' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'> | |
<head> | |
<link href='http://fonts.googleapis.com/css?family=Wire+One' rel='stylesheet' type='text/css'/> | |
<link href='http://fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'/> | |
<link href='https://plus.google.com/114218821965302140644' rel='publisher'/> | |
<title><data:blog.pageTitle/></title> | |
<meta content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0' name='viewport'/> | |
<b:skin><![CDATA[ | |
/* CSS Resets | |
----------------------------------------------- */ | |
html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,address,cite,code,del,dfn,em,img,ins,q,small,strong,sub,sup,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td, .section{border:0;margin:0;padding:0}article,aside,figure,figure img,figcaption,hgroup,footer,header,nav,section,video,object{display:block}a img{border:0}figure{position:relative}figure img{width:100%}.widget ul{line-height:1;padding:0;} | |
/* Content | |
----------------------------------------------- */ | |
body { | |
-webkit-hyphens: auto; | |
-moz-hyphens: auto; | |
-ms-hyphens: auto; | |
hyphens: auto; | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
font-size: 100%; | |
line-height: 1.5; | |
color: #222; | |
background: f8f8f8; | |
} | |
body .navbar, | |
.feed-links { | |
height: 0px !important; | |
visibility: hidden; | |
display: none; | |
} | |
a { | |
color: #444; | |
text-decoration: none; | |
} | |
a:hover { color: #000 } | |
.container { background: url('http://goo.gl/SkMi8') repeat } | |
.container .header, | |
.container .main, | |
.container .nav, | |
.container .footer { | |
height: auto; | |
margin: 0; | |
} | |
/* Headings | |
----------------------------------------------- */ | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6 { | |
font-family: 'Hoefler Text', Constantia, Palatino, 'Palatino Linotype', 'Book Antiqua', Georgia, serif; | |
} | |
h1 a, | |
h2 a, | |
h3 a, | |
h4 a, | |
h5 a, | |
h6 a { color: #ad3a2b } | |
h1 { | |
font-size: 3em; | |
line-height: 1; | |
margin-bottom: 0.5em; | |
} | |
h2 { | |
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; | |
font-size: 1em; | |
font-weight: normal; | |
color: #222; | |
line-height: 1.5; | |
display: inline-block; | |
} | |
h3 { | |
color: #ad3a2b; | |
font-size: 1.304em; | |
line-height: 1.15; | |
/* margin-bottom: 1em;*/ | |
} | |
h4 { | |
font-size: 1.2em; | |
line-height: 1.25; | |
margin-bottom: 1.25em; | |
} | |
h5 { | |
font-size: 1em; | |
font-weight: bold; | |
margin-bottom: 1.5em; | |
} | |
h6 { | |
font-size: 1em; | |
font-weight: bold; | |
} | |
/* Nav | |
----------------------------------------------- */ | |
#nav li { | |
line-height: 4; | |
list-style: none outside none; | |
padding: .25em 0 .25em 1.5em; | |
/*padding-left: 1.5em;*/ | |
text-decoration: none; | |
} | |
#nav li a { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
-o-box-sizing: border-box box-sizing: border-box; | |
font-size: 1.304em; | |
line-height: 1.15; | |
font-family: 'Hoefler Text', Constantia, Palatino, 'Palatino Linotype', 'Book Antiqua', Georgia, serif; | |
color: #fff; | |
padding: .75em 1em; | |
background: #B3B3B3; | |
background-clip: padding-box; | |
overflow: hidden; | |
-webkit-border-radius: .25em; | |
border-radius: .25em; | |
} | |
#nav li a:hover { | |
color:#b3b3b3; | |
background: #fff; | |
} | |
/* Header | |
----------------------------------------------- */ | |
#header-inner img { padding: 0 0 0 1.25em } | |
header { margin: 0 0 3em 0 } | |
/* Main | |
----------------------------------------------- */ | |
.post-header { | |
line-height: 1.5; | |
/*font-family: 'Hoefler Text', Constantia, Palatino, 'Palatino Linotype', 'Book Antiqua', Georgia, serif;*/ | |
margin-bottom: 1.5em; | |
} | |
.date-outer { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
box-sizing: border-box; | |
/*background: rgb(153,153,153);*/ | |
border: .125em solid #dbdbdb; | |
-webkit-border-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAANUlEQVQIW2NkYGBgQ8JAJsMvEGYEEjxQzA0SBYKvQPwFJCEExIJAfBcqoQyk3+OVwGkUVssBP4wMT0ZBZV0AAAAASUVORK5CYII=) 2 / 2px repeat; | |
-moz-border-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAANUlEQVQIW2NkYGBgQ8JAJsMvEGYEEjxQzA0SBYKvQPwFJCEExIJAfBcqoQyk3+OVwGkUVssBP4wMT0ZBZV0AAAAASUVORK5CYII=) 2 / 2px repeat; | |
-o-border-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAANUlEQVQIW2NkYGBgQ8JAJsMvEGYEEjxQzA0SBYKvQPwFJCEExIJAfBcqoQyk3+OVwGkUVssBP4wMT0ZBZV0AAAAASUVORK5CYII=) 2 / 2px repeat; | |
border-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAANUlEQVQIW2NkYGBgQ8JAJsMvEGYEEjxQzA0SBYKvQPwFJCEExIJAfBcqoQyk3+OVwGkUVssBP4wMT0ZBZV0AAAAASUVORK5CYII=) 2 / 2px repeat; | |
border-width: .125em; | |
background-clip: padding-box; | |
overflow: hidden; | |
} | |
.post-body { | |
text-align: justify; | |
line-height: 1.5; | |
} | |
#Blog1 { overflow: hidden } | |
/* comments | |
----------------------------------------------- */ | |
.jump-link { text-align: right } | |
.jump-link a { | |
color: #ad3a2b; | |
font-size: 1.304em; | |
line-height: 1.15; | |
} | |
/* Bubbles */ | |
a.comment-bubble:hover{color:#cc6611;} | |
a.comment-bubble { | |
float:right; | |
width:36px; | |
height:1.5em; | |
line-height:1.5; | |
font-size: 1em; | |
text-align: center; | |
white-space:nowrap; | |
font: monospace !important; | |
color:#fff; | |
position:relative; | |
margin: -0.25em 0 1em 1em; | |
padding:0; | |
background:#B3B3B3; | |
-webkit-border-radius:6px; | |
-moz-border-radius:6px; | |
border-radius:6px; | |
/*border: 1px solid #B3B3B3;*/ | |
} | |
a.comment-bubble:after { | |
content:""; | |
position:absolute; | |
bottom:-9px; | |
left:11px; | |
border-width:9px 9px 0px 0px; | |
border-style:solid; | |
border-color:#B3B3B3 transparent; | |
display:block; | |
width:0; | |
} | |
/* .index | |
----------------------------------------------- */ | |
.index .date-outer { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
box-sizing: border-box; | |
height: 200px; | |
width: 100%; | |
float: left; | |
padding: 1.5em 1em 1em 1.5em; | |
} | |
.index .date-outer:nth-of-type(2), | |
.index .date-outer:nth-of-type(3), | |
.index .date-outer:nth-of-type(4) { | |
height: 390px; | |
width: 33.333%; | |
float: left; | |
background-clip: padding-box; | |
} | |
.index #blog-pager { | |
float: left; | |
width: 100%; | |
} | |
.index h3 { | |
margin: 0 1.5em 0 0; | |
} | |
/* .item | |
----------------------------------------------- */ | |
.item .date-outer { -moz-border-image:none; -webkit-border-image: none; -o-border-image: none; border-image: none; border: none;} | |
/*.item h2 {padding: 0 0 0 1.25em;}*/ | |
.item h3 { | |
font-size: 2em; | |
line-height: 1.5em; | |
/* margin-bottom: 1.5em;*/ | |
} | |
.item .post-outer { padding: 0} | |
.item .post-header { | |
} | |
]]></b:skin> | |
<b:template-skin> | |
<![CDATA[ | |
/* Responsive Grid Start | |
----------------------------------------------- */ | |
.container { | |
padding-left: 1.25em; | |
padding-right: 1.25em; | |
} | |
.row { | |
width: 100%; | |
max-width: 1140px; | |
min-width: 755px; | |
margin: 0 auto; | |
overflow: hidden; | |
} | |
.onecol, | |
.twocol, | |
.threecol, | |
.fourcol, | |
.fivecol, | |
.sixcol, | |
.sevencol, | |
.eightcol, | |
.ninecol, | |
.tencol, | |
.elevencol { | |
margin-right: 3.8%; | |
float: left; | |
min-height: 1px; | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
.row .onecol { width: 4.85% } | |
.row .twocol { width: 13.45% } | |
.row .threecol { width: 22.05% } | |
.row .fourcol { width: 30.75% } | |
.row .fivecol { width: 39.45% } | |
.row .sixcol { width: 48% } | |
.row .sevencol { width: 56.75% } | |
.row .eightcol { width: 65.4% } | |
.row .ninecol { width: 74.05% } | |
.row .tencol { width: 82.7% } | |
.row .elevencol { width: 91.35% } | |
.row .twelvecol { | |
width: 100%; | |
float: left; | |
} | |
.last { margin-right: 0px } | |
img, | |
object, | |
embed { max-width: 100% } | |
img { height: auto } | |
/*.item h3 { | |
font-size: 2em; | |
line-height: 1.5em; | |
margin-bottom: 1em; | |
color: #ad3a2b; | |
}*/ | |
/* iPad Größe | |
----------------------------------------------- */ | |
@media only screen and (max-width: 1023px) { | |
body { | |
font-size: 1em; | |
line-height: 1.5em; | |
} | |
header { margin: 0 0 1.5em 0 } | |
#nav { padding: 0 0 0 1.25em } | |
#nav li { | |
float: left; | |
padding: 0; | |
margin: 0 .25em 0 0; | |
} | |
/* .index | |
----------------------------------------------- */ | |
.index .date-outer, | |
.index .date-outer:nth-of-type(2), | |
.index .date-outer:nth-of-type(3), | |
.index .date-outer:nth-of-type(4) { | |
width: 50%; | |
height: 300px; | |
} | |
.index .date-outer:nth-of-type(3), | |
.index .date-outer:nth-of-type(4) { | |
} | |
.index .row .threecol { width: 100% } | |
.index .row .ninecol { width: 100% } | |
/* .item | |
----------------------------------------------- */ | |
.item h3 { | |
margin: 1.5em 0 0 0; | |
} | |
.item header { | |
height: 0px !important; | |
visibility: hidden; | |
display: none; | |
} | |
.item .row .threecol { width: 100% } | |
.item .row .ninecol { width: 100% } | |
} | |
.item .post-outer { padding: 0 1.25em } | |
/* Static Sites | |
----------------------------------------------- */ | |
.static_page #HTML1, | |
.static_page #HTML2, | |
.static_page #HTML3, | |
.static_page #HTML4, | |
.static_page #HTML5, | |
.static_page #HTML6, | |
.static_page .footer, | |
.static_page .header, | |
.static_page .main-1 { display: none } | |
/* iPhone Größe | |
----------------------------------------------- */ | |
@media handheld, only screen and (max-width: 767px) { | |
body { | |
font-size: 100%; | |
-webkit-text-size-adjust: none; | |
} | |
.container { | |
padding-left: 0; | |
padding-right: 0; | |
} | |
.row, | |
body, | |
.container { | |
width: 100%; | |
min-width: 0; | |
margin-left: 0px; | |
margin-right: 0px; | |
padding-left: 0px; | |
padding-right: 0px; | |
} | |
.row .onecol, | |
.row .twocol, | |
.row .threecol, | |
.row .fourcol, | |
.row .fivecol, | |
.row .sixcol, | |
.row .sevencol, | |
.row .eightcol, | |
.row .ninecol, | |
.row .tencol, | |
.row .elevencol, | |
.row .twelvecol { | |
width: auto; | |
float: none; | |
margin-left: 0px; | |
margin-right: 0px; | |
padding-left: 5px; | |
padding-right: 5px; | |
} | |
#header-2, | |
#header-3 { | |
display: none; | |
width: 0; | |
} | |
#Header1 #header-inner img { margin: 0 auto } | |
header { margin: 0 } | |
#nav li a { padding: .25em .5em } | |
/*ul#nav { | |
float: left; | |
position: relative !important; | |
left: 50% !important; | |
overflow: visible !important; | |
padding: 0; | |
} | |
ul#nav li { | |
float: left; | |
position: relative !important; | |
right: 50% !important; | |
}*/ | |
/* .index | |
----------------------------------------------- */ | |
.index .date-outer, | |
.index .date-outer, | |
.index .date-outer:nth-of-type(2), | |
.index .date-outer:nth-of-type(3), | |
.index .date-outer:nth-of-type(4) { | |
width: 100%; | |
height: auto; | |
float: none; | |
} | |
/* .Item | |
----------------------------------------------- */ | |
.item h3 { | |
font-size: 1.304em; | |
} | |
} | |
/* Responsive Grid End | |
----------------------------------------------- */ | |
]]></b:template-skin> | |
</head> | |
<body expr:class='"loading" + data:blog.mobileClass + " " + data:blog.pageType'> | |
<div class='container'> | |
<nav> | |
</nav> | |
<header> | |
<div class='row'> | |
<div class='fourcol'> | |
<b:section class='header' id='header-1' maxwidgets='3' showaddelement='yes'> | |
<b:widget id='Header1' locked='false' title='5202-A4 (Header)' type='Header'> | |
<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> | |
<b:includable id='title'> | |
<b:if cond='data:blog.url == data:blog.homepageUrl'> | |
<data:title/> | |
<b:else/> | |
<a expr:href='data:blog.homepageUrl'><data:title/></a> | |
</b:if> | |
</b:includable> | |
<b:includable id='description'> | |
<div class='descriptionwrapper'> | |
<p class='description'><span><data:description/></span></p> | |
</div> | |
</b:includable> | |
</b:widget> | |
</b:section> | |
</div> | |
<div class='fourcol'> | |
<b:section class='header' id='header-2' maxwidgets='2' showaddelement='yes'> | |
<b:widget id='HTML2' locked='false' title='' type='HTML'> | |
<b:includable id='main'> | |
<!-- only display title if it's non-empty --> | |
<b:if cond='data:title != ""'> | |
<h2 class='title'><data:title/></h2> | |
</b:if> | |
<div class='widget-content'> | |
<data:content/> | |
</div> | |
<b:include name='quickedit'/> | |
</b:includable> | |
</b:widget> | |
</b:section> | |
</div> | |
<div class='fourcol last'> | |
<b:section class='header' id='header-3' maxwidgets='2' showaddelement='yes'> | |
<b:widget id='HTML3' locked='false' title='' type='HTML'> | |
<b:includable id='main'> | |
<!-- only display title if it's non-empty --> | |
<b:if cond='data:title != ""'> | |
<h2 class='title'><data:title/></h2> | |
</b:if> | |
<div class='widget-content'> | |
<data:content/> | |
</div> | |
<b:include name='quickedit'/> | |
</b:includable> | |
</b:widget> | |
</b:section> | |
</div> | |
</div> | |
</header> | |
<div id='mainContent'> | |
<div class='row'> | |
<div class='threecol'> | |
<b:section class='main' id='main-1' maxwidgets='3' showaddelement='yes'> | |
<b:widget id='HTML4' locked='false' title='' type='HTML'> | |
<b:includable id='main'> | |
<!-- only display title if it's non-empty --> | |
<b:if cond='data:title != ""'> | |
<h2 class='title'><data:title/></h2> | |
</b:if> | |
<div class='widget-content'> | |
<data:content/> | |
</div> | |
<b:include name='quickedit'/> | |
</b:includable> | |
</b:widget> | |
</b:section> | |
</div> | |
<div class='ninecol last'> | |
<b:section class='main' id='main-2' maxwidgets='2' showaddelement='no'> | |
<b:widget id='Blog1' locked='true' title='Blogposts' type='Blog'> | |
<b:includable id='nextprev'> | |
<div class='blog-pager' id='blog-pager'> | |
<b:if cond='data:newerPageUrl'> | |
<span id='blog-pager-newer-link'> | |
<a class='blog-pager-newer-link' expr:href='data:newerPageUrl' expr:id='data:widget.instanceId + "_blog-pager-newer-link"' expr:title='data:newerPageTitle'><data:newerPageTitle/></a> | |
</span> | |
</b:if> | |
<b:if cond='data:olderPageUrl'> | |
<span id='blog-pager-older-link'> | |
<a class='blog-pager-older-link' expr:href='data:olderPageUrl' expr:id='data:widget.instanceId + "_blog-pager-older-link"' expr:title='data:olderPageTitle'><data:olderPageTitle/></a> | |
</span> | |
</b:if> | |
<a class='home-link' expr:href='data:blog.homepageUrl'><data:homeMsg/></a> | |
<b:if cond='data:mobileLinkUrl'> | |
<div class='blog-mobile-link'> | |
<a expr:href='data:mobileLinkUrl'><data:mobileLinkMsg/></a> | |
</div> | |
</b:if> | |
</div> | |
<div class='clear'/> | |
</b:includable> | |
<b:includable id='shareButtons' var='post'> | |
<b:if cond='data:top.showEmailButton'><a class='goog-inline-block share-button sb-email' expr:href='data:post.sharePostUrl + "&target=email"' expr:title='data:top.emailThisMsg' target='_blank'><span class='share-button-link-text'><data:top.emailThisMsg/></span></a></b:if><b:if cond='data:top.showBlogThisButton'><a class='goog-inline-block share-button sb-blog' expr:href='data:post.sharePostUrl + "&target=blog"' expr:onclick='"window.open(this.href, \"_blank\", \"height=270,width=475\"); return false;"' expr:title='data:top.blogThisMsg' target='_blank'><span class='share-button-link-text'><data:top.blogThisMsg/></span></a></b:if><b:if cond='data:top.showTwitterButton'><a class='goog-inline-block share-button sb-twitter' expr:href='data:post.sharePostUrl + "&target=twitter"' expr:title='data:top.shareToTwitterMsg' target='_blank'><span class='share-button-link-text'><data:top.shareToTwitterMsg/></span></a></b:if><b:if cond='data:top.showFacebookButton'><a class='goog-inline-block share-button sb-facebook' expr:href='data:post.sharePostUrl + "&target=facebook"' expr:onclick='"window.open(this.href, \"_blank\", \"height=430,width=640\"); return false;"' expr:title='data:top.shareToFacebookMsg' target='_blank'><span class='share-button-link-text'><data:top.shareToFacebookMsg/></span></a></b:if><b:if cond='data:top.showOrkutButton'><a class='goog-inline-block share-button sb-orkut' expr:href='data:post.sharePostUrl + "&target=orkut"' expr:title='data:top.shareToOrkutMsg' target='_blank'><span class='share-button-link-text'><data:top.shareToOrkutMsg/></span></a></b:if><b:if cond='data:top.showDummy'><div class='goog-inline-block dummy-container'><data:post.dummyTag/></div></b:if> | |
</b:includable> | |
<b:includable id='threaded_comment_js' var='post'> | |
<script async='async' expr:src='data:post.commentSrc' type='text/javascript'/> | |
<script type='text/javascript'> | |
(function() { | |
var items = <data:post.commentJso/>; | |
var msgs = <data:post.commentMsgs/>; | |
var config = <data:post.commentConfig/>; | |
// <![CDATA[ | |
var cursor = null; | |
if (items && items.length > 0) { | |
cursor = parseInt(items[items.length - 1].timestamp) + 1; | |
} | |
var bodyFromEntry = function(entry) { | |
if (entry.gd$extendedProperty) { | |
for (var k in entry.gd$extendedProperty) { | |
if (entry.gd$extendedProperty[k].name == 'blogger.contentRemoved') { | |
return '<span class="deleted-comment">' + entry.content.$t + '</span>'; | |
} | |
} | |
} | |
return entry.content.$t; | |
} | |
var parse = function(data) { | |
cursor = null; | |
var comments = []; | |
if (data && data.feed && data.feed.entry) { | |
for (var i = 0, entry; entry = data.feed.entry[i]; i++) { | |
var comment = {}; | |
// comment ID, parsed out of the original id format | |
var id = /blog-(\d+).post-(\d+)/.exec(entry.id.$t); | |
comment.id = id ? id[2] : null; | |
comment.body = bodyFromEntry(entry); | |
comment.timestamp = Date.parse(entry.published.$t) + ''; | |
if (entry.author && entry.author.constructor === Array) { | |
var auth = entry.author[0]; | |
if (auth) { | |
comment.author = { | |
name: (auth.name ? auth.name.$t : undefined), | |
profileUrl: (auth.uri ? auth.uri.$t : undefined), | |
avatarUrl: (auth.gd$image ? auth.gd$image.src : undefined) | |
}; | |
} | |
} | |
if (entry.link) { | |
if (entry.link[2]) { | |
comment.link = comment.permalink = entry.link[2].href; | |
} | |
if (entry.link[3]) { | |
var pid = /.*comments\/default\/(\d+)\?.*/.exec(entry.link[3].href); | |
if (pid && pid[1]) { | |
comment.parentId = pid[1]; | |
} | |
} | |
} | |
comment.deleteclass = 'item-control blog-admin'; | |
if (entry.gd$extendedProperty) { | |
for (var k in entry.gd$extendedProperty) { | |
if (entry.gd$extendedProperty[k].name == 'blogger.itemClass') { | |
comment.deleteclass += ' ' + entry.gd$extendedProperty[k].value; | |
} | |
} | |
} | |
comments.push(comment); | |
} | |
} | |
return comments; | |
}; | |
var paginator = function(callback) { | |
if (hasMore()) { | |
var url = config.feed + '?alt=json&v=2&orderby=published&reverse=false&max-results=50'; | |
if (cursor) { | |
url += '&published-min=' + new Date(cursor).toISOString(); | |
} | |
window.bloggercomments = function(data) { | |
var parsed = parse(data); | |
cursor = parsed.length < 50 ? null | |
: parseInt(parsed[parsed.length - 1].timestamp) + 1 | |
callback(parsed); | |
window.bloggercomments = null; | |
} | |
url += '&callback=bloggercomments'; | |
var script = document.createElement('script'); | |
script.type = 'text/javascript'; | |
script.src = url; | |
document.getElementsByTagName('head')[0].appendChild(script); | |
} | |
}; | |
var hasMore = function() { | |
return !!cursor; | |
}; | |
var getMeta = function(key, comment) { | |
if ('iswriter' == key) { | |
var matches = !!comment.author | |
&& comment.author.name == config.authorName | |
&& comment.author.profileUrl == config.authorUrl; | |
return matches ? 'true' : ''; | |
} else if ('deletelink' == key) { | |
return config.baseUri + '/delete-comment.g?blogID=' | |
+ config.blogId + '&postID=' + comment.id; | |
} else if ('deleteclass' == key) { | |
return comment.deleteclass; | |
} | |
return ''; | |
}; | |
var replybox = null; | |
var replyUrlParts = null; | |
var replyParent = undefined; | |
var onReply = function(commentId, domId) { | |
if (replybox == null) { | |
// lazily cache replybox, and adjust to suit this style: | |
replybox = document.getElementById('comment-editor'); | |
if (replybox != null) { | |
replybox.height = '250px'; | |
replybox.style.display = 'block'; | |
replyUrlParts = replybox.src.split('#'); | |
} | |
} | |
if (replybox && (commentId !== replyParent)) { | |
document.getElementById(domId).insertBefore(replybox, null); | |
replybox.src = replyUrlParts[0] | |
+ (commentId ? '&parentID=' + commentId : '') | |
+ '#' + replyUrlParts[1]; | |
replyParent = commentId; | |
} | |
}; | |
var hash = (window.location.hash || '#').substring(1); | |
var startThread, targetComment; | |
if (/^comment-form_/.test(hash)) { | |
startThread = hash.substring('comment-form_'.length); | |
} else if (/^c[0-9]+$/.test(hash)) { | |
targetComment = hash.substring(1); | |
} | |
// Configure commenting API: | |
var configJso = { | |
'maxDepth': config.maxThreadDepth | |
}; | |
var provider = { | |
'id': config.postId, | |
'data': items, | |
'loadNext': paginator, | |
'hasMore': hasMore, | |
'getMeta': getMeta, | |
'onReply': onReply, | |
'rendered': true, | |
'initComment': targetComment, | |
'initReplyThread': startThread, | |
'config': configJso, | |
'messages': msgs | |
}; | |
var render = function() { | |
if (window.goog && window.goog.comments) { | |
var holder = document.getElementById('comment-holder'); | |
window.goog.comments.render(holder, provider); | |
} | |
}; | |
// render now, or queue to render when library loads: | |
if (window.goog && window.goog.comments) { | |
render(); | |
} else { | |
window.goog = window.goog || {}; | |
window.goog.comments = window.goog.comments || {}; | |
window.goog.comments.loadQueue = window.goog.comments.loadQueue || []; | |
window.goog.comments.loadQueue.push(render); | |
} | |
})(); | |
// ]]> | |
</script> | |
</b:includable> | |
<b:includable id='backlinks' var='post'> | |
<a name='links'/><h4><data:post.backlinksLabel/></h4> | |
<b:if cond='data:post.numBacklinks != 0'> | |
<dl class='comments-block' id='comments-block'> | |
<b:loop values='data:post.backlinks' var='backlink'> | |
<div class='collapsed-backlink backlink-control'> | |
<dt class='comment-title'> | |
<span class='backlink-toggle-zippy'> </span> | |
<a expr:href='data:backlink.url' rel='nofollow'><data:backlink.title/></a> | |
<b:include data='backlink' name='backlinkDeleteIcon'/> | |
</dt> | |
<dd class='comment-body collapseable'> | |
<data:backlink.snippet/> | |
</dd> | |
<dd class='comment-footer collapseable'> | |
<span class='comment-author'><data:post.authorLabel/> <data:backlink.author/></span> | |
<span class='comment-timestamp'><data:post.timestampLabel/> <data:backlink.timestamp/></span> | |
</dd> | |
</div> | |
</b:loop> | |
</dl> | |
</b:if> | |
<p class='comment-footer'> | |
<a class='comment-link' expr:href='data:post.createLinkUrl' expr:id='data:widget.instanceId + "_backlinks-create-link"' target='_blank'><data:post.createLinkLabel/></a> | |
</p> | |
</b:includable> | |
<b:includable id='mobile-main' var='top'> | |
<!-- posts --> | |
<div class='blog-posts hfeed'> | |
<b:include data='top' name='status-message'/> | |
<b:if cond='data:blog.pageType == "index"'> | |
<b:loop values='data:posts' var='post'> | |
<b:include data='post' name='mobile-index-post'/> | |
</b:loop> | |
<b:else/> | |
<b:loop values='data:posts' var='post'> | |
<b:include data='post' name='mobile-post'/> | |
</b:loop> | |
</b:if> | |
</div> | |
<b:include name='mobile-nextprev'/> | |
</b:includable> | |
<b:includable id='post' var='post'> | |
<div class='post hentry'> | |
<a expr:name='data:post.id'/> | |
<b:if cond='data:post.title'> | |
<span class='post-comment-link'> | |
<b:if cond='data:blog.pageType != "item"'> | |
<b:if cond='data:blog.pageType != "static_page"'> | |
<b:if cond='data:post.allowComments'> | |
<a class='comment-bubble' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><b:if cond='data:post.numComments == 1'>1 <!--<data:top.commentLabel/>--><b:else/><data:post.numComments/> <!--<data:top.commentLabelPlural/>--></b:if></a> | |
</b:if> | |
</b:if> | |
</b:if> | |
</span> | |
<h3 class='post-title entry-title'> | |
<b:if cond='data:post.link'> | |
<a expr:href='data:post.link'><data:post.title/></a> | |
<b:else/> | |
<b:if cond='data:post.url'> | |
<b:if cond='data:blog.url != data:post.url'> | |
<a expr:href='data:post.url'><data:post.title/></a> | |
<b:else/> | |
<data:post.title/> | |
</b:if> | |
<b:else/> | |
<data:post.title/> | |
</b:if> | |
</b:if> | |
</h3> | |
</b:if> | |
<div class='post-header'> | |
<div class='post-header-line-1'><span class='post-author vcard'> | |
<b:if cond='data:top.showAuthor'> | |
<data:top.authorLabel/> | |
<b:if cond='data:post.authorProfileUrl'> | |
<span class='fn'> | |
<a expr:href='data:post.authorProfileUrl' rel='author' title='author profile'> | |
<data:post.author/> | |
</a> | |
</span> | |
<b:else/> | |
<span class='fn'><data:post.author/></span> | |
</b:if> | |
</b:if> | |
</span> <b:if cond='data:post.dateHeader'> | |
<h2 class='date-header'><span> am <data:post.dateHeader/></span></h2> | |
</b:if> </div> | |
</div> | |
<div class='post-body entry-content' expr:id='"post-body-" + data:post.id'> | |
<b:if cond='data:blog.pageType == "item"'> | |
<b:if cond='data:blog.pageType == "static_page"'> | |
<data:post.body/> | |
<b:else/> | |
<b:if cond='data:post.hasJumpLink'> | |
<data:post.body/> | |
<b:else/> | |
<b:if cond='data:post.snippet'> | |
<!--<b:if cond='data:post.thumbnailUrl'> | |
<img class='post-thumbnail' expr:alt='data:post.title' expr:src='data:post.thumbnailUrl' height='72px' width='72px'/> | |
<b:else/> | |
<img alt='no image' class='post-thumbnail' height='100px' src='http://goo.gl/V9RK8' width='100px'/> | |
</b:if>--> | |
<data:post.snippet/> | |
<div class='jump-link'> | |
<a expr:href='data:post.url' expr:title='data:post.title'><data:post.jumpText/></a> | |
</div> | |
<b:else/> | |
<data:post.body/> | |
</b:if> | |
</b:if> | |
</b:if> | |
</b:if> | |
<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'><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='http://img1.blogblog.com/img/icon18_email.gif' width='18'/> | |
</a> | |
</span> | |
</b:if> | |
<!-- quickedit pencil --> | |
<b:include data='post' name='postQuickEdit'/> | |
</span> </div> | |
<div class='post-footer-line post-footer-line-2'/> | |
<div class='post-footer-line post-footer-line-3'/> | |
</div> | |
</div> | |
</b:includable> | |
<b:includable id='status-message'> | |
<b:if cond='data:navMessage'> | |
<div class='status-msg-wrap'> | |
<div class='status-msg-body'> | |
<data:navMessage/> | |
</div> | |
<div class='status-msg-border'> | |
<div class='status-msg-bg'> | |
<div class='status-msg-hidden'><data:navMessage/></div> | |
</div> | |
</div> | |
</div> | |
<div style='clear: both;'/> | |
</b:if> | |
</b:includable> | |
<b:includable id='comment-form' var='post'> | |
<div class='comment-form'> | |
<a name='comment-form'/> | |
<b:if cond='data:mobile'> | |
<h4 id='comment-post-message'> | |
<a expr:id='data:widget.instanceId + "_comment-editor-toggle-link"' href='javascript:void(0)'><data:postCommentMsg/></a></h4> | |
<p><data:blogCommentMessage/></p> | |
<data:blogTeamBlogMessage/> | |
<a expr:href='data:post.commentFormIframeSrc' id='comment-editor-src'/> | |
<iframe allowtransparency='true' class='blogger-iframe-colorize blogger-comment-from-post' frameborder='0' height='410' id='comment-editor' name='comment-editor' src='' style='display: none' width='100%'/> | |
<b:else/> | |
<h4 id='comment-post-message'><data:postCommentMsg/></h4> | |
<p><data:blogCommentMessage/></p> | |
<data:blogTeamBlogMessage/> | |
<a expr:href='data:post.commentFormIframeSrc' id='comment-editor-src'/> | |
<iframe allowtransparency='true' class='blogger-iframe-colorize blogger-comment-from-post' frameborder='0' height='410' id='comment-editor' name='comment-editor' src='' width='100%'/> | |
</b:if> | |
<data:post.friendConnectJs/> | |
<data:post.cmtfpIframe/> | |
<script type='text/javascript'> | |
BLOG_CMT_createIframe('<data:post.appRpcRelayPath/>', '<data:post.communityId/>'); | |
</script> | |
</div> | |
</b:includable> | |
<b:includable id='threaded_comments' var='post'> | |
<div class='comments' id='comments'> | |
<a name='comments'/> | |
<h4> | |
<b:if cond='data:post.numComments == 1'> | |
1 <data:commentLabel/>: | |
<b:else/> | |
<data:post.numComments/> <data:commentLabelPlural/>: | |
</b:if> | |
</h4> | |
<div class='comments-content'> | |
<b:if cond='data:post.embedCommentForm'> | |
<b:include data='post' name='threaded_comment_js'/> | |
</b:if> | |
<div id='comment-holder'> | |
<data:post.commentHtml/> | |
</div> | |
</div> | |
<p class='comment-footer'> | |
<b:if cond='data:post.allowNewComments'> | |
<b:include data='post' name='threaded-comment-form'/> | |
<b:else/> | |
<data:post.noNewCommentsText/> | |
</b:if> | |
</p> | |
<b:if cond='data:showCmtPopup'> | |
<div id='comment-popup'> | |
<iframe allowtransparency='true' frameborder='0' id='comment-actions' name='comment-actions' scrolling='no'> | |
</iframe> | |
</div> | |
</b:if> | |
<div id='backlinks-container'> | |
<div expr:id='data:widget.instanceId + "_backlinks-container"'> | |
<b:if cond='data:post.showBacklinks'> | |
<b:include data='post' name='backlinks'/> | |
</b:if> | |
</div> | |
</div> | |
</div> | |
</b:includable> | |
<b:includable id='backlinkDeleteIcon' var='backlink'> | |
<span expr:class='"item-control " + data:backlink.adminClass'> | |
<a expr:href='data:backlink.deleteUrl' expr:title='data:top.deleteBacklinkMsg'> | |
<img src='//www.blogger.com/img/icon_delete13.gif'/> | |
</a> | |
</span> | |
</b:includable> | |
<b:includable id='mobile-nextprev'> | |
<div class='blog-pager' id='blog-pager'> | |
<b:if cond='data:newerPageUrl'> | |
<div class='mobile-link-button' id='blog-pager-newer-link'> | |
<a class='blog-pager-newer-link' expr:href='data:newerPageUrl' expr:id='data:widget.instanceId + "_blog-pager-newer-link"' expr:title='data:newerPageTitle'>&lsaquo;</a> | |
</div> | |
</b:if> | |
<b:if cond='data:olderPageUrl'> | |
<div class='mobile-link-button' id='blog-pager-older-link'> | |
<a class='blog-pager-older-link' expr:href='data:olderPageUrl' expr:id='data:widget.instanceId + "_blog-pager-older-link"' expr:title='data:olderPageTitle'>&rsaquo;</a> | |
</div> | |
</b:if> | |
<div class='mobile-link-button' id='blog-pager-home-link'> | |
<a class='home-link' expr:href='data:blog.homepageUrl'><data:homeMsg/></a> | |
</div> | |
<div class='mobile-desktop-link'> | |
<a class='home-link' expr:href='data:desktopLinkUrl'><data:desktopLinkMsg/></a> | |
</div> | |
</div> | |
<div class='clear'/> | |
</b:includable> | |
<b:includable id='mobile-post' var='post'> | |
<div class='date-outer'> | |
<div class='date-posts'> | |
<div class='post-outer'> | |
<div class='post hentry uncustomized-post-template'> | |
<a expr:name='data:post.id'/> | |
<b:if cond='data:post.title'> | |
<h3 class='post-title entry-title'> | |
<b:if cond='data:post.link'> | |
<a expr:href='data:post.link'><data:post.title/></a> | |
<b:else/> | |
<b:if cond='data:post.url'> | |
<b:if cond='data:blog.url != data:post.url'> | |
<a expr:href='data:post.url'><data:post.title/></a> | |
<b:else/> | |
<data:post.title/> | |
</b:if> | |
<b:else/> | |
<data:post.title/> | |
</b:if> | |
</b:if> | |
</h3> | |
</b:if> | |
<div class='post-header'> | |
<div class='post-header-line-1'/> | |
</div> | |
<div class='post-body entry-content' expr:id='"post-body-" + data:post.id'> | |
<data:post.body/> | |
<div style='clear: both;'/> <!-- clear for photos floats --> | |
</div> | |
<div class='post-footer'> | |
<div class='post-footer-line post-footer-line-1'> | |
<span class='post-author vcard'> | |
<b:if cond='data:top.showAuthor'> | |
<b:if cond='data:post.authorProfileUrl'> | |
<span class='fn'> | |
<a expr:href='data:post.authorProfileUrl' rel='author' title='author profile'> | |
<data:post.author/> | |
</a> | |
</span> | |
<b:else/> | |
<span class='fn'><data:post.author/></span> | |
</b:if> | |
</b:if> | |
</span> | |
<span class='post-timestamp'> | |
<b:if cond='data:top.showTimestamp'> | |
<data:top.timestampLabel/> | |
<b:if cond='data:post.url'> | |
<a class='timestamp-link' expr:href='data:post.url' rel='bookmark' title='permanent link'><abbr class='published' expr:title='data:post.timestampISO8601'><data:post.timestamp/></abbr></a> | |
</b:if> | |
</b:if> | |
</span> | |
<span class='post-comment-link'> | |
<b:if cond='data:blog.pageType != "item"'> | |
<b:if cond='data:blog.pageType != "static_page"'> | |
<b:if cond='data:post.allowComments'> | |
<a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><b:if cond='data:post.numComments == 1'>1 <data:top.commentLabel/><b:else/><data:post.numComments/> <data:top.commentLabelPlural/></b:if></a> | |
</b:if> | |
</b:if> | |
</b:if> | |
</span> | |
</div> | |
<div class='post-footer-line post-footer-line-2'> | |
<b:if cond='data:top.showMobileShare'> | |
<div class='mobile-link-button goog-inline-block' id='mobile-share-button'> | |
<a href='javascript:void(0);'><data:shareMsg/></a> | |
</div> | |
</b:if> | |
<b:if cond='data:top.showDummy'> | |
<div class='goog-inline-block dummy-container'><data:post.dummyTag/></div> | |
</b:if> | |
</div> | |
</div> | |
</div> | |
<b:if cond='data:blog.pageType == "static_page"'> | |
<b:if cond='data:post.showThreadedComments'> | |
<b:include data='post' name='threaded_comments'/> | |
<b:else/> | |
<b:include data='post' name='comments'/> | |
</b:if> | |
</b:if> | |
<b:if cond='data:blog.pageType == "item"'> | |
<b:if cond='data:post.showThreadedComments'> | |
<b:include data='post' name='threaded_comments'/> | |
<b:else/> | |
<b:include data='post' name='comments'/> | |
</b:if> | |
</b:if> | |
</div> | |
</div> | |
</div> | |
</b:includable> | |
<b:includable id='postQuickEdit' var='post'> | |
<b:if cond='data:post.editUrl'> | |
<span expr:class='"item-control " + data:post.adminClass'> | |
<a expr:href='data:post.editUrl' expr:title='data:top.editPostMsg'> | |
<img alt='' class='icon-action' height='18' src='http://img2.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/> | |
</a> | |
</span> | |
</b:if> | |
</b:includable> | |
<b:includable id='main' var='top'> | |
<b:if cond='data:mobile == "false"'> | |
<!-- posts --> | |
<div class='blog-posts hfeed'> | |
<b:include data='top' name='status-message'/> | |
<data:defaultAdStart/> | |
<b:loop values='data:posts' var='post'> | |
<b:if cond='data:post.isDateStart'> | |
<b:if cond='data:post.isFirstPost == "false"'> | |
</div></div> | |
</b:if> | |
</b:if> | |
<b:if cond='data:post.isDateStart'> | |
<div class="date-outer"> | |
</b:if> | |
<b:if cond='data:post.isDateStart'> | |
<div class="date-posts"> | |
</b:if> | |
<div class='post-outer'> | |
<b:include data='post' name='post'/> | |
<b:if cond='data:blog.pageType == "static_page"'> | |
<b:if cond='data:post.showThreadedComments'> | |
<b:include data='post' name='threaded_comments'/> | |
<b:else/> | |
<b:include data='post' name='comments'/> | |
</b:if> | |
</b:if> | |
<b:if cond='data:blog.pageType == "item"'> | |
<b:if cond='data:post.showThreadedComments'> | |
<b:include data='post' name='threaded_comments'/> | |
<b:else/> | |
<b:include data='post' name='comments'/> | |
</b:if> | |
</b:if> | |
</div> | |
<b:if cond='data:post.includeAd'> | |
<b:if cond='data:post.isFirstPost'> | |
<data:defaultAdEnd/> | |
<b:else/> | |
<data:adEnd/> | |
</b:if> | |
<div class='inline-ad'> | |
<data:adCode/> | |
</div> | |
<data:adStart/> | |
</b:if> | |
</b:loop> | |
<b:if cond='data:numPosts != 0'> | |
</div></div> | |
</b:if> | |
<data:adEnd/> | |
</div> | |
<!-- navigation --> | |
<b:include name='nextprev'/> | |
<!-- feed links --> | |
<b:include name='feedLinks'/> | |
<b:if cond='data:top.showStars'> | |
<script src='//www.google.com/jsapi' type='text/javascript'/> | |
<script type='text/javascript'> | |
google.load("annotations", "1", {"locale": "<data:top.languageCode/>"}); | |
function initialize() { | |
google.annotations.setApplicationId(<data:top.blogspotReviews/>); | |
google.annotations.createAll(); | |
google.annotations.fetch(); | |
} | |
google.setOnLoadCallback(initialize); | |
</script> | |
</b:if> | |
<b:else/> | |
<b:include name='mobile-main'/> | |
</b:if> | |
<b:if cond='data:top.showDummy'> | |
<data:top.dummyBootstrap/> | |
</b:if> | |
</b:includable> | |
<b:includable id='commentDeleteIcon' var='comment'> | |
<span expr:class='"item-control " + data:comment.adminClass'> | |
<b:if cond='data:showCmtPopup'> | |
<div class='goog-toggle-button'> | |
<div class='goog-inline-block comment-action-icon'/> | |
</div> | |
<b:else/> | |
<a class='comment-delete' expr:href='data:comment.deleteUrl' expr:title='data:top.deleteCommentMsg'> | |
<img src='//www.blogger.com/img/icon_delete13.gif'/> | |
</a> | |
</b:if> | |
</span> | |
</b:includable> | |
<b:includable id='feedLinks'> | |
<b:if cond='data:blog.pageType != "item"'> <!-- Blog feed links --> | |
<b:if cond='data:feedLinks'> | |
<div class='blog-feeds'> | |
<b:include data='feedLinks' name='feedLinksBody'/> | |
</div> | |
</b:if> | |
<b:else/> <!--Post feed links --> | |
<div class='post-feeds'> | |
<b:loop values='data:posts' var='post'> | |
<b:if cond='data:post.allowComments'> | |
<b:if cond='data:post.feedLinks'> | |
<b:include data='post.feedLinks' name='feedLinksBody'/> | |
</b:if> | |
</b:if> | |
</b:loop> | |
</div> | |
</b:if> | |
</b:includable> | |
<b:includable id='threaded-comment-form' var='post'> | |
<div class='comment-form'> | |
<a name='comment-form'/> | |
<b:if cond='data:mobile'> | |
<p><data:blogCommentMessage/></p> | |
<data:blogTeamBlogMessage/> | |
<a expr:href='data:post.commentFormIframeSrc' id='comment-editor-src'/> | |
<iframe allowtransparency='true' class='blogger-iframe-colorize blogger-comment-from-post' frameborder='0' height='410' id='comment-editor' name='comment-editor' src='' style='display: none' width='100%'/> | |
<b:else/> | |
<p><data:blogCommentMessage/></p> | |
<data:blogTeamBlogMessage/> | |
<a expr:href='data:post.commentFormIframeSrc' id='comment-editor-src'/> | |
<iframe allowtransparency='true' class='blogger-iframe-colorize blogger-comment-from-post' frameborder='0' height='410' id='comment-editor' name='comment-editor' src='' width='100%'/> | |
</b:if> | |
<data:post.friendConnectJs/> | |
<data:post.cmtfpIframe/> | |
<script type='text/javascript'> | |
BLOG_CMT_createIframe('<data:post.appRpcRelayPath/>', '<data:post.communityId/>'); | |
</script> | |
</div> | |
</b:includable> | |
<b:includable id='mobile-index-post' var='post'> | |
<div class='mobile-date-outer date-outer'> | |
<b:if cond='data:post.dateHeader'> | |
<div class='date-header'> | |
<span><data:post.dateHeader/></span> | |
</div> | |
</b:if> | |
<div class='mobile-post-outer'> | |
<a expr:href='data:post.url'> | |
<h3 class='mobile-index-title entry-title'> | |
<data:post.title/> | |
</h3> | |
<div class='mobile-index-arrow'>&rsaquo;</div> | |
<div class='mobile-index-contents'> | |
<b:if cond='data:post.thumbnailUrl'> | |
<div class='mobile-index-thumbnail'> | |
<div class='Image'> | |
<img expr:src='data:post.thumbnailUrl'/> | |
</div> | |
</div> | |
</b:if> | |
<div class='post-body'> | |
<b:if cond='data:post.snippet'><data:post.snippet/></b:if> | |
</div> | |
</div> | |
<div style='clear: both;'/> | |
</a> | |
<div class='mobile-index-comment'> | |
<b:if cond='data:blog.pageType != "static_page"'> | |
<b:if cond='data:post.allowComments'> | |
<b:if cond='data:post.numComments != 0'> | |
<a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><b:if cond='data:post.numComments == 1'>1 <data:top.commentLabel/><b:else/><data:post.numComments/> <data:top.commentLabelPlural/></b:if></a> | |
</b:if> | |
</b:if> | |
</b:if> | |
</div> | |
</div> | |
</div> | |
</b:includable> | |
<b:includable id='feedLinksBody' var='links'> | |
<div class='feed-links'> | |
<data:feedLinksMsg/> | |
<b:loop values='data:links' var='f'> | |
<a class='feed-link' expr:href='data:f.url' expr:type='data:f.mimeType' target='_blank'><data:f.name/> (<data:f.feedType/>)</a> | |
</b:loop> | |
</div> | |
</b:includable> | |
<b:includable id='comments' var='post'> | |
<div class='comments' id='comments'> | |
<a name='comments'/> | |
<b:if cond='data:post.allowComments'> | |
<h4> | |
<b:if cond='data:post.numComments == 1'> | |
1 <data:commentLabel/>: | |
<b:else/> | |
<data:post.numComments/> <data:commentLabelPlural/>: | |
</b:if> | |
</h4> | |
<b:if cond='data:post.commentPagingRequired'> | |
<span class='paging-control-container'> | |
<a expr:class='data:post.oldLinkClass' expr:href='data:post.oldestLinkUrl'><data:post.oldestLinkText/></a> | |
  | |
<a expr:class='data:post.oldLinkClass' expr:href='data:post.olderLinkUrl'><data:post.olderLinkText/></a> | |
  | |
<data:post.commentRangeText/> | |
  | |
<a expr:class='data:post.newLinkClass' expr:href='data:post.newerLinkUrl'><data:post.newerLinkText/></a> | |
  | |
<a expr:class='data:post.newLinkClass' expr:href='data:post.newestLinkUrl'><data:post.newestLinkText/></a> | |
</span> | |
</b:if> | |
<div expr:id='data:widget.instanceId + "_comments-block-wrapper"'> | |
<dl expr:class='data:post.avatarIndentClass' id='comments-block'> | |
<b:loop values='data:post.comments' var='comment'> | |
<dt expr:class='"comment-author " + data:comment.authorClass' expr:id='data:comment.anchorName'> | |
<b:if cond='data:comment.favicon'> | |
<img expr:src='data:comment.favicon' height='16px' style='margin-bottom:-2px;' width='16px'/> | |
</b:if> | |
<a expr:name='data:comment.anchorName'/> | |
<b:if cond='data:blog.enabledCommentProfileImages'> | |
<data:comment.authorAvatarImage/> | |
</b:if> | |
<b:if cond='data:comment.authorUrl'> | |
<a expr:href='data:comment.authorUrl' rel='nofollow'><data:comment.author/></a> | |
<b:else/> | |
<data:comment.author/> | |
</b:if> | |
<data:commentPostedByMsg/> | |
</dt> | |
<dd class='comment-body' expr:id='data:widget.instanceId + data:comment.cmtBodyIdPostfix'> | |
<b:if cond='data:comment.isDeleted'> | |
<span class='deleted-comment'><data:comment.body/></span> | |
<b:else/> | |
<p> | |
<data:comment.body/> | |
</p> | |
</b:if> | |
</dd> | |
<dd class='comment-footer'> | |
<span class='comment-timestamp'> | |
<a expr:href='data:comment.url' title='comment permalink'> | |
<data:comment.timestamp/> | |
</a> | |
<b:include data='comment' name='commentDeleteIcon'/> | |
</span> | |
</dd> | |
</b:loop> | |
</dl> | |
</div> | |
<b:if cond='data:post.commentPagingRequired'> | |
<span class='paging-control-container'> | |
<a expr:class='data:post.oldLinkClass' expr:href='data:post.oldestLinkUrl'> | |
<data:post.oldestLinkText/> | |
</a> | |
<a expr:class='data:post.oldLinkClass' expr:href='data:post.olderLinkUrl'> | |
<data:post.olderLinkText/> | |
</a> | |
  | |
<data:post.commentRangeText/> | |
  | |
<a expr:class='data:post.newLinkClass' expr:href='data:post.newerLinkUrl'> | |
<data:post.newerLinkText/> | |
</a> | |
<a expr:class='data:post.newLinkClass' expr:href='data:post.newestLinkUrl'> | |
<data:post.newestLinkText/> | |
</a> | |
</span> | |
</b:if> | |
<p class='comment-footer'> | |
<b:if cond='data:post.embedCommentForm'> | |
<b:if cond='data:post.allowNewComments'> | |
<b:include data='post' name='comment-form'/> | |
<b:else/> | |
<data:post.noNewCommentsText/> | |
</b:if> | |
<b:else/> | |
<b:if cond='data:post.allowComments'> | |
<a expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><data:postCommentMsg/></a> | |
</b:if> | |
</b:if> | |
</p> | |
</b:if> | |
<b:if cond='data:showCmtPopup'> | |
<div id='comment-popup'> | |
<iframe allowtransparency='true' frameborder='0' id='comment-actions' name='comment-actions' scrolling='no'> | |
</iframe> | |
</div> | |
</b:if> | |
<div id='backlinks-container'> | |
<div expr:id='data:widget.instanceId + "_backlinks-container"'> | |
<b:if cond='data:post.showBacklinks'> | |
<b:include data='post' name='backlinks'/> | |
</b:if> | |
</div> | |
</div> | |
</div> | |
</b:includable> | |
</b:widget> | |
</b:section> | |
</div> | |
</div> | |
</div> | |
<footer> | |
<div class='row'> | |
<div class='twelvecol last'> | |
<b:section class='footer' id='footer' showaddelement='yes'> | |
<b:widget id='HTML5' locked='false' title='' type='HTML'> | |
<b:includable id='main'> | |
<!-- only display title if it's non-empty --> | |
<b:if cond='data:title != ""'> | |
<h2 class='title'><data:title/></h2> | |
</b:if> | |
<div class='widget-content'> | |
<data:content/> | |
</div> | |
<b:include name='quickedit'/> | |
</b:includable> | |
</b:widget> | |
</b:section> | |
</div> | |
</div> | |
</footer> | |
</div> <!--! end of #container --> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment