<?php get_header(); ?>
<script type="text/javascript">
window.smallResolution = false;
$(document).ready(function() {
recheckPreloadedImages();
/* Social toolTip */
$('#social a').hover( function() {
$(this).find( '.socialname' ).stop().animate({ left: '28px', opacity: 1 }, 500, 'easeInOutExpo');
}, function() {
$(this).find( '.socialname' ).stop().animate({ left: '20px', opacity: 0 }, 500, 'easeInOutExpo');
});
/* Lock toolTip */
$('#lock_content').hover( function() {
$(this).find( '.blocktext' ).stop().animate({ right: '50px', opacity: 1 }, 500, 'easeInOutExpo');
}, function() {
$(this).find( '.blocktext' ).stop().animate({ right: '25px', opacity: 0 }, 500, 'easeInOutExpo');
});
$('ul#menulava').lavaLamp();
//$('.bg_hover').each(function(){
$('.latest-proj, .latest-blog').hover(function(){
$(this).children('.bg_hover').animate({ marginTop: '-19px'}, 100);
}, function(){
$(this).children('.bg_hover').animate({ marginTop: '0px' }, 100);
});
//});
if ( checkResolution() < 1280){
window.smallResolution = true;
}
//$('.content').height( $('.gotop').offset().top + $('.gotop').height() );
//$('.white_content').height($('.gotop').offset().top + $('.gotop').height() );
blockContent();
$('.footer a[href=#top]').click(function(){
$('html, body').animate({scrollTop:0}, 'slow');
return false;
});
window.openingRecentPosts = false;
$('.post .text a').each(function(){
$(this).click(function(){
if ($(this).parents('.post').find('.readmore_text').html() != $("#my_close_text").html())
$(this).parent().siblings('.readmore').click();
});
});
$('.readmore').each(function(){
//HOVER READMORE BEHAVIOR
$(this).children('.readmore_arrow').hover(function(){
$(this).siblings('.readmore_text').stop().animate({
'left': '0px'
}, {
duration: 300,
easing: 'easeInOutExpo'
});
});
$(this).mouseleave(function(){
$(this).children('.readmore_text').stop().animate({
'left': '89px'
},{
duration: 300,
easing: 'easeInOutExpo'
});
});
});
updateReadmoreBehavior();
});
</script>
<!-- HELPERS TO THE LAYOUTS -->
<script type="text/javascript">
/*
jQuery(document).ready(function(){
//$('#dragger_container').height($(window).height());
$(document).mousemove(function(e){
$('#status').html(e.pageY);
var isso = $(window).height()-$('#dragger').height()-20;
$('#status').append('<p style="color:green;">'+$('#dragger').css('top')+'</p>');
//if ( e.pageY > ($(window).height()-$('#dragger').height()) && window.dragging ){
if ( (parseInt($('#dragger').css('top')) > isso || parseInt($('#dragger').css('top')) < 0 ) && window.dragging ){
$('#status').append('<p style="color:red;">mouse fucked up</p>');
$('#dragger').mouseup();
$('#dragger').css('top',$(window).height()-$('#dragger').height()-20);
}
});
});
*/
</script>
</head>
<body onload="window.monitor = setInterval('monitorPercent()',1);">
<?php
$orderby="";
$category="";
$pag = 1;
if (isset($_GET['paged'])) $pag = $_GET['paged'];
$pageURL = 'http';
if (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
$pagina = explode('/page/', $pageURL);
$categoryURL = $pagina[0];
if(isset($pagina[1])) $pagina = explode ('/', $pagina[1]);
if ($pagina[0]) $pag = $pagina[0];
if ( (int)($pag) == 0 ) $pag = 1;
?>
<div style="display:none;" id="loader-startPage"><?php echo $paged; ?></div>
<div style="display:none;" id="loader-maxPages"><?php if(isset($max)) echo $max; ?></div>
<div style="display:none;" id="loader-nextLink"><?php if(isset($max)) echo next_posts($max, false); ?></div>
<div style="display:none;" id="reading_option"><?php if(isset($reading_option)) echo $reading_option; ?></div>
<div id="status" style="display:none; position: fixed; width: 150px; height: 30px; font-size: 30px; color: white;background: black; top: 0; right: 0; z-index: 99999999;">0</div>
<div id="percent" style="display:none; position: fixed; width: 150px; height: 30px; font-size: 30px; color: #ffcc33;background: black; top: 150px; right: 0; z-index: 99999999;">0</div>
<input type="text" id="inputHeight" style=" display:none; position: fixed; width: 150px; height: 30px; font-size: 30px; color: white; background: black; top: 250px; right: 0; z-index: 99999999;" value="0" />
<div id="templatepath" style="display:none;"><?php echo get_template_directory_uri()."/"; ?></div>
<div id="everything" style="position: relative;">
<div id="wrapper" width="70%">
<div id="gogotop" onclick="gogotop();" style="visibility: hidden;"></div>
<div class="viewport">
<div class="overview">
<!-- start content white -->
<div id="content">
<!-- <div id="slider-vertical" style="height: 150px; position: relative; float: right;"></div> -->
<div class="pattern_left" style="
<?php if(get_option(DESIGNARE_SHORTNAME."_vertical_lines_type") == "color") echo "background: #" . get_option(DESIGNARE_SHORTNAME."_vertical_lines_color") . ";"; ?>
<?php if(get_option(DESIGNARE_SHORTNAME."_vertical_lines_type") == "pattern"){
if(get_option(DESIGNARE_SHORTNAME."_vertical_lines_custom_pattern"))
echo "background: url('" . get_option(DESIGNARE_SHORTNAME."_vertical_lines_custom_pattern") . "') 0 0 repeat;";
else
echo "background: url('" . DESIGNARE_PATTERNS_URL . get_option(DESIGNARE_SHORTNAME."_vertical_lines_pattern") . "') 0 0 repeat;";
} ?>
"></div>
<div class="pattern_right" style="
<?php if(get_option(DESIGNARE_SHORTNAME."_vertical_lines_type") == "color") echo "background: #" . get_option(DESIGNARE_SHORTNAME."_vertical_lines_color") . ";"; ?>
<?php if(get_option(DESIGNARE_SHORTNAME."_vertical_lines_type") == "pattern"){
if(get_option(DESIGNARE_SHORTNAME."_vertical_lines_custom_pattern"))
echo "background: url('" . get_option(DESIGNARE_SHORTNAME."_vertical_lines_custom_pattern") . "') 0 0 repeat;";
else
echo "background: url('" . DESIGNARE_PATTERNS_URL . get_option(DESIGNARE_SHORTNAME."_vertical_lines_pattern") . "') 0 0 repeat;";
} ?>
"></div>
<div class="white_content" style="
<?php if(get_option(DESIGNARE_SHORTNAME."_body_type") == "none") echo "background: none;"; ?>
<?php if(get_option(DESIGNARE_SHORTNAME."_body_type") == "color") echo "background: #" . get_option(DESIGNARE_SHORTNAME."_body_color") . ";"; ?>
<?php if(get_option(DESIGNARE_SHORTNAME."_body_type") == "pattern"){
if(get_option(DESIGNARE_SHORTNAME."_custom_body_pattern"))
echo "background: url('" . get_option(DESIGNARE_SHORTNAME."_custom_body_pattern") . "') 0 0 repeat;";
else
echo "background: url('" . DESIGNARE_PATTERNS_URL . get_option(DESIGNARE_SHORTNAME."_body_pattern") . "') 0 0 repeat;";
} ?>
">
<div id="top"></div>
<div class="header" style="
<?php if(get_option(DESIGNARE_SHORTNAME."_header_type") == "none") echo "background: none;"; ?>
<?php if(get_option(DESIGNARE_SHORTNAME."_header_type") == "color") echo "background: #" . get_option(DESIGNARE_SHORTNAME."_header_color") . ";"; ?>
<?php if(get_option(DESIGNARE_SHORTNAME."_header_type") == "image") echo "background: url('" . get_option(DESIGNARE_SHORTNAME."_header_image") . "') 0 0 no-repeat; background-size: 100% 100%;"; ?>
<?php if(get_option(DESIGNARE_SHORTNAME."_header_type") == "pattern"){
if(get_option(DESIGNARE_SHORTNAME."_header_custom_pattern"))
echo "background: url('" . get_option(DESIGNARE_SHORTNAME."_header_custom_pattern") . "') 0 0 repeat;";
else
echo "background: url('" . DESIGNARE_PATTERNS_URL . get_option(DESIGNARE_SHORTNAME."_header_pattern") . "') 0 0 repeat;";
} ?>
">
<div class="top_bar" style="
<?php if(get_option(DESIGNARE_SHORTNAME."_top_line_type") == "color") echo "background: #" . get_option(DESIGNARE_SHORTNAME."_top_line_color") . ";"; ?>
<?php if(get_option(DESIGNARE_SHORTNAME."_top_line_type") == "pattern"){
if(get_option(DESIGNARE_SHORTNAME."_top_line_custom_pattern"))
echo "background: url('" . get_option(DESIGNARE_SHORTNAME."_top_line_custom_pattern") . "') 0 0 repeat;";
else
echo "background: url('" . DESIGNARE_PATTERNS_URL . get_option(DESIGNARE_SHORTNAME."_top_line_pattern") . "') 0 0 repeat;";
} ?>
"></div>
<div class="social" id="social">
<ul>
<?php
$column = 0;
$class = "";
if(get_option(DESIGNARE_SHORTNAME."_social_facebook")) {
echo '<li><a href="' . get_option(DESIGNARE_SHORTNAME."_social_facebook") . '" target="_blank" class="facebook" title=""><span class="socialname">Facebook<span class="arrow"></span></span></a></li>';
$column++;
}
if(get_option(DESIGNARE_SHORTNAME."_social_twitter")) {
echo '<li><a href="' . get_option(DESIGNARE_SHORTNAME."_social_twitter") . '" target="_blank" class="twitter" title=""><span class="socialname">Twitter<span class="arrow"></span></span></a></li>';
$column++;
}
if(get_option(DESIGNARE_SHORTNAME."_social_deviantart")) {
echo '<li><a href="' . get_option(DESIGNARE_SHORTNAME."_social_deviantart") . '" target="_blank" class="deviantart" title=""><span class="socialname">DeviantArt<span class="arrow"></span></span></a></li>';
$column++;
}
if(get_option(DESIGNARE_SHORTNAME."_social_forrst")) {
echo '<li><a href="' . get_option(DESIGNARE_SHORTNAME."_social_forrst") . '" target="_blank" class="forrst" title=""><span class="socialname">Forrst<span class="arrow"></span></span></a></li>';
$column++;
}
if(get_option(DESIGNARE_SHORTNAME."_social_stumble")) {
echo '<li><a href="' . get_option(DESIGNARE_SHORTNAME."_social_stumble") . '" target="_blank" class="stumble" title=""><span class="socialname">Stumble<span class="arrow"></span></span></a></li>';
$column++;
}
if(get_option(DESIGNARE_SHORTNAME."_social_picasa")) {
echo '<li><a href="' . get_option(DESIGNARE_SHORTNAME."_social_picasa") . '" target="_blank" class="picasa" title=""><span class="socialname">Picasa<span class="arrow"></span></span></a></li>';
$column++;
}
if(get_option(DESIGNARE_SHORTNAME."_social_flickr")) {
if($column >= 6 && $column < 12) $class = 'secondcol';
if($column >= 12) $class = 'thirdcol';
echo '<li class="' . $class . '"><a href="' . get_option(DESIGNARE_SHORTNAME."_social_flickr") . '" target="_blank" class="flickr" title=""><span class="socialname">Flickr<span class="arrow"></span></span></a></li>';
$column++;
}
if(get_option(DESIGNARE_SHORTNAME."_social_linkedin")) {
if($column >= 6 && $column < 12) $class = 'secondcol';
if($column >= 12) $class = 'thirdcol';
echo '<li class="' . $class . '"><a href="' . get_option(DESIGNARE_SHORTNAME."_social_linkedin") . '" target="_blank" class="linkedin" title=""><span class="socialname">LinkedIn<span class="arrow"></span></span></a></li>';
$column++;
}
if(get_option(DESIGNARE_SHORTNAME."_social_vimeo")) {
if($column >= 6 && $column < 12) $class = 'secondcol';
if($column >= 12) $class = 'thirdcol';
echo '<li class="' . $class . '"><a href="' . get_option(DESIGNARE_SHORTNAME."_social_vimeo") . '" target="_blank" class="vimeo" title=""><span class="socialname">Vimeo<span class="arrow"></span></span></a></li>';
$column++;
}
if(get_option(DESIGNARE_SHORTNAME."_social_youtube")) {
if($column >= 6 && $column < 12) $class = 'secondcol';
if($column >= 12) $class = 'thirdcol';
echo '<li class="' . $class . '"><a href="' . get_option(DESIGNARE_SHORTNAME."_social_youtube") . '" target="_blank" class="youtube" title=""><span class="socialname">Youtube<span class="arrow"></span></span></a></li>';
$column++;
}
if(get_option(DESIGNARE_SHORTNAME."_social_delicious")) {
if($column >= 6 && $column < 12) $class = 'secondcol';
if($column >= 12) $class = 'thirdcol';
echo '<li class="' . $class . '"><a href="' . get_option(DESIGNARE_SHORTNAME."_social_delicious") . '" target="_blank" class="delicious" title=""><span class="socialname">Delicious<span class="arrow"></span></span></a></li>';
$column++;
}
if(get_option(DESIGNARE_SHORTNAME."_social_skype")) {
if($column >= 6 && $column < 12) $class = 'secondcol';
if($column >= 12) $class = 'thirdcol';
echo '<li class="' . $class . '"><a href="' . get_option(DESIGNARE_SHORTNAME."_social_skype") . '" target="_blank" class="skype" title=""><span class="socialname">Skype<span class="arrow"></span></span></a></li>';
$column++;
}
if(get_option(DESIGNARE_SHORTNAME."_social_digg")) {
if($column >= 6 && $column < 12) $class = 'secondcol';
if($column >= 12) $class = 'thirdcol';
echo '<li class="' . $class . '"><a href="' . get_option(DESIGNARE_SHORTNAME."_social_digg") . '" target="_blank" class="digg" title=""><span class="socialname">Digg<span class="arrow"></span></span></a></li>';
$column++;
}
if(get_option(DESIGNARE_SHORTNAME."_social_myspace")) {
if($column >= 6 && $column < 12) $class = 'secondcol';
if($column >= 12) $class = 'thirdcol';
echo '<li class="' . $class . '"><a href="' . get_option(DESIGNARE_SHORTNAME."_social_myspace") . '" target="_blank" class="myspace" title=""><span class="socialname">MySpace<span class="arrow"></span></span></a></li>';
$column++;
}
if(get_option(DESIGNARE_SHORTNAME."_social_yahoo")) {
if($column >= 6 && $column < 12) $class = 'secondcol';
if($column >= 12) $class = 'thirdcol';
echo '<li class="' . $class . '"><a href="' . get_option(DESIGNARE_SHORTNAME."_social_yahoo") . '" target="_blank" class="yahoo" title=""><span class="socialname">Yahoo<span class="arrow"></span></span></a></li>';
$column++;
}
if(get_option(DESIGNARE_SHORTNAME."_social_rss")) {
if($column >= 6 && $column < 12) $class = 'secondcol';
if($column >= 12) $class = 'thirdcol';
echo '<li class="' . $class . '"><a href="' . get_option(DESIGNARE_SHORTNAME."_social_rss") . '" target="_blank" class="rss" title=""><span class="socialname">RSS<span class="arrow"></span></span></a></li>';
$column++;
}
if(get_option(DESIGNARE_SHORTNAME."_social_amazon")) {
if($column >= 6 && $column < 12) $class = 'secondcol';
if($column >= 12) $class = 'thirdcol';
echo '<li class="' . $class . '"><a href="' . get_option(DESIGNARE_SHORTNAME."_social_amazon") . '" target="_blank" class="amazon" title=""><span class="socialname">Amazon<span class="arrow"></span></span></a></li>';
$column++;
}
?>
</ul>
</div>
<!-- YourLogo -->
<!-- <h1><a href="#" class="logo">LOGO</a></h1> -->
<?php
if(get_option(DESIGNARE_SHORTNAME."_logo_type") == "text"){
?>
<h1 class="logo"><a href="javascript:;" onclick="loadContent($('#homeUrl').html());" style="
<?php echo "background: none;"; ?>
<?php echo "font-family: '" . get_option(DESIGNARE_SHORTNAME."_logo_font") . "';"; ?>
<?php
$styles = explode(',', get_option(DESIGNARE_SHORTNAME."_logo_font_style"));
foreach ($styles as $style){
switch($style){
case "italic":
echo "font-style: italic; ";
break;
case "bold":
echo "font-weight: bold; ";
break;
case "underline":
echo "text-decoration: underline; ";
break;
}
}
?>
<?php echo "font-size: " . str_replace(" ", "", get_option(DESIGNARE_SHORTNAME."_logo_size")) . ";"; ?>
<?php echo "color: #" . get_option(DESIGNARE_SHORTNAME."_logo_color") . ";"; ?>
"><?php echo get_option(DESIGNARE_SHORTNAME."_logo_text"); ?></a></h1>
<?php
} else {
?>
<h1 class="logo"><a href="javascript:;" onclick="loadContent($('#homeUrl').html());"><img src="<?php echo get_option(DESIGNARE_SHORTNAME."_logo_image_url"); ?>" alt="<?php _e("my logo"); ?>" title="<?php _e("my logo"); ?>" <?php if(get_option(DESIGNARE_SHORTNAME."_logo_width")) echo "width='" . get_option(DESIGNARE_SHORTNAME."_logo_width") . "'"; ?>></a></h1>
<?php
}
?>
<?php
if(get_option(DESIGNARE_SHORTNAME."_slogan") == "on"){
?>
<div class="slogan" style="
<?php echo "background: none;"; ?>
<?php echo "font-family: '" . get_option(DESIGNARE_SHORTNAME."_slogan_font") . "';"; ?>
<?php
$styles = explode(',', get_option(DESIGNARE_SHORTNAME."_slogan_font_style"));
foreach ($styles as $style){
switch($style){
case "italic":
echo "font-style: italic; ";
break;
case "bold":
echo "font-weight: bold; ";
break;
case "underline":
echo "text-decoration: underline; ";
break;
}
}
?>
<?php echo "font-size: " . str_replace(" ", "", get_option(DESIGNARE_SHORTNAME."_slogan_size")) . ";"; ?>
<?php echo "color: #" . get_option(DESIGNARE_SHORTNAME."_slogan_color") . ";"; ?>
"><?php echo get_bloginfo( 'description' ); ?></div>
<?php
}
?>
<div class="lockk">
<div class="bg-color"></div>
<div class="lock_content" id="lock_content" onclick="toggleBlock();"><span class="blocktext">Unlock Content<span class="arrow"></span></span></div>
</div>
</div>
<div id="nav" class="jqueryslidemenu">
<!--
<ul class="menu" id="menulava">
<li><a href="#">HOME</a></li>
<li><a href="#">PAGES</a></li>
<li><a href="#">PORTFOLIO</a></li>
<li><a href="#">BLOG</a></li>
<li><a href="#">BUY THEME</a></li>
</ul>
-->
<!-- Start Menu -->
<?php wp_nav_menu( array( 'theme_location' => 'Primary Navigation', 'container' => false, 'menu_class' => 'menu', 'menu_id' => 'menulava' ) ); ?>
<!-- End Menu -->
</div>
<!-- start Content -->
<div class="content">
<div class="properContent">
<div class="blog_recent_posts">
<?php if (have_posts()) : ?>
<div id="pageTop">
<div class="pageTitle" style="float:none;">
<p>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2>Archive - ‘<?php single_cat_title(); ?>’</h2>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h2>Posts Tagged ‘<?php single_tag_title(); ?>’</h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2>Archive for <?php the_time('F jS, Y'); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2>Archive for <?php the_time('F, Y'); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2>Archive for <?php the_time('Y'); ?></h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2>Author Archive</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2>Blog Archives</h2>
<?php } ?>
</p>
<p class="titleSep"></p>
</div>
</div>
<?php /* include (TEMPLATEPATH . '/inc/nav.php' ); */ ?>
<?php while (have_posts()) : the_post(); ?>
<?php global $post, $wp_query; ?>
<div id="post-<?php the_ID(); ?>" class="post">
<div class="date">
<p><?php echo get_the_date('d'); ?><br/><span><?php echo strtoupper(get_the_date('M')); ?></span></p>
</div>
<div class="text">
<a class="the_title" href="javascript:;"><?php the_title(); ?></a><br/>
<span style="float:left;"><?php comments_popup_link(get_option(DESIGNARE_SHORTNAME."_no_comments_text"), '1 '.get_option(DESIGNARE_SHORTNAME."_comment_text"), '% ' . get_option(DESIGNARE_SHORTNAME."_comments_text"), 'comments-link', ''); ?></span>
<span style="float:left; color: #CCC;"> <?php echo get_option(DESIGNARE_SHORTNAME."_in_text"); ?>: </span> <?php the_category() ?>
<span style="float:left; color: #CCC;"> <?php echo get_option(DESIGNARE_SHORTNAME."_by_text"); ?>: <a class="the_author" href="?author=<?php the_author_meta('ID'); ?>"><?php the_author_meta('nickname'); ?></a></span>
</div>
<div class="readmore">
<div class="readmore_arrow"></div>
<div class="readmore_text"><?php echo get_option(DESIGNARE_SHORTNAME."_read_more"); ?></div>
</div>
<div class="the_content" style="display:none; height:0px;">
<?php
if (wp_get_attachment_url( get_post_thumbnail_id($post->ID) )){
?>
<div class="featured-image">
<img alt="<?php the_title() ?>" class="img-loader" src="<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>">
</div>
<?php
} else {
?>
<div class="nada" style="border-bottom: 0px transparent;"></div>
<?php
}
?>
<div class="the_content_text">
<?php do_shortcode(the_content()); ?>
</div>
<div class="comments-selector">
<div class="numberOfComments selected" onclick="if (!$(this).hasClass('selected')){
if ($(this).is('.fold-post *')){
var whereTo = parseInt($('#wrapper > .viewport .overview').css('top')) * -1;
$(this).parents('.fold-post').find('#respond').animate({
'opacity':'0'
},{
duration: 200,
complete: function(){
$(this).css('display','none');
$(this).slideUp();
}
});
$(this).parents('.fold-post').find('.the_comments').delay(250).animate({
'opacity':'1'
},{
duration: 200,
complete: function(){
$(this).css('display','block');
if ($('.properContent').offset().top + $('.properContent').height() < $(window).height() - $('.footer').height()) {
wrapperScroll.tinyscrollbar_update('bottom');
} else {
wrapperScroll.tinyscrollbar_update( whereTo );
}
}
});
}
else {
$('.new .scrollbar').animate({'opacity':0}, 200);
$(this).parents('.post').find('#respond').animate({
'opacity':'0'
},{
duration: 200,
complete: function(){
$(this).css('display','none');
$(this).slideUp();
}
});
$(this).parents('.post').find('.the_comments').delay(250).animate({
'opacity':'1'
},{
duration: 200,
complete: function(){
$(this).css('display','block');
$('.new .the_comments').slideDown(200, function(){
$('.new .post-content').tinyscrollbar_update('relative');
$('.new .scrollbar').animate({'opacity':1}, 200);
});
}
});
}
$(this).addClass('selected');
$(this).siblings('.leaveComment').removeClass('selected');
}"><?php echo get_option(DESIGNARE_SHORTNAME."_comments_text"); ?> (<?php if ($post->comment_count) echo $post->comment_count; else echo "0"; ?>)</div>
<div class="leaveComment" onclick="if (!$(this).hasClass('selected')){
if ($(this).is('.fold-post *')){
var whereTo = parseInt($('#wrapper > .viewport .overview').css('top')) * -1;
$(this).parents('.fold-post').find('.the_comments').animate({
'opacity':'0'
},{
duration: 200,
easing: 'easeInOutExpo',
complete: function(){
$(this).css('display','none');
$(this).slideUp();
}
})
$elm = $(this).parents('.fold-post').find('#respond');
$(this).parents('.fold-post').find('#respond').delay(250).animate({
'opacity':'1'
},{
duration: 200,
easing: 'easeInOutExpo',
complete: function(){
$elm.css('display','block');
$elm.slideDown(200, function(){
$(this).animate({'opacity':1}, {
duration: 200,
step: function(){
if ($('.properContent').offset().top + $('.properContent').height() < $(window).height() - $('.footer').height()) {
wrapperScroll.tinyscrollbar_update('bottom');
} else {
wrapperScroll.tinyscrollbar_update( whereTo );
}
}
});
});
}
});
}
else {
$('.new .scrollbar').animate({'opacity':0}, 200);
$(this).parents('.post').find('.the_comments').animate({
'opacity':'0'
},{
duration: 200,
easing: 'easeInOutExpo',
complete: function(){
$(this).css('display','none');
$(this).slideUp();
}
})
$(this).parents('.post').find('#respond').delay(250).animate({
'opacity':'1'
},{
duration: 200,
easing: 'easeInOutExpo',
complete: function(){
$(this).css('display','block');
$(this).slideDown(200, function(){
$('.new .post-content').tinyscrollbar_update('relative');
$('.new .scrollbar').animate({'opacity':1}, 200);
});
}
});
}
$(this).addClass('selected');
$(this).siblings('.numberOfComments').removeClass('selected');
}"><?php echo get_option(DESIGNARE_SHORTNAME."_leave_comment_text"); ?></div>
<!-- FIM DE ALTERAÇÃO -->
</div>
<?php if ( comments_open() ) : ?>
<div id="respond" style=" display:none;">
<!-- <h2><?php /* comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); */ ?></h2> -->
<div class="reply-form-desc">
<?php _e("Your email address will not be published."); ?><br/>
<?php _e("Required fields are marked with *"); ?>
</div>
<div class="cancel-comment-reply">
<?php cancel_comment_reply_link(); ?>
</div>
<?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
<p style="color: #999;"><?php _e("You must be"); ?> <a style="color: #666; text-decoration: underline; " href="<?php echo wp_login_url( get_permalink() ); ?>"><?php _e("logged in"); ?></a> <?php _e("to post a comment."); ?></p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( is_user_logged_in() ) : ?>
<p style="color: #999;"><?php _e("Logged in as"); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account"><?php _e("Log out"); ?> »</a></p>
<?php else : ?>
<br/>
<div>
<label for="author"><?php echo get_option(DESIGNARE_SHORTNAME."_comment_name_text"); ?> <?php if ($req) echo "*"; ?></label><br/>
<input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" size="70" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
</div>
<div>
<label for="email"><?php echo get_option(DESIGNARE_SHORTNAME."_email_text"); ?> <?php if ($req) echo "*"; ?></label><br/>
<input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="70" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
</div>
<div>
<label for="url"><?php echo get_option(DESIGNARE_SHORTNAME."_website_text"); ?></label><br/>
<input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="70" tabindex="3" />
</div>
<?php endif; ?>
<!--<p>You can use these tags: <code><?php echo allowed_tags(); ?></code></p>-->
<div>
<label for="comment"><?php echo get_option(DESIGNARE_SHORTNAME."_your_comment_text"); ?> *</label><br/>
<textarea name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea>
</div>
<div id="engodoComments" onclick="
$.post('<?php echo get_option('siteurl'); ?>/wp-comments-post.php', $(this).parents('#commentform').serialize(), function(response){
if (response){
alert('<?php _e('Your comment was successfully sent.'); ?>');
<?php global $post; ?>
reloadComments(<?php echo $post->ID ?>);
} else $(this).parent().find('#submit').click();
});
"><?php echo get_option(DESIGNARE_SHORTNAME."_submit_comment_text"); ?></div>
<div>
<input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" style="display:none;" />
<?php comment_id_fields(); ?>
</div>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
</div>
<?php endif; ?>
<ol class="the_comments">
<?php
$args = array(
'post_id' => $post->ID,
'status' => 'approve',
'order' => 'ASC'
);
$wp_query->comments = get_comments( $args );
wp_list_comments( array('callback'=>'designaretheme_comment'));
?>
</ol>
</div>
</div>
<?php endwhile; ?>
<?php /* get_template_part('nav'); */ ?>
<div class="navigation">
<?php
if ($pag > 1){ ?>
<div class="next-posts"><a href="<?php $idx = (int)($pag)-1; echo $categoryURL . "/page/" . $idx . "/"; ?>"><?php _e('« Older Entries'); ?></a></div>
<?php }
if ($pag < $wp_query->max_num_pages){?>
<div class="prev-posts"><a href="<?php $idx = (int)($pag)+1; echo $categoryURL . "/page/" . $idx . "/"; ?>"><?php _e('Newer Entries »'); ?></a></div>
<?php }
?>
</div>
<?php /* include (TEMPLATEPATH . '/inc/nav.php' ); */ ?>
<?php else : ?>
<h2><?php echo get_option(DESIGNARE_SHORTNAME."_no_posts_available"); ?></h2>
<?php endif; ?>
</div> <!-- end blog_recent_wtv -->
</div> <!-- end of properCOntent -->
<div class="footer">
<p class="copy"><?php if (get_option(DESIGNARE_SHORTNAME."_copyrights")) echo get_option(DESIGNARE_SHORTNAME."_copyrights"); ?></p>
<a href="#" class="gotop" <?php if (get_option(DESIGNARE_SHORTNAME."_show_footer") == 'off') { ?> style="display:none" <?php } ?>></a>
<div class="footer_content" <?php if (get_option(DESIGNARE_SHORTNAME."_show_footer") == 'off') { ?> style="display:none" <?php } ?> style="
<?php if(get_option(DESIGNARE_SHORTNAME."_footer_type") == "color") echo "background: #" . get_option(DESIGNARE_SHORTNAME."_footer_color") . ";"; ?>
<?php if(get_option(DESIGNARE_SHORTNAME."_footer_type") == "pattern"){
if(get_option(DESIGNARE_SHORTNAME."_custom_footer_pattern"))
echo "background: url('" . get_option(DESIGNARE_SHORTNAME."_custom_footer_pattern") . "') 0 0 repeat;";
else
echo "background: url('" . DESIGNARE_PATTERNS_URL . get_option(DESIGNARE_SHORTNAME."_footer_pattern") . "') 0 0 repeat;";
} ?>
">
<?php
if(get_option(DESIGNARE_SHORTNAME . "_footer_number_cols") == "one"){ ?>
<div class="onecol"><?php print_sidebar('footer-one-column'); ?></div>
<?php }
if(get_option(DESIGNARE_SHORTNAME . "_footer_number_cols") == "two"){ ?>
<div class="twocol-one"><?php print_sidebar('footer-two-column-left'); ?></div>
<div class="twocol-one last"><?php print_sidebar('footer-two-column-right'); ?></div>
<?php }
if(get_option(DESIGNARE_SHORTNAME . "_footer_number_cols") == "three"){
if(get_option(DESIGNARE_SHORTNAME . "_footer_columns_order") == "one_three"){ ?>
<div class="threecol-one"><?php print_sidebar('footer-three-column-left'); ?></div>
<div class="threecol-one"><?php print_sidebar('footer-three-column-center'); ?></div>
<div class="threecol-one last"><?php print_sidebar('footer-three-column-right'); ?></div>
<?php }
if(get_option(DESIGNARE_SHORTNAME . "_footer_columns_order") == "one_two_three"){ ?>
<div class="threecol-one"><?php print_sidebar('footer-three-column-left-1_3'); ?></div>
<div class="threecol-two last"><?php print_sidebar('footer-three-column-right-2_3'); ?></div>
<?php }
if(get_option(DESIGNARE_SHORTNAME . "_footer_columns_order") == "two_one_three"){ ?>
<div class="threecol-two"><?php print_sidebar('footer-three-column-left-2_3'); ?></div>
<div class="threecol-one last"><?php print_sidebar('footer-three-column-right-1_3'); ?></div>
<?php }
}
?>
</div>
</div> <!-- fim do footer -->
</div>
</div> <!-- end of white-content -->
</div> <!-- end of content -->
<!-- <div id="dragger_container"><div id="dragger"></div></div> -->
</div>
</div>
<div class="scrollbar">
<div class="track">
<div class="thumb" style="text-align:">
<div class="up" style="position: absolute; top: 4px; width: 100%;"></div>
<div class="down" style="position: absolute; bottom: 4px; width: 100%;"></div>
</div>
</div>
</div>
</div>
<div id="bg">
<div id="next_project">
<div class="thumbs">
<a href="javascript:;" class="open_thumbs">
<span class="p_min">01</span>
<span class="bar"></span>
<span class="p_max">08</span>
</a>
<a href="javascript:;" class="toggleSlideshow play" onclick="toggleSlideshow($(this));">pause</a>
<div class="scrool_thumbs"></div>
</div>
<div class="arrows_projects">
<a href="javascript:;" onclick="clickPreviousImage($(this));" class="previous_proj disable"><</a>
<a href="javascript:;" onclick="clickNextImage($(this));" class="next_proj">></a>
</div>
<div class="info">
<a href="javascript:;" class="open_info" id="open_info">+</a>
<div class="more_info">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</div>
</div>
<div class="projectInfoContent">
<?php
$port_category = get_option('walker_main_projects_portfolio_filter');
if($port_category == 'all')
$port_category = null;
$orderby = get_option('walker_main_projects_orderby');
$ob = explode('_', $orderby);
$p_id = 0;
if(get_option(DESIGNARE_SHORTNAME . "_main_projects_first_project") != "default")
$p_id = get_option(DESIGNARE_SHORTNAME . "_main_projects_first_project");
//set the query_posts args
$args= array(
'p' => $p_id,
'posts_per_page' => 1,
'post_type' => DESIGNARE_PORTFOLIO_POST_TYPE,
'orderby' => $ob[0],
'order' => $ob[1],
'portfolio_type' => $port_category
);
$project_id = 1;
query_posts($args);
if(have_posts()) {
while (have_posts()) {
the_post();
$cat_class = "";
$cat_name = "";
$cat_type = "";
$p_type = "";
$terms = get_the_terms($post->ID, 'portfolio_category');
if ( $terms && ! is_wp_error( $terms ) ) {
foreach ( $terms as $t ) {
$cat_class .= $t->slug . " ";
$cat_name .= $t->name . ", ";
}
}
$terms2 = get_the_terms($post->ID, 'portfolio_type');
if ( $terms2 && ! is_wp_error( $terms2 ) ) {
foreach ( $terms2 as $t2 ) {
$cat_type .= $t2->name . ", ";
}
}
$totalImg = 0;
$coll = designare_get_slider_data(get_post_meta($post->ID, 'collection_value', true));
foreach($coll['posts'] as $c){
$p = get_post_meta($c->ID, 'custom_image_url');
if($totalImg == 0) $firstImg = $p[0];
$p_type = $c->post_type;
$totalImg++;
}
?>
<script type="text/javascript">
$(function(){
<?php if($p_type == "photo_collection"){ ?>
getProject(<?php echo $post->ID ?>);
<?php } else { ?>
getVideoProject(<?php echo $post->ID ?>);
<?php } ?>
});
</script>
<div class="title"><?php echo get_the_title(); ?></div>
<div id="projectScroll" class="contentContainer">
<div class="viewport">
<div class="overview">
<div class="contentBG"></div>
<div class="contentText">
<div class="specifications">
<div class="labels"> <?php _e('CATEGORY'); ?> </div>
<div class="inputs category"> <?php echo substr_replace($cat_name, '', -2); ?> </div>
<div class="labels"> <?php _e('PORTFOLIO'); ?> </div>
<div class="inputs project"> <?php echo substr_replace($cat_type, '', -2); ?> </div>
<div class="separator"></div>
</div>
<div class="projectInfo">
<?php echo do_shortcode(get_the_content()); ?>
</div>
</div>
</div>
</div>
<div class="scrollbar">
<div class="track">
<div class="thumb"></div>
</div>
</div>
</div>
<?php } } ?>
<script type="text/javascript">
<?php if ($totalImg < 10){ ?>
$('.open_thumbs .p_max').html('0'+<?php echo $totalImg; ?>);
<?php } else { ?>
$('.open_thumbs .p_max').html('<?php echo $totalImg; ?>');
<?php } ?>
</script>
</div>
</div>
<div id="next_image">
<a href="javascript:;" onclick="clickPreviousProject($(this));" class="previous_proj disable"><span class="seta"><</span> <?php _e('Previous Project'); ?></a>
<a href="javascript:;" onclick="clickNextProject($(this));" class="next_proj"><?php _e('Next Project'); ?> <span class="seta">></span></a>
<div class="img_counter" style="display:none;">
<div class="p_min">0</div>
<div class="p_max"></div>
</div>
</div>
<img src="<?php echo $firstImg; ?>" title="" id="bgimg" />
<div id="bg">
<div id="preloader" style="display:none;">
<div id="roseta_dark">
<div id="rosetagif_dark" title="loading"></div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/walker.js?version=2.0"></script>
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/jquery.hoverIntent.min.js?version=2.0"></script>
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/jqueryslidemenu.js?version=2.0"></script>
<?php get_footer(); ?>