Files
ultimatemember/core/um-fonticons.php
T
ultimatemember b4d7f80d24 Revert "Last Sync"
This reverts commit 605d2d6213.
2015-01-14 00:12:09 +02:00

25 lines
502 B
PHP

<?php
class UM_FontIcons {
function __construct() {
if ( !get_option('um_cache_fonticons') ) {
$file = um_path . 'assets/css/um-fonticons.css';
$css = file_get_contents($file);
preg_match_all('/(um-icon-.*?)\s?\{/', $css, $matches);
unset($matches[1][0]);
foreach($matches[1] as $match) {
$icon = str_replace(':before','',$match);
$array[] = $icon;
}
update_option('um_cache_fonticons', $array);
}
$this->all = get_option('um_cache_fonticons');
}
}