getHelper()->get(); $section = $this->getRequest()->getParam('section'); $notice = ''; if (empty($license)) { if ('athlete2_settings' == $section || 'athlete2_design' == $section) { $closeNum = rand(1, 3); $notice .='
' . '

' . __( 'Athlete 2 Theme is not Activated.' ) . '

' . '

' . __( 'Please add your purchase code in ') . '' . __('Athlete 2 / Theme License') . '

' . '
' . '

Press '. $closeNum .' to close modal.

' . '' . '' . '' . '
'; $notice .=''; } if ('athlete2_license' !== $section) { $notice .= '

' . __('Athlete2 Theme ') . '' . __('Not Activated!') . '' . __('Click here to Activate') . '

'; } return $notice; } return ''; } protected function getLicenseUrl() { return $this->getUrl('*/*/*', ['_current' => true, 'section' => 'athlete2_license']); } }