defauault banner
This commit is contained in:
@@ -58,6 +58,13 @@ class ResultFormatter extends Model
|
||||
}
|
||||
return $job_description;
|
||||
}
|
||||
|
||||
private function fixEmptyBanner($banner_str){
|
||||
if (trim($banner_str)==''){
|
||||
$banner_str = 'default.jpg';
|
||||
}
|
||||
return $banner_str;
|
||||
}
|
||||
public function fixtags($text){
|
||||
$text = htmlspecialchars($text);
|
||||
$text = preg_replace("/=/", "=\"\"", $text);
|
||||
@@ -148,7 +155,7 @@ class ResultFormatter extends Model
|
||||
"description" => $out["description_${key}"],
|
||||
"title" => $out["title_${key}"],
|
||||
"pref_id" => $out["pref_id_${key}"],
|
||||
"banner" => $out["banner_${key}"],
|
||||
"banner" => $this->fixEmptyBanner( $out["banner_${key}"]),
|
||||
"pref_value" => $out[$pref_value_key],
|
||||
);
|
||||
}
|
||||
@@ -313,7 +320,7 @@ class ResultFormatter extends Model
|
||||
"blog_id" => $out["blog_id_${key}"],
|
||||
"card_icon" => $out["card_icon_${key}"],
|
||||
"offer_id" => $out["offer_id_${key}"],
|
||||
"banner" => $out["banner_${key}"],
|
||||
"banner" => $this->fixEmptyBanner( $out["banner_${key}"]),
|
||||
"banner_location" => $out["banner_location_${key}"],
|
||||
"link_path" => $out["link_path_${key}"],
|
||||
"button_text" => $out["button_text_${key}"],
|
||||
@@ -538,7 +545,7 @@ class ResultFormatter extends Model
|
||||
'job_country' => $out["job_country_${key}"],
|
||||
'currency' => $out["currency_${key}"],
|
||||
'currency_code' => $out["currency_code_${key}"],
|
||||
"banner" => $out["banner_${key}"],
|
||||
"banner" => $this->fixEmptyBanner( $out["banner_${key}"]),
|
||||
'interest_count' => $out["${$int_c}"] ?? 0,
|
||||
'category' => $this->dummyGetCategory( $cateG )
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user