Guest User

Untitled

a guest
Jan 11th, 2017
1,639
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div style="display: none">
  2. {% set lastDateCompleted = 0 %}
  3. {% if get_last_events('$order_completed') | length > 0 %}
  4. {% set lastDateCompleted = get_last_events('$order_completed')[0]['created'] %}
  5. {% endif %}
  6. {% set massOrder = [] %}
  7. {% set massOrderName = [] %}
  8. {% for e in get_last_events('$cart_added') %}
  9. {% if e['created'] > lastDateCompleted %}
  10. {% if e.props['$name'].lower().strip() not in massOrderName %}
  11. {% set x = massOrder.append(e) %}
  12. {% set x = massOrderName.append(e.props['$name'].lower().strip()) %}
  13. {% endif %}
  14. {% endif %}
  15. {% endfor %}
  16. </div>
  17. <!-- Начало цикла -->
  18. {% for b in massOrder %}
  19. {% set link = b.props['$url'] %}
  20. {% set img = b.props['$img'] %}
  21. {% set price = b.props['$amount'] %}
  22. {% set name = b.props['$name'] %}
  23. <table cellpadding="0" cellspacing="0" align="center" width="100%" border="0" style="border-spacing: 0;border-collapse: collapse;vertical-align: top">
  24. <tbody>
  25. <tr style="vertical-align: top">
  26. <td width="100%" style="word-break: break-word;border-collapse: collapse !important;vertical-align: top;background-color: transparent">
  27. <!--[if gte mso 9]>
  28. <table id="outlookholder" border="0" cellspacing="0" cellpadding="0" align="center"><tr><td>
  29. <![endif]-->
  30. <!--[if (IE)]>
  31. <table width="600" align="center" cellpadding="0" cellspacing="0" border="0">
  32. <tr>
  33. <td>
  34. <![endif]-->
  35. <table cellpadding="0" cellspacing="0" align="center" width="100%" border="0" class="container" style="border-spacing: 0;border-collapse: collapse;vertical-align: top;max-width: 600px;margin: 0 auto;text-align: inherit">
  36. <tbody>
  37. <tr style="vertical-align: top">
  38. <td width="100%" style="word-break: break-word;border-collapse: collapse !important;vertical-align: top">
  39. <table cellpadding="0" cellspacing="0" width="100%" bgcolor="#FFFFFF" class="block-grid three-up" style="border-spacing: 0;border-collapse: collapse;vertical-align: top;width: 100%;max-width: 600px;color: #000000;background-color: #FFFFFF">
  40. <tbody>
  41. <tr style="vertical-align: top">
  42. <td style="word-break: break-word;border-collapse: collapse !important;vertical-align: top;background-color: #FFFFFF;text-align: center;font-size: 0;display: table">
  43. <!--[if (gte mso 9)|(IE)]><table width="100%" align="center" bgcolor="#FFFFFF" cellpadding="0" cellspacing="0" border="0"><tr><![endif]-->
  44. <!--[if (gte mso 9)|(IE)]><td valign="top" width="200" style="width:200px;"><![endif]-->
  45. <div class="col num4" style="display: table-cell;vertical-align: middle;text-align: center;width: 200px">
  46. <table cellpadding="0" cellspacing="0" align="center" width="100%" border="0" style="border-spacing: 0;border-collapse: collapse;vertical-align: top">
  47. <tbody>
  48. <tr style="vertical-align: top">
  49. <td style="word-break: break-word;border-collapse: collapse !important;vertical-align: top;background-color: transparent;padding-top: 5px;padding-right: 5px;padding-bottom: 5px;padding-left: 5px;border-top: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-left: 0px solid transparent">
  50. <table cellpadding="0" cellspacing="0" width="100%" border="0" style="border-spacing: 0;border-collapse: collapse;vertical-align: top">
  51. <tbody>
  52. <tr style="vertical-align: top">
  53. <td align="center" style="word-break: break-word;border-collapse: collapse !important;vertical-align: top;width: 100%">
  54. <div align="center" style="font-size:12px">
  55. <img class="center" align="center" border="0" src="{{img}}" alt="" title="" style="outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;clear: both;display: block;border: 0;height: auto;line-height: 100%;margin: 0 auto;float: none;max-width: 190px" width="190">
  56. </div>
  57. </td>
  58. </tr>
  59. </tbody>
  60. </table>
  61. </td>
  62. </tr>
  63. </tbody>
  64. </table>
  65. </div>
  66. <!--[if (gte mso 9)|(IE)]></td><![endif]-->
  67. <!--[if (gte mso 9)|(IE)]><td valign="top" width="200" style="width:200px;"><![endif]-->
  68. <div class="col num4" style="display: table-cell;vertical-align: middle;text-align: center;width: 200px">
  69. <table cellpadding="0" cellspacing="0" align="center" width="100%" border="0" style="border-spacing: 0;border-collapse: collapse;vertical-align: top">
  70. <tbody>
  71. <tr style="vertical-align: top">
  72. <td style="word-break: break-word;border-collapse: collapse !important;vertical-align: top;background-color: transparent;padding-top: 5px;padding-right: 0px;padding-bottom: 5px;padding-left: 0px;border-top: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-left: 0px solid transparent">
  73. <table cellpadding="0" cellspacing="0" width="100%" style="border-spacing: 0;border-collapse: collapse;vertical-align: top">
  74. <tbody>
  75. <tr style="vertical-align: top">
  76. <td style="word-break: break-word;border-collapse: collapse !important;vertical-align: top;padding-top: 10px;padding-right: 10px;padding-bottom: 0px;padding-left: 10px">
  77. <div style="color:#424a56;line-height:120%;font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif">
  78. <div style="font-size:12px;line-height:14px;color:#424a56;font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;text-align:left;">
  79. <p style="margin: 0;font-size: 12px;line-height: 14px;padding-top: 0"><span style="font-size: 14px; line-height: 24px;">{{name}}</span></p>
  80. </div>
  81. </div>
  82. </td>
  83. </tr>
  84. </tbody>
  85. </table>
  86. <table cellpadding="0" cellspacing="0" width="100%" style="border-spacing: 0;border-collapse: collapse;vertical-align: top">
  87. <tbody>
  88. <tr style="vertical-align: top">
  89. <td style="word-break: break-word;border-collapse: collapse !important;vertical-align: top;padding-top: 5px;padding-right: 10px;padding-bottom: 10px;padding-left: 10px">
  90. <div style="color:#424a56;line-height:120%;font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif">
  91. <div style="font-size:12px;line-height:14px;color:#424a56;font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;text-align:left;">
  92. <p style="margin: 0;font-size: 12px;line-height: 14px"><strong><span style="font-size: 14px; line-height: 24px;">{{price}} р</span></strong></p>
  93. </div>
  94. </div>
  95. </td>
  96. </tr>
  97. </tbody>
  98. </table>
  99. </td>
  100. </tr>
  101. </tbody>
  102. </table>
  103. </div>
  104. <!--[if (gte mso 9)|(IE)]></td><![endif]-->
  105. <!--[if (gte mso 9)|(IE)]><td valign="top" width="200" style="width:200px;"><![endif]-->
  106. <div class="col num4" style="display: table-cell;vertical-align: middle;text-align: center;width: 200px">
  107. <table cellpadding="0" cellspacing="0" align="center" width="100%" border="0" style="border-spacing: 0;border-collapse: collapse;vertical-align: top">
  108. <tbody>
  109. <tr style="vertical-align: top">
  110. <td style="word-break: break-word;border-collapse: collapse !important;vertical-align: top;background-color: transparent;padding-top: 5px;padding-right: 0px;padding-bottom: 5px;padding-left: 0px;border-top: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-left: 0px solid transparent">
  111. <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-spacing: 0;border-collapse: collapse;vertical-align: top">
  112. <tbody>
  113. <tr style="vertical-align: top">
  114. <td class="button-container" align="center" style="word-break: break-word;border-collapse: collapse !important;vertical-align: top;padding-top: 10px;padding-right: 10px;padding-bottom: 10px;padding-left: 10px">
  115. <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" style="border-spacing: 0;border-collapse: collapse;vertical-align: top">
  116. <tbody>
  117. <tr style="vertical-align: top">
  118. <td width="100%" class="button" align="center" valign="middle" style="word-break: break-word;border-collapse: collapse !important;vertical-align: top">
  119. <!--[if mso]>
  120. <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{url}}" style="height:32px; v-text-anchor:middle; width:152px;" arcsize="13%" strokecolor="#A0BF4C" fillcolor="#A0BF4C" >
  121. <w:anchorlock/>
  122. <center style="color:#ffffff; font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size:16px;">
  123. <![endif]-->
  124. <!--[if !mso]><!-- -->
  125. <div align="center" style="display: inline-block; border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; max-width: 100%; width: auto; border-top: 0px solid transparent; border-right: 0px solid transparent; border-bottom: 0px solid transparent; border-left: 0px solid transparent;">
  126. <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-spacing: 0;border-collapse: collapse;vertical-align: top;height: 32">
  127. <tbody>
  128. <tr style="vertical-align: top">
  129. <td valign="middle" style="word-break: break-word;border-collapse: collapse !important;vertical-align: top;border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; color: #ffffff; background-color: #A0BF4C; padding-top: 0px; padding-right: 30px; padding-bottom: 0px; padding-left: 30px; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;text-align: center">
  130. <!--<![endif]-->
  131. <a href="{{link}}" target="_blank" style="display: inline-block;text-decoration: none;-webkit-text-size-adjust: none;text-align: center;background-color: #A0BF4C;color: #ffffff"> <span style="font-size:12px;line-height:24px;"><span style="font-size: 16px; line-height: 32px;" data-mce-style="font-size: 16px; line-height: 36px;">Заказать</span></span>
  132. </a>
  133. <!--[if !mso]><!-- -->
  134. </td>
  135. </tr>
  136. </tbody>
  137. </table>
  138. </div>
  139. <!--<![endif]-->
  140. <!--[if mso]>
  141. </center>
  142. </v:roundrect>
  143. <![endif]-->
  144. </td>
  145. </tr>
  146. </tbody>
  147. </table>
  148. </td>
  149. </tr>
  150. </tbody>
  151. </table>
  152. </td>
  153. </tr>
  154. </tbody>
  155. </table>
  156. </div>
  157. <!--[if (gte mso 9)|(IE)]></td><![endif]-->
  158. <!--[if (gte mso 9)|(IE)]></td></tr></table><![endif]-->
  159. </td>
  160. </tr>
  161. </tbody>
  162. </table>
  163. </td>
  164. </tr>
  165. </tbody>
  166. </table>
  167. <!--[if mso]>
  168. </td></tr></table>
  169. <![endif]-->
  170. <!--[if (IE)]>
  171. </td></tr></table>
  172. <![endif]-->
  173. </td>
  174. </tr>
  175. </tbody>
  176. </table>
  177. {% if massOrder|length > 1 %}
  178. <table cellpadding="0" cellspacing="0" align="center" width="100%" border="0" style="border-spacing: 0;border-collapse: collapse;vertical-align: top">
  179. <tbody>
  180. <tr style="vertical-align: top">
  181. <td width="100%" style="word-break: break-word;border-collapse: collapse !important;vertical-align: top;background-color: transparent">
  182. <!--[if gte mso 9]>
  183. <table id="outlookholder" border="0" cellspacing="0" cellpadding="0" align="center"><tr><td>
  184. <![endif]-->
  185. <!--[if (IE)]>
  186. <table width="600" align="center" cellpadding="0" cellspacing="0" border="0">
  187. <tr>
  188. <td>
  189. <![endif]-->
  190. <table cellpadding="0" cellspacing="0" align="center" width="100%" border="0" class="container" style="border-spacing: 0;border-collapse: collapse;vertical-align: top;max-width: 600px;margin: 0 auto;text-align: inherit">
  191. <tbody>
  192. <tr style="vertical-align: top">
  193. <td width="100%" style="word-break: break-word;border-collapse: collapse !important;vertical-align: top">
  194. <table cellpadding="0" cellspacing="0" width="100%" bgcolor="#FFFFFF" class="block-grid " style="border-spacing: 0;border-collapse: collapse;vertical-align: top;width: 100%;max-width: 600px;color: #000000;background-color: #FFFFFF">
  195. <tbody>
  196. <tr style="vertical-align: top">
  197. <td style="word-break: break-word;border-collapse: collapse !important;vertical-align: top;background-color: #FFFFFF;text-align: center;font-size: 0">
  198. <!--[if (gte mso 9)|(IE)]><table width="100%" align="center" bgcolor="#FFFFFF" cellpadding="0" cellspacing="0" border="0"><tr><![endif]-->
  199. <!--[if (gte mso 9)|(IE)]><td valign="top" width="600" style="width:600px;"><![endif]-->
  200. <div class="col num12" style="display: inline-block;vertical-align: top;width: 100%">
  201. <table cellpadding="0" cellspacing="0" align="center" width="100%" border="0" style="border-spacing: 0;border-collapse: collapse;vertical-align: top">
  202. <tbody>
  203. <tr style="vertical-align: top">
  204. <td style="word-break: break-word;border-collapse: collapse !important;vertical-align: top;background-color: transparent;padding-top: 5px;padding-right: 0px;padding-bottom: 5px;padding-left: 0px;border-top: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-left: 0px solid transparent">
  205. <table align="center" width="100%" border="0" cellpadding="0" cellspacing="0" style="border-spacing: 0;border-collapse: collapse;vertical-align: top">
  206. <tbody>
  207. <tr style="vertical-align: top">
  208. <td align="center" style="word-break: break-word;border-collapse: collapse !important;vertical-align: top;padding-top: 10px;padding-right: 10px;padding-bottom: 10px;padding-left: 10px">
  209. <div style="height: 1px;">
  210. <table align="center" border="0" cellspacing="0" style="border-spacing: 0;border-collapse: collapse;vertical-align: top;border-top: 1px solid #BBBBBB;width: 100%">
  211. <tbody>
  212. <tr style="vertical-align: top">
  213. <td align="center" style="word-break: break-word;border-collapse: collapse !important;vertical-align: top"></td>
  214. </tr>
  215. </tbody>
  216. </table>
  217. </div>
  218. </td>
  219. </tr>
  220. </tbody>
  221. </table>
  222. </td>
  223. </tr>
  224. </tbody>
  225. </table>
  226. </div>
  227. <!--[if (gte mso 9)|(IE)]></td><![endif]-->
  228. <!--[if (gte mso 9)|(IE)]></td></tr></table><![endif]-->
  229. </td>
  230. </tr>
  231. </tbody>
  232. </table>
  233. </td>
  234. </tr>
  235. </tbody>
  236. </table>
  237. <!--[if mso]>
  238. </td></tr></table>
  239. <![endif]-->
  240. <!--[if (IE)]>
  241. </td></tr></table>
  242. <![endif]-->
  243. </td>
  244. </tr>
  245. </tbody>
  246. </table>
  247. {% endif %}
  248. {% endfor %}
  249. <!-- Конец цикла -->
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×