Skip to content

Commit

Permalink
Fix/242 updated settings page headers (#312)
Browse files Browse the repository at this point in the history
* update headings to be not quite so overly descriptive

* new helper function for checking for Algolia Pro
  • Loading branch information
tw2113 authored Mar 22, 2023
1 parent b4c6ee5 commit 65ac1f3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions algolia.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,21 @@ function algolia_wp_version_check() {
return true;
}

/**
* Check if WP Search with Algolia Pro is active.
*
* @author Webdevstudios <contact@webdevstudios.com>
* @since 2.5.0
*
* @return bool
*/
function algolia_is_pro_active() {
if ( ! defined( 'WPSWA_PRO_VERSION' ) ) {
return false;
}
return true;
}

/**
* Admin notices if requirements aren't met.
*
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/partials/form-options-seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<div class="wrap">
<h1>
<?php esc_html_e( 'WP Search with Algolia and Search Engine Optimization', 'wp-search-with-algolia' ); ?>
<?php esc_html_e( 'Search Engine Optimization', 'wp-search-with-algolia' ); ?>
</h1>
<img style="max-width: 100%;" src="<?php echo esc_url( ALGOLIA_PLUGIN_URL . 'includes/admin/img/algolia-pro-seo.png' ); ?>" alt="<?php esc_attr_e( 'Blurry representiation of features available with WP Search with Algolia Pro.', 'wp-search-with-algolia' ); ?>" />
</div>
2 changes: 1 addition & 1 deletion includes/admin/partials/form-options-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<div class="wrap">
<h1>
<?php esc_html_e( 'WP Search with Algolia and WooCommerce', 'wp-search-with-algolia' ); ?>
<?php esc_html_e( 'WooCommerce', 'wp-search-with-algolia' ); ?>
</h1>
<img style="max-width: 100%;" src="<?php echo esc_url( ALGOLIA_PLUGIN_URL . 'includes/admin/img/algolia-pro-woocommerce.png' ); ?>" alt="<?php esc_attr_e( 'Blurry representiation of features available with WP Search with Algolia Pro.', 'wp-search-with-algolia' ); ?>" />
</div>

0 comments on commit 65ac1f3

Please sign in to comment.