<b:if cond='PUT_CONDITION_HERE'>
</b:if>
cond
attribute. Each (opening) <b:if>
tag need to be closed with a closing </b:if>
tag.</b:if>
tag when applying a conditional in your template.1. Index (list) pages
Index pages include homepage, labels page and yearly archive page.
<b:if cond='data:blog.pageType == "index"'>
<b:if cond='data:blog.url == data:blog.homepageUrl'>
3. Post (item) Page Only
<b:if cond='data:blog.pageType == "item"'>
4. First Post
This is not a page, but a conditional for the first post.
<b:if cond='data:post.isFirstPost'>
5. Static Page
<b:if cond='data:blog.pageType == "static_page"'>
6. Archive Pages
<b:if cond='data:blog.pageType == "archive"'>
7. Specific Page/URL
<b:if cond='data:blog.url == "PUT_URL_HERE"'>
8. Post and Static Page
<b:if cond='data:blog.url == data:post.url'>
9. Label-Search Pages
<b:if cond='data:blog.searchLabel'>
To apply a conditional tag to a content, simply put the content between the opening <b:if cond……> and the closing </b:if>, like Below code.
<b:if cond='data:blog.pageType == "item"'>
Here is Your CONTENT
</b:if>
in the example above, the content or widget show only on post pages.. I am writing a few more examples as soon as time Allow.
<b:includable id='main'><b:if cond='data:blog.pageType == "item"'><data:content/></b:if></b:includable>
<script>linkwithin_text='Related Posts:'</script>
</head>
line. <script type='text/javascript'>var thumbnail_mode = "no-float" ;
summary_noimg = 430;
summary_img = 340;
img_thumb_height = 100;
img_thumb_width = 120;
</script>
<script type='text/javascript'>
//<![CDATA[
function removeHtmlTag(strx,chop){
if(strx.indexOf("<")!=-1)
{
var s = strx.split("<");
for(var i=0;i<s.length;i++){
if(s[i].indexOf(">")!=-1){
s[i] = s[i].substring(s[i].indexOf(">")+1,s[i].length);
}
}
strx = s.join("");
}
chop = (chop < strx.length-1) ? chop : strx.length-2;
while(strx.charAt(chop-1)!=' ' && strx.indexOf(' ',chop)!=-1) chop++;
strx = strx.substring(0,chop-1);
return strx+'...';
}
function createSummaryAndThumb(pID){
var div = document.getElementById(pID);
var imgtag = "";
var img = div.getElementsByTagName("img");
var summ = summary_noimg;
if(img.length>=1) {
imgtag = '<span style="float:left; padding:0px 10px 5px 0px;"><img src="'+img[0].src+'" width="'+img_thumb_width+'px" height="'+img_thumb_height+'px"/></span>';
summ = summary_img;
}
var summary = imgtag + '<div>' + removeHtmlTag(div.innerHTML,summ) + '</div>';
div.innerHTML = summary;
}
//]]></script>
<b:if cond='data:blog.pageType == "item"'>
<data:post.body/>
<b:else/>
<b:if cond='data:blog.pageType == "static_page"'>
<data:post.body/>
<b:else/>
<div expr:id='"summary" + data:post.id'>
<data:post.body/>
</div>
<script type='text/javascript'>
createSummaryAndThumb("summary<data:post.id/>");
</script>
<span class='jump-link' style='font-weight:bold;padding:5px;float:right;text-align:right;'><a expr:href='data:post.url'>Continue Reading...</a></span>
<div style='clear: both;'/>
</b:if>
</b:if>
.jump-link {
display: block;
font-size: 12px;
font-weight: bold;
text-align:right;
}
.jump-link a {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #ffffff;
padding: 6px 15px;
background: -moz-linear-gradient(
top,
#42aaff 0%,
#003366);
background: -webkit-gradient(
linear, left top, left bottom,
from(#42aaff),
to(#003366));
-moz-border-radius: 8px;
-webkit-border-radius: 8px;
border-radius: 8px;
border: 1px solid #003366;
-moz-box-shadow:
0px 1px 3px rgba(000,000,000,0.5),
inset 0px 0px 1px rgba(255,255,255,0.5);
-webkit-box-shadow:
0px 1px 3px rgba(000,000,000,0.5),
inset 0px 0px 1px rgba(255,255,255,0.5);
box-shadow:
0px 1px 3px rgba(000,000,000,0.5),
inset 0px 0px 1px rgba(255,255,255,0.5);
text-shadow:
0px -1px 0px rgba(000,000,000,0.7),
0px 1px 0px rgba(255,255,255,0.3);
}
.jump-link {
display: block;
font-size: 12px;
font-weight: bold;
text-align:right;
}
.jump-link a {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
padding: 6px 15px;
background: -moz-linear-gradient(
top,
#ffffff 0%,
#b5b5b5);
background: -webkit-gradient(
linear, left top, left bottom,
from(#ffffff),
to(#b5b5b5));
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
border: 3px solid #0088ff;
-moz-box-shadow:
0px 1px 3px rgba(000,000,000,0.5),
inset 0px 0px 3px rgba(255,255,255,1);
-webkit-box-shadow:
0px 1px 3px rgba(000,000,000,0.5),
inset 0px 0px 3px rgba(255,255,255,1);
box-shadow:
0px 1px 3px rgba(000,000,000,0.5),
inset 0px 0px 3px rgba(255,255,255,1);
text-shadow:
0px 1px 2px rgba(000,000,000,0.5),
0px 1px 2px rgba(252,254,255,0.9);
}
.jump-link {
display: block;
font-size: 12px;
font-weight: bold;
text-align:right;
}
.jump-link a {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #ffffff;
padding: 6px 15px;
background: -moz-linear-gradient(
top,
#eaeaea 0%,
#000000);
background: -webkit-gradient(
linear, left top, left bottom,
from(#eaeaea),
to(#000000));
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
border: 1px solid #a2a89f;
-moz-box-shadow:
0px 1px 3px rgba(000,000,000,0.5),
inset 0px 0px 2px rgba(255,255,255,1);
-webkit-box-shadow:
0px 1px 3px rgba(000,000,000,0.5),
inset 0px 0px 2px rgba(255,255,255,1);
box-shadow:
0px 1px 3px rgba(000,000,000,0.5),
inset 0px 0px 2px rgba(255,255,255,1);
text-shadow:
0px -1px 0px rgba(000,000,000,0.4),
0px 1px 0px rgba(255,255,255,0.3);
}
]]></b:skin>
/*Start Drop Down CSS by http://www.mybloggertricks.org/*/ .nav{ width:100%; height:36px; background:#f9f9f9; border-top:1px solid #e4e4e4; border-bottom:1px solid #e4e4e4; box-shadow: 0 2px 2px #eee; z-index:1; } .menu{ width:1050px; list-style:none; font:16px Source Sans Pro,Arial,Verdana; font-weight: normal; text-align:center; margin:0 auto; } .menu a{ float:left; color:#000000; text-decoration:none; width:100px; line-height:36px; -moz-transition:.2s linear; -webkit-transition:.2s linear; transition:.2s linear; -o-transition:.2s linear; } .menu a:hover,li.menuhover a{ color:#111; background:#efefef; -moz-transition:.2s linear; -webkit-transition:.2s linear; transition:.2s linear; -o-transition:.2s linear; } .menu li,.menu li span{ position:relative; float:left; width:100px; z-index:2; border-left:1px solid #e3e3e3; } .menu li span{ border-right:1px solid #e3e3e3; border-left:none; } .menu ul{ display:none; position:absolute; font:normal 16px Source Sans Pro,Arial,Verdana; font-weight: normal; top:36px; left:0; background:#fbfbfb; display:none; list-style:none; box-shadow:0 2px 3px #ccc; } .menu ul li{ float:none; border-top:1px solid #ccc; width:150px; } .menu ul li a{ float:none; display:block; background:none; line-height:36px; width:137px; text-align:left; padding-left:10px; color:#444; } .menu ul li a:hover{ background:#fbfbfb; color:#000000; border-left:5px solid #088A4B; -webkit-transition:ease-in 0.15s all; -moz-transition:ease-in 0.15s all; -o-transition:ease-in 0.15s all; -ms-transition:ease-in 0.15s all; transition:ease-in 0.15s all; text-shadow:0 1px 0 #fefefe } /*End Drop Down CSS*/
</head>
<script type='text/javascript'> //<![CDATA[ var dropd={};function T$(i){return document.getElementById(i)}function T$$(e,p){return p.getElementsByTagName(e)}dropd.dropdown=function(){var p= {fade:1,slide:1,active:0,timeout:200},init=function(n,o){for(s in o){p[s]=o[s]} p.n=n;this.build()};init.prototype.build=function(){this.h=[];this.c=[];this.z=1000;var s=T$ $('ul',T$(p.id)),l=s.length,i=0;p.speed=p.speed?p.speed*.1:.5;for(i;i<l;i++){var h=s [i].parentNode;this.h[i]=h;this.c[i]=s[i];h.onmouseover=new Function(p.n+'.show('+i +',1)');h.onmouseout=new Function(p.n+'.show('+i+')')}};init.prototype.show=function(x,d){var c=this.c[x],h=this.h[x];clearInterval(c.t);clearInterval(c.i);c.style.overflow='hidden';if(d) {if(p.active&&h.className.indexOf(p.active)==-1){h.className+=' '+p.active}if(p.fade||p.slide) {c.style.display='block';if(!c.m){if(p.slide) {c.style.visibility='hidden';c.m=c.offsetHeight;c.style.height='0';c.style.visibility=''}else {c.m=100;c.style.opacity=0;c.style.filter='alpha(opacity=0)'}c.v=0}if(p.slide){if(c.m==c.v) {c.style.overflow='visible'}else{c.style.zIndex=this.z;this.z++;c.i=setInterval(function() {slide(c,c.m,1)},20)}}else{c.style.zIndex=this.z;this.z++;c.i=setInterval(function(){slide (c,c.m,1)},20)}}else{c.style.zIndex=this.z;c.style.display='block'}}else{c.t=setTimeout (function(){hide(c,p.fade||p.slide?1:0,h,p.active)},p.timeout)}};function hide(c,t,h,s){if(s) {h.className=h.className.replace(s,'')}if(t){c.i=setInterval(function(){slide(c,0,-1)},20)} else{c.style.display='none'}}function slide(c,t,d){if(c.v==t){clearInterval(c.i);c.i=0;if (d==1){if(p.fade){c.style.filter='';c.style.opacity=1}c.style.overflow='visible'}}else{c.v=(t- Math.floor(Math.abs(t-c.v)*p.speed)*d);if(p.slide){c.style.height=c.v+'px'}if(p.fade){var o=c.v/c.m;c.style.opacity=o;c.style.filter='alpha(opacity='+(o*100)+')'}}}return{init:init}}(); //]]> </script>
<!-- Start - Navigation Menu --> <div class='nav'> <ul class='menu' id='menu'> <li><a expr:href='data:blog.homepageUrl'>Home</a></li> <li><a href='#>Blogger</a></li> <li><a href='#>Adsense</a></li> <li><a href='#>SEO Tips</a></li> <li><a href='#'>Templates</a></li> <li><a href='#'>Widgtes</a></li> <li><a href='#>Downloads</a></li> <li><a href='#'>Tools»</a> <ul> <li><a href='#>HTML Editor</a></li> <li><a href='#>Escape Tool</a></li> <li><a href='#>ParseTool</a></li> <li><a href='#>Color Code</a></li> </ul> </li> </ul> </div> <!-- End - Navigation Menu --> <script type='text/javascript'> var dropdown=new dropd.dropdown.init("dropdown", {id:'menu', active:'menuhover'}); </script>
<div class='post-header-line-1'/>
<data:post.body/>
</head>
<div class='post-header-line-1'>
july 2003 - Present
My skills include HTML, CSS, PHP ,MySQL,JavaScript,jQuery,Open source development, and Cyber security. I also have experience with SEO and online advertising.Office and records management, database administration, customer support, travel coordination.Microsoft productivity software (Word, Excel, etc),Windows...