Version 5.0.6
This commit is contained in:
1 parent
a3a4a9ccbd
commit
b89858b2ff
1214 files changed
+92828
-14859
No files matched your search
@@ -1611,7 +1611,7 @@ $return .= <<<IPSCONTENT
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$val = ( $withdrawal->date instanceof \IPS\DateTime ) ? $withdrawal->date : \IPS\DateTime::ts( $withdrawal->date );$return .= $val->html();
|
||||
$val = ( $withdrawal->date instanceof \IPS\DateTime ) ? $withdrawal->date : \IPS\DateTime::ts( $withdrawal->date );$return .= $val->html(useTitle: true);
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
</p>
|
||||
@@ -1887,7 +1887,7 @@ $return .= <<<IPSCONTENT
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$val = ( $invoice->date instanceof \IPS\DateTime ) ? $invoice->date : \IPS\DateTime::ts( $invoice->date );$return .= $val->html(FALSE);
|
||||
$val = ( $invoice->date instanceof \IPS\DateTime ) ? $invoice->date : \IPS\DateTime::ts( $invoice->date );$return .= $val->html(FALSE, useTitle: true);
|
||||
$return .= <<<IPSCONTENT
|
||||
</p>
|
||||
</div>
|
||||
@@ -2729,7 +2729,7 @@ $return .= <<<IPSCONTENT
|
||||
<strong class='i-font-size_2'>
|
||||
IPSCONTENT;
|
||||
|
||||
$val = ( $invoice->date instanceof \IPS\DateTime ) ? $invoice->date : \IPS\DateTime::ts( $invoice->date );$return .= $val->html();
|
||||
$val = ( $invoice->date instanceof \IPS\DateTime ) ? $invoice->date : \IPS\DateTime::ts( $invoice->date );$return .= $val->html(useTitle: true);
|
||||
$return .= <<<IPSCONTENT
|
||||
</strong><br>
|
||||
<span class='i-color_soft'>
|
||||
@@ -2994,7 +2994,7 @@ $return .= <<<IPSCONTENT
|
||||
<p class='ipsData__meta'>
|
||||
IPSCONTENT;
|
||||
|
||||
$val = ( $thisTransaction->date instanceof \IPS\DateTime ) ? $thisTransaction->date : \IPS\DateTime::ts( $thisTransaction->date );$return .= $val->html();
|
||||
$val = ( $thisTransaction->date instanceof \IPS\DateTime ) ? $thisTransaction->date : \IPS\DateTime::ts( $thisTransaction->date );$return .= $val->html(useTitle: true);
|
||||
$return .= <<<IPSCONTENT
|
||||
</p>
|
||||
</div>
|
||||
@@ -3044,7 +3044,7 @@ $return .= <<<IPSCONTENT
|
||||
<span class='i-color_soft'>
|
||||
IPSCONTENT;
|
||||
|
||||
$val = ( $thisTransaction->date instanceof \IPS\DateTime ) ? $thisTransaction->date : \IPS\DateTime::ts( $thisTransaction->date );$return .= $val->html();
|
||||
$val = ( $thisTransaction->date instanceof \IPS\DateTime ) ? $thisTransaction->date : \IPS\DateTime::ts( $thisTransaction->date );$return .= $val->html(useTitle: true);
|
||||
$return .= <<<IPSCONTENT
|
||||
</span>
|
||||
</div>
|
||||
@@ -3098,7 +3098,7 @@ $return .= <<<IPSCONTENT
|
||||
<span class='i-color_soft'>
|
||||
IPSCONTENT;
|
||||
|
||||
$val = ( $thisTransaction->date instanceof \IPS\DateTime ) ? $thisTransaction->date : \IPS\DateTime::ts( $thisTransaction->date );$return .= $val->html();
|
||||
$val = ( $thisTransaction->date instanceof \IPS\DateTime ) ? $thisTransaction->date : \IPS\DateTime::ts( $thisTransaction->date );$return .= $val->html(useTitle: true);
|
||||
$return .= <<<IPSCONTENT
|
||||
</span>
|
||||
</p>
|
||||
@@ -3289,7 +3289,7 @@ $return .= <<<IPSCONTENT
|
||||
<span class='i-color_soft'>
|
||||
IPSCONTENT;
|
||||
|
||||
$val = ( $thisTransaction->date instanceof \IPS\DateTime ) ? $thisTransaction->date : \IPS\DateTime::ts( $thisTransaction->date );$return .= $val->html();
|
||||
$val = ( $thisTransaction->date instanceof \IPS\DateTime ) ? $thisTransaction->date : \IPS\DateTime::ts( $thisTransaction->date );$return .= $val->html(useTitle: true);
|
||||
$return .= <<<IPSCONTENT
|
||||
</span>
|
||||
</div>
|
||||
@@ -3388,10 +3388,10 @@ IPSCONTENT;
|
||||
$extra = $purchase->clientAreaPage();
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<div class='ipsBox'>
|
||||
<div class='ipsColumns cNexusPurchase i-padding_2'>
|
||||
<div class='ipsColumns__secondary i-basis_200'>
|
||||
<span class='ipsThumb'>
|
||||
<div class="ipsBox">
|
||||
<div class="ipsColumns cNexusPurchase i-padding_2">
|
||||
<div class="ipsColumns__secondary i-basis_200">
|
||||
<span class="ipsThumb">
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
@@ -3410,11 +3410,11 @@ IPSCONTENT;
|
||||
elseif ( $icon = $purchase->getIcon() ):
|
||||
$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>
|
||||
"></i>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
@@ -3449,7 +3449,7 @@ $return .= <<<IPSCONTENT
|
||||
|
||||
</span>
|
||||
|
||||
<hr class='ipsHr'>
|
||||
<hr class="ipsHr">
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
@@ -3457,7 +3457,7 @@ IPSCONTENT;
|
||||
if ( ( $purchase->expire AND $canRenewUntil = $purchase->canRenewUntil(NULL,TRUE) ) OR $purchase->canCancel() ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<ul class='i-grid i-gap_2 cNexusPurchase_renewActions'>
|
||||
<ul class="i-grid i-gap_2 cNexusPurchase_renewActions">
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
@@ -3469,7 +3469,7 @@ IPSCONTENT;
|
||||
|
||||
$return .= htmlspecialchars( \IPS\Http\Url::internal( "app=nexus&module=clients&controller=purchases&do=renew&id={$purchase->id}" . "&csrfKey=" . \IPS\Session::i()->csrfKey, "front", "clientspurchaserenew", array( \IPS\Http\Url\Friendly::seoTitle( $purchase->name ) ), 0 ), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', TRUE );
|
||||
$return .= <<<IPSCONTENT
|
||||
" class='ipsButton ipsButton--primary ipsButton--wide ipsButton--small' title="
|
||||
" class="ipsButton ipsButton--primary ipsButton--wide ipsButton--small" title="
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'purchase_renew_now_title', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
@@ -3479,7 +3479,7 @@ IPSCONTENT;
|
||||
|
||||
if ( $canRenewUntil === TRUE or $canRenewUntil > 1 ):
|
||||
$return .= <<<IPSCONTENT
|
||||
data-ipsDialog data-ipsDialog-size='narrow'
|
||||
data-ipsdialog data-ipsdialog-size="narrow"
|
||||
IPSCONTENT;
|
||||
|
||||
endif;
|
||||
@@ -3507,7 +3507,7 @@ IPSCONTENT;
|
||||
|
||||
$return .= htmlspecialchars( \IPS\Http\Url::internal( "app=nexus&module=clients&controller=purchases&do=cancel&id={$purchase->id}" . "&csrfKey=" . \IPS\Session::i()->csrfKey, "front", "clientspurchasecancel", array( \IPS\Http\Url\Friendly::seoTitle( $purchase->name ) ), 0 ), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', TRUE );
|
||||
$return .= <<<IPSCONTENT
|
||||
" class='ipsButton ipsButton--text ipsButton--wide ipsButton--small' data-confirm data-confirmSubMessage="
|
||||
" class="ipsButton ipsButton--text ipsButton--wide ipsButton--small" data-confirm data-confirmsubmessage="
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'purchase_cancel_renewal_confirm', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
@@ -3532,8 +3532,18 @@ endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
<dl class='cNexusPurchase_info i-margin-top_3'>
|
||||
<dt class='ipsMinorTitle'><strong>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "nexus/front/clients/purchase", "purchaseInfo:before", [ $purchase ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
<dl class="cNexusPurchase_info i-margin-top_3" data-ips-hook="purchaseInfo">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "nexus/front/clients/purchase", "purchaseInfo:inside-start", [ $purchase ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<dt class="ipsMinorTitle"><strong>
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'ps_start', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
@@ -3550,7 +3560,7 @@ IPSCONTENT;
|
||||
if ( $purchase->expire ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<dt class='ipsMinorTitle'><strong>
|
||||
<dt class="ipsMinorTitle"><strong>
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'ps_expire', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
@@ -3573,7 +3583,7 @@ IPSCONTENT;
|
||||
if ( $purchase->renewals and !$purchase->grouped_renewals ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<dt class='ipsMinorTitle'><strong>
|
||||
<dt class="ipsMinorTitle"><strong>
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'purchase_renewal_terms', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
@@ -3596,17 +3606,17 @@ IPSCONTENT;
|
||||
if ( $purchase->billing_agreement AND !$purchase->billing_agreement->canceled ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<dt class='ipsMinorTitle'><strong>
|
||||
<dt class="ipsMinorTitle"><strong>
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'ps_billing_agreement', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
$return .= <<<IPSCONTENT
|
||||
</strong></dt>
|
||||
<dd class='i-link-color_inherit'><a href='
|
||||
<dd class="i-link-color_inherit"><a href="
|
||||
IPSCONTENT;
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( $purchase->billing_agreement->url(), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
'>
|
||||
">
|
||||
IPSCONTENT;
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( $purchase->billing_agreement->gw_id, ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
@@ -3617,9 +3627,19 @@ IPSCONTENT;
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
</dl>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "nexus/front/clients/purchase", "purchaseInfo:inside-end", [ $purchase ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
</dl>
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "nexus/front/clients/purchase", "purchaseInfo:after", [ $purchase ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
</div>
|
||||
<div class='ipsColumns__primary'>
|
||||
<div class="ipsColumns__primary">
|
||||
<h1 class="ipsTitle ipsTitle--h3">
|
||||
IPSCONTENT;
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( $purchase->name, ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
@@ -3632,24 +3652,24 @@ IPSCONTENT;
|
||||
if ( $purchase->cancelled ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<span class='ipsBadge ipsBadge--negative'>
|
||||
<span class="ipsBadge ipsBadge--negative">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'purchase_canceled', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
$return .= <<<IPSCONTENT
|
||||
</span>
|
||||
</span>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
elseif ( !$purchase->active ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<span class='ipsBadge ipsBadge--neutral'>
|
||||
<span class="ipsBadge ipsBadge--neutral">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'purchase_expired', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
$return .= <<<IPSCONTENT
|
||||
</span>
|
||||
</span>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
@@ -3662,24 +3682,24 @@ IPSCONTENT;
|
||||
if ( $purchase->grace_period and $purchase->expire->getTimestamp() < time() ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<span class='ipsBadge ipsBadge--positive'>
|
||||
<span class="ipsBadge ipsBadge--positive">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'purchase_in_grace_period_front', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
$return .= <<<IPSCONTENT
|
||||
</span>
|
||||
</span>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
else:
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<span class='ipsBadge ipsBadge--positive'>
|
||||
<span class="ipsBadge ipsBadge--positive">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'purchase_active', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
$return .= <<<IPSCONTENT
|
||||
</span>
|
||||
</span>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
@@ -3707,7 +3727,7 @@ IPSCONTENT;
|
||||
if ( $pendingInvoice = $purchase->invoice_pending and $pendingInvoice->status === $pendingInvoice::STATUS_PENDING ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<div class='i-margin-bottom_3 ipsMessage ipsMessage--info'>
|
||||
<div class="i-margin-bottom_3 ipsMessage ipsMessage--info">
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
@@ -3752,14 +3772,14 @@ IPSCONTENT;
|
||||
if ( $lkey = $purchase->licenseKey() ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<div class='i-background_2 i-padding_3 i-text-align_center i-margin-bottom_4'>
|
||||
<h2 class='ipsMinorTitle i-margin-bottom_2'>
|
||||
<div class="i-background_2 i-padding_3 i-text-align_center i-margin-bottom_4">
|
||||
<h2 class="ipsMinorTitle i-margin-bottom_2">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'purchase_license_key', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
$return .= <<<IPSCONTENT
|
||||
</h2>
|
||||
<div class='i-font-size_2 i-font-family_monospace cNexusLicenseKey'>
|
||||
<div class="i-font-size_2 i-font-family_monospace cNexusLicenseKey">
|
||||
|
||||
IPSCONTENT;
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( $lkey->key, ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
@@ -3780,7 +3800,7 @@ IPSCONTENT;
|
||||
if ( isset( $extra['packageInfo'] ) ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<h2 class='ipsTitle ipsTitle--h3 i-margin-bottom_2'>
|
||||
<h2 class="ipsTitle ipsTitle--h3 i-margin-bottom_2">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'purchase_package_info', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
@@ -3831,12 +3851,12 @@ IPSCONTENT;
|
||||
foreach ( $purchases[$rootId] as $purchase ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<li class='cNexusPurchaseList i-flex i-flex-direction_column i-gap_2 i-padding_3'>
|
||||
<a href='
|
||||
<li class="cNexusPurchaseList i-flex i-flex-direction_column i-gap_2 i-padding_3">
|
||||
<a href="
|
||||
IPSCONTENT;
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( $purchase->url(), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
' class='ipsThumb i-aspect-ratio_7'>
|
||||
" class="ipsThumb i-aspect-ratio_7">
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
@@ -3848,18 +3868,18 @@ IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( str_replace( array( '(', ')' ), array( '\(', '\)' ), $image->url ), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
" alt='' loading='lazy'>
|
||||
" alt="" loading="lazy">
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
elseif ( $icon = $purchase->getIcon() ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<i class='fa fa-
|
||||
<i class="fa fa-
|
||||
IPSCONTENT;
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( $icon, ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
i-font-size_7'></i>
|
||||
i-font-size_7"></i>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
@@ -3874,7 +3894,7 @@ endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
</a>
|
||||
<h2 class='ipsTitle ipsTitle--h3'><a href="
|
||||
<h2 class="ipsTitle ipsTitle--h3"><a href="
|
||||
IPSCONTENT;
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( $purchase->url(), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
@@ -3900,7 +3920,7 @@ IPSCONTENT;
|
||||
if ( isset( $purchases[ $purchase->id ]) ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<ul class='cNexusPurchaseSubList'>
|
||||
<ul class="cNexusPurchaseSubList">
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
@@ -3914,7 +3934,7 @@ IPSCONTENT;
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<div class='i-margin-top_auto i-padding-top_3 cNexusPurchaseList_info'>
|
||||
<div class="i-margin-top_auto i-padding-top_3 cNexusPurchaseList_info">
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
@@ -3923,7 +3943,7 @@ if ( !$fromBillingAgreement and $pendingInvoice = $purchase->invoice_pending and
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<p>
|
||||
<i class='fa-solid fa-circle-info'></i>
|
||||
<i class="fa-solid fa-circle-info"></i>
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'purchase_pending_invoice', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
@@ -3954,7 +3974,7 @@ endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
</p>
|
||||
<hr class='ipsHr'>
|
||||
<hr class="ipsHr">
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
@@ -3962,9 +3982,9 @@ endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
<div class='i-flex i-flex-wrap_wrap i-gap_3'>
|
||||
<div class="i-flex i-flex-wrap_wrap i-gap_3">
|
||||
<div>
|
||||
<h3 class='ipsMinorTitle'>
|
||||
<h3 class="ipsMinorTitle">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'purchase_status', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
@@ -3980,7 +4000,7 @@ IPSCONTENT;
|
||||
|
||||
if ( $purchase->grace_period and $expire = $purchase->expire and $expire->getTimestamp() < time() ):
|
||||
$return .= <<<IPSCONTENT
|
||||
<span class='ipsBadge ipsBadge--positive'>
|
||||
<span class="ipsBadge ipsBadge--positive">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'purchase_in_grace_period_front', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
@@ -3990,7 +4010,7 @@ IPSCONTENT;
|
||||
|
||||
else:
|
||||
$return .= <<<IPSCONTENT
|
||||
<span class='ipsBadge ipsBadge--positive'>
|
||||
<span class="ipsBadge ipsBadge--positive">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'purchase_active', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
@@ -4005,7 +4025,7 @@ IPSCONTENT;
|
||||
|
||||
elseif ( $purchase->cancelled ):
|
||||
$return .= <<<IPSCONTENT
|
||||
<span class='ipsBadge ipsBadge--negative'>
|
||||
<span class="ipsBadge ipsBadge--negative">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'purchase_canceled', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
@@ -4015,7 +4035,7 @@ IPSCONTENT;
|
||||
|
||||
else:
|
||||
$return .= <<<IPSCONTENT
|
||||
<span class='ipsBadge ipsBadge--neutral'>
|
||||
<span class="ipsBadge ipsBadge--neutral">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'purchase_expired', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
@@ -4028,7 +4048,7 @@ $return .= <<<IPSCONTENT
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<h3 class='ipsMinorTitle'>
|
||||
<h3 class="ipsMinorTitle">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'ps_start', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
@@ -4047,7 +4067,7 @@ if ( $purchase->expire ):
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<div>
|
||||
<h3 class='ipsMinorTitle'>
|
||||
<h3 class="ipsMinorTitle">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'ps_expire', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
@@ -4072,17 +4092,17 @@ if ( !$fromBillingAgreement and $purchase->billing_agreement AND !$purchase->bil
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
<div>
|
||||
<h3 class='ipsMinorTitle'>
|
||||
<h3 class="ipsMinorTitle">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'ps_billing_agreement', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
$return .= <<<IPSCONTENT
|
||||
</h3>
|
||||
<span><a href='
|
||||
<span><a href="
|
||||
IPSCONTENT;
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( $purchase->billing_agreement->url(), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
'>
|
||||
">
|
||||
IPSCONTENT;
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( $purchase->billing_agreement->gw_id, ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
@@ -4096,7 +4116,17 @@ $return .= <<<IPSCONTENT
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class='ipsButtons ipsButtons--fill ipsButtons--start i-padding-top_2'>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "nexus/front/clients/purchaseList", "purchaseButtons:before", [ $rootId,$purchases,$halfSize,$fromBillingAgreement ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
<div class="ipsButtons ipsButtons--fill ipsButtons--start i-padding-top_2" data-ips-hook="purchaseButtons">
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "nexus/front/clients/purchaseList", "purchaseButtons:inside-start", [ $rootId,$purchases,$halfSize,$fromBillingAgreement ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
@@ -4134,7 +4164,7 @@ $return .= <<<IPSCONTENT
|
||||
IPSCONTENT;
|
||||
$return .= \IPS\Theme\Template::htmlspecialchars( $purchase->url()->setQueryString( 'do', 'renew' )->csrf(), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );
|
||||
$return .= <<<IPSCONTENT
|
||||
" class='ipsButton ipsButton--inherit ipsButton--small' title="
|
||||
" class="ipsButton ipsButton--inherit ipsButton--small" title="
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'purchase_renew_now_title', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) );
|
||||
@@ -4144,7 +4174,7 @@ IPSCONTENT;
|
||||
|
||||
if ( $canRenewUntil === TRUE OR $canRenewUntil > 1 ):
|
||||
$return .= <<<IPSCONTENT
|
||||
data-ipsDialog data-ipsDialog-size='narrow'
|
||||
data-ipsdialog data-ipsdialog-size="narrow"
|
||||
IPSCONTENT;
|
||||
|
||||
endif;
|
||||
@@ -4187,7 +4217,17 @@ IPSCONTENT;
|
||||
endif;
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
</div>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "nexus/front/clients/purchaseList", "purchaseButtons:inside-end", [ $rootId,$purchases,$halfSize,$fromBillingAgreement ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
</div>
|
||||
IPSCONTENT;
|
||||
|
||||
$return .= \IPS\Theme\CustomTemplate::getCustomTemplatesForHookPoint( "nexus/front/clients/purchaseList", "purchaseButtons:after", [ $rootId,$purchases,$halfSize,$fromBillingAgreement ] );
|
||||
$return .= <<<IPSCONTENT
|
||||
|
||||
</li>
|
||||
|
||||
IPSCONTENT;
|
||||
|
||||
Reference in new issue
Block a user