Example #1
0
 private static function initDefaultFont()
 {
     static $inited = false;
     if (!$inited) {
         $res = N2StorageSectionAdmin::get('smartslider', 'default', 'item-button-font');
         if (is_array($res)) {
             self::$font = $res['value'];
         }
         if (is_numeric(self::$font)) {
             N2FontRenderer::preLoad(self::$font);
         }
         $inited = true;
     }
 }