Skip to content

Commit

Permalink
#3054 Added in master
Browse files Browse the repository at this point in the history
  • Loading branch information
pegazee committed Apr 25, 2019
1 parent 9889625 commit c3a3134
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/options/admin-config.php
Expand Up @@ -505,7 +505,9 @@ function ampforwp_sort_extension_array($a, $b){
$amplicense = $selectedOption['amp-license'][$pathExploded]['license'];
}
$verify = '<button type="button" id="'.$pathExploded.'" class="redux-ampforwp-ext-activate">Activate</button>';
$license_status = '';
if(isset($selectedOption['amp-license'][$pathExploded]['status']) && $selectedOption['amp-license'][$pathExploded]['status']==='valid'){
$license_status = $selectedOption['amp-license'][$pathExploded]['status'];
$currentStatus = 'active valid';
$verify = '<button type="button" id="'.$pathExploded.'" class="redux-ampforwp-ext-deactivate">Deactivate</button>';
if($ampforwp_nameOfUser=="" && isset($selectedOption['amp-license'][$pathExploded]['all_data']['customer_name'])){
Expand All @@ -529,7 +531,7 @@ function ampforwp_sort_extension_array($a, $b){
}
$pluginReview .= '<input name="redux_builder_amp[amp-license]['.$pathExploded.'][plugin_active_path]" type="hidden" value="'.$extension['plugin_active_path'].'">
<input name="redux_builder_amp[amp-license]['.$pathExploded.'][name]" type="hidden" value="'.$extension['name'].'">
<input name="redux_builder_amp[amp-license]['.$pathExploded.'][status]" type="hidden" value="'.$selectedOption['amp-license'][$pathExploded]['status'].'">';
<input name="redux_builder_amp[amp-license]['.$pathExploded.'][status]" type="hidden" value="'.$license_status.'">';
$pluginReview .= '<input name="redux_builder_amp[amp-license]['.$pathExploded.'][all_data][success]" type="hidden" value="'.$allResponseData['success'].'">
<input name="redux_builder_amp[amp-license]['.$pathExploded.'][all_data][license]" type="hidden" value="'.$allResponseData['license'].'">
<input name="redux_builder_amp[amp-license]['.$pathExploded.'][all_data][item_name]" type="hidden" value="'.$allResponseData['item_name'].'">
Expand Down

0 comments on commit c3a3134

Please sign in to comment.