>
@si', // Strip out javascript
'@@siU', // Strip style tags properly
'@<[\/\!]*?[^<>]*?>@si', // Strip out HTML tags
'@@', // Strip multi-line comments including CDATA
'/\s{2,}/',
);
$xTitle = preg_replace($search, " ", $xTitle);
$xContent = preg_replace($search, " ", $xContent);
$pat[0] = "/^\s+/";
$pat[2] = "/\s+\$/";
$rep[0] = "";
$rep[2] = " ";
$xContent = preg_replace($pat, $rep, trim($xContent));
$xTitle = preg_replace($pat, $rep, trim($xTitle));
$xContent = substr($xContent,0,100)."...";
$xContent = __(htmlentities($xContent,ENT_QUOTES)."...");
$xContentB = $attachment->post_content;
$xURL = get_bloginfo('url')."/".$attachment->post_name;
$xPicture = get_bloginfo('stylesheet_directory')."/images/TopImage1.jpg";
$xStart = 0;
$xStart = strpos($xContentB, "
", $xStart);
$xEnd = $xEnd - $xStart;
$xPicture = substr($xContentB, $xStart, $xEnd);
$xStart = 0;
$xStart =strpos($xPicture, 'src=', $xStart)+5;
$xEnd = strpos($xPicture, ' ', $xStart)-1;
$xEnd = $xEnd - $xStart;
$xPicture = substr($xPicture, $xStart, $xEnd);
$xPicture = get_bloginfo('stylesheet_directory').'/scripts/timthumb.php?w=293&h=182&src='.$xPicture;
}else {
}
if($ki<3) {
$xArrDef[$ki][0]=$xPicture;
$xArrDef[$ki][1]=$xTitle;
$xArrDef[$ki][2]=$xContent;
$xArrDef[$ki][3]=$xURL;
}
?>
jQuery('#xHTCBoxA img').attr('src','');
xHTCArr[] = new Array(4);
xHTCArr[][0] = '';
xHTCArr[][1] = "";
xHTCArr[][2] = "";
xHTCArr[][3] = "";
2) {
echo 'var xHTCk=2;';
}else if($i==2) {
echo 'var xHTCk=1;';
}else {
echo 'var xHTCk=0;';
}
?>
$xDBArr[2],
'numberposts' => $xDBArr[3]
);
$attachments = get_posts($args);
//echo "";print_r($attachments);echo "
";
$i=0;
$ki=0;
if ($attachments) {
foreach ($attachments as $attachment) {
$xURL='';
$xContent = $attachment->post_content;
$xTitle = $attachment->post_title;
$search = array('@@si', // Strip out javascript
'@@siU', // Strip style tags properly
'@<[\/\!]*?[^<>]*?>@si', // Strip out HTML tags
'@@', // Strip multi-line comments including CDATA
'/\s{2,}/',
);
$xTitle = preg_replace($search, " ", $xTitle);
$xContent = preg_replace($search, " ", $xContent);
$pat[0] = "/^\s+/";
$pat[2] = "/\s+\$/";
$rep[0] = "";
$rep[2] = " ";
$xContent = preg_replace($pat, $rep, trim($xContent));
$xTitle = preg_replace($pat, $rep, trim($xTitle));
$xContent = substr($xContent,0,800)."...";
$xContent = __(htmlentities($xContent, ENT_QUOTES)."...");
$xContentB = $attachment->post_content;
$xURL = get_bloginfo('url')."/".$attachment->post_name;
$xPicture = get_bloginfo('stylesheet_directory')."/images/TopImage1.jpg";
$xStart = 0;
$xStart = strpos($xContentB, "
", $xStart);
$xEnd = $xEnd - $xStart;
$xPicture = substr($xContentB, $xStart, $xEnd);
$xStart = 0;
$xStart =strpos($xPicture, 'src=', $xStart)+5;
$xEnd = strpos($xPicture, ' ', $xStart)-1;
$xEnd = $xEnd - $xStart;
$xPicture = substr($xPicture, $xStart, $xEnd);
$xPicture = get_bloginfo('stylesheet_directory').'/scripts/timthumb.php?w=319&h=207&src='.$xPicture;
}else {
}
if($ki==0) {
$xArrDefB[$ki][0]=$xPicture;
$xArrDefB[$ki][1]=$xTitle;
$xArrDefB[$ki][2]=$xContent;
$xArrDefB[$ki][3]=$xURL;
}
?>
xHTCCArr[]= ''+
''+
'';
var xHTCkB =0;
var xHTCBoxB =0;
>