Version 5.0.13

This commit is contained in:
Neo committed 2025-12-19 19:04:57 -08:00
1 parent b89858b2ff
commit 5efe744c5f
1407 files changed
+69690 -30177

No files matched your search

+60 -63
View File
@@ -796,17 +796,12 @@ $subtotal = new \IPS\Math\Number('0');
$return .= <<<IPSCONTENT
<li data-el='cart' id='elCart_container'>
<a href='
IPSCONTENT;
$return .= htmlspecialchars( \IPS\Http\Url::internal( "app=nexus&module=store&controller=cart", null, "store_cart", array(), 0 ), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', TRUE );
$return .= <<<IPSCONTENT
' class="ipsUserNav__link" id='elCart' data-ipsTooltip title='
<button type="button" id="elCart" popovertarget="elCart_menu" class="ipsUserNav__link" data-ipsTooltip title='
IPSCONTENT;
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'your_cart', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
$return .= <<<IPSCONTENT
' data-ipsMenu data-ipsMenu-closeOnClick='false'>
'>
<i class="fa-solid fa-basket-shopping ipsUserNav__icon"></i>
<span class='ipsNotification'>
IPSCONTENT;
@@ -820,32 +815,35 @@ IPSCONTENT;
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'cart', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
$return .= <<<IPSCONTENT
</span>
</a>
<div id='elCart_menu' class='ipsMenu ipsMenu_wide ipsHide'>
<div class="ipsMenu_headerBar"><h4 class="ipsTitle ipsTitle--h3">
</button>
<i-dropdown popover id="elCart_menu">
<div class="iDropdown">
<div class="iDropdown__header">
<h4>
IPSCONTENT;
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'your_cart', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
$return .= <<<IPSCONTENT
</h4></div>
<div class='ipsMenu_innerContent'>
<i-data>
<ul class="ipsData ipsData--table ipsData--compact ipsData--cart-dropdown" data-role='cartList' id='elCartContent'>
</h4>
</div>
<div class='iDropdown__content'>
<i-data>
<ul class="ipsData ipsData--table ipsData--compact ipsData--cart-dropdown" data-role='cartList' id='elCartContent'>
IPSCONTENT;
foreach ( $_SESSION['cart'] as $id => $item ):
$return .= <<<IPSCONTENT
<li class='ipsData__item'>
<figure class='ipsData__image'>
<li class='ipsData__item'>
<div class='ipsData__image' aria-hidden="true">
IPSCONTENT;
if ( $image = $item->image() ):
$return .= <<<IPSCONTENT
<img src="
<img src="
IPSCONTENT;
$return .= \IPS\Theme\Template::htmlspecialchars( $image->url, ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
$return .= <<<IPSCONTENT
@@ -854,162 +852,161 @@ IPSCONTENT;
$return .= \IPS\Theme\Template::htmlspecialchars( $item->name, ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
$return .= <<<IPSCONTENT
" loading="lazy">
IPSCONTENT;
elseif ( $icon = $item::$icon ):
$return .= <<<IPSCONTENT
<i class='fa fa-solid fa-
<i class='fa fa-solid fa-
IPSCONTENT;
$return .= \IPS\Theme\Template::htmlspecialchars( $icon, ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
$return .= <<<IPSCONTENT
'></i>
IPSCONTENT;
else:
$return .= <<<IPSCONTENT
<i></i>
<i></i>
IPSCONTENT;
endif;
$return .= <<<IPSCONTENT
</figure>
<div class='ipsData__main'>
<div class='ipsData__title'>
</div>
<div class='ipsData__main'>
<div class='ipsData__title'>
IPSCONTENT;
$return .= \IPS\Theme\Template::htmlspecialchars( $item->name, ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
$return .= <<<IPSCONTENT
</div>
<p class="ipsData__meta">&times;
<p class="ipsData__meta">&times;
IPSCONTENT;
$return .= \IPS\Theme\Template::htmlspecialchars( $item->quantity, ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
$return .= <<<IPSCONTENT
</p>
</div>
<div class='cNexusPrice'>
<strong>
</div>
<div class='cNexusPrice'>
<strong>
IPSCONTENT;
$location = NULL;
$return .= <<<IPSCONTENT
IPSCONTENT;
if ( \IPS\Settings::i()->nexus_show_tax ):
$return .= <<<IPSCONTENT
IPSCONTENT;
$location = $location ?: \IPS\nexus\Customer::loggedIn()->estimatedLocation();
$return .= <<<IPSCONTENT
IPSCONTENT;
$linePrice = $item->grossLinePrice( $location );
$return .= <<<IPSCONTENT
IPSCONTENT;
else:
$return .= <<<IPSCONTENT
IPSCONTENT;
$linePrice = $item->linePrice();
$return .= <<<IPSCONTENT
IPSCONTENT;
endif;
$return .= <<<IPSCONTENT
IPSCONTENT;
$return .= \IPS\Theme\Template::htmlspecialchars( $linePrice, ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
$return .= <<<IPSCONTENT
IPSCONTENT;
$subtotal = $subtotal->add( $linePrice->amount );
$return .= <<<IPSCONTENT
</strong>
</strong>
IPSCONTENT;
if ( $item->quantity > 1 ):
$return .= <<<IPSCONTENT
<p class='i-font-size_-2 i-color_soft'>
<p class='i-font-size_-2 i-color_soft'>
IPSCONTENT;
$sprintf = array($item->price); $return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'each_short', ENT_DISALLOWED, 'UTF-8', FALSE ), FALSE, array( 'sprintf' => $sprintf ) );
$return .= <<<IPSCONTENT
</p>
</p>
IPSCONTENT;
endif;
$return .= <<<IPSCONTENT
</div>
</li>
</div>
</li>
IPSCONTENT;
endforeach;
$return .= <<<IPSCONTENT
<li class='ipsData__item cNexusMenuCart_totalRow'>
<div class='ipsData__main i-font-size_2 i-text-align_end'>
<strong>
<li class='ipsData__item cNexusMenuCart_totalRow'>
<div class='ipsData__main i-font-size_2 i-text-align_end'>
<strong>
IPSCONTENT;
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'subtotal', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
$return .= <<<IPSCONTENT
</strong>
</div>
<div class='i-basis_100 cNexusPrice i-font-size_2 i-text-align_end'>
<strong>
</div>
<div class='i-basis_100 cNexusPrice i-font-size_2 i-text-align_end'>
<strong>
IPSCONTENT;
$return .= new \IPS\nexus\Money( $subtotal, ( ( isset( \IPS\Request::i()->cookie['currency'] ) and \in_array( \IPS\Request::i()->cookie['currency'], \IPS\nexus\Money::currencies() ) ) ? \IPS\Request::i()->cookie['currency'] : \IPS\nexus\Customer::loggedIn()->defaultCurrency() ) );
$return .= <<<IPSCONTENT
</strong>
</div>
</li>
</ul>
</i-data>
</div>
<div class='ipsMenu_footerBar i-text-align_center'>
</div>
</li>
</ul>
</i-data>
</div>
<a href='
IPSCONTENT;
$return .= htmlspecialchars( \IPS\Http\Url::internal( "app=nexus&module=store&controller=cart", null, "store_cart", array(), 0 ), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', TRUE );
$return .= <<<IPSCONTENT
' class='ipsButton ipsButton--small ipsButton--primary'>
' class='iDropdown__footer'>
IPSCONTENT;
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'review_and_checkout', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
$return .= <<<IPSCONTENT
</a>
</div>
</div>
</i-dropdown>
</li>
IPSCONTENT;