global $SMTheme; if ( isset($_POST['ajaxpage'])&&$_POST['ajaxpage']=='1' ) { ob_start(); get_template_part('theloop'); get_template_part('navigation'); $return['content']=ob_get_contents(); ob_end_clean(); header('Content-type: application/json'); echo json_encode($return); die(); } $SMTheme->get_layout(); if (preg_match('/mobi/i', $_SERVER['HTTP_USER_AGENT'])) echo ''."\r\n"; else echo ''."\r\n"; ?>