Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach($articles as $art) {
- $z["id"] = $art["article_id"];
- $z["hd"] = FormatArticle::clean_headline($art["headline"]);
- $z["body"] = $art["normal_body"];
- $z["img"] = $art["large_image_url"];
- $z["price"] = $art["image_price"];
- $z["link"] = Article::click_url($art["article_id"], $art["image_avux_id"], PUB::DEALNEWS, "", $refcode);
- $z["short_link"] = Article::micro_url($art, PUB::DEALNEWS, "", $refcode);
- $z["hotness"] = $art["rank"];
- $z["updated"] = DateFormat::relative_date($art["latest_publish_time"], true);
- $z["timestamp"] = strtotime($art["first_publish_time"]);
- $z["feature"] = $art["feature"];
- if($z["feature"]){
- $z["body"] = strip_tags($z["body"]);
- $z["link"] = Article::mobile_url($art['article_id'], PUB::DEALNEWS, null, $refcode);
- if(strlen($z["body"]) > 250){
- $more_link = " <a href=\"{$z["link"]}\">more ...</a>";
- $z["body"] = String::html_substr($z["body"], 0, 250, true, $more_link);
- }
- }
- $ret[] = $z;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement