first commit

This commit is contained in:
2024-07-15 11:28:08 +02:00
commit f52d538ea5
21891 changed files with 6161164 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
<?php
/**
* Template with tabs of multi currency config.
*
* @package Przelewy24
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! isset( $tab ) ) {
throw new LogicException( 'The variable $tab is not set.' );
}
if ( ! isset( $multicurrency ) ) {
throw new LogicException( 'The variable $multicurrency is not set.' );
}
?>
<nav class="p24-horizontal-tab-menu">
<?php if ( 'main' === $tab ) : ?>
<span class="active"><?php echo esc_html( __( 'Ustawienia główne' ) ); ?></span>
<?php else : ?>
<a href="?page=p24-multi-currency"><?php echo esc_html( __( 'Ustawienia główne' ) ); ?></a>
<?php endif; ?>
<?php if ( 'multipliers' === $tab ) : ?>
<span class="active"><?php echo esc_html( __( 'Mnożniki walut' ) ); ?></span>
<?php elseif ( $multicurrency ) : ?>
<a href="?page=p24-multi-currency&tab=multipliers"><?php echo esc_html( __( 'Mnożniki walut' ) ); ?></a>
<?php else : ?>
<span class="inactive"><?php echo esc_html( __( 'Mnożniki walut' ) ); ?></span>
<?php endif; ?>
<?php if ( 'formats' === $tab ) : ?>
<span class="active"><?php echo esc_html( __( 'Formaty wyświetlania walut' ) ); ?></span>
<?php elseif ( $multicurrency ) : ?>
<a href="?page=p24-multi-currency&tab=formats"><?php echo esc_html( __( 'Formaty wyświetlania walut' ) ); ?></a>
<?php else : ?>
<span class="inactive"><?php echo esc_html( __( 'Formaty wyświetlania walut' ) ); ?></span>
<?php endif; ?>
</nav>
<?php