/**
 * Action to replace the admin footer text
 * @return string
 */
function wpsolr_admin_footer_text($footer_text)
{
    $current_screen = get_current_screen();
    // Display wpsolr footer only on wpsolr admin pages
    if ('solr_settings' === $current_screen->parent_file) {
        $footer_text = 'If you like WPSOLR, thank you for letting others know with a <a href="https://wordpress.org/support/view/plugin-reviews/wpsolr-search-engine" target="__new">***** review</a>.';
        $footer_text .= ' Else, we\'d like very much your feedbacks throught our <a href="http://www.wpsolr.com" target="__new">chat box</a> to improve the plugin.';
        $footer_version = 'You are using the free plugin.';
        $licenses = OptionLicenses::get_activated_licenses_titles();
        if (is_array($licenses) && !empty($licenses)) {
            $footer_version = sprintf('Activated packs: %s.', implode(', ', $licenses));
        }
        $footer_version .= ' See <a href="http://www.wpsolr.com/pricing" target="__new">other packs</a>.';
        $footer_text = $footer_version . '<br/>' . $footer_text;
    }
    return $footer_text;
}