/** * 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(); } }
/** * 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(); } }
/** * 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(); } }
/** * Render the Thumber Advanced section. */ function dg_render_advanced_section() { include_once DG_PATH . 'inc/class-thumber.php'; ?> <p><?php _e('Unless you <em>really</em> know what you\'re doing, you should not touch these values.', 'document-gallery'); ?> </p> <?php if (!DG_AbstractThumber::isExecAvailable()) { ?> <p> <em><?php _e('NOTE: <code>exec()</code> is not accessible. Ghostscript will not function.', 'document-gallery'); ?> </em> </p> <?php } }