<?php
namespace SPAATG;
use SPAATG\ShortPixelLogger\ShortPixelLogger as Log;

if ( ! defined( 'ABSPATH' ) ) {
 exit; // Exit if accessed directly.
}
?>
<div class='top-menu'>

  <div class='links'>

		<?php if (false === $view->is_unlimited): ?>
	    <a href="<?php echo esc_url($view->key->apiKey ? 'https://shortpixel.com/login/' . rawurlencode($view->key->apiKey) . '/spaatg-unlimited' : 'https://shortpixel.com/pricing'); ?>" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'Buy credits', 'shortpixel-ai-alt-text-generator' );?></a> |
	  <?php endif; ?>

	    <a href="https://shortpixel.com/knowledge-base/" target="_blank" rel="noopener noreferrer"><?php esc_html_e('Knowledge Base','shortpixel-ai-alt-text-generator');?></a> |
	    <a href="https://shortpixel.com/contact" target="_blank" rel="noopener noreferrer"><?php esc_html_e('Contact Support','shortpixel-ai-alt-text-generator');?></a> |
	    <a href="<?php echo esc_url($view->key->apiKey ? 'https://shortpixel.com/login/' . rawurlencode($view->key->apiKey) . '/dashboard' : 'https://shortpixel.com/login'); ?>" target="_blank" rel="noopener noreferrer">
	        <?php esc_html_e('ShortPixel account','shortpixel-ai-alt-text-generator');?>
	    </a>
	    | <a href="mailto:help@shortpixel.com?subject=SPAATG%20Feature%20Request"><?php esc_html_e('Feature Request', 'shortpixel-ai-alt-text-generator'); ?>
	    </a>
	    | <a href="https://wordpress.org/support/plugin/shortpixel-ai-alt-text-generator/reviews/" target="_blank" rel="noopener noreferrer">   <?php esc_html_e('Rate Us', 'shortpixel-ai-alt-text-generator'); ?><img src="<?php echo esc_url(\wpSPAATG()->plugin_url('res/img/stars.png')); ?>" width="80" /></a>
  </div>


</div>
