Skip to content

Commit 3309d3d

Browse files
1.0.2
1 parent 55aa8f8 commit 3309d3d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mage2pro/flag"
3-
,"version": "1.0.1"
3+
,"version": "1.0.2"
44
,"description": "A Magento 2 interface to the lipis/flag-icon-css library."
55
,"type": "magento2-module"
66
,"homepage": "https://mage2.pro"

lib/main.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ function df_flag_css() {return df_link_inline(df_asset_name('main', 'Df_Flag', '
88
/**
99
* 2017-05-13
1010
* @param string $country
11+
* @param string $content [optional]
1112
* @return string
1213
*/
13-
function df_flag_span($country) {return df_tag('span', 'flag-icon flag-icon-' . strtolower($country));}
14+
function df_flag_span($country, $content = null) {return df_tag(
15+
'span', 'flag-icon flag-icon-' . strtolower($country), $content
16+
);}

0 commit comments

Comments
 (0)