Спасибо огромное! Я премного признателен!
P.S. для тех кто в танке как почти что и я:
Вариант изначальный:
foreach ($results as $result) {
if ($result['image']) {
$image = $this->model_tool_image->resize($result['image'], 150, 150);
} else {
$image = FALSE;
}
$this->data['news'][] = array(
'title' => $result['title'],
'date' => date($this->language->get('date_format_short'), strtotime($result['date_added'])),
'description' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, $chars),
'href' => $this->url->link('information/news', 'news_id=' . $result['news_id']),
'thumb' => $image
);
}
Вариант итоговый:
foreach ($results as $result) {
if ($result['image']) {
$image = $this->model_tool_image->resize($result['image'], 150, 150);
} else {
$image = FALSE;
}
$replace = array(
'January'=>'Января',
'February'=>'Февраля',
'March'=>'Марта',
'April'=>'Апреля',
'May'=>'Мая',
'June'=>'Июня',
'July'=>'Июля',
'August'=>'Августа',
'September'=>'Сентября',
'October'=>'Октября',
'November'=>'Ноября',
'December'=>'Декабря'
);
$this->data['news'][] = array(
'title' => $result['title'],
'date' => strtr(date($this->language->get('date_format_short'), strtotime($result['date_added'])), $replace),
'description' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, $chars),
'href' => $this->url->link('information/news', 'news_id=' . $result['news_id']),
'thumb' => $image
);
}