rendered paste body<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<?php
/*
Template Name: Squeeze 05 (Header)
*/
$postcustom = get_post_custom($post->ID);
$templatedir = get_bloginfo('template_directory');
($postcustom['_optthemes_disablecookiecheck']) ? include 'inc_check_user_cookie.php' : '';
($postcustom['_optthemes_disablecookiecheck']) ? include 'inc_squeeze_cookie_check.php' : ''; // Enable/Disable Cookie Check
?>
<?php $seoheadergooglewebcode = !empty($postcustom['_seo_headergooglewebcode']) ? stripslashes($postcustom['_seo_headergooglewebcode'][0]) : ''; ?>
<?php echo $seoheadergooglewebcode; ?>
<?php get_header();?>
<?php include ("exit-pop.php"); ?>
<?php if(empty($postcustom['_optthemes_externalvideo'])) { ?><script type="text/javascript" src="<?php echo get_bloginfo('template_directory'); ?>/js/flowplayer-3.2.4.min.js"></script><?php } ?>
<?php $mainbodytextfont = stripcslashes($postcustom['_optthemes_mainbodytextfont'][0]); // Add Main Body Font ?>
<style>body{font-family:<?=$mainbodytextfont?>;}</style>
<?php if($postcustom['_optthemes_showheader']) { ?>
<?php if($launchheader) { ?>
<?php $launchheader = ($postcustom['_optthemes_pageheaderurl']) ? stripslashes($postcustom['_optthemes_pageheaderurl'][0]) : $launchheader; ?>
<?php $launchheaderlogo = ($postcustom['_optthemes_pagelogo']) ? stripslashes($postcustom['_optthemes_pagelogo'][0]) : $launchheaderlogo; ?>
<?php $header_fullwidth = ($postcustom['_optthemes_pageheaderurlfullwidth']) ? stripslashes($postcustom['_optthemes_pageheaderurlfullwidth'][0]) : $header_fullwidth; ?>
<?php $header_height = ($postcustom['_optthemes_pageheader_height']) ? stripslashes($postcustom['_optthemes_pageheader_height'][0]) : $header_height; ?>
<?php $logo_align = ($postcustom['_optthemes_pagelogo_align']) ? stripslashes($postcustom['_optthemes_pagelogo_align'][0]) : $logo_align; ?>
<style>
#launchheader{<?php echo ($header_height) ? "height:".$header_height."px" : ""; ?>;background-image:url(<?php echo $launchheader; ?>);margin:0px auto;}
.launchheaderlogo{background-position:<?php echo $logo_align; ?> center;background-image:url(<?php echo $launchheaderlogo; ?>);<?php echo ($header_height) ? "height:".$header_height."px" : ""; ?>;width:977px;background-repeat:no-repeat;}
#headertext{<?php echo ($header_height) ? "line-height:".$header_height."px" : ""; ?>;text-align:center;width:977px;<?php echo ($header_height) ? "height:".$header_height."px" : ""; ?>;font-size:<?php echo ($postcustom['_optthemes_headertextsize']) ? $postcustom['_optthemes_headertextsize'][0].'px' : '48px'; ?>;letter-spacing:-2px;font-weight:normal;}
#headerfullwidth{<?php echo ($header_fullwidth) ? "background-image:url(".$header_fullwidth.");" : ""; ?>margin:0px auto;}
<?php if($postcustom['_optthemes_shownavbar']) { ?>
#membersnavbar{<?php echo ($squeezepagenavbarheight) ? 'height:'.$squeezepagenavbarheight.'px' : ""; ?>;<?php echo ($squeezepagenavbaralignment) ? 'text-align:'.stripslashes($squeezepagenavbaralignment).';' : ""; ?>}
#membersnavbarbk{
background: #<?php echo ($squeezepagenavbarmainbggradienttopcolor) ? $squeezepagenavbarmainbggradienttopcolor : ""; ?>;
background-image: -moz-linear-gradient(100% 100% 90deg, #<?php echo ($squeezepagenavbarmainbggradientbotcolor) ? $squeezepagenavbarmainbggradientbotcolor : ""; ?>, #<?php echo ($squeezepagenavbarmainbggradienttopcolor) ? $squeezepagenavbarmainbggradienttopcolor : ""; ?>);
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#<?php echo ($squeezepagenavbarmainbggradienttopcolor) ? $squeezepagenavbarmainbggradienttopcolor : ""; ?>), to(#<?php echo ($squeezepagenavbarmainbggradientbotcolor) ? $squeezepagenavbarmainbggradientbotcolor : ""; ?>));
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#<?php echo ($squeezepagenavbarmainbggradienttopcolor) ? $squeezepagenavbarmainbggradienttopcolor : ""; ?>, endColorstr=#<?php echo ($squeezepagenavbarmainbggradientbotcolor) ? $squeezepagenavbarmainbggradientbotcolor : ""; ?>);
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#<?php echo ($squeezepagenavbarmainbggradienttopcolor) ? $squeezepagenavbarmainbggradienttopcolor : ""; ?>, endColorstr=#<?php echo ($squeezepagenavbarmainbggradientbotcolor) ? $squeezepagenavbarmainbggradientbotcolor : ""; ?>)";
border-bottom:<?php echo ($squeezepagenavbarbottomlinethickness) ? $squeezepagenavbarbottomlinethickness : ""; ?>px solid #<?php echo ($squeezepagenavbarbottomlinecolor) ? $squeezepagenavbarbottomlinecolor : ""; ?>;<?php echo ($squeezepagenavbarheight) ? 'height:'.$squeezepagenavbarheight.'px' : ""; ?>;
}
#access a {color:#<?php echo ($squeezepagenavbartextcolor) ? $squeezepagenavbartextcolor : ""; ?>;text-shadow:0 1px 0 #<?php echo ($squeezepagenavbartextshadow) ? $squeezepagenavbartextshadow : ""; ?>;<?php echo ($squeezepagenavbarfontw8) ? 'font-weight:'.$squeezepagenavbarfontw8 : ""; ?>;<?php echo ($squeezepagenavbarheight) ? 'line-height:'.$squeezepagenavbarheight.'px' : ""; ?>;}
#access li:hover > a,
#access ul ul :hover > a {
background: #<?php echo ($squeezepagenavbarmainbggradientbotcolor) ? $squeezepagenavbarmainbggradientbotcolor : ""; ?>;
color: #<?php echo ($squeezepagenavbartexthovercolor) ? $squeezepagenavbartexthovercolor : ""; ?>;
background-image: -moz-linear-gradient(100% 100% 90deg, #<?php echo ($squeezepagenavbarmainbggradienthoverbotcolor) ? $squeezepagenavbarmainbggradienthoverbotcolor : ""; ?>, #<?php echo ($squeezepagenavbarmainbggradienthovertopcolor) ? $squeezepagenavbarmainbggradienthovertopcolor : ""; ?>);
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#<?php echo ($squeezepagenavbarmainbggradienthovertopcolor) ? $squeezepagenavbarmainbggradienthovertopcolor : ""; ?>), to(#<?php echo ($squeezepagenavbarmainbggradienthoverbotcolor) ? $squeezepagenavbarmainbggradienthoverbotcolor : ""; ?>));
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#<?php echo ($squeezepagenavbarmainbggradienthovertopcolor) ? $squeezepagenavbarmainbggradienthovertopcolor : ""; ?>, endColorstr=#<?php echo ($squeezepagenavbarmainbggradienthoverbotcolor) ? $squeezepagenavbarmainbggradienthoverbotcolor : ""; ?>);
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#<?php echo ($squeezepagenavbarmainbggradienthovertopcolor) ? $squeezepagenavbarmainbggradienthovertopcolor : ""; ?>, endColorstr=#<?php echo ($squeezepagenavbarmainbggradienthoverbotcolor) ? $squeezepagenavbarmainbggradienthoverbotcolor : ""; ?>)";
text-shadow:0 1px 0 #<?php echo ($squeezepagenavbartexthovercolorshadow) ? $squeezepagenavbartexthovercolorshadow : ""; ?>;
font-size:<?php echo ($squeezepagenavbarfontsize) ? $squeezepagenavbarfontsize : ""; ?>px;
}
#access ul ul a {
background:#<?php echo ($squeezepagenavbarsubbggradientbotcolor) ? $squeezepagenavbarsubbggradientbotcolor : ""; ?>;
color: #<?php echo ($squeezepagenavbarsubtextcolor) ? $squeezepagenavbarsubtextcolor : ""; ?>;
background-image: -moz-linear-gradient(100% 100% 90deg, #<?php echo ($squeezepagenavbarsubbggradientbotcolor) ? $squeezepagenavbarsubbggradientbotcolor : ""; ?>, #<?php echo ($squeezepagenavbarsubbggradienttopcolor) ? $squeezepagenavbarsubbggradienttopcolor : ""; ?>);
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#<?php echo ($squeezepagenavbarsubbggradienttopcolor) ? $squeezepagenavbarsubbggradienttopcolor : ""; ?>), to(#<?php echo ($squeezepagenavbarsubbggradientbotcolor) ? $squeezepagenavbarsubbggradientbotcolor : ""; ?>));
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#<?php echo ($squeezepagenavbarsubbggradienttopcolor) ? $squeezepagenavbarsubbggradienttopcolor : ""; ?>, endColorstr=#<?php echo ($squeezepagenavbarsubbggradientbotcolor) ? $squeezepagenavbarsubbggradientbotcolor : ""; ?>);
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#<?php echo ($squeezepagenavbarsubbggradienttopcolor) ? $squeezepagenavbarsubbggradienttopcolor : ""; ?>, endColorstr=#<?php echo ($squeezepagenavbarsubbggradientbotcolor) ? $squeezepagenavbarsubbggradientbotcolor : ""; ?>)";
text-shadow:0 1px 0 #<?php echo ($squeezepagenavbarsubtextshadow) ? $squeezepagenavbarsubtextshadow : ""; ?>;
}
#access ul ul{<?php echo ($squeezepagenavbarheight) ? 'top:'.$squeezepagenavbarheight.'px' : ""; ?>}
#access .menu-header, div.menu{font-size:<?php echo ($squeezepagenavbarfontsize) ? $squeezepagenavbarfontsize : ""; ?>px}
#access ul li.current-menu-item > a{
font-size:<?php echo ($squeezepagenavbarfontsize) ? $squeezepagenavbarfontsize : ""; ?>px;
padding:0 15px;
}
#access .menu-header li, div.menu li{font-size:<?php echo ($squeezepagenavbarfontsize) ? $squeezepagenavbarfontsize : ""; ?>px;}
<?php } ?>
</style>
<?php
if($customcss) {
echo '<style>';
echo stripslashes($customcss);
echo '</style>';}
?>
<?php if($postcustom['_seo_onpagecustomcss']) {
echo '<style>';
echo stripslashes($postcustom['_seo_onpagecustomcss'][0]);
echo '</style>';}
?>
<!--CODE FOR NEW HEADER!-->
<?php if($postcustom['_optthemes_shownavbar'] && $postcustom['_optthemes_navbarposition'][0]=="Above Header") { ?>
<div id="membersnavbarbk">
<div id="membersnavbar">
<div id="access">
<?php wp_nav_menu(array('theme_location' => 'squeeze_menu', 'container_class' => 'menu-header')); ?>
</div>
</div>
</div>
<?php } ?>
<!--CODE FOR NEW HEADER!-->
<div id="headerfullwidth">
<div id="launchheader"<?php echo ($postcustom['_optthemes_showheaderhyperlink']) ? ' onclick="location.href=\''.$postcustom['_optthemes_headerhyperlink'][0].'\';" style="cursor: pointer;"' : ''; ?>>
<?php echo ($postcustom['_optthemes_showlogo']) ? '<div class="launchheaderlogo"></div>' : ''; ?>
<?php if($postcustom['_optthemes_activateheadertext']) { echo ($postcustom['_optthemes_headertext']) ? '<div id="headertext">'.$postcustom['_optthemes_headertext'][0].'</div>' : ''; } ?>
</div>
</div><!--close headerfullwidth-->
<?php } ?>
<?php } ?>
<?php if($postcustom['_optthemes_shownavbar'] && $postcustom['_optthemes_navbarposition'][0]=="Below Header") { ?>
<div id="membersnavbarbk">
<div id="membersnavbar">
<div id="access">
<?php wp_nav_menu(array('theme_location' => 'squeeze_menu', 'container_class' => 'menu-header')); ?>
</div>
</div>
</div>
<?php } ?>
<div id="wrapper">
<div id="mainouter">
<div id="mainouterbk">
<div id="main">
<div id="main-headlines">
<?php echo !empty($postcustom['_seo_activategoogleweboptimizermv']) ? '<script>utmx_section("Pre-Headline")</script>' : ''; ?><?php echo !empty($postcustom['_optthemes_preheadline']) ? '<h2 class="main-preheadline">'. stripcslashes($postcustom['_optthemes_preheadline'][0]) .'</h2>' : ""; ?><?php echo !empty($postcustom['_seo_activategoogleweboptimizermv']) ? '</noscript>' : ''; ?>
<?php echo !empty($postcustom['_seo_activategoogleweboptimizermv']) ? '<script>utmx_section("Main Headline")</script>' : ''; ?><?php echo !empty($postcustom['_optthemes_headline']) ? '<h1 class="main-headline">'. stripcslashes($postcustom['_optthemes_headline'][0]) .' </h1>' : ""; ?><?php echo !empty($postcustom['_seo_activategoogleweboptimizermv']) ? '</noscript>' : ''; ?>
<?php echo !empty($postcustom['_seo_activategoogleweboptimizermv']) ? '<script>utmx_section("Sub-Headline")</script>' : ''; ?><?php echo !empty($postcustom['_optthemes_subheadline']) ? '<h2 class="main-postheadline">'. stripcslashes($postcustom['_optthemes_subheadline'][0]) .'</h2>' : ""; ?><?php echo !empty($postcustom['_seo_activategoogleweboptimizermv']) ? '</noscript>' : ''; ?>
</div>
<?php if(!empty($postcustom['_optthemes_activatevideo'])){ ?>
<script type="text/javascript">
function show_alert() {
var msg = "<?php echo $postcustom['_optthemes_js1message'][0]; ?>";
alert(msg);
}
</script>
<div id="videocontainer">
<?php // nick 10/29/2010 ?>
<?php if($postcustom['_optthemes_externalvideo']) { // start external video ?>
<?php echo $postcustom['_optthemes_externalvideo'][0]; ?>
<?php } else { ?>
<?php if(!empty($postcustom['_optthemes_videoembedcode'])){
$videoheight = !empty($postcustom['_optthemes_videoheight']) ? stripcslashes($postcustom['_optthemes_videoheight'][0])."px" : "321px";
$videowidth = !empty($postcustom['_optthemes_videowidth']) ? stripcslashes($postcustom['_optthemes_videowidth'][0])."px" : "570px";
$myvideo = $postcustom['_optthemes_videoembedcode'][0];
$myvideochangewidth = str_replace('width=','width="'.$videowidth.'"',$myvideo);
$myvideochangeheight = str_replace('height=','height="'.$videoheight.'"',$myvideochangewidth);
echo '<div id="videobox" style="width:'.$videowidth.';height:'.$videoheight.'">';
echo stripcslashes($myvideochangeheight);
echo '</div>';
}else if(!empty($postcustom['_optthemes_videourl'])){
$videourl = !empty($postcustom['_optthemes_videourl']) ? stripcslashes($postcustom['_optthemes_videourl'][0]) : "";
$videoheight = !empty($postcustom['_optthemes_videoheight']) ? stripcslashes($postcustom['_optthemes_videoheight'][0])."px" : "321px";
$videowidth = !empty($postcustom['_optthemes_videowidth']) ? stripcslashes($postcustom['_optthemes_videowidth'][0])."px" : "570px";
if(!empty($videourl)){
echo '<div id="videobox" style="width:'.$videowidth.';height:'.$videoheight.'">';
?>
<?php $url = get_bloginfo('template_directory'); ?>
<?php $showcontrol = !empty($postcustom['_optthemes_showvideocontrolbar']) ? "over" : "none"; ?>
<?php $autoplay = !empty($postcustom['_optthemes_autoplay']) ? "true" : "false"; ?>
<style>#videocontainer{width:<?=$videowidth?>;height:<?=$videoheight?>;}
#videobox{width:<?=$videowidth?>;height:<?=$videoheight?>;}
</style>
<!--Start Player Codes-->
<?php
function isIphone() {
$agent = $_SERVER['HTTP_USER_AGENT'];
if (stristr($agent, 'iPhone') == TRUE || stristr($agent, 'iPod') == TRUE || stristr($agent, 'iPad') == TRUE) {
echo '<!--iPhone or iPod Touch detected-->';
return TRUE;
} else {
echo '<!--iPhone or iPod Touch not detected-->';
return FALSE;
}
}
?>
<?php if(isIphone()): ?>
<div id="player" style="width:<?=$videowidth?>;height:<?=$videoheight?>;">
<script type="text/javascript">
<!--
var myQTObject = new QTObject("", "<?php echo ($postcustom['_optthemes_mobilevideourl']) ? $postcustom['_optthemes_mobilevideourl'][0] : ''; ?>", "<?=$videowidth?>", "<?=$videoheight?>");
myQTObject.addParam("href","<?php echo ($postcustom['_optthemes_mobilevideourl']) ? $postcustom['_optthemes_mobilevideourl'][0] : ''; ?>");
myQTObject.addParam("target","myself");
myQTObject.addParam("controller","false");
myQTObject.addParam("autostart","<?=$autoplay?>");
myQTObject.addParam("kioskmode","true");
myQTObject.addParam("targetcache","true");
myQTObject.addParam("scale","aspect");
myQTObject.write();
//-->
</script>
</embed>
</div>
<?php else: ?>
<script type='text/javascript' src='<?=$url?>/js/swfobject.js'></script>
<div id='mediaspace'><center>Your browser does not support Flash or does not have it installed. <a href="http://www.adobe.com/products/flashplayer/" target="_blank">Click here download Flash Now</a></center></div>
<script type='text/javascript'>
var so = new SWFObject('<?=$url?>/js/player.swf','mpl','<?=$videowidth?>','<?=$videoheight?>','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','<?=$videourl?>');
so.addVariable('image','<?php echo ($postcustom['_optthemes_videoimage1']) ? $postcustom['_optthemes_videoimage1'][0] : ''; ?>');
so.addVariable('controlbar','<?=$showcontrol?>');
so.addVariable('autostart','<?=$autoplay?>');
so.addVariable('stretching','fill');
<?php if($postcustom['_optthemes_videoplayercolor'][0]=='dark') { ?>
so.addVariable('screencolor','FFFFFF');
so.addVariable('backcolor','1b1b1b');
so.addVariable('frontcolor','FFFFFF');
so.addVariable('lightcolor','1173ba');
<?php } ?>
so.write('mediaspace');
</script>
<?php endif; ?>
<!-- This is the end of the Player Codes -->
<?php
echo '</div>';
}
}else{
$enable_jspopup = ($postcustom['_optthemes_js1message']) ? ' OnClick="show_alert()"' : '';
echo '<div style="width:100%;margin:0 auto;text-align:center;">';
echo '<img style="max-width:'.$postcustom['_optthemes_videowidth'][0].'px;max-height:'.$postcustom['_optthemes_videoheight'][0].'px;cursor:pointer;" src="'.$postcustom['_optthemes_images'][0].'" '.$enable_jspopup.'>';
echo '</div>';
}
?>
<?php } // end non-externalvideo ?>
<?php // close nick 10/29/2010 ?>
</div><!--close videocontainer-->
<?php } ?>
<!-- Start Share bar-->
<?php $thesharelink = ($postcustom['_optthemes_customshareurl'][0]!="") ? $postcustom['_optthemes_customshareurl'][0] : get_permalink($postcustom['_optthemes_page2share'][0]); ?>
<?php if($postcustom['_optthemes_activatesocialmedia']) { ?>
<div id="socialelements-media">
<div id="sharebarnew2">
<div id="sharebarnew-text"><img src="<?php echo ($postcustom['_optthemes_socialmediacalltoactiontext']) ? $templatedir.'/images/share/sharetext-'.$postcustom['_optthemes_socialmediacalltoactiontext'][0].'.png' : ''; ?>" style="border:0;"></div>
<div id="sharebarnew-fb"><?php echo ($postcustom['_optthemes_facebookshare']) ? '<a target="_blank" href="http://www.facebook.com/sharer.php?u='.$thesharelink.'&t='.$postcustom['_optthemes_facebookshare'][0].'"><img src="'.$templatedir.'/images/'.$postcustom['_optthemes_socialmeduabutton'][0].'fbsmall.png" border="0" /></a>' : ''; ?></div>
<div id="sharebarnew-twitter"><?php echo ($postcustom['_optthemes_twitterurl']) ? '<a target="_blank" href="http://twitter.com/home?status='.$postcustom['_optthemes_twitterurl'][0].' '.$thesharelink.'"><img src="'.$templatedir.'/images/'.$postcustom['_optthemes_socialmeduabutton'][0].'twittersmall.png" border="0" /></a>' : ''; ?></div>
<div class="aclear"></div>
</div><!--close sharebar outer-->
</div>
<?php } ?>
<!--End Share Bar-->
<div class="main-bottom">
<?php echo !empty($postcustom['_seo_activategoogleweboptimizermv']) ? '<script>utmx_section("Headline Below Video")</script>' : ''; ?><?php echo !empty($postcustom['_optthemes_headlinebelowvideo']) ? '<h3 class="main-bottomheadline">'.stripcslashes($postcustom['_optthemes_headlinebelowvideo'][0]).'</h3>' : ""; ?><?php echo !empty($postcustom['_seo_activategoogleweboptimizermv']) ? '</noscript>' : ''; ?>
<div id="main-bullets">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; ?>
</div>
<!--Close main-bullets-->
<!--DOUBLE OPTIN START-->
<?php if($postcustom['_optthemes_activedoubleoptin']) { ?>
<div style="width:300px;margin:0px auto;padding-bottom:15px;">
<?php echo !empty($postcustom['_seo_activategoogleweboptimizermv']) ? '<script>utmx_section("Optin Box Headline")</script>' : ''; ?><?php echo !empty($postcustom['_optthemes_sidebarheadline']) ? '<div class="sidebar-headline">'.stripcslashes($postcustom['_optthemes_sidebarheadline'][0]).'</div>' : ""?><?php echo !empty($postcustom['_seo_activategoogleweboptimizermv']) ? '</noscript>' : ''; ?>
<?php echo !empty($postcustom['_seo_activategoogleweboptimizermv']) ? '<script>utmx_section("Optin Box Text")</script>' : ''; ?><?php echo !empty($postcustom['_optthemes_sidebartext']) ? '<div class="sidebar-text">'.stripcslashes($postcustom['_optthemes_sidebartext'][0]).'</div>' : ""?><?php echo !empty($postcustom['_seo_activategoogleweboptimizermv']) ? '</noscript>' : ''; ?>
<form action="<?php echo !empty($postcustom['_optthemes_optinformurl']) ? stripcslashes($postcustom['_optthemes_optinformurl'][0]) : ""?>" method="post">
<div class="sidebar-boxes">
<?php $namefield_name = !empty($postcustom['_optthemes_optinname']) ? stripcslashes($postcustom['_optthemes_optinname'][0]) : "" ?>
<?php $emailfield_name = !empty($postcustom['_optthemes_optinemail']) ? stripcslashes($postcustom['_optthemes_optinemail'][0]) : "" ?>
<?php
$name_init = !empty($postcustom['_optthemes_optinnametext']) ? 'value="'.stripcslashes($postcustom['_optthemes_optinnametext'][0]).'" name="'.$namefield_name.'" onblur="if (this.value == \'\') {this.value = \''.stripcslashes($postcustom['_optthemes_optinnametext'][0]).'\';}" onfocus="if (this.value == \''.stripcslashes($postcustom['_optthemes_optinnametext'][0]).'\') {this.value = \'\';}"' : ' value="Enter your name..." name="'.$namefield_name.'" onblur="if (this.value == \'\') {this.value = \'Enter your name...\';}" onfocus="if (this.value == \'Enter your name...\') {this.value = \'\';}"';
$email_init = !empty($postcustom['_optthemes_optinemailtext']) ? 'value="'.stripcslashes($postcustom['_optthemes_optinemailtext'][0]).'" name="'.$emailfield_name.'" onblur="if (this.value == \'\') {this.value = \''.stripcslashes($postcustom['_optthemes_optinemailtext'][0]).'\';}" onfocus="if (this.value == \''.stripcslashes($postcustom['_optthemes_optinemailtext'][0]).'\') {this.value = \'\';}"' : ' value="Enter your email..." name="'.$emailfield_name.'" onblur="if (this.value == \'\') {this.value = \'Enter your email...\';}" onfocus="if (this.value == \'Enter your email...\') {this.value = \'\';}"';
?>
<?php echo !empty($postcustom['_optthemes_optinnameshow']) ? '<input id="'.$namefield_name.'" class="text" type="text" size="20" '.$name_init.' />' : ""; ?>
<?php echo !empty($postcustom['_optthemes_optinemailshow']) ? '<input id="'.$emailfield_name.'" class="text" type="text" size="20" '.$email_init.' />' : ""; ?>
<?php $extra = 1;
while($extra<=5) {
$value_init = !empty($postcustom['_optthemes_extra'.$extra.'value']) ? 'value="'.stripcslashes($postcustom['_optthemes_extra'.$extra.'value'][0]).'" onblur="if (this.value == \'\') {this.value = \''.stripcslashes($postcustom['_optthemes_extra'.$extra.'value'][0]).'\';}" onfocus="if (this.value == \''.stripcslashes($postcustom['_optthemes_extra'.$extra.'value'][0]).'\') {this.value = \'\';}"' : '';
echo !empty($postcustom['_optthemes_extra'.$extra.'ID']) ? '<input name="'.stripcslashes($postcustom['_optthemes_extra'.$extra.'ID'][0]).'" id="'.stripcslashes($postcustom['_optthemes_extra'.$extra.'ID'][0]).'" class="text" type="text" size="20" '.$value_init.' />' : "";
$extra++;
}
?>
</div>
<?php echo !empty($postcustom['_optthemes_webformhiddenhtml']) ? stripcslashes(eval('?>'.htmlspecialchars_decode($postcustom['_optthemes_webformhiddenhtml'][0]))) : ""; ?>
<div class="sidebar-button">
<center><input class="button1" id="submit_image_5f17aab77d6c" type="image" width="268" src="<?php echo stripcslashes($postcustom['_optthemes_buttonselect'][0]); ?>" name="submit" value="Get Instant Access"/></center>
</div>
<?php echo !empty($postcustom['_seo_activategoogleweboptimizermv']) ? '<script>utmx_section("Optin Box Spam Notice")</script>' : ''; ?><?php echo !empty($postcustom['_optthemes_spamnoticetext']) ? '<div class="sidebar-padlock">'.stripcslashes($postcustom['_optthemes_spamnoticetext'][0]).'</div>' : ""; ?><?php echo !empty($postcustom['_seo_activategoogleweboptimizermv']) ? '</noscript>' : ''; ?>
</form>
</div>
<?php } // End Active Double Optin ?>
<!--DOUBLE OPTIN END-->
<!--START Comments Section-->
<?php if($postcustom['_optthemes_activatecomments']) { ?>
<div id="launchcommentslink">
<div id="launchcommentsarrow"></div>
<?php echo ($postcustom['_optthemes_commentscalltoactiontext']) ? '<div id="launchcommentstext">'.$postcustom['_optthemes_commentscalltoactiontext'][0].'</div>' : ''; ?>
</div>
<?php } ?>
<div id="launchcommentsblock">
<?php
if($postcustom['_optthemes_activatecomments']) {
switch($postcustom['_optthemes_commentssystem'][0]) {
case "Wordpress" : { ?>
<div id="wpcomments">
<div class="commenticon"></div><div class="commenttitle"><h2><?php echo ($postcustom['_optthemes_wpcommentstitle']) ? $postcustom['_optthemes_wpcommentstitle'][0] : 'Leave A Reply'; ?> (<?php comments_number('No comments', 'One comment', '% comments'); ?> So Far)</h2></div><div class="aclear"></div><div class="aclear"></div>
<?php comments_template(); // Get wp-comments.php template ?>
</div>
<?php break; }
case "Facebook" : { ?>
<div id="fbcomments">
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="<?php echo $thesharelink; ?>" show_faces="true" send="true" width="610" font=""></fb:like>
<div id="fb-root" style="padding-top:8px;"></div><script src="http://connect.facebook.net/en_US/all.js#appId=<?php echo $facebookappid; ?>&xfbml=1"></script>
<fb:comments url="<?php echo $thesharelink; ?>" xid="<?php echo ($postcustom['_optthemes_facebookxid']) ? $postcustom['_optthemes_facebookxid'][0] : $post->ID; ?>" publish_feed="true" migrated="1" reverse="false" numposts="<?php echo ($postcustom['_optthemes_fbcommentnum']) ? $postcustom['_optthemes_fbcommentnum'][0] : '20'; ?>" width="610"></fb:comments>
</div>
<?php break; }
case "Both" : { ?>
<?php if($postcustom['_optthemes_commentsorder'][0]=="fbwp") : ?>
<div id="fbcomments">
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="<?php echo $thesharelink; ?>" show_faces="true" send="true" width="610" font=""></fb:like>
<div id="fb-root" style="padding-top:8px;"></div><script src="http://connect.facebook.net/en_US/all.js#appId=<?php echo $facebookappid; ?>&xfbml=1"></script>
<fb:comments url="<?php echo $thesharelink; ?>" xid="<?php echo ($postcustom['_optthemes_facebookxid']) ? $postcustom['_optthemes_facebookxid'][0] : $post->ID; ?>" publish_feed="true" migrated="1" reverse="false" numposts="<?php echo ($postcustom['_optthemes_fbcommentnum']) ? $postcustom['_optthemes_fbcommentnum'][0] : '20'; ?>" <?php echo ($postcustom['_optthemes_fbemailnotify']) ? 'send_notification_uid="'.$postcustom['_optthemes_fbemailnotify'][0].'" ' : ''; ?>"" width="610"></fb:comments>
</div>
<div id="wpcomments">
<div class="commenticon"></div><div class="commenttitle"><h2><?php echo ($postcustom['_optthemes_wpcommentstitle']) ? $postcustom['_optthemes_wpcommentstitle'][0] : 'Leave A Reply'; ?> (<?php comments_number('No comments', 'One comment', '% comments'); ?> So Far)</h2></div><div class="aclear"></div><div class="aclear"></div>
<?php comments_template(); // Get wp-comments.php template ?>
</div>
<?php elseif($postcustom['_optthemes_commentsorder'][0]=="wpfb") : ?>
<div id="wpcomments">
<div class="commenticon"></div><div class="commenttitle"><h2><?php echo ($postcustom['_optthemes_wpcommentstitle']) ? $postcustom['_optthemes_wpcommentstitle'][0] : 'Leave A Reply'; ?> (<?php comments_number('No comments', 'One comment', '% comments'); ?> So Far)</h2></div><div class="aclear"></div><div class="aclear"></div>
<?php comments_template(); // Get wp-comments.php template ?>
</div>
<div id="fbcomments">
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="<?php echo $thesharelink; ?>" show_faces="true" send="true" width="610" font=""></fb:like>
<div id="fb-root" style="padding-top:8px;"></div><script src="http://connect.facebook.net/en_US/all.js#appId=<?php echo $facebookappid; ?>&xfbml=1"></script>
<fb:comments url="<?php echo $thesharelink; ?>" xid="<?php echo ($postcustom['_optthemes_facebookxid']) ? $postcustom['_optthemes_facebookxid'][0] : $post->ID; ?>" publish_feed="true" migrated="1" reverse="false" numposts="<?php echo ($postcustom['_optthemes_fbcommentnum']) ? $postcustom['_optthemes_fbcommentnum'][0] : '20'; ?>" <?php echo ($postcustom['_optthemes_fbemailnotify']) ? 'send_notification_uid="'.$postcustom['_optthemes_fbemailnotify'][0].'" ' : ''; ?>"" width="610"></fb:comments>
</div>
<?php endif; ?>
<?php break; }
} //end switch
} //end if comment enabled ?>
</div>
<!--close Comments Section-->
</div><!--Close main-bottom-->
</div><!--Close main-->
<div id="sidebar">
<!--Start Custom Optin Code-->
<?php if($postcustom['_optthemes_activatecustomoptinform']) { ?>
<?php echo stripcslashes($postcustom['_optthemes_customoptincode'][0]); ?>
<?php } else { ?>
<!--Close Custom Optin Code-->
<?php if($postcustom['_optthemes_activateecover']) { // Ecover ?>
<?php echo ($postcustom['_optthemes_ecoverimageurl']) ? '<center><img src="'.$postcustom['_optthemes_ecoverimageurl'][0].'" border="0"></center>' : ''; ?>
<?php } ?>
<?php echo ($postcustom['_optthemes_activatesidebararrow']) ? '<center><img src="'.$templatedir.'/images/arrows/'.$postcustom['_optthemes_sidebararrowstyle'][0].'.gif" border="0"></center>' : ''; ?>
<?php echo !empty($postcustom['_seo_activategoogleweboptimizermv']) ? '<script>utmx_section("Optin Box Headline")</script>' : ''; ?><?php echo !empty($postcustom['_optthemes_sidebarheadline']) ? '<div class="sidebar-headline">'.stripcslashes($postcustom['_optthemes_sidebarheadline'][0]).'</div>' : ""?><?php echo !empty($postcustom['_seo_activategoogleweboptimizermv']) ? '</noscript>' : ''; ?>
<div id="sidebarbox">
<div id="sidebarboxtop"></div>
<div id="sidebarboxbk">
<?php echo !empty($postcustom['_seo_activategoogleweboptimizermv']) ? '<script>utmx_section("Optin Box Text")</script>' : ''; ?><?php echo !empty($postcustom['_optthemes_sidebartext']) ? '<div class="sidebar-text">'.stripcslashes($postcustom['_optthemes_sidebartext'][0]).'</div>' : ""?><?php echo !empty($postcustom['_seo_activategoogleweboptimizermv']) ? '</noscript>' : ''; ?>
<form action="<?php echo !empty($postcustom['_optthemes_optinformurl']) ? stripcslashes($postcustom['_optthemes_optinformurl'][0]) : ""?>" method="post">
<div class="sidebar-boxes">
<?php $namefield_name = !empty($postcustom['_optthemes_optinname']) ? stripcslashes($postcustom['_optthemes_optinname'][0]) : "" ?>
<?php $emailfield_name = !empty($postcustom['_optthemes_optinemail']) ? stripcslashes($postcustom['_optthemes_optinemail'][0]) : "" ?>
<?php // nick 10/29/2010
$name_init = !empty($postcustom['_optthemes_optinnametext']) ? 'value="'.stripcslashes($postcustom['_optthemes_optinnametext'][0]).'" name="'.$namefield_name.'" onblur="if (this.value == \'\') {this.value = \''.stripcslashes($postcustom['_optthemes_optinnametext'][0]).'\';}" onfocus="if (this.value == \''.stripcslashes($postcustom['_optthemes_optinnametext'][0]).'\') {this.value = \'\';}"' : ' value="Enter your name..." name="'.$namefield_name.'" onblur="if (this.value == \'\') {this.value = \'Enter your name...\';}" onfocus="if (this.value == \'Enter your name...\') {this.value = \'\';}"';
$email_init = !empty($postcustom['_optthemes_optinemailtext']) ? 'value="'.stripcslashes($postcustom['_optthemes_optinemailtext'][0]).'" name="'.$emailfield_name.'" onblur="if (this.value == \'\') {this.value = \''.stripcslashes($postcustom['_optthemes_optinemailtext'][0]).'\';}" onfocus="if (this.value == \''.stripcslashes($postcustom['_optthemes_optinemailtext'][0]).'\') {this.value = \'\';}"' : ' value="Enter your email..." name="'.$emailfield_name.'" onblur="if (this.value == \'\') {this.value = \'Enter your email...\';}" onfocus="if (this.value == \'Enter your email...\') {this.value = \'\';}"';
?>
<?php echo !empty($postcustom['_optthemes_optinnameshow']) ? '<input id="'.$namefield_name.'" class="text" type="text" size="20" '.$name_init.' />' : ""; ?>
<?php echo !empty($postcustom['_optthemes_optinemailshow']) ? '<input id="'.$emailfield_name.'" class="text" type="text" size="20" '.$email_init.' />' : ""; ?>
<?php $extra = 1;
while($extra<=5) {
$value_init = !empty($postcustom['_optthemes_extra'.$extra.'value']) ? 'value="'.stripcslashes($postcustom['_optthemes_extra'.$extra.'value'][0]).'" onblur="if (this.value == \'\') {this.value = \''.stripcslashes($postcustom['_optthemes_extra'.$extra.'value'][0]).'\';}" onfocus="if (this.value == \''.stripcslashes($postcustom['_optthemes_extra'.$extra.'value'][0]).'\') {this.value = \'\';}"' : '';
echo !empty($postcustom['_optthemes_extra'.$extra.'ID']) ? '<input name="'.stripcslashes($postcustom['_optthemes_extra'.$extra.'ID'][0]).'" id="'.stripcslashes($postcustom['_optthemes_extra'.$extra.'ID'][0]).'" class="text" type="text" size="20" '.$value_init.' />' : "";
$extra++;
}
?>
</div>
<?php echo !empty($postcustom['_optthemes_webformhiddenhtml']) ? stripcslashes(eval('?>'.htmlspecialchars_decode($postcustom['_optthemes_webformhiddenhtml'][0]))) : ""; ?>
<div class="sidebar-button">
<center><input class="button1" id="submit_image_5f17aab77d6c" type="image" width="268" src="<?php echo stripcslashes($postcustom['_optthemes_buttonselect'][0]); ?>" name="submit" value="Get Instant Access"/></center>
</div>
<?php echo !empty($postcustom['_seo_activategoogleweboptimizermv']) ? '<script>utmx_section("Optin Box Spam Notice")</script>' : ''; ?><?php echo !empty($postcustom['_optthemes_spamnoticetext']) ? '<div class="sidebar-padlock">'.stripcslashes($postcustom['_optthemes_spamnoticetext'][0]).'</div>' : ""; ?><?php echo !empty($postcustom['_seo_activategoogleweboptimizermv']) ? '</noscript>' : ''; ?>
</form>
</div><!--close sidebarboxbk-->
<div id="sidebarboxbottom"></div>
</div><!--close sidebarbox-->
<?php } ?>
<!--Close OptimizePress Optin Code-->
<?php if ( is_active_sidebar( 'sidebar-'.$postcustom['_optthemes_sidebarwidgettoshow'][0] ) ) : ?>
<div style="padding-left:20px;">
<?php (($postcustom['_optthemes_sidebarwidgettoshow'][0]!='0') && ($postcustom['_optthemes_sidebarwidgettoshow'][0]!='')) ? dynamic_sidebar( 'sidebar-'.$postcustom['_optthemes_sidebarwidgettoshow'][0] ) : ''; ?>
</div>
<?php endif; ?>
</div><!--close sidebar-->
<div class="aclear"></div>
</div><!--close mainouterbk-->
<div id="mainouterbottom"></div>
</div><!--Close mainouter-->
</div><!--Close wrapper-->
<?php include ("exit-redirect.php"); ?>
<?php // custom tracking code
echo ($customtrackingcodefooter) ? eval('?>'.stripcslashes(stripslashes($customtrackingcodefooter))) : ""; ?>
<?php echo ($postcustom['_seo_footertrackingjscode']) ? eval('?>'.stripcslashes($postcustom['_seo_footertrackingjscode'][0])) : ""; ?>
<?php wp_footer(); ?>
</body>
<script type="text/javascript" src="<?php echo get_bloginfo('template_directory'); ?>/js/combinebottom.js"></script>
<script type="text/javascript">
Cufon.replace('.main-preheadline', { fontFamily: '<?php echo stripcslashes($postcustom['_optthemes_preheadlinefont'][0]); ?>' });
Cufon.replace('.main-headline', { fontFamily: '<?php echo stripcslashes($postcustom['_optthemes_headlinefont'][0]); ?>' });
Cufon.replace('.main-postheadline', { fontFamily: '<?php echo stripcslashes($postcustom['_optthemes_subheadlinefont'][0]); ?>' });
Cufon.replace('.main-bottomheadline', { fontFamily: '<?php echo stripcslashes($postcustom['_optthemes_headlinebelowvideofont'][0]); ?>' });
Cufon.replace('.sidebar-headline', { fontFamily: '<?php echo stripcslashes($postcustom['_optthemes_sidebarheadlinefont'][0]); ?>' });
Cufon.replace('#headertext', {
fontFamily: '<?php echo stripcslashes($postcustom['_optthemes_headertextfont'][0]); ?>' ,
textShadow: '1px 1px #<?php echo stripcslashes($postcustom['_optthemes_headertextshadowcolor'][0]); ?>'
});
Cufon.replace('#launchcommentstext', { fontFamily: 'Hand Of Sean' });
</script>
</html>