Smiley BBcode editing

554
.
any one know how to show all default smiley in here?
Прикрепленные файлы:
.
this is the default smiley directory
Прикрепленные файлы:
.
Добавлено: 12.06.2017 / 02:48
currently I'm using this
$glob = glob(ROOT_PATH.'asset/smiley/*.{gif,jpg,png}', GLOB_BRACE);
		$res_sm = '';
		foreach ($glob as $f) {
			$value = basename($f,'.png');
			$res_sm .= '<a href="javascript:tag(\':'.$value.'\', \':\'); show_hide(\'sm\');">:'.$value.'</a> ';
		}
		$tools = \App::getContainer()->get(Api\ToolsInterface::class);
		$bb_smileys = $tools->smilies($res_sm);

and this is the result

Добавлено: 12.06.2017 / 03:05
Closed! Done!
Прикрепленные файлы:
Всего: 3