“ds_field_common_event_date asc” ,’filters’ => array( “(sm_sites:$own_site_url OR hash:$hash) ds_field_common_event_date:[NOW-1DAY TO *]”)));
$total = $data[‘total’];
$site_hash = apachesolr_site_hash();
global $base_url;
if($total > 0){
foreach($data as $k => $result){
$k = (string) $k;
if($k == ‘total’) continue;
$target = “_self”;
if($result->hash != $site_hash){ $target = “_blank”; }
echo “
echo “
if($result->ss_node_image){
echo “
\n”;
}else{
echo “
\n”;
}
echo “
“; // search-block-left
echo “
echo “
“.l(html_entity_decode($result->title, ENT_QUOTES, ‘UTF-8’), $result->url, array(‘attributes’ => array(‘target’ => $target, ‘title’ => html_entity_decode($result->title, ENT_QUOTES, ‘UTF-8’)))).”
“;
$user_name = $result->name;
if($result->ss_author_name){
$user_name = $result->ss_author_name;
}
echo “
“;
echo “
“;
echo “
if($result->site != $base_url.”/”){
$provider = ucwords(preg_replace(‘/(http:\/\/)|www.|\s|\//’, ”, $result->site));
echo “
“;
}
echo l(“read more”, $result->url, array(‘external’ => true, ‘attributes’ => array(‘target’ => $target))).”
\n”;
echo “
“; //// search-block-right
echo “
“;
echo “
“;
}
}else{ // no data
echo “
Sorry your search didn’t yield any results. Please modify your search terms
“;
}
print theme(‘pager’);
?>
“ds_field_common_event_date asc” ,’filters’ => array( “(sm_sites:$own_site_url OR hash:$hash) ds_field_common_event_date:[NOW-1DAY TO *]”)));
$total = $data[‘total’];
$site_hash = apachesolr_site_hash();
global $base_url;
if($total > 0){
foreach($data as $k => $result){
$k = (string) $k;
if($k == ‘total’) continue;
$target = “_self”;
if($result->hash != $site_hash){ $target = “_blank”; }
echo “
echo “
if($result->ss_node_image){
echo “
\n”;
}else{
echo “
\n”;
}
echo “
“; // search-block-left
echo “
echo “
“.l(html_entity_decode($result->title, ENT_QUOTES, ‘UTF-8’), $result->url, array(‘attributes’ => array(‘target’ => $target, ‘title’ => html_entity_decode($result->title, ENT_QUOTES, ‘UTF-8’)))).”
“;
$user_name = $result->name;
if($result->ss_author_name){
$user_name = $result->ss_author_name;
}
echo “
“;
echo “
“;
echo “
if($result->site != $base_url.”/”){
$provider = ucwords(preg_replace(‘/(http:\/\/)|www.|\s|\//’, ”, $result->site));
echo “
“;
}
echo l(“read more”, $result->url, array(‘external’ => true, ‘attributes’ => array(‘target’ => $target))).”
\n”;
echo “
“; //// search-block-right
echo “
“;
echo “
“;
}
}else{ // no data
echo “
Sorry your search didn’t yield any results. Please modify your search terms
“;
}
print theme(‘pager’);
?>