From 7388643a15d8b7ddb4219603ac393ca1108e4148 Mon Sep 17 00:00:00 2001 From: Krivchikov Dmitry Date: Thu, 7 Jan 2016 16:07:47 +0300 Subject: [PATCH] =?UTF-8?q?ADD=20=D0=BF=D0=BE=D0=BA=D0=B0=D0=B7=20=D0=B4?= =?UTF-8?q?=D0=BE=D0=BF.=20=D0=B8=D0=BD=D1=84=D0=BE=D1=80=D0=BC=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D0=B8=20=D0=BF=D0=BE=20=D0=BF=D0=BB=D0=B0=D1=82?= =?UTF-8?q?=D0=BD=D1=8B=D0=BC=20=D1=82=D0=BE=D1=87=D0=BA=D0=B0=D0=BC=20?= =?UTF-8?q?=D1=82=D0=BE=D0=BB=D1=8C=D0=BA=D0=BE=20=D0=BF=D0=BE=20=D0=B7?= =?UTF-8?q?=D0=B0=D0=BF=D1=80=D0=BE=D1=81=D1=83,=20=D0=BD=D0=BE=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=BA=D0=B0=20=D0=BE=D1=82=D0=BA=D0=BB=D1=8E=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE;=20=D1=80=D0=B5=D0=B3=D0=B8=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8F=20=D0=BF=D0=B5=D1=80=D0=B5=D1=85=D0=BE?= =?UTF-8?q?=D0=B4=D0=BE=D0=B2=20=D1=81=20=D0=B4=D0=BE=D0=BF.=20=D0=B8?= =?UTF-8?q?=D0=BD=D1=84=D0=BE=D1=80=D0=BC=D0=B0=D1=86=D0=B8=D0=B8=20=D1=87?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=B7=20go-away?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- classes/Helper.php | 2 +- views/point.php | 29 ++++++++++++++++++++++------- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/classes/Helper.php b/classes/Helper.php index 121b8c1..b3162d9 100644 --- a/classes/Helper.php +++ b/classes/Helper.php @@ -99,7 +99,7 @@ class Helper static function replaceUrls($string) { $pr = '((https{0,1}:\/\/[\da-z\.-]+\.[a-z]{2,6})([\/\w\?=&#%+,-]|(\.[^\s]))*\/?)'; - $rep = '$0'; + $rep = '$0'; return preg_replace($pr, $rep, $string); } diff --git a/views/point.php b/views/point.php index 5dac4fd..b82104e 100644 --- a/views/point.php +++ b/views/point.php @@ -81,13 +81,20 @@ $index = 0; Дополнительная информация: - '; - print ''.$extraParam->name.''; - print ''. Helper::replaceUrls($extraParam->value).''; - print ''; - } - ?> + '; + print ''.$extraParam->name.''; + if(false && $point->isPaid()) { + print ''; + print ''.mb_substr($extraParam->value, 0, 5, 'UTF-8').'… '; + print ''; + print ''; + } else { + print ''.Helper::replaceUrls($extraParam->value).''; + } + print ''; + } + ?> $randomPoint), true)?> +