/** * Initialize the thumber class for use in thumbnail generation. */ public static function init() { $options = DG_Thumber::getOptions(); $active = $options['active']; if ($active['gs'] && self::isGhostscriptAvailable()) { parent::init(); } }
/** * Initialize the thumber class for use in thumbnail generation. */ public static function init() { $options = DG_Thumber::getOptions(); $active = $options['active']; if ($active['imagick']) { parent::init(); } }
/** * Initializes the static values for this class. */ public static function init() { $options = DG_Thumber::getOptions(); if ($options['active']['thumber-co']) { parent::init(); self::$webhook = admin_url('admin-post.php?action=' . self::ThumberAction); self::$client = DG_ThumberClient::getInstance(); } }