Skip to content

Instantly share code, notes, and snippets.

@iMohammadd
Created March 14, 2018 05:51
Show Gist options
  • Save iMohammadd/3f8541dc09a7e95fba3743e962c80e9f to your computer and use it in GitHub Desktop.
Save iMohammadd/3f8541dc09a7e95fba3743e962c80e9f to your computer and use it in GitHub Desktop.
<html lang="fa">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<link rel="stylesheet" href="//cdn.rawgit.com/morteza/bootstrap-rtl/master/dist/css/bootstrap-rtl.min.css">
<link href="https://cdn.rawgit.com/rastikerdar/sahel-font/v1.0.0-alpha6/dist/font-face.css" rel="stylesheet" type="text/css" />
<style>
body {
font-family: Sahel;
}
.content {
font-weight: 200;
}
.header {
text-align: center;
}
.tags {
font-size: 1rem;
font-weight: 100;
}
.tags ul li {
background: #efefef;
padding: 3px;
border-radius: 5px;
}
.tags ul li:hover {
background: #e9e9e9;
}
.tags ul li a {
color: #000000;
}
.tags ul li a:hover {
text-decoration: none;
}
</style>
<script>
function GetBC(lngPostid)
{
intTimeZone=<-BlogTimeZone->;
strBlogId="<-BlogId->";
intCount=-1;
strResult="";
try {
for (i=0;i<BlogComments.length;i+=2)
{
if (BlogComments[i]==lngPostid)
intCount=BlogComments[i+1] ;
}
} catch( e) {
}
if ( intCount==-1) strResult="نظر دهید";
if ( intCount==0) strResult="نظر بدهید";
if ( intCount==1) strResult="یک نظر";
if ( intCount>1) strResult=intCount + " نظر" ;
strUrl="/comments/?blogid=" +strBlogId + "&postid=" + lngPostid + "&timezone=" + intTimeZone ;
strResult ="<a href=\"javascript:void(0)\" onclick=\"javascript:window.open('" + strUrl + "','blogfa_comments','status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no ,width=500px,height=500px')\" >" + strResult + " </a>" ;
document.write ( strResult ) ;
}
function OpenLD()
{
window.open('/links','blogfa_ld','status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no ,width=500px,height=500px');
return true;
}
</script>
<title><-BlogAndPostTitle-></title>
</head>
<body>
<div class="container">
<div class="row header">
<h1><-BlogTitle-></h1>
<small><-BlogDescription-></small>
<hr>
<ul class="list-inline">
<li><a href="<-BlogUrl->">صفحه اصلی</a></li>
<li><a href="<-BlogUrl->/links">دوستان</a></li>
<li><a href="<-BlogProfileLink->">پروفایل</a></li>
</ul>
<hr>
</div>
<div class="row">
<div class="col-md-12">
<BLOGFA>
<section class="main-content">
<h3 class="title"><a href="<-BlogUrl-><-PostLink->"><-PostTitle-></a></h3>
<div class="tags">
<BlogPostTagsBlock>
<ul class="list-inline">
<BlogPostTags><li><a href="<-TagLink->"><-TagName-></a></li></BlogPostTags>
</ul>
</BlogPostTagsBlock>
</div>
<div class="content">
<-PostContent->
</div>
<br>
<div class="meta">
<ul class="list-inline">
<li class="date"><-PostDate-></li>
<li class="comment pull-left"><BlogComment><script type="text/javascript">GetBC(<-PostId->);</script></BlogComment></li>
</ul>
</div>
<hr>
</section>
</BLOGFA>
</div>
</div>
<div class="row">
<BlogNextAndPreviousBlock>
<nav aria-label="...">
<ul class="pager">
<BlogPreviousPageBlock><li><a href="<-BlogPreviousPageLink->">جدیدتر</a></li></BlogPreviousPageBlock>
<BlogNextPageBlock><li><a href="<-BlogNextPageLink->">قدیمی‌تر</a></li></BlogNextPageBlock>
</ul>
</nav>
</BlogNextAndPreviousBlock>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment