File "License.php"
Full Path: /home/tekvhqgl/public_html/wp-content/plugins/popup-builder/com/helpers/License.php
File size: 600 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace sgpb;
class License
{
public function getLicenses()
{
return $this->setRegisteredExtensionsLicenses();
}
public function setRegisteredExtensionsLicenses()
{
$registered = AdminHelper::getOption(SGPB_POPUP_BUILDER_REGISTERED_PLUGINS);
$registered = json_decode($registered, true);
if(empty($registered)) {
return [];
}
$licenses = array();
foreach($registered as $register) {
if(empty($register['options']['licence'])) {
continue;
}
$licenses[] = $register['options']['licence'];
}
return $licenses;
}
}