Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
519
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.97 KB | None | 0 0
  1. {%- assign social_icons = false -%}
  2. {%- assign inline_list = false -%}
  3.  
  4. {%- if
  5. settings.social_twitter_link != blank
  6. or settings.social_facebook_link != blank
  7. or settings.social_pinterest_link != blank
  8. or settings.social_instagram_link != blank
  9. or settings.social_tumblr_link != blank
  10. or settings.social_snapchat_link != blank
  11. or settings.social_youtube_link != blank
  12. or settings.social_vimeo_link != blank
  13. or template.name == 'article'
  14. or template.name == 'blog'
  15. -%}
  16. {%- assign social_icons = true -%}
  17. {%- endif -%}
  18.  
  19. {%- case section.blocks.size -%}
  20. {%- when 1 -%}
  21. {%- assign footer_item = 'site-footer__item--full-width' -%}
  22. {%- assign inline_list = true -%}
  23. {%- when 2 -%}
  24. {%- assign footer_item = 'site-footer__item--one-half' -%}
  25. {%- assign inline_list = true -%}
  26. {%- when 3 -%}
  27. {%- assign footer_item = 'site-footer__item--one-third' -%}
  28. {%- for block in section.blocks -%}
  29. {%- if block.type == 'newsletter' -%}
  30. {%- assign footer_item = 'site-footer__item--one-quarter' -%}
  31. {%- break -%}
  32. {%- endif -%}
  33. {%- endfor -%}
  34. {%- when 4 -%}
  35. {%- assign footer_item = 'site-footer__item--one-quarter' -%}
  36. {%- when 5 -%}
  37. {%- assign footer_item = 'site-footer__item--one-fifth' -%}
  38. {%- endcase -%}
  39.  
  40. {% comment %} Create an appropriate hover color based on text color and brightness {% endcomment %}
  41. {%- assign footer_text_color = section.settings.color_footer_text -%}
  42. {%- assign footer_text_color_brightness = section.settings.color_footer_text | color_brightness -%}
  43. {%- if footer_text_color_brightness <= 26 -%}
  44. {%- assign footer_text_color_hover = footer_text_color | color_lighten: 25 -%}
  45. {%- elsif footer_text_color_brightness <= 65 -%}
  46. {%- assign footer_text_color_hover = footer_text_color | color_lighten: 15 -%}
  47. {%- else -%}
  48. {%- assign footer_text_color_hover = footer_text_color | color_darken: 10 -%}
  49. {%- endif -%}
  50.  
  51. <style>
  52. .site-footer__hr {
  53. border-bottom: 1px solid {{ section.settings.color_footer_bg | color_darken: 10 }};
  54. }
  55.  
  56. .site-footer a,
  57. .site-footer h4,
  58. .site-footer__rte p,
  59. .site-footer small {
  60. color: {{ section.settings.color_footer_text }};
  61. }
  62.  
  63. .site-footer {
  64. background-color: {{ section.settings.color_footer_bg }};
  65. }
  66.  
  67. .site-footer a:hover {
  68. color: {{ footer_text_color_hover }};
  69. }
  70. </style>
  71.  
  72. <footer class="site-footer" role="contentinfo">
  73. <div class="page-width">
  74. <div class="site-footer__content">
  75. {%- for block in section.blocks -%}
  76.  
  77. <div class="site-footer__item
  78. {% if section.blocks.size == 1 %} site-footer__item--center{% endif %}
  79. {{ footer_item }}
  80. {% if block.type == 'newsletter' and section.blocks.size == 3 %}site-footer-newsletter__one-half{% endif %}"
  81. {{ block.shopify_attributes }}>
  82. <div class="site-footer__item-inner site-footer__item-inner--{{ block.type }}">
  83.  
  84. {%- if block.settings.title -%}
  85. <h4>{{ block.settings.title | escape }}</h4>
  86. {%- endif -%}
  87.  
  88. {%- case block.type -%}
  89. {%- when 'newsletter' -%}
  90. <div class="site-footer__newsletter
  91. {% if section.blocks.size == 1 %} site-footer__single-block--centered{% endif %}">
  92. {%- assign formId = 'ContactFooter' -%}
  93. {% form 'customer', id: formId, novalidate: 'novalidate' %}
  94. {%- if form.posted_successfully? -%}
  95. <p class="form-message form-message--success" tabindex="-1" data-form-status>
  96. {{ 'general.newsletter_form.confirmation' | t }}
  97. </p>
  98. {%- endif -%}
  99. <input type="hidden" name="contact[tags]" value="newsletter">
  100. <div class="input-group {% if form.errors %} input-group--error{% endif %}">
  101. <input type="email"
  102. name="contact[email]"
  103. id="{{ formId }}-email"
  104. class="input-group__field newsletter__input{% if form.errors %} input--error{% endif %}"
  105. value="{% if customer %}{{ customer.email }}{% endif %}"
  106. placeholder="{{ 'general.newsletter_form.email_placeholder' | t }}"
  107. aria-label="{{ 'general.newsletter_form.email_placeholder' | t }}"
  108. aria-required="true"
  109. required
  110. autocorrect="off"
  111. autocapitalize="off"
  112. {% if form.errors %}
  113. aria-invalid="true"
  114. aria-describedby="{{ formId }}-email-error"
  115. data-form-status
  116. {% endif %}>
  117. <span class="input-group__btn">
  118. <button type="submit" class="btn newsletter__submit" name="commit" id="Subscribe">
  119. <span class="newsletter__submit-text--large">{{ 'general.newsletter_form.submit' | t }}</span>
  120. </button>
  121. </span>
  122. </div>
  123. {% if form.errors contains 'email' %}
  124. <span id="{{ formId }}-email-error" class="input-error-message">
  125. {% include 'icon-error' %} {{ form.errors.translated_fields['email'] | capitalize }} {{ form.errors.messages['email'] }}.
  126. </span>
  127. {% endif %}
  128. {% endform %}
  129. </div>
  130.  
  131. {%- when 'text' -%}
  132. {%- if block.settings.text != blank -%}
  133. <div class="site-footer__rte
  134. {% if section.blocks.size == 1 %} site-footer__single-block--centered{% endif %}">
  135. {{ block.settings.text }}
  136. </div>
  137. {%- endif -%}
  138.  
  139. {%- when 'link_list' -%}
  140. {%- assign footer_linklist = block.settings.menu -%}
  141. <ul class="site-footer__linklist
  142. {% if inline_list %}list--inline{% endif %}">
  143. {%- for link in linklists[footer_linklist].links -%}
  144. <li class="site-footer__linklist-item">
  145. <a href="{{ link.url }}">{{ link.title }}</a>
  146. </li>
  147. {%- endfor -%}
  148. </ul>
  149.  
  150. {%- endcase -%}
  151.  
  152. </div>
  153. </div>
  154. {%- endfor -%}
  155. </div>
  156. </div>
  157.  
  158. <hr class="site-footer__hr">
  159.  
  160. <div class="page-width">
  161. <div class="grid grid--no-gutters small--text-center">
  162. <div class="grid__item one-half small--one-whole">
  163. {%- if social_icons -%}
  164. <ul class="list--inline site-footer__social-icons social-icons site-footer__icon-list">
  165. {%- if settings.social_facebook_link != blank -%}
  166. <li>
  167. <a class="social-icons__link" href="{{ settings.social_facebook_link | escape }}" aria-describedby="a11y-external-message">
  168. {%- include 'icon-facebook' -%}
  169. <span class="icon__fallback-text">Facebook</span>
  170. </a>
  171. </li>
  172. {%- endif -%}
  173. {%- if settings.social_twitter_link != blank -%}
  174. <li>
  175. <a class="social-icons__link" href="{{ settings.social_twitter_link | escape }}" aria-describedby="a11y-external-message">
  176. {%- include 'icon-twitter' -%}
  177. <span class="icon__fallback-text">Twitter</span>
  178. </a>
  179. </li>
  180. {%- endif -%}
  181. {%- if settings.social_pinterest_link != blank -%}
  182. <li>
  183. <a class="social-icons__link" href="{{ settings.social_pinterest_link | escape }}" aria-describedby="a11y-external-message">
  184. {%- include 'icon-pinterest' -%}
  185. <span class="icon__fallback-text">Pinterest</span>
  186. </a>
  187. </li>
  188. {%- endif -%}
  189. {%- if settings.social_instagram_link != blank -%}
  190. <li>
  191. <a class="social-icons__link" href="{{ settings.social_instagram_link | escape }}" aria-describedby="a11y-external-message">
  192. {%- include 'icon-instagram' -%}
  193. <span class="icon__fallback-text">Instagram</span>
  194. </a>
  195. </li>
  196. {%- endif -%}
  197. {%- if settings.social_tumblr_link != blank -%}
  198. <li>
  199. <a class="social-icons__link" href="{{ settings.social_tumblr_link | escape }}" aria-describedby="a11y-external-message">
  200. {%- include 'icon-tumblr' -%}
  201. <span class="icon__fallback-text">Tumblr</span>
  202. </a>
  203. </li>
  204. {%- endif -%}
  205. {%- if settings.social_snapchat_link != blank -%}
  206. <li>
  207. <a class="social-icons__link" href="{{ settings.social_snapchat_link | escape }}" aria-describedby="a11y-external-message">
  208. {%- include 'icon-snapchat' -%}
  209. <span class="icon__fallback-text">Snapchat</span>
  210. </a>
  211. </li>
  212. {%- endif -%}
  213. {%- if settings.social_youtube_link != blank -%}
  214. <li>
  215. <a class="social-icons__link" href="{{ settings.social_youtube_link | escape }}" aria-describedby="a11y-external-message">
  216. {%- include 'icon-youtube' -%}
  217. <span class="icon__fallback-text">YouTube</span>
  218. </a>
  219. </li>
  220. {%- endif -%}
  221. {%- if settings.social_vimeo_link != blank -%}
  222. <li>
  223. <a class="social-icons__link" href="{{ settings.social_vimeo_link | escape }}" aria-describedby="a11y-external-message">
  224. {%- include 'icon-vimeo' -%}
  225. <span class="icon__fallback-text">Vimeo</span>
  226. </a>
  227. </li>
  228. {%- endif -%}
  229. {%- if template.name == 'blog' or template.name == 'article' -%}
  230. <li>
  231. <a class="social-icons__link" href="{{ shop.url }}{{ blog.url }}.atom">
  232. {%- include 'icon-rss' -%}
  233. <span class="icon__fallback-text">RSS</span>
  234. </a>
  235. </li>
  236. {%- endif -%}
  237. </ul>
  238. {%- else -%}
  239. <div class="drapeau">
  240. <img src="https://cdn.shopify.com/s/files/1/0253/1544/2793/files/drapeau-francais.jpg?597"/>
  241. </div><div class="small--hide">
  242. <small class="site-footer__copyright-content">&copy; {{ 'now' | date: "%Y" }}, {{ shop.name | link_to: '/' }}</small>
  243. <small class="site-footer__copyright-content site-footer__copyright-content-powered-by">{{ powered_by_link }}</small>
  244. </div>
  245.  
  246.  
  247. {%- endif -%}
  248. </div>
  249.  
  250. <table>
  251. <thead>
  252. <tr>
  253. <th colspan="2"></th>
  254. </tr>
  255. </thead>
  256. <tbody>
  257. <tr> <div class="logo_paiement3">
  258. <img src="https://cdn.shopify.com/s/files/1/0253/1544/2793/files/secure-logo.png?1315"/>
  259. <td style ="max-width:250px !important;"> <div class="grid__item one-half small--one-whole">
  260. {% if section.settings.show_payment_icons %}
  261. <div class="grid__item site-footer__payment-icons">
  262. {% unless shop.enabled_payment_types == empty %}
  263. <span class="visually-hidden">{{ 'general.payment.method' | t }}</span>
  264. <ul class="payment-icons list--inline site-footer__icon-list">
  265. {% assign enabled_payment_types = 'visa,master,google_pay,paypal,apple_pay' | remove: ' ' | split: ',' %}
  266. {% for type in enabled_payment_types %}
  267. <li style ="max-width:450px !important;" class="">
  268. {{ type | payment_type_svg_tag: class: 'icon icon--full-color' }}
  269. </li>
  270. {% endfor %}
  271. </ul>
  272. {% endunless %}
  273. </div>
  274. {% endif %}
  275. </div></td>
  276. </tr>
  277. </tbody>
  278. </table>
  279.  
  280.  
  281.  
  282. <div class="grid__item{% unless social_icons %} medium-up--hide{% endunless %}">
  283. <small class="site-footer__copyright-content">&copy; {{ 'now' | date: "%Y" }}, {{ shop.name | link_to: '/' }}</small>
  284. <small class="site-footer__copyright-content site-footer__copyright-content--powered-by">{{ powered_by_link }}</small>
  285. </div>
  286. </div>
  287. </div>
  288. </footer>
  289.  
  290.  
  291.  
  292. {% schema %}
  293. {
  294. "name": {
  295. "de": "Fußzeile",
  296. "en": "Footer",
  297. "es": "Pie de página",
  298. "fr": "Pied de page",
  299. "it": "Footer",
  300. "ja": "フッター",
  301. "pt-BR": "Rodapé"
  302. },
  303. "max_blocks": 4,
  304. "settings": [
  305. {
  306. "type": "header",
  307. "content": {
  308. "de": "Zahlungsarten",
  309. "en": "Payment methods",
  310. "es": "Métodos de pago",
  311. "fr": "Moyens de paiement",
  312. "it": "Metodi di pagamento",
  313. "ja": "お支払い方法",
  314. "pt-BR": "Formas de pagamento"
  315. }
  316. },
  317. {
  318. "type": "checkbox",
  319. "id": "show_payment_icons",
  320. "label": {
  321. "de": "Zahlungs-Buttons anzeigen",
  322. "en": "Show payment icons",
  323. "es": "Mostrar iconos de pago",
  324. "fr": "Afficher les icônes de paiement",
  325. "it": "Mostra le icone di pagamento",
  326. "ja": "支払いアイコンを表示する",
  327. "pt-BR": "Exibir ícones de pagamento"
  328. },
  329. "default": false
  330. },
  331. {
  332. "type": "header",
  333. "content": {
  334. "de": "Farbe",
  335. "en": "Color",
  336. "es": "Color",
  337. "fr": "Couleur",
  338. "it": "Colore",
  339. "ja": "色",
  340. "pt-BR": "Cor"
  341. }
  342. },
  343. {
  344. "type": "color",
  345. "id": "color_footer_bg",
  346. "label": {
  347. "de": "Schriftfarbe",
  348. "en": "Background",
  349. "es": "Fondo",
  350. "fr": "Couleur de fond",
  351. "it": "Sfondo",
  352. "ja": "背景",
  353. "pt-BR": "Plano de fundo"
  354. },
  355. "default": "#F5F5F5"
  356. },
  357. {
  358. "type": "color",
  359. "id": "color_footer_text",
  360. "label": {
  361. "de": "Text",
  362. "en": "Text",
  363. "es": "Texto",
  364. "fr": "Texte",
  365. "it": "Testo",
  366. "ja": "テキスト",
  367. "pt-BR": "Texto"
  368. },
  369. "default": "#3d4246"
  370. }
  371. ],
  372. "blocks": [
  373. {
  374. "type": "link_list",
  375. "name": {
  376. "de": "Menü",
  377. "en": "Menu",
  378. "es": "Menú",
  379. "fr": "Menu",
  380. "it": "Menu",
  381. "ja": "メニュー",
  382. "pt-BR": "Menu"
  383. },
  384. "settings": [
  385. {
  386. "type": "text",
  387. "id": "title",
  388. "label": {
  389. "de": "Überschrift",
  390. "en": "Heading",
  391. "es": "Título",
  392. "fr": "Titre",
  393. "it": "Heading",
  394. "ja": "見出し",
  395. "pt-BR": "Título"
  396. },
  397. "default": {
  398. "de": "Quick-Links",
  399. "en": "Quick links",
  400. "es": "Enlaces rápidos",
  401. "fr": "Liens rapides",
  402. "it": "Link rapidi",
  403. "ja": "クイックリンク",
  404. "pt-BR": "Links rápidos"
  405. }
  406. },
  407. {
  408. "type": "link_list",
  409. "id": "menu",
  410. "label": {
  411. "de": "Menü",
  412. "en": "Menu",
  413. "es": "Menú",
  414. "fr": "Menu",
  415. "it": "Menu",
  416. "ja": "メニュー",
  417. "pt-BR": "Menu"
  418. },
  419. "default": "footer"
  420. }
  421. ]
  422. },
  423. {
  424. "type": "text",
  425. "name": {
  426. "de": "Text",
  427. "en": "Text",
  428. "es": "Texto",
  429. "fr": "Texte",
  430. "it": "Testo",
  431. "ja": "テキスト",
  432. "pt-BR": "Texto"
  433. },
  434. "settings": [
  435. {
  436. "type": "text",
  437. "id": "title",
  438. "label": {
  439. "de": "Überschrift",
  440. "en": "Heading",
  441. "es": "Título",
  442. "fr": "Titre",
  443. "it": "Heading",
  444. "ja": "見出し",
  445. "pt-BR": "Título"
  446. },
  447. "default": {
  448. "de": "Reden Sie über Ihr Unternehmen",
  449. "en": "Talk about your business",
  450. "es": "Habla sobre tu negocio",
  451. "fr": "Parlez de votre entreprise",
  452. "it": "Parla della tua attività commerciale",
  453. "ja": "あなたのビジネスについて語る",
  454. "pt-BR": "Fale sobre o seu negócio"
  455. }
  456. },
  457. {
  458. "type": "richtext",
  459. "id": "text",
  460. "label": {
  461. "de": "Text",
  462. "en": "Text",
  463. "es": "Texto",
  464. "fr": "Texte",
  465. "it": "Testo",
  466. "ja": "テキスト",
  467. "pt-BR": "Texto"
  468. },
  469. "default": {
  470. "de": "<p>Teilen Sie Ihre Shop-Details, Werbeaktionen oder Markeninhalte mit Ihren Kunden.</p>",
  471. "en": "<p>Share store details, promotions, or brand content with your customers.</p>",
  472. "es": "<p>Comparte detalles de la tienda, promociones o contenido de la marca con tus clientes.</p>",
  473. "fr": "<p>Partagez les détails de la boutique, les promotions ou le contenu de la marque avec vos clients.</p>",
  474. "it": "<p>Condividi dettagli del negozio, promozioni o contenuti del brand con i clienti.</p>",
  475. "ja": "<p>ストア詳細、プロモーション、ブランドのコンテンツをお客様と共有する。</p>",
  476. "pt-BR": "<p>Compartilhe detalhes da loja, promoções ou conteúdo da marca com seus clientes.</p>"
  477. }
  478. }
  479. ]
  480. },
  481. {
  482. "type": "newsletter",
  483. "limit": 1,
  484. "name": {
  485. "de": "Newsletter-Anmeldung",
  486. "en": "Newsletter signup",
  487. "es": "Suscripción al boletín",
  488. "fr": "Inscription",
  489. "it": "Iscriviti alla Newsletter",
  490. "ja": "メールマガジンの登録",
  491. "pt-BR": "Assinatura da newsletter"
  492. },
  493. "settings": [
  494. {
  495. "type": "text",
  496. "id": "title",
  497. "label": {
  498. "de": "Überschrift",
  499. "en": "Heading",
  500. "es": "Título",
  501. "fr": "Titre",
  502. "it": "Heading",
  503. "ja": "見出し",
  504. "pt-BR": "Título"
  505. },
  506. "info": {
  507. "de": "Abonnenten werden zu Ihrer \"akzeptiert Marketingmaterial\"-Liste hinzugefügt [Kundenliste.](/admin/customers?query=&accepts_marketing=1)",
  508. "en": "Subscribers will be added to your “accepts marketing” [customer list.](/admin/customers?query=&accepts_marketing=1)",
  509. "es": "Se añadirá los suscriptores a tu lista \"acepta marketing\"[lista de clients.](/admin/customers?query=&accepts_marketing=1)",
  510. "fr": "Les abonnés seront ajoutés à votre [liste de clients](/admin/customers?query=&accepts_marketing=1) « Accepte le marketing ».",
  511. "it": "Gli iscritti verranno aggiunti al tuo [elenco clienti](/admin/customers?query=&accepts_marketing=1) “Accetta marketing”.",
  512. "ja": "購読者は「マーケティングを受け入れる」[顧客リスト](/admin/customers?query=&accepts_marketing=1)に追加されます。",
  513. "pt-BR": "Os assinantes serão adicionados à sua lista de pessoas que “aceitam marketing” [lista de clientes.](/admin/customers?query=&accepts_marketing=1)"
  514. },
  515. "default": {
  516. "de": "Newsletter",
  517. "en": "Newsletter",
  518. "es": "Boletín",
  519. "fr": "Newsletter",
  520. "it": "Newsletter",
  521. "ja": "メールマガジン",
  522. "pt-BR": "Newsletter"
  523. }
  524. }
  525. ]
  526. }
  527. ]
  528. }
  529. {% endschema %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement