public function prepare_request($action, $args = array()) { global $wp_version; $array = array('action' => $action, 'args' => $args); $license = emodal_get_license('key'); if ($action != 'addon_list' || !empty($license)) { $array['slug'] = $this->product['slug']; $array['installed_version'] = $this->product['version']; } if (!empty($license)) { $array['license_key'] = $license; $array['host'] = array('domain' => get_bloginfo('url'), 'wp_version' => $wp_version); } return $array; }
function emodal_admin_settings_form_general_tab_license() { ?> <!-- <tr class="form-field"> <th scope="row"> <label for="license_key"><?php _e('License Key', EMCORE_SLUG); ?> </label> </th> <td> <input type="<?php echo emodal_get_license('key') ? 'password' : 'text'; ?> " id="license_key" name="license[key]" value="<?php esc_attr_e(emodal_get_license('key')); ?> " class="regular-text"/> <p class="description"><?php _e(emodal_get_license('status.message') ? emodal_get_license('status.message') : 'Enter a key to unlock Easy Modal Pro.', EMCORE_SLUG); ?> </p> <?php if (emodal_get_license('status.valid')) { ?> <p class="description expires"><?php echo '<strong>' . __('Expiration Date: ', EMCORE_SLUG) . '</strong>' . emodal_get_license('status.expires'); ?> </p> <p class="description domains"><?php echo '<strong>' . __('Domains Using this License: ', EMCORE_SLUG) . '</strong>' . emodal_get_license('status.domains'); ?> </p> <?php } ?> </td> </tr> <tr> <td colspan="2"> <?php $box_src = EMCORE_URL . '/assets/images/admin/box-shot'; if (emodal_get_license('status.valid') && emodal_get_license('status.license_type') > 0) { if (intval(emodal_get_license('status.license_type')) === 2) { $box_src .= '-developer'; } elseif (intval(emodal_get_license('status.license_type')) === 1) { $box_src .= '-pro'; } } ?> <img style="max-width:623px;width:100%;" src="<?php esc_attr_e($box_src . '.jpg'); ?> "/> </td> </tr>--> <?php if (1 == 0 && emodal_get_option(EMCORE_SLUG . '_migration_approval')) { ?> <tr class="form-field"> <th scope="row"> <label><?php _e('Approve Migration', EMCORE_SLUG); ?> </label> </th> <td> <button type="submit" name="remove_old_emodal_data">Aprove</button> <p class="description"><?php _e('Click this if you are sure your modals, themes and settings imported successfully.', EMCORE_SLUG); ?> </p> </td> </tr> <?php } ?> <tr class="form-field"> <th scope="row"> <label><?php _e('Reset Easy Modal Database', EMCORE_SLUG); ?> </label> </th> <td> <button type="submit" name="reset_emodal_db">Reset</button> <p class="description"><?php _e('Use this to reset the database and remove all modals.', EMCORE_SLUG); ?> </p> </td> </tr> <tr class="form-field"> <th scope="row"> <label><?php _e('Import Old Easy Modal Settings', EMCORE_SLUG); ?> </label> </th> <td> <button type="submit" name="migrate_emodal_db">Import</button> <p class="description"><?php _e('Use this to import your modals and themes from your older version of easy modal.', EMCORE_SLUG); ?> </p> </td> </tr> <tr class="form-field"> <th scope="row"> <label><?php _e('Uninstall Easy Modal Settings', EMCORE_SLUG); ?> </label> </th> <td> <button type="submit" name="uninstall_emodal_db">Uninstall</button> <p class="description"><?php _e('Use this to reset the database and remove all modals, themes and database tables.', EMCORE_SLUG); ?> </p> </td> </tr><?php }