Version 5.0.13
This commit is contained in:
1 parent
b89858b2ff
commit
5efe744c5f
1407 files changed
+69690
-30177
No files matched your search
@@ -909,7 +909,7 @@ IPSCONTENT;
|
||||
$return = '';
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<section class='ipsBox ipsPull'>
|
||||
<section class='ipsBox ipsBox--commerceSubscription ipsPull'>
|
||||
<header class='ipsPageHeader'>
|
||||
<div class="ipsPageHeader__row">
|
||||
<div class='ipsPageHeader__primary'>
|
||||
@@ -1025,40 +1025,22 @@ IPSCONTENT;
|
||||
$memberCurrency = ( ( isset( \IPS\Widget\Request::i()->cookie['currency'] ) and \in_array( \IPS\Widget\Request::i()->cookie['currency'], \IPS\nexus\Money::currencies() ) ) ? \IPS\Widget\Request::i()->cookie['currency'] : \IPS\nexus\Customer::loggedIn()->defaultCurrency() );
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<a href='#elCurrencyChooser_menu' data-ipsMenu id='elCurrencyChooser' class='ipsButton ipsButton--soft'><span>
|
||||
<button type="button" id="elCurrencyChooser" popovertarget="elCurrencyChooser_menu" class='ipsButton ipsButton--soft'><span>
|
||||
IPSCONTENT;
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( $memberCurrency, ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
</span><i class='fa-solid fa-caret-down'></i></a>
|
||||
<ul class='ipsMenu ipsMenu_veryNarrow ipsHide' id='elCurrencyChooser_menu'
|
||||
IPSCONTENT;
|
||||
|
||||
if ( isset( $_SESSION['cart'] ) and \count( $_SESSION['cart'] ) ):
|
||||
$return .= <<<IPSCONTENT
|
||||
data-controller="nexus.front.store.currencySelect"
|
||||
IPSCONTENT;
|
||||
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
>
|
||||
|
||||
</span><i class='fa-solid fa-caret-down'></i></button>
|
||||
<i-dropdown popover id="elCurrencyChooser_menu">
|
||||
<div class="iDropdown">
|
||||
<ul class="iDropdown__items">
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
foreach ( \IPS\nexus\Money::currencies() as $currency ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<li class='ipsMenu_item'
|
||||
IPSCONTENT;
|
||||
|
||||
if ( $currency == $memberCurrency ):
|
||||
$return .= <<<IPSCONTENT
|
||||
data-selected
|
||||
IPSCONTENT;
|
||||
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
>
|
||||
<a href='
|
||||
<li>
|
||||
<a href='
|
||||
IPSCONTENT;
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( $baseUrl->setQueryString( 'currency', $currency )->csrf(), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
@@ -1067,31 +1049,33 @@ IPSCONTENT;
|
||||
|
||||
$sprintf = array($currency); $return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'set_currency_to', ENT_DISALLOWED, 'UTF-8', FALSE ), FALSE, array( 'sprintf' => $sprintf ) );
|
||||
$return .= <<<IPSCONTENT
|
||||
'>
|
||||
|
||||
'
|
||||
IPSCONTENT;
|
||||
|
||||
if ( $currency == $memberCurrency ):
|
||||
$return .= <<<IPSCONTENT
|
||||
<i class='fa-solid fa-check'></i>
|
||||
data-selected aria-selected="true"
|
||||
IPSCONTENT;
|
||||
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
>
|
||||
<i class="iDropdown__input"></i>
|
||||
IPSCONTENT;
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( $currency, ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</a>
|
||||
</li>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
endforeach;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
</ul>
|
||||
</ul>
|
||||
</div>
|
||||
</i-dropdown>
|
||||
</div>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
Reference in new issue
Block a user