getRequest()->getParam('section')) {
$license = $this->getHelper()->get();
$code = $this->getHelper()->getSystemDefaultValue('athlete2_license/general/code');
$notice = [];
$status = !empty($license)
&& isset($license->data->the_key)
&& $license->data->the_key == $code
&& $license->data->status == "active";
$supportExpired = $status && $license->data->has_expired;
$devLicense = $status && isset($license->notices->develop) ? ' developer' : '';
$notice[] = '
' . __('Theme License ') . '' . ($status ? __('Activated') : __('Not Activated!')) . '
'. ( $devLicense ? __('' . implode(' ', $license->notices->develop) . '') : '') . ' ';
if ($supportExpired) {
if ($license->data->has_expired) {
$notice[] = '' . __('Theme Support has ') . '' . __('Expired') . '
';
} else {
$notice[] = '' . __('Theme Support is ') . '' . __('Active') . '
' . __('Monday - Friday, 10 - 20 GMT +1') . ' ';
}
/*
foreach ($license->notices as $noticeGroup => $_notice) {
if ('support' !== $noticeGroup) {
$notice[] = '' . implode(' ', $_notice) . '
';
}
}*/
}
return sprintf(
(1 < count($notice) ? '%s
' : '%s'),
implode('', $notice)
);
}
return '';
}
}