Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <!--
- #12 YW&F by Neo
- Find me on tumblr: @NEOTHM | @NEOVAK
- If you need help/spotted a glitch, feel free to message me!
- Thank you for taking an interest in this theme, enjoy! โก
- -->
- <meta charset="utf-8">
- <title>{block:PostTitle}{PostTitle} | {/block:PostTitle}{Title}</title>
- {block:Description}<meta name="description" content="{MetaDescription}">{/block:Description}
- <link rel="altertnate" type="application/rss+xml" href="{RSS}">
- <link rel="stylesheet" href="http://static.tumblr.com/wgg6svp/jSmnqcghc/normalizer.css">
- <link href='https://fonts.googleapis.com/css?family={text:GoogleFont}:400,400italic,700,700italic' rel='stylesheet' type='text/css'>
- <meta name="image:Favicon" content="{Favicon}">
- <link rel="shortcut icon" href="{image:Favicon}">
- <link rel="stylesheet" href="http://static.tumblr.com/wgg6svp/dSSnw0j95/style.css">
- <meta name="if:TitleFirstLetter" content="1">
- <meta name="if:HeaderImage" content="1">
- <meta name="if:HeaderTitle" content="0">
- <meta name="if:FullSizeBackground" content="0">
- <meta name="if:FluidLayout" content="1">
- <meta name="if:HoverPerma" content="0">
- <meta name="if:ReblogLink" content="1">
- <meta name="if:ShowCaption" content="1">
- <meta name="text:GoogleFont" content="Varela">
- <meta name="color:Background" content="#f2f2f2">
- <meta name="color:Borders" content="#eee">
- <meta name="image:Background" content="">
- <meta name="text:HeaderWidth" content="400px">
- <meta name="text:PostWidth" content="300px">
- <meta name="text:PostPadding" content="20px">
- <meta name="text:PostSpacing" content="30px">
- <meta name="text:PermalinkPostWidth" content="600px">
- <meta name="color:Text" content="#797979">
- <meta name="color:Links" content="#aaa">
- <meta name="color:Hover" content="#000">
- <meta name="image:HeaderImage" content="{PortraitURL-96}">
- <meta name="text:ReadMore" content="Read more">
- <meta name="text:PhotosetSpacing" content="3px">
- <meta name="if:Link1" content="0">
- <meta name="text:Link1Name" content="">
- <meta name="text:Link1URL" content="http://">
- <meta name="if:Link2" content="0">
- <meta name="text:Link2Name" content="">
- <meta name="text:Link2URL" content="http://">
- <meta name="if:Link3" content="0">
- <meta name="text:Link3Name" content="">
- <meta name="text:Link3URL" content="http://">
- <meta name="if:Link4" content="0">
- <meta name="text:Link4Name" content="">
- <meta name="text:Link4URL" content="http://">
- <meta name="if:Link5" content="0">
- <meta name="text:Link5Name" content="">
- <meta name="text:Link5URL" content="http://">
- <meta name="if:Link6" content="0">
- <meta name="text:Link6Name" content="">
- <meta name="text:Link6URL" content="http://">
- <meta name="select:FontSize" content="8px" title="8px">
- <meta name="select:FontSize" content="9px" title="9px">
- <meta name="select:FontSize" content="10px" title="10px">
- <meta name="select:FontSize" content="11px" title="11px">
- <meta name="select:FontSize" content="12px" title="12px">
- <meta name="select:NavFontSize" content="7px" title="7px">
- <meta name="select:NavFontSize" content="8px" title="8px">
- <meta name="select:NavFontSize" content="9px" title="9px">
- <meta name="select:HeaderImageSize" content="80px" title="big">
- <meta name="select:HeaderImageSize" content="50px" title="medium">
- <meta name="select:HeaderImageSize" content="30px" title="small">
- <meta name="select:NumberOfColumns" content="1" title="1">
- <meta name="select:NumberOfColumns" content="2" title="2">
- <meta name="select:NumberOfColumns" content="3" title="3">
- <meta name="select:NumberOfColumns" content="4" title="4">
- <meta name="select:NumberOfColumns" content="5" title="5">
- <meta name="select:NextPage" content="pagi" title="Pagination">
- <meta name="select:NextPage" content="ldmr" title="Load more button">
- <meta name="select:NextPage" content="ifnt" title="Infinite scroll">
- <style type="text/css">
- *{
- margin:0;
- padding:0;
- }
- html, body{
- height:100%;
- }
- body{
- text-align:justify;
- word-break:break-word;
- font:400 {select:FontSize}/170% {text:GoogleFont}, sans-serif;
- color:{color:Text};
- background:{color:Background} url('{image:Background}');
- background-attachment:fixed;
- {block:IfFullSizeBackground}
- background-size:cover;
- {/block:IfFullSizeBackground}
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- padding-top:1px;
- margin-top:-1px;
- }
- #noscroll{
- overflow-x:hidden;
- }
- a{
- color:{color:Links};
- text-decoration:none;
- }
- a:hover{
- color:{color:Hover};
- cursor:pointer!important;
- }
- a, a:hover,
- a:after, a:hover:after{
- transition-duration:.3s;
- -webkit-transition-duration:.3s;
- -moz-transition-duration:.3s;
- -ms-transition-duration:.3s;
- -o-transition-duration:.3s;
- }
- {block:IfHoverPerma}article:hover .idxprm p, .idxprm p,
- article:hover .idxprm, .idxprm{
- transition-duration:.5s;
- -webkit-transition-duration:.5s;
- -moz-transition-duration:.5s;
- -ms-transition-duration:.5s;
- -o-transition-duration:.5s;
- }
- {/block:IfHoverPerma}
- ::selection{
- background-color:#000;
- color:#fff;
- }
- ::-moz-selection{
- background-color:#000;
- color:#fff;
- }
- ::-webkit-scrollbar{
- width:11px;
- height:11px;
- background-color:{color:Background};
- }
- ::-webkit-scrollbar-track{
- border:5px solid {color:Background};
- background-color:{color:Background};
- }
- ::-webkit-scrollbar-thumb{
- border:5px solid {color:Background};
- background-color: {color:Links};
- }
- .tmblr-iframe.iframe-controls--desktop{
- filter:invert(100%);
- -webkit-filter:invert(100%);
- -moz-filter:invert(100%);
- -ms-filter:invert(100%);
- -o-filter:invert(100%);
- transform:scale(.8, .8);
- -webkit-transform:scale(.8, .8);
- -moz-transform:scale(.8, .8);
- z-index:999999999999999999!important;
- }
- #s-m-t-tooltip{
- line-height:100%;
- font-size:8px;
- text-transform:uppercase;
- text-align:center;
- letter-spacing:1px;
- max-width:100px;
- z-index:9999!important;
- padding:5px;
- margin:15px;
- background:rgba(0,0,0,.8);
- color:#eee;
- }
- header{
- width:{text:HeaderWidth};
- margin:40px auto 100px;
- padding:10px;
- overflow:hidden;
- background-color:#fff;
- border:1px solid {color:Borders};
- }
- header > div, nav{
- padding:20px;
- width:calc(50% - 40px);
- float:left;
- }
- header img{
- display:block;
- width:{select:HeaderImageSize};
- height:{select:HeaderImageSize};
- border-radius:50%;
- margin:0 auto 20px;
- }
- header h1{
- text-align:center;
- text-transform:uppercase;
- font-size:{select:FontSize};
- letter-spacing:1px;
- font-weight:normal;
- line-height:110%;
- margin-bottom:10px
- }
- {block:IfTitleFirstLetter}header h1:first-letter,{/block:IfTitleFirstLetter}
- .pagination span{
- font-weight:bold;
- border-bottom:1px solid {color:Text};
- }
- nav a, nav a:after{
- display:block;
- }
- nav a{
- text-transform:uppercase;
- font-size:{select:NavFontSize};
- letter-spacing:1px;
- line-height:35px;
- position:relative;
- border-bottom:1px solid {color:Borders};
- }
- nav a:after{
- content:"";
- width:0;
- height:1Px;
- background-color:{color:Hover};
- position:absolute;
- bottom:-1px;
- left:0;
- }
- nav a:hover:after{
- width:100%;
- }
- section{
- text-align:center;
- margin:0 {block:ifFluidLayout}calc({text:PostSpacing} / 2){/block:ifFluidLayout}{block:ifNotFluidLayout}auto{/block:ifNotFluidLayout};
- }
- article{
- position:relative;
- text-align:justify;
- {block:IndexPage}
- display:inline-block;
- vertical-align:middle;
- width:{text:PostWidth};
- margin:{text:PostSpacing};
- {/block:IndexPage}
- {block:PermalinkPage}
- margin:0 auto 30px;
- width:{text:PermalinkPostWidth};
- {/block:PermalinkPage}
- padding:{text:PostPadding};
- min-height:15px;
- background-color:#fff;
- border:1px solid {color:Borders};
- }
- .singlecolumn article{
- margin: {text:PostSpacing} auto!important;
- }
- .idxprm{
- text-transform:uppercase;
- font-size:{select:NavFontSize};
- letter-spacing:1px;
- z-index:2;
- {block:IfNotHoverPerma}
- top:{text:PostPadding};
- left:{text:PostPadding};
- background-color:#fff;
- margin-top:10px;
- text-align:center;
- {/block:IfNotHoverPerma}
- {block:IfHoverPerma}
- position:absolute;
- width:70px;
- top:0;
- right:0;
- line-height:200%;
- {block:IfNotReblogLink}height:25px;{/block:IfNotReblogLink}
- {block:IfReblogLink}height:40px;{/block:IfReblogLink}
- opacity:0;
- border-left:1px solid #e2e2e2;
- {/block:IfHoverPerma}
- }
- {block:IfNotHoverPerma}
- .idxprm a{
- display:inline-block;
- margin:0 5px;
- }
- {/block:IfNotHoverPerma}
- {block:IfHoverPerma}
- .idxprm a{
- display:block;
- }
- article:hover .idxprm{
- right:-80px;
- opacity:1;
- }
- article:hover .idxprm p{
- opacity:1;
- left:0px;
- transition-delay:.3s;
- }
- .idxprm p{
- opacity:0;
- position:absolute;
- left:-70px;
- padding:0 10px;
- width:60px;
- }
- {/block:IfHoverPerma}
- article *{
- max-width:100%;
- }
- .pictures{
- min-width:100%;
- display:block;
- }
- article img{
- height:auto;
- }
- h3{
- font-size:22px;
- line-height:100%;
- }
- .caption:before,
- .caption:after{
- content:"";
- display:block;
- position:absolute;
- width:10px;
- height:10px;
- }
- .caption:before{
- top:0;
- left:0;
- border-top:1px solid {color:Borders};
- border-left:1px solid {color:Borders};
- }
- .caption:after{
- bottom:0;
- right:0;
- border-bottom:1px solid {color:Borders};
- border-right:1px solid {color:Borders};
- }
- .caption{
- margin-top:10px;
- position:relative;
- padding:10px;
- }
- .read_more{
- display:table;
- margin:auto;
- text-transform:uppercase;
- font-size:{select:NavFontSize};
- letter-spacing:1px;
- }
- .txt .read_more{
- margin-top:10px;
- }
- .question p b a,
- .caption a,
- .read_more{
- padding-bottom:1px;
- border-bottom:1px solid {color:Borders};
- }
- .question p b a:hover,
- .caption a:hover,
- .read_more:hover{
- border-bottom-color:transparent;
- }
- .tumblr_blog, .question p b{
- font-weight:bold;
- text-transform:uppercase;
- font-size:{select:NavFontSize};
- letter-spacing:1px;
- }
- .tumblr_blog{
- font-style:italic;
- }
- .caption p:not(:first-child),
- .caption ul,.caption ol,.caption h2{
- margin-top:10px;
- }
- .caption ul,.caption ol{
- padding-left:30px;
- }
- .caption blockquote{
- padding:5px;
- background-color:#f6f6f6;
- }
- .caption > blockquote{
- border:1px solid #eee;
- margin-top:10px;
- }
- footer.pagi #loadmore,
- footer.ldmr .pagination,
- footer.ifnt,
- #infscr-loading{block:IndexPage}{block:IfNotShowCaption}
- , .hde{/block:IfNotShowCaption}{/block:IndexPage}{
- display:none!important;
- }
- .spotify_audio_player{
- height: 80px!important;
- overflow: hidden;
- filter: invert(100%);
- -webkit-filter: invert(100%);
- -moz-filter: invert(100%);
- -ms-filter: invert(100%);
- -o-filter: invert(100%);
- opacity: .4;
- background-color: #fff;
- }
- footer{
- margin:auto;
- padding:30px 0;
- margin-top: 100px;
- text-align: center;
- background-color: #fff;
- border: 1px solid {color:Borders};
- text-transform:uppercase;
- letter-spacing:1px;
- }
- #loadmore{
- font-size:{select:NavFontSize};
- }
- .pagination{
- font-size:{select:FontSize};
- }
- #prv,
- #nxt{
- font-size:14px;
- vertical-align: -2px;
- }
- .pagination a,
- .pagination span{
- display:inline-block;
- margin:0 5px;
- }
- .slideshow{
- position:relative;
- width:100%;
- }
- .slideshow img{
- display:block;
- position:absolute;
- top:0;
- left:0;
- }
- .chat li{
- list-style-type:none;
- background-color:#f6f6f6;
- border: 1px solid #f0f0f0;
- margin-bottom:3px;
- padding:5px 10px;
- }
- .audio, .question{
- font-size:0;
- }
- .audio_player, .audio p,
- .question p, .question img{
- font-size:{select:FontSize};
- display: inline-block;
- vertical-align: middle;
- }
- .audio_player, .question img{
- padding:5px 10px 5px 0;
- width: 30px;
- height: 30px;
- position: relative;
- border-right: 1px solid {color:Borders};
- }
- .audio p, .question p{
- width: calc(100% - 51px);
- margin-left: 10px;
- }
- .question p b{
- margin-right:10px;
- }
- .audio p{
- text-align:center;
- }
- .quote h3{
- font-style:italic;
- text-align:left;
- font-size:17px;
- line-height:140%;
- position:relative;
- text-indent:20px;
- }
- .quote h3:before{
- font-style:normal;
- content:"โ";
- display:block;
- font-size:36px;
- position:absolute;
- top:7px;
- left:-20px;
- }
- .quote .caption{
- text-align:center;
- text-transform:uppercase;
- letter-spacing:1px;
- font-size:{select:NavFontSize};
- }
- {block:PermalinkPage}
- .perma{
- text-align:center;
- }
- .tags i, .tags span{
- display:table-cell;
- vertical-align:middle;
- }
- .tags span{
- padding:0 10px;
- }
- .tags a:not(:last-child):after{
- content:", ";
- }
- .tags i{
- padding:10px;
- font-size:18px;
- }
- .tags, .perma{
- margin-top:10px;
- padding-top:10px;
- border-top:1px solid {color:Borders};
- font-size:7px;
- text-transform:uppercase;
- letter-spacing:1px;
- }
- .tags{
- min-width:100%;
- text-align:left;
- word-break:break-word;
- display:table;
- line-height:130%;
- }
- #notes *{
- margin:0;
- padding:0;
- }
- #notes{
- border-top:1px solid {color:Borders};
- margin-top: 5px;
- position: relative;
- text-align: center;
- padding: 10px 0 30px;
- }
- #notes li{
- list-style-type:none;
- display:inline-block;
- width:25px;
- height:25px;
- margin:5px;
- overflow:hidden;
- }
- #notes img{
- width:25px;
- height:25px;
- }
- li.more_notes_link_container{
- background:url('http://cdn.flaticon.com/png/256/59565.png') no-repeat;
- background-size:25px;
- background-position:center;
- opacity:.5;
- }
- a.more_notes_link, a.notes_loading{
- opacity:0!important;
- }
- {/block:PermalinkPage}
- .fu-tumblr *{
- display:block;
- min-width:100%;
- }
- </style>
- </head>
- <body id="noscroll">
- <header>
- <div>
- {block:IfHeaderImage}<img src="{image:HeaderImage}">{/block:IfHeaderImage}
- {block:IfHeaderTitle}<h1>{Title}</h1>{/block:IfHeaderTitle}
- {Description}
- </div>
- <nav>
- <a href="/">Index</a>
- <a href="/ask">Message</a>
- <a href="/archive">Archive</a>
- {block:IfLink1}<a href="{text:Link1URL}">{text:Link1Name}</a>{/block:IfLink1}
- {block:IfLink2}<a href="{text:Link2URL}">{text:Link2Name}</a>{/block:IfLink2}
- {block:IfLink3}<a href="{text:Link3URL}">{text:Link3Name}</a>{/block:IfLink3}
- {block:IfLink4}<a href="{text:Link4URL}">{text:Link4Name}</a>{/block:IfLink4}
- {block:IfLink5}<a href="{text:Link5URL}">{text:Link5Name}</a>{/block:IfLink5}
- {block:IfLink6}<a href="{text:Link6URL}">{text:Link6Name}</a>{/block:IfLink6}
- </nav>
- </header>
- <section>
- {block:Posts}
- {block:ContentSource}<!-- {SourceURL}{block:SourceLogo}<img src="{BlackLogoURL}"width="{LogoWidth}" height="{LogoHeight}" alt="{SourceTitle}" />{/block:SourceLogo}{block:NoSourceLogo}{SourceLink}{/block:NoSourceLogo} -->{/block:ContentSource}<!-- {block:NoRebloggedFrom}{block:RebloggedFrom}{ReblogParentName}{/block:RebloggedFrom}{/block:NoRebloggedFrom} -->
- <article{block:Text} class="txt"{/block:Text}{block:Chat} class="chat"{/block:Chat}{block:Photoset} class="photost"{/block:Photoset}{block:Quote} class="quote"{/block:Quote}{block:Link} class="txt"{/block:Link} data-tag="{TagsAsClasses}" data-url="{ShortURL}">
- {block:Photo}
- <img src="{PhotoURL-HighRes}" alt="{PhotoAlt}" class="pictures">
- {block:Caption}
- <div class="caption hde">
- {Caption}
- </div>
- {/block:Caption}
- {/block:Photo}
- {block:Photoset}
- <div class="photo-slideshow" data-layout="{PhotosetLayout}">
- {block:Photos}
- <div class="photo-data">
- <div class="pxu-photo">
- <img alt="{PhotoAlt}" src="{PhotoURL-500}" width="{PhotoWidth-500}" height="{PhotoHeight-500}" data-highres="{PhotoURL-HighRes}" data-width="{PhotoWidth-HighRes}" data-height="{PhotoHeight-HighRes}" class="{block:Exif}exif-yes {/block:Exif}{block:Caption}caption-yes{/block:Caption}" {block:Exif}data-camera="{block:Camera}{Camera}{/block:Camera}" data-iso="{block:ISO}{ISO}{/block:ISO}" data-aperture="{block:Aperture}{Aperture}{/block:Aperture}" data-exposure="{block:Exposure}{Exposure}{/block:Exposure}" data-focal="{block:FocalLength}{FocalLength}{/block:FocalLength}"{/block:Exif} {block:Caption}data-caption="{Caption}"{/block:Caption}>
- </div>
- </div>
- {/block:Photos}
- </div>
- {block:Caption}
- <div class="caption hde">
- {Caption}
- </div>
- {/block:Caption}
- {/block:Photoset}
- {block:Text}
- {block:Title}<h3><a href="{Permalink}">{Title}</a></h3>{/block:Title}
- <div class="caption">
- {Body}
- </div>
- {/block:Text}
- {block:Link}
- <h3><a href="{URL}" target="{Target}">{Name} ยป</a></h3>
- {block:Description}
- <div class="caption">
- {Description}
- </div>
- {/block:Description}
- {/block:Link}
- {block:Chat}
- {block:Title}
- <h3><a href="{Permalink}">{Title}</a></h3>
- {/block:Title}
- <ul>
- {block:Lines}
- <li>
- {block:Label}
- <b>{Label}</b>
- {/block:Label}
- {Line}
- </li>
- {/block:Lines}
- </ul>
- {/block:Chat}
- {block:Video}
- <div class="fu-tumblr">{Video-500}</div>
- {block:Caption}
- <div class="caption hde">
- {Caption}
- </div>
- {/block:Caption}
- {/block:Video}
- {block:Audio}
- <div class="audio">
- {block:AudioPlayer} {AudioPlayer} {/block:AudioPlayer}
- <p>
- {block:Artist}
- <b>{Artist}</b> <br>
- {/block:Artist}
- {block:TrackName}
- {TrackName}
- {/block:TrackName}
- </p>
- </div>
- {block:Caption}
- <div class="caption hde">{Caption}</div>
- {/block:Caption}
- {/block:Audio}
- {block:Quote}
- <h3>{Quote}</h3>
- {block:Source}
- <div class="caption">
- {Source}
- </div>
- {/block:Source}
- {/block:Quote}
- {block:Answer}
- <div class="question">
- <img src="{AskerPortraitURL-96}">
- <p>
- <b>{Asker}</b>
- {Question}
- </p>
- </div>
- <div class="caption">{Answer}</div>
- {/block:Answer}
- {block:IndexPage}<div class="idxprm"><p><a href="{Permalink}" title="{TimeAgo}">{DayOfMonthWithZero}{MonthNumberWithZero}{ShortYear}</a> {block:NoteCount}<a href="{Permalink}">{NoteCount}N.</a>{/block:NoteCount}{block:IfReblogLink}<a href="{ReblogURL}" target="_blank">Reblog.</a>{/block:IfReblogLink}</p></div>{/block:IndexPage}
- {block:PermalinkPage}
- {block:Date}
- <div class="perma">
- {block:RebloggedFrom}Reblogged{/block:RebloggedFrom}{block:NotReblog}Posted{/block:NotReblog} {Month} {DayOfMonth}{DayOfMonthSuffix}{block:RebloggedFrom} via <a href="{ReblogParentURL}" title="{ReblogParentTitle}">{ReblogParentName}</a> (ยฉ<a href="{ReblogRootURL}" title="{ReblogRootTitle}">{ReblogRootName}</a>){/block:RebloggedFrom}{block:NoteCount} with {NoteCountWithLabel}{/block:NoteCount}.
- </div>
- {/block:Date}
- {block:HasTags}
- <div class="tags">
- <i>#</i>
- <span>
- {block:Tags}<a href="{TagURL}">{Tag}</a>{/block:Tags}
- </span>
- </div>
- {/block:HasTags}
- {/block:PermalinkPage}
- {block:PostNotes}
- <div id="notes">
- {PostNotes-64}
- </div>
- {/block:PostNotes}
- </article>
- {/block:Posts}
- </section>
- {block:Pagination}
- <footer class="{select:NextPage}">
- <span class="pagination">
- {block:PreviousPage}<a href="{PreviousPage}" id="prv" title="previous page">‹</a>{/block:PreviousPage}
- {block:JumpPagination length="3"}
- {block:JumpPage}<a href="{URL}">{PageNumber}</a>{/block:JumpPage}
- {block:CurrentPage}<span>{PageNumber}</span>{/block:CurrentPage}
- {/block:JumpPagination}
- {block:NextPage}<a href="{NextPage}" id="nxt" title="next page">›</a>{/block:NextPage}
- </span>
- <a id="loadmore">Load more posts</a>
- </footer>
- {/block:Pagination}
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
- <script src="http://static.tumblr.com/emvnqzg/NOVo0fisl/scripts.js"></script>
- <script src="http://static.tumblr.com/wgg6svp/sDinmsq3x/jquery.style-my-tooltips.js"></script>
- <script src="http://static.tumblr.com/iwtk77u/Yhym2yygt/jquery.imagesloaded.min.js"></script>
- <script src="http://static.tumblr.com/q8c0vxg/xYrnjmd74/jquery.infinitescroll.min.js"></script>
- <script type="text/javascript" src="http://static.tumblr.com/wgg6svp/Wf8nw0j2c/pxuphotoset.js"></script>
- <script>
- $(function(){
- $("[title]").style_my_tooltips({
- tip_follows_cursor:true,
- tip_delay_time:200,
- tip_fade_speed:500
- });
- $('.photo-slideshow').pxuPhotoset({
- 'ligthbox' : false,
- 'rounded' : false,
- 'gutter' : '{text:PhotosetSpacing}'
- });
- {block:IndexPage}
- $('.fu-tumblr').each(function(){
- var height = (parseInt($('iframe', this).height()) * parseInt('{text:PostWidth}')) / 500;
- $('iframe', this).height(height);
- });
- {block:IfNotFluidLayout}
- var numcolumn = parseInt('{select:NumberofColumns}'),
- article = parseInt('{text:PostWidth}') + (parseInt('{text:PostPadding}') * 2) + (parseInt('{text:PostSpacing}') * 2) + (2 * numcolumn);
- if(numcolumn == 1){
- $('section').addClass('singlecolumn');
- $('section, footer').css({'width': (article - (parseInt('{text:PostSpacing}') * 2) ) * numcolumn});
- }else{
- $('section').css({'width': article * numcolumn});
- $('footer').css({'width': (article - parseInt('{text:PostSpacing}')) * numcolumn});
- }
- {/block:IfNotFluidLayout}
- function cut(n) {
- return function textCutter(i, text) {
- var short = text.substr(0, n);
- if (/^\S/.test(text.substr(n))){
- return short.replace(/\s+\S*$/, "...");
- };
- return short;
- };
- }
- function photosetAdjust($this){
- $('img:last', $this).fadeOut(600, function(){
- $('img:first', $this).before($('img:last', $this));
- $('img:first', $this).show();
- });
- }
- function truncate($posts){
- var txt, url, height, slideshow, type;
- $posts.each(function($key, $this){
- type = $(this).attr('class');
- if($(this).attr('data-tag').indexOf("long_post") > -1){
- if(type == 'txt'){
- txt = $(this).find('.caption').html();
- url = $(this).attr('data-url');
- $(this).find('.caption').html(cut(105)).append('<a href="'+url+'" class="read_more">{text:ReadMore}</a>');
- }else if(type == 'quote'){
- txt = $(this).find('h3').html();
- url = $(this).attr('data-url');
- $(this).find('h3').html(cut(55));
- $(this).find('.caption').append('<a href="'+url+'" class="read_more">{text:ReadMore}</a>');
- }else if(type == 'chat'){
- url = $(this).attr('data-url');
- $(this).find('li:nth-child(n+3)').hide().parent().append('<li><a href="'+url+'" class="read_more">{text:ReadMore}</a></li>');
- }else if(type == "photost"){
- $(this).imagesLoaded(function(){
- height = $('img:first', this).height();
- $(this).addClass('slideshow').height(height);
- slideshow = setInterval(function(){photosetAdjust($this);}, 3000);
- });
- }
- }
- });
- }
- truncate($('article'));
- var parent = $('section');
- if($('footer').hasClass('ldmr') || $('footer').hasClass('ifnt')){
- parent.infinitescroll({
- navSelector : ".pagination",
- nextSelector : "#nxt",
- itemSelector : "article",
- bufferPx : 50,
- done : "",
- loading: {
- img : "",
- msgText: "",
- finishedMsg:""
- },
- },
- function( newElements ) {
- var $newElems = $( newElements ).css({ opacity: 0 });
- $newElems.imagesLoaded(function(){
- $newElems.animate({ opacity: 1 }).find('[title]').style_my_tooltips();
- $newElems.find('.fu-tumblr').each(function(){var height = (parseInt($('iframe', this).height()) * parseInt('{text:PostWidth}')) / 500;$('iframe', this).height(height);});
- $newElems.find('.photo-slideshow').pxuPhotoset({'ligthbox':false,'rounded':false,'gutter':'{text:PhotosetSpacing}'});
- truncate($newElems);
- });
- });
- if($('footer').hasClass('ldmr')){
- parent.infinitescroll({
- behavior: 'twitter'
- });
- $(window).unbind('.infscr');
- $('#loadmore').click(function(){
- parent.infinitescroll('retrieve');
- $('footer').show();
- return false;
- });
- }
- }
- $('.spotify_audio_player').each(function(){
- $(this).parent().height('80px');
- });
- {/block:IndexPage}
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement