{"id":203274,"date":"2013-11-22T18:53:03","date_gmt":"2013-11-22T14:53:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=203274"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=203274","title":{"rendered":"<span class=\"post_title\">\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f e-mail-\u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0439 \u0432 ImageCMS<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/378\/4cd\/4d0\/3784cd4d037f3447f763644d366f10ed.png\"\/><br \/>  \u0412 \u044d\u0442\u043e\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043c\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0441\u0440\u0435\u0434\u043d\u0435\u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0432\u0435\u0434\u0443\u0449\u0438\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 ImageCMS \u0410\u043d\u0434\u0440\u044e\u0448\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b \u0443\u0434\u043e\u0431\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 e-mail-\u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430. \u0421\u0430\u043c \u043e\u043d \u0442\u0435\u043f\u0435\u0440\u044c \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442, \u0447\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442, \u0430 \u0444\u0435\u044f.<\/p>\n<p>  <b><u>\u0412 \u0447\u0435\u043c \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u043b\u0430\u0441\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0434\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u043e\u0432\u043e\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430?<\/u><\/b><br \/>  \u041d\u0435\u043c\u0430\u043b\u043e \u043e\u0433\u043e\u0440\u0447\u0430\u043b\u043e, \u0447\u0442\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 e-mail \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u043d\u0435 \u0438\u043c\u0435\u043b\u0430 \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f, <b>\u0432\u0435\u0434\u044c \u044d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u043d\u0435\u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443 \u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u043b\u0438\u0448\u043d\u0435\u0433\u043e \u043a\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f.<\/b> <br \/>  \u0421\u043c\u043e\u0442\u0440\u0438\u043c-\u0441:<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<pre><code class=\"php\">\/**  * Send email to user.  *  * @param SOrders $order  * @return bool  *\/ protected function _sendMail(SOrders $order) {     \/\/Check setting to send message     if (ShopCore::app()-&gt;SSettings-&gt;ordersSendMessage == 'false')         return;     \/\/Array of parameters to send     $replaceData = array(         '%userName%' =&gt; $order-&gt;getUserFullName(),         '%userEmail%' =&gt; $order-&gt;getUserEmail(),         '%userPhone%' =&gt; $order-&gt;getUserPhone(),         '%userDeliver%' =&gt; $order-&gt;getUserDeliverTo(),         '%orderId%' =&gt; $order-&gt;getId(),         '%orderKey%' =&gt; $order-&gt;getKey(),         '%orderLink%' =&gt; shop_url('cart\/view\/' . $order-&gt;getKey()),     );      \/\/Use function encode for every element from $replaceData     $replaceData = array_map('encode', $replaceData);      \/\/Get settings for sending     $fromEmail = ShopCore::app()-&gt;SSettings-&gt;ordersSenderEmail;     $shopName = ShopCore::app()-&gt;SSettings-&gt;ordersSenderName;     $theme = ShopCore::app()-&gt;SSettings-&gt;ordersMessageTheme;     \/\/Formating message     $message = str_replace(array_keys($replaceData), $replaceData, ShopCore::app()-&gt;SSettings-&gt;ordersMessageText);      \/\/Load CodeIgniter Email library     $this-&gt;load-&gt;library('email');     $config['mailtype'] = ShopCore::app()-&gt;SSettings-&gt;ordersMessageFormat;     \/\/Initialize library configurations     $this-&gt;email-&gt;initialize($config);      \/\/Sending message\t     $this-&gt;email-&gt;from($fromEmail, $shopName);     $this-&gt;email-&gt;to($order-&gt;getUserEmail());     $this-&gt;email-&gt;subject($theme);     $this-&gt;email-&gt;message($message);     $this-&gt;email-&gt;send(); }  protected function _sendNewMail(SOrders $order) {     \/\/Check setting to send message     if (ShopCore::app()-&gt;SSettings-&gt;ordersSendMessage == 'false')         return;      \/\/Array of parameters to send     $replaceData['variables'] = array(         '%userName%' =&gt; $order-&gt;getUserFullName(),         '%userEmail%' =&gt; $order-&gt;getUserEmail(),         '%userPhone%' =&gt; $order-&gt;getUserPhone(),         '%userDeliver%' =&gt; $order-&gt;getUserDeliverTo(),         '%orderId%' =&gt; $order-&gt;getId(),         '%orderKey%' =&gt; $order-&gt;getKey(),         '%orderLink%' =&gt; shop_url('cart\/view\/' . $order-&gt;getKey()),     );      $replaceData['to'] = $order-&gt;getUserEmail();      \/\/Load CodeIgniter Email library     $this-&gt;load-&gt;library('email');      \/\/Sending message\t     $this-&gt;email-&gt;sendMail('toUserOrderNotification', $replaceData); }  <\/code><\/pre>\n<p>  <b><u>\u0427\u0442\u043e \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u043d\u044f\u043b \u0410\u043d\u0434\u0440\u044e\u0448\u0430?<\/u><\/b><\/p>\n<p>  \u0414\u043b\u044f \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u0441\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0439, \u0424\u0435\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c. \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043c\u043e\u0434\u0443\u043b\u0435\u043c \u0438\u0434\u0435\u0442 6 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432, \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0432 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441\u0430\u0439\u0442\u0430:  <\/p>\n<ol>\n<li>\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f;<\/li>\n<li>\u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u043e\u043b\u044f;<\/li>\n<li>\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u043e\u043b\u044f;<\/li>\n<li>\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u044f \u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0438 \u0437\u0430\u043a\u0430\u0437\u0430;<\/li>\n<li>\u0441\u043c\u0435\u043d\u0430 \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u0437\u0430\u043a\u0430\u0437\u0430;<\/li>\n<li>\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u043e \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0438.<\/li>\n<\/ol>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/683\/01e\/ad1\/68301ead1b945bbd93b47a012574a671.png\"\/><\/p>\n<p>  \u0411\u044b\u043b\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u044b \u043d\u0435\u0439\u043c\u0441\u043f\u0435\u0439\u0441\u044b, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434 \u0441 \u043b\u044e\u0431\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430:  <\/p>\n<pre><code class=\"php\">        namespace cmsemail\\classes; <\/code><\/pre>\n<p>  \u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u043f\u0440\u0435\u043f\u044f\u0442\u0441\u0442\u0432\u0438\u0435 \u043d\u0430 \u043f\u0443\u0442\u0438 \u043a \u0434\u043e\u0441\u0442\u0438\u0436\u0435\u043d\u0438\u044e \u0446\u0435\u043b\u0438 \u0410\u043d\u0434\u0440\u0435\u044f \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u043b\u043e\u0441\u044c \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0432 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u0434\u0430, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0430\u0439\u0442\u0438 \u0432\u0441\u0435 \u043c\u0435\u0441\u0442\u0430 \u0432 \u043a\u043e\u0434\u0435, \u0433\u0434\u0435 \u0438\u0434\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 e-mail, \u0438 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u0445 \u043d\u043e\u0432\u044b\u043c \u043c\u0435\u0442\u043e\u0434\u043e\u043c. \u041d\u0430\u0448 \u0433\u0435\u0440\u043e\u0439 \u043d\u0435 \u043e\u0442\u0447\u0430\u0438\u0432\u0430\u043b\u0441\u044f\u2026 \u0424\u0435\u044f \u0437\u0430\u0442\u043a\u043d\u0443\u043b \u0443\u0448\u0438 \u0433\u0440\u0443\u043f\u043f\u043e\u0439 Korn \u0438 \u0430\u0431\u0441\u0442\u0440\u0430\u0433\u0438\u0440\u043e\u0432\u0430\u043b \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0432\u0441\u0435\u0439 \u043b\u043e\u0433\u0438\u043a\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043f\u0438\u0441\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443 \u0432 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043c\u0435\u0442\u043e\u0434, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043f\u043e\u043b\u043e\u0442\u043d\u0435.<br \/>  \u0421\u043c\u043e\u0442\u0440\u0438\u043c-\u0441:<\/p>\n<pre><code class=\"php\">\/\/Creatind link to check for administrator $checkLink = site_url() . &quot;admin\/components\/run\/shop\/orders\/createPdf\/&quot; . trim($order-&gt;getId()); \/\/Array of parameters to send $emailData = array(     'userName' =&gt; $order-&gt;user_full_name,     'userEmail' =&gt; $order-&gt;user_email,     'userPhone' =&gt; $order-&gt;user_phone,     'userDeliver' =&gt; $order-&gt;user_deliver_to,     'orderLink' =&gt; shop_url('cart\/view\/' . $order-&gt;key),     'products' =&gt; $productsForEmail,     'deliveryPrice' =&gt; $deliveryPrice,     'checkLink' =&gt; $checkLink, );  \/\/Sending emeils \\cmsemail\\email::getInstance()-&gt;sendEmail($order-&gt;user_email, 'make_order', $emailData); <\/code><\/pre>\n<p>  \u0422\u0430\u043a \u044d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432\u043d\u0443\u0442\u0440\u0438:<\/p>\n<pre><code class=\"php\">\/**  * send email  *  * @param string $send_to - recepient email  * @param string $patern_name - email patern  name  * @param array $variables - variables to raplase in message:  *   $variables = array('$user$' =&gt; 'UserName')  * @return bool  *\/ public function sendEmail($send_to, $patern_name, $variables) {     \/\/loading CodeIgniter Email library      $this-&gt;load-&gt;library('email');      \/\/Getting settings      $patern_settings = $this-&gt;cmsemail_model-&gt;getPaternSettings($patern_name);     $default_settings = $this-&gt;cmsemail_model-&gt;getSettings();      \/\/Prepare settings into correct array for initialize library     if ($patern_settings)     {         foreach ($patern_settings as $key =&gt; $value)         {             if (!$value)             {                 if ($default_settings[$key])                 {                     $patern_settings[$key] = $default_settings[$key];                 }             }         }     }     $default_settings['type'] = strtolower($patern_settings['type']);      \/\/Initializing library settings     $this-&gt;_set_config($patern_settings);      \/\/Sending user email if active in options     if ($patern_settings['user_message_active'])     {         $this-&gt;from_email = $patern_settings['from_email'];         $this-&gt;from = $patern_settings['from'];         $this-&gt;send_to = $send_to;         $this-&gt;theme = $patern_settings['theme'];         $this-&gt;message = $this-&gt;replaceVariables($patern_settings['user_message'], $variables);         if (!$this-&gt;_sendEmail())         {             $this-&gt;errors[] = lang('User message doesnt send', 'cmsemail');         }         else         {             \/\/Registering event if success             \\CMSFactory\\Events::create()-&gt;registerEvent(                     array(                 'from' =&gt; $this-&gt;from,                 'from_email' =&gt; $this-&gt;from_email,                 'send_to' =&gt; $this-&gt;send_to,                 'theme' =&gt; $this-&gt;theme,                 'message' =&gt; $this-&gt;message                     ), 'ParentEmail:userSend');             \\CMSFactory\\Events::runFactory();         }     }      \/\/Sending administrator email if active in options     if ($patern_settings['admin_message_active'])     {         $this-&gt;from_email = $patern_settings['from_email'];         $this-&gt;from = $patern_settings['from'];          if ($patern_settings['admin_email'])         {             $this-&gt;send_to = $patern_settings['admin_email'];         }         else         {             $this-&gt;send_to = $default_settings['admin_email'];         }          $this-&gt;theme = $patern_settings['theme'];         $this-&gt;message = $this-&gt;replaceVariables($patern_settings['admin_message'], $variables);          if (!$this-&gt;_sendEmail())         {             $this-&gt;errors[] = lang('User message doesnt send', 'cmsemail');         }         else         {             \/\/Registering event if success             \\CMSFactory\\Events::create()-&gt;registerEvent(                     array(                 'from' =&gt; $this-&gt;from,                 'from_email' =&gt; $this-&gt;from_email,                 'send_to' =&gt; $this-&gt;send_to,                 'theme' =&gt; $this-&gt;theme,                 'message' =&gt; $this-&gt;message                     ), 'ParentEmail:adminSend');             \\CMSFactory\\Events::runFactory();         }     }      \/\/Returning status      if ($this-&gt;errors)     {         return FALSE;     }     else     {         return TRUE;     } }  <\/code><\/pre>\n<p>  \u0422\u0430\u043a \u0441\u0440\u0435\u0434\u043d\u0435\u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0432\u0435\u0434\u0443\u0449\u0438\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 \u0441\u0434\u0435\u043b\u0430\u043b \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0432\u0441\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. <b>\u041a\u043e\u0434\u0430 \u0441\u0442\u0430\u043b\u043e \u043c\u0435\u043d\u044c\u0448\u0435, \u043e\u043d \u0441\u0442\u0430\u043b \u0438\u0437\u044f\u0449\u043d\u0435\u0435, \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f\u043c\u0438 \u2014 \u043f\u0440\u043e\u0449\u0435. <\/b><\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/d29\/090\/fa6\/d29090fa6fe4aa0d64dd1aa73505c2cb.png\"\/><\/p>\n<p>  <b>\u041a\u0430\u043a\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0440\u0435\u0448\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b?<\/b><\/p>\n<p>  \u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0439, \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0432 \u0435\u0434\u0438\u043d\u043e\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435, \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043d\u0435\u043e\u043f\u044b\u0442\u043d\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432\u0435\u0441\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0441\u043e\u0431\u0440\u0430\u043d \u0432 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0441\u043a\u043e\u0439 \u043f\u0430\u043d\u0435\u043b\u0438 ImageCMS.<br \/>  \u041d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u044c \u043f\u0440\u0438\u0431\u043e\u0440\u043e\u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u043f\u0438\u0441\u0435\u043c, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440. <\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0438\u0441\u044c\u043c\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u043e\u043c \u0437\u0430\u043a\u0430\u0437\u0435<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/15e\/2a0\/64d\/15e2a064d663668d9fc85f9eba7cfabf.png\"\/><\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0438\u0441\u044c\u043c\u0430 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430 \u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u043e\u043c \u0437\u0430\u043a\u0430\u0437\u0435.<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/ab6\/64f\/6cb\/ab664f6cb344cf4d2f8ab82f2a580389.png\"\/><\/p>\n<p>  <b>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439?<\/b><br \/>  \u0411\u043e\u043b\u0435\u0435 \u043e\u043f\u044b\u0442\u043d\u044b\u0435 \u044e\u0437\u0435\u0440\u044b ImageCMS Shop \u043c\u043e\u0433\u0443\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0439, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443. \u0413\u0438\u0431\u043a\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u0430\u0440\u044c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044f\u0445. \u041a\u0430\u0436\u0434\u043e\u0435 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u043e\u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0430\u0434\u0440\u0435\u0441\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438, \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0431 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u0435, e-mail-\u0430\u0434\u0440\u0435\u0441\u0435 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u0438 \u0442\u0435\u043c\u0435 \u043f\u0438\u0441\u044c\u043c\u0430. \u0422\u0430\u043a\u0436\u0435 \u0438\u043c\u0435\u044e\u0442\u0441\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u0438 \u0435\u0441\u043b\u0438 \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043b\u044f \u043d\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u044b, \u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0432\u0437\u044f\u0442\u044b \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u0442\u0442\u0443\u0434\u0430.<br \/>  \u0414\u043b\u044f \u0435\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f. \u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u0443\u0432\u0435\u0440\u0435\u043d \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d \u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0438:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/ed9\/2b4\/e3c\/ed92b4e3c3090f5da5897717af8b71a3.png\"\/>    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/company\/imagecms\/blog\/203274\/\"> http:\/\/habrahabr.ru\/company\/imagecms\/blog\/203274\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/378\/4cd\/4d0\/3784cd4d037f3447f763644d366f10ed.png\"\/><br \/>  \u0412 \u044d\u0442\u043e\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043c\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0441\u0440\u0435\u0434\u043d\u0435\u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0432\u0435\u0434\u0443\u0449\u0438\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442 ImageCMS \u0410\u043d\u0434\u0440\u044e\u0448\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b \u0443\u0434\u043e\u0431\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 e-mail-\u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430. \u0421\u0430\u043c \u043e\u043d \u0442\u0435\u043f\u0435\u0440\u044c \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442, \u0447\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442, \u0430 \u0444\u0435\u044f.<\/p>\n<p>  <b><u>\u0412 \u0447\u0435\u043c \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u043b\u0430\u0441\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0434\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u043e\u0432\u043e\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430?<\/u><\/b><br \/>  \u041d\u0435\u043c\u0430\u043b\u043e \u043e\u0433\u043e\u0440\u0447\u0430\u043b\u043e, \u0447\u0442\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 e-mail \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u043d\u0435 \u0438\u043c\u0435\u043b\u0430 \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f, <b>\u0432\u0435\u0434\u044c \u044d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u043d\u0435\u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443 \u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u043b\u0438\u0448\u043d\u0435\u0433\u043e \u043a\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f.<\/b> <br \/>  \u0421\u043c\u043e\u0442\u0440\u0438\u043c-\u0441:  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-203274","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/203274","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=203274"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/203274\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=203274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=203274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=203274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}