CommonBlocks

GitHub - magesuite/common-blocks

Extension with an automatic script that installs common blocks used by each template e.g.: footer-link in footer, USPs in topbar.

This module can create blocks with outdated content. The code must be refactored.

Installation

This module is required by theme-creativeshop

composer require "creativestyle/magesuite-common-blocks" ^1.0.0

Admin settings

This module is switched on by default and creates a common static block.

The following blocks are created:

Id

Title

HTML

Id

Title

HTML

header_topbar_hotline

Header (Top Bar) - Hotline

<div class="cs-topbar__hotline"> <a class="cs-topbar__phone-number" href="tel:{{config path="general/store_information/phone"}}">{{config path="general/store_information/phone"}}</a> <span class="cs-topbar__opening-hours-label">Our lines are open: </span> <span class="cs-topbar__opening-hours">{{config path="general/store_information/hours"}}</span> </div>

header_topbar_hotline

Header (Top Bar) - USPs

<ul class="cs-topbar__list cs-topbar__list--featured"> <li class="cs-topbar__list-item"><span class="cs-topbar__text">Discreet and rapid delivery</span></li> <li class="cs-topbar__list-item"><span class="cs-topbar__text">All offers include VAT</span></li> <li class="cs-topbar__list-item"><span class="cs-topbar__text">24h delivery</span></li> </ul>

Footer Links - 1

footer_links_1

outdated code

Footer Links - 2

footer_links_2

Footer Links - 3

footer_links_3