include 'db.php'; function prepare_articles_list($row) { $main_img_path = "393x213"; $thumb_img_path = "150x81"; $image = "https://images.alarab.com/data/news/{$row['picPath']}/{$row['picture']}?auto_optimize=high&aspect_ratio=15:8"; $thumb = "https://images.alarab.com/data/news/{$row['picPath']}/{$row['picture']}?auto_optimize=high&aspect_ratio=15:8"; $imagehead = "https://images.alarab.com/data/news{$row['picPath']}{$row['picture']}?auto_optimize=high&aspect_ratio=16:9"; $fullscreenimage = "https://images.alarab.com/data/news{$row['picPath']}{$row['picture']}"; $image = str_replace("//", "/", $image); $image = str_replace(":/", "://", $image); $thumb = str_replace("//", "/", $thumb); $thumb = str_replace(":/", "://", $thumb); if (!empty($row['fData'])) { $story = $row['fData']; $story = preg_replace("/
]*>(?:\s| )*<\/p>/", '', $story);
$story = str_replace("", "", $story);
$story = str_replace("", "", $story);
$story = str_replace('', "", $story);
$story = str_replace('.jpg', '.jpg?auto_optimize=high', $story);
$story = str_replace('.jpeg', '.jpeg?auto_optimize=high', $story);
$story = str_replace(" ", "", $story);
$story = str_replace("
", "", $newhtml[$i]); $re_arr_html[$i] = str_replace("
", "", $re_arr_html[$i]); $re_arr_html[$i] = strip_tags( $re_arr_html[$i], '