From bb58d29fecb0fd7cd7739841135ddc5943879fd5 Mon Sep 17 00:00:00 2001 From: Krivchikov Dmitry Date: Sun, 30 Aug 2015 12:56:02 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=BB=D0=B5=D0=BD=20?= =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=BD?= =?UTF-8?q?=D1=8B=D0=B9=20=D0=B2=D0=B0=D1=80=D0=B8=D0=B0=D0=BD=D1=82=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=BB=D1=83=D1=87=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=81?= =?UTF-8?q?=D1=81=D1=8B=D0=BB=D0=BA=D0=B8=20=D0=BD=D0=B0=20=D0=BE=D1=80?= =?UTF-8?q?=D0=B8=D0=B3=D0=B8=D0=BD=D0=B0=D0=BB=D1=8C=D0=BD=D0=BE=D0=B5=20?= =?UTF-8?q?=D1=84=D0=BE=D1=82=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ground/models/Photo.php | 9 +++++++++ ground/views/point.php | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ground/models/Photo.php b/ground/models/Photo.php index 26d04fc..3446570 100644 --- a/ground/models/Photo.php +++ b/ground/models/Photo.php @@ -16,4 +16,13 @@ class Photo extends Model return new self(); } + /** + * Возвращает ссылку на исходное изображение (если она есть) + * @return type + */ + function getOriginalLink() + { + $link = $this->link; + return $link ? $link->url : ''; + } } diff --git a/ground/views/point.php b/ground/views/point.php index 6158161..a9cfaaa 100644 --- a/ground/views/point.php +++ b/ground/views/point.php @@ -45,7 +45,7 @@ $index = 0; - +