2017 © Pedro Peláez
 

gplcart-module country_flag

Adds country icons

image

gplcart/country_flag

Adds country icons

  • Saturday, March 10, 2018
  • by gplcart
  • Repository
  • 0 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Build Status Scrutinizer Code Quality, (*1)

Country flags is a GPL Cart module that adds a collection of country flags in SVG format (see https://github.com/lipis/flag-icon-css)., (*2)

Icons are automatically added to country data arrays:, (*3)

// Single item
$country = \gplcart\core\models\Country::get($code);

if(!empty($country['image])){
    print_r($country['image]);
}

// Lists
$countries = \gplcart\core\models\Country::getList();

foreach($countries as $country){
    if(!empty($country['image])){
        print_r($country['image]);
    }
}

To get them manually call \gplcart\modules\country_flag\CountryFlag::getFlagImages(), (*4)

Installation, (*5)

This module requires 3-d party library which should be downloaded separately. You have to use Composer to download all the dependencies., (*6)

  1. From your web root directory: composer require gplcart/country_flag. If the module was downloaded and placed into system/modules manually, run composer update to make sure that all 3-d party files are presented in the vendor directory.
  2. Go to admin/module/list end enable the module

The Versions

10/03 2018

dev-master

9999999-dev

Adds country icons

  Sources   Download

GPL-3.0+ GPL-3.0-or-later

The Requires

 

php ecommerce shopping cart gplcart gplcart module

10/03 2018

dev-dev

dev-dev

Adds country icons

  Sources   Download

GPL-3.0-or-later

The Requires

 

php ecommerce shopping cart gplcart gplcart module