response->format = \yii\web\Response::FORMAT_RAW;
?>
' . PHP_EOL ?>
]]>
= Html::encode($channel['link']); ?>
]]>
= $channel['language']; ?>
https://www.amic.ru/img/amic-logo.svg
https://www.amic.ru
Новости Алтайского края
-
= rtrim(Html::encode($channel['link']),'/'); ?>= Html::encode($item['url']); ?>
= rtrim(Html::encode($channel['link']),'/'); ?>= Html::encode($item['url']); ?>
= date( "r", strtotime( $item['updated_at'] ) ); ?>
]]>
]]>
= ($item['description']) ? $item['description'] : ''; ?>
= $item['newscontent']; ?>
]]>
$r = explode(".", $item['image']);
if( is_array($r) ){
if( array_pop($r) == 'webp' ){
$mtype = "image/webp";
}else{
$mtype = "image/jpeg";
}
}
?>
preg_match_all('/src="([^"]+\.(jpg|png)).*"/i', $item['content'], $ax );
foreach ( $ax[1] as $aa ){
if( !preg_match( "/(\/manager\/|small)/", $aa) ){
$r = explode(".", $aa);
if( is_array($r) ){
if( array_pop($r) == 'png' ){
$mtype = "image/png";
}else{
$mtype = "image/jpeg";
}
}
?>
}
}
?>
ИА Амител