<div id="mainwrap"> <div id="main" class="clearfix"> <div class="content fullwidth errorpage"> <div class="postcontent"> <h2><?php if (!function_exists('icl_object_id') or ICL_LANGUAGE_CODE == $sitepress->get_default_language()) { echo pmc_stripText($pmc_data['errorpagetitle']); } else { _e('OOOPS! 404', 'wp-buler'); } ?> </h2> <div class="posttext"> <?php if (!function_exists('icl_object_id') or ICL_LANGUAGE_CODE == $sitepress->get_default_language()) { echo pmc_stripText($pmc_data['errorpage']); } else { _e('Sorry, but the page you are looking for has not been found.<br/>Try checking the URL for errors, then hit refresh.</br>Or you can simply click the icon below and go home:)', 'wp-buler'); } ?> </div> <div class="homeIcon"><a href="<?php echo home_url(); ?> "></a></div> </div> </div> </div> <!-- bottom quote --> <div class="infotextwrap"> <div class="infotext">
@media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape) { /* For portrait layouts only */ .menu > li {height:auto;padding-bottom:30px;float:left !important} .pagenav{text-align:center !important; float:right; width:100% !important;margin-bottom:62px !important; margin-right:0px !important;} .menu {margin-top:0px;display: block !important; float:right !important;} .menu { width:100% !important;text-align:center !mportant; } .fixedmenu .menu {width:100%;margin-top:0px;margin-right:20px;} .menu li li {display:block !important; } .respMenu { display:none!important; } #logo { margin-top:30px;text-align:left; width:100%; text-align:center; } .menu .pmcbig ul.sub-menu li, .menu .pmcbig ul.sub-menu li ul {max-width:135px;} .menu .current-menu-ancestor.has-sub-menu:before {display:none;} } <?php } ?> /* *********************** -------------------------------------- ------------CUSTOM CSS---------- -------------------------------------- *********************** */ <?php echo pmc_stripText($pmc_data['custom_style']);
?> <div class="homerecent SP"> <?php $currentindex = ''; if ($pc->have_posts()) { $count = 1; $countitem = 1; $countPost = 1; ?> <div class="titleborder"></div> <h3 class="titleborderh"> <?php if (!function_exists('icl_object_id') or ICL_LANGUAGE_CODE == $sitepress->get_default_language()) { echo pmc_stripText($pmc_data['translation_also_like']); } else { _e('<span>Also</span> like', 'wp-adamas'); } ?> </h3> <div id="homerecent"> <ul id="relatedSP" class="productR"> <?php while ($pc->have_posts()) { $pc->the_post(); global $product; if ($countitem == 1) { echo '<li>'; } if (has_post_thumbnail()) {
?> Atom Feed" href="<?php bloginfo('atom_url'); ?> " /> <?php if (is_singular() && get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } ?> <!-- add google analytics code --> <?php if (isset($pmc_data['google_analytics'])) { echo pmc_stripText($pmc_data['google_analytics']); } ?> <?php wp_head(); ?> <link id="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?> /css/options.css" rel="stylesheet" /> </head> <!-- start body --> <body <?php body_class(); ?> >
function pmc_portBlock($title, $number_post, $rowsB, $categories, $port_ajax) { wp_enqueue_script('pmc_bxSlider'); $rand = rand(0, 99); global $pmc_data, $sitepress; if (isset($pmc_data['home_recent_number_post'])) { $showpost = $pmc_data['home_recent_number_post']; } else { $showpost = 3; } if ($number_post) { $showpost = $number_post; } if ($title) { $title = $title; } else { $title = pmc_stripText($pmc_data['translation_port']); } if (isset($pmc_data['home_recent_number_display'])) { $rows = $pmc_data['home_recent_number_display']; } else { $rows = 3; } if ($rowsB) { $rows = $rowsB; } if (isset($categories) and count($categories) > 0) { $categories = $categories; $pc = new WP_Query(array('post_type' => $pmc_data['port_slug'], 'tax_query' => array(array('taxonomy' => 'portfoliocategory', 'field' => 'id', 'terms' => $categories)), 'posts_per_page' => $number_post)); } else { $categories = ''; $pc = new WP_Query(array('post_type' => $pmc_data['port_slug'], 'posts_per_page' => $number_post)); } ?> <script type="text/javascript"> jQuery(document).ready(function(){ // Slider var $slider = jQuery('#sliderAdvertisePort').bxSlider({ controls: true, displaySlideQty: 1, default: 1000, easing : 'easeInOutQuint', prevText : '', nextText : '', pager :false }); }); </script> <?php if ($pc->have_posts()) { wp_enqueue_script('pmc_any'); wp_enqueue_script('pmc_any_fx'); wp_enqueue_script('pmc_any_video'); ?> <div class="homerecent"> <div class="homerecentInner"> <div id = "showpost-<?php echo $pmc_data['port_slug']; ?> -<?php echo $rand; ?> "> <div class="showpostload"><div class="loading"></div></div> <div class = "closehomeshow-<?php echo $pmc_data['port_slug']; ?> port closeajax"><i class="icon-remove"></i></div> <div class="showpostpostcontent"></div> </div> <div class="titlebordrtext"><h2 class="titleborderh2"><?php echo $title; ?> </h2></div> <div class="titleborderOut"><div class="titleborder"></div></div> <ul id="sliderAdvertisePort" class="sliderAdvertisePort"> <?php $currentindex = ''; $count = 1; $countitem = 1; $type = $pmc_data['port_slug']; ?> <?php while ($pc->have_posts()) { $pc->the_post(); if ($countitem == 1) { echo '<li>'; } $full_image = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'homePort', false); $catType = 'portfoliocategory'; //category $categoryIn = get_the_term_list(get_the_ID(), $catType, '', ', ', ''); $category = explode(',', $categoryIn); //end category if (has_post_thumbnail()) { $image = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'homePort', false); $image = $image[0]; $imagefull = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'full', false); $imagefull = $imagefull[0]; } else { $image = get_template_directory_uri() . '/images/placeholder-portfolio-home.png'; } if ($count != 3) { echo '<div class="one_third" >'; } else { echo '<div class="one_third last" >'; $count = 0; } ?> <?php if ($port_ajax == 'true') { ?> <div class="click" id="<?php echo $type; ?> _<?php echo get_the_id(); ?> _<?php echo $rand; ?> "> <?php } ?> <?php if ($port_ajax != 'true') { ?> <a href = "<?php echo $imagefull; ?> " title="<?php echo esc_attr(get_the_title(get_the_id())); ?> " rel="lightbox" > <?php } ?> <div class="recentimage"> <div class="overdefult"> <div class="portIcon"></div> </div> <div class="image"> <div class="loading"></div> <img class="portfolio-home-image" src="<?php echo $image; ?> " alt="<?php the_title(); ?> "> </div> </div> <?php if ($port_ajax != 'true') { ?> </a> <?php } ?> <div class="recentdescription"> <?php if ($port_ajax != 'true') { ?> <a href="<?php echo get_permalink(get_the_id()); ?> "> <?php } ?> <h3><?php $title = the_title('', '', FALSE); echo substr($title, 0, 23); if (strlen($title) > 23) { echo '...'; } ?> </h3> <?php if ($port_ajax != 'true') { ?> </a> <?php } ?> <div class="recentdescription-text"><?php echo shortcontent("[", "]", "", get_the_content(), 90); ?> </div> <?php if ($port_ajax != 'true') { ?> <div class="recentdescription-text"><a href="<?php echo get_permalink(get_the_id()); ?> "><?php echo pmc_translation('translation_morelinkblog', 'Read more about this...'); ?> </a></div> <?php } ?> </div> <?php if ($port_ajax == 'true') { ?> </div> <?php } ?> </div> <?php $count++; if ($countitem == $rows) { $countitem = 0; ?> </li> <?php } $countitem++; } wp_reset_query(); ?> </ul> </div> </div> <?php } ?> <div class="clear"></div> <?php }
</div> <?php } } else { ?> <?php } ?> <div class="portfolio"> <h3><?php if (!function_exists('icl_object_id') or ICL_LANGUAGE_CODE == $sitepress->get_default_language()) { echo pmc_stripText($pmc_data['port_project_related']); } else { _e('Related <span>project</span>', 'wp-buler'); } ?> </h3> <div class="titleborder"></div> <div id="portitems4"> <?php pmc_portfolio('port3', 3, 'port', 3, ''); ?> </div> </div>
</div> </div> </div> <!-- footer bar at the bootom--> <div id="footerbwrap"> <div id="footerb"> <div class="lowerfooter"> <div class="footernav"> <?php pmc_socialLink(); ?> </div> <div class="copyright"> <?php if (!function_exists('icl_object_id') or ICL_LANGUAGE_CODE == $sitepress->get_default_language()) { echo pmc_stripText($pmc_data['copyright']); } else { _e('© 2011 All rights reserved. ', 'wp-buler'); } ?> </div> </div> </div> </div> </div> </footer> <script type="text/javascript" > jQuery(document).ready(function(){jQuery("a[rel^='lightbox']").prettyPhoto({theme:'light_rounded',show_title: false, deeplinking:false,callback:function(){scroll_menu()}}); });</script> <input type="hidden" id="root" value="<?php echo get_template_directory_uri(); ?>
_e('Date of completion:', 'wp-buler'); } ?> <span class="posted-date port"><?php echo $portfolio['date'][0]; ?> </span><br> <?php } ?> <?php if ($portfolio['customer'][0] != '') { ?> <i class="icon-user"></i><?php if (!function_exists('icl_object_id') or ICL_LANGUAGE_CODE == $sitepress->get_default_language()) { echo pmc_stripText($pmc_data['port_project_client']); } else { _e('Client:', 'wp-buler'); } ?> <span class="author port"><?php echo $portfolio['customer'][0]; ?> </span><br> <?php } ?> </p> </div>
if (!function_exists('icl_object_id') or ICL_LANGUAGE_CODE == $sitepress->get_default_language()) { $comment_2 = pmc_stripText($pmc_data['translation_comment_max_comment']); } else { $comment_2 = __('Responses', 'wp-buler'); } } } $cancel_reply_link = pmc_translation('translation_comment_leave_replay_cancle', 'Cancle Replay'); if (!function_exists('icl_object_id') or ICL_LANGUAGE_CODE == $sitepress->get_default_language()) { $title_reply_to = pmc_stripText($pmc_data['translation_comment_leave_replay_to']); $label_submit = pmc_stripText($pmc_data['translation_comment_leave_replay']); $translation_comment_website = pmc_stripText($pmc_data['translation_comment_website']); $translation_comment_required = pmc_stripText($pmc_data['translation_comment_required']); $translation_comment_mail = pmc_stripText($pmc_data['translation_comment_mail']); $translation_comment_name = pmc_stripText($pmc_data['translation_comment_name']); $translation_comment_closed = pmc_stripText($pmc_data['translation_comment_closed']); } else { $title_reply_to = __('Leave a Reply to', 'wp-buler'); $label_submit = __('Leave a Reply', 'wp-buler'); $translation_comment_website = __('Website', 'wp-buler'); $translation_comment_required = __('required', 'wp-buler'); $translation_comment_mail = __('Mail', 'wp-buler'); $translation_comment_name = __('Name', 'wp-buler'); $translation_comment_closed = __('Comments are closed.', 'wp-buler'); } ?> <?php if (have_comments()) { ?>
</div> </div> <?php $posttags = wp_get_post_tags(get_the_id(), array('fields' => 'ids')); $query_custom = new WP_Query(array("tag__in" => $posttags, "orderby" => 'rand', "showposts" => 4, "post__not_in" => array(get_the_id()))); if ($query_custom->have_posts()) { ?> <div class="titleborderOut"> <div class="titleborder"></div> </div> <div class="relatedtitle"> <h3><?php if (!function_exists('icl_object_id') or ICL_LANGUAGE_CODE == $sitepress->get_default_language()) { echo pmc_stripText($pmc_data['translation_relatedpost']); } else { _e('Related post', 'wp-buler'); } ?> </h3> </div> <div class="related"> <?php $count = 0; while ($query_custom->have_posts()) { $query_custom->the_post(); if ($count != 3) { ?> <div class="one_fourth">
function pmc_add_this_script_footer() { global $pmc_data, $sitepress; if (!function_exists('icl_object_id') or ICL_LANGUAGE_CODE == $sitepress->get_default_language()) { $search = pmc_stripText($pmc_data['translation_enter_search']); } else { $search = __('Enter search...', 'wp-buler'); } ?> <script> jQuery(document).ready(function(){ jQuery('.searchform #s').val('<?php echo $search; ?> '); jQuery('.searchform #s').focus(function() { jQuery('.searchform #s').val(''); }); jQuery('.searchform #s').focusout(function() { jQuery('.searchform #s').val('<?php echo $search; ?> '); }); }); </script> <?php }