> <?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?> '; } if($xDBArr[6]=="") { $xTSpeed ='3000'; }else { $xTSpeed = $xDBArr[6]."000"; } ?>
$xDBArr[0] ); $attachments = get_posts($args); 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,600)."..."; $xContent = __(htmlentities($xContent,ENT_QUOTES)."..."); $xContentB = $attachment->post_content; $xURL = get_permalink($attachment->ID); $xPicture = get_bloginfo('stylesheet_directory')."/images/pic.jpg"; $xStart = 0; $xContentB="xxx".$xContentB; $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); if(strpos($xPicture, get_bloginfo('url'))!=FALSE) { $xPicture = $wud['basedir'].'/scripts/timthumb.php?w=320&h=246&src='.$xPicture; }else { $xPicture = $xPicture; } }else { } ?>
pic