1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 19:44:09 +02:00

Experimental embedding of FA svg.

This commit is contained in:
Cameron
2021-11-15 13:51:01 -08:00
parent 20631296c5
commit db6035f844
3 changed files with 40 additions and 1 deletions

View File

@@ -160,6 +160,24 @@ class social_shortcodes extends e_shortcode
return $this->var['class'];
}
/** @experimental inline svg - subject to removal at any time */
public function sc_xurl_icons_svg($parm=null)
{
$path = e_WEB.'lib/font-awesome/5/svgs/brands/';
$path .= $this->var['id'].".svg";
if(!file_exists($path))
{
return null;
}
if($ret = file_get_contents($path))
{
return $ret;
}
}
// ------------------------------------------------
function sc_social_login($parm=null)