Skip to content

Commit

Permalink
Fixed: only display CE link on Welcome slide in wizard.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan0sz committed Apr 5, 2024
1 parent c7ee3b0 commit 46e1437
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/Admin/Settings/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,14 @@ class="plausible-analytics-wizard-next-step no-underline gap-x-2 inline-flex rel
class="hover:cursor-pointer inline-block mt-4 px-4 py-2 border no-underline text-sm leading-5 font-medium rounded-md text-red-700 bg-white dark:text-white hover:text-red-500 dark:hover:text-red-400 focus:outline-none focus:border-blue-300 focus:ring active:text-red-800 active:bg-gray-50 transition ease-in-out duration-150">
<?php esc_html_e( 'Setup later', 'plausible-analytics' ); ?>
</a>
<a href="<?php echo admin_url(
"admin-ajax.php?action=plausible_analytics_quit_wizard&_nonce=$nonce&redirect=self-hosted"
); ?>"
class="float-right hover:cursor-pointer inline-block mt-4 px-4 py-2 border no-underline text-sm leading-5 font-medium rounded-md text-red-700 bg-white dark:text-white hover:text-red-500 dark:hover:text-red-400 focus:outline-none focus:border-blue-300 focus:ring active:text-red-800 active:bg-gray-50 transition ease-in-out duration-150">
<?php esc_html_e( 'Community Edition', 'plausible-analytics' ); ?>
</a>
<?php if ( $id === 'welcome' ): ?>
<a href="<?php echo admin_url(
"admin-ajax.php?action=plausible_analytics_quit_wizard&_nonce=$nonce&redirect=self-hosted"
); ?>"
class="float-right hover:cursor-pointer inline-block mt-4 px-4 py-2 border no-underline text-sm leading-5 font-medium rounded-md text-red-700 bg-white dark:text-white hover:text-red-500 dark:hover:text-red-400 focus:outline-none focus:border-blue-300 focus:ring active:text-red-800 active:bg-gray-50 transition ease-in-out duration-150">
<?php esc_html_e( 'Community Edition', 'plausible-analytics' ); ?>
</a>
<?php endif; ?>
<?php else: ?>
<a href="<?php echo admin_url(
"admin-ajax.php?action=plausible_analytics_quit_wizard&_nonce=$nonce&redirect=1"
Expand Down

0 comments on commit 46e1437

Please sign in to comment.