use ms\Widget; use ms\Dashboard; use common\Image; $ID = $C[Dashboard::$ID]; $bg = ''; if($img = \common\Image::getByID($C[Dashboard::$BG])){ $bg = Image::imageResize($img[IMAGE::$URL],1920); } ?>