- {if !$primarySidebar->hasChildren() && !$showingLoginPage && $templatefile != 'homepage'}
+ {if !$primarySidebar->hasChildren() && !$showingLoginPage && !$inShoppingCart && $templatefile != 'homepage'}
{include file="$template/includes/pageheader.tpl" title=$displayTitle desc=$tagline showbreadcrumb=true}
{/if}
diff --git a/js/domainchecker.js b/js/domainchecker.js
index 12bec227..3e58b806 100644
--- a/js/domainchecker.js
+++ b/js/domainchecker.js
@@ -109,18 +109,30 @@ jQuery(document).ready(function() {
});
});
-function addToCart(clickedBtn, performAvailabilityCheck, orderType) {
+function addToCart(clickedBtn, performAvailabilityCheck, orderType, years) {
var selectedDomain = jQuery(clickedBtn).closest('tr')
.find('td:first strong')
.html();
+ var appendYears = '';
+ if (typeof years != "undefined") {
+ clickedBtn = jQuery(clickedBtn).closest('div')
+ .find('button:first');
+ appendYears = '®_period=' + years;
+ }
+
+ var cartDropDown = jQuery(clickedBtn).closest('div')
+ .find('button.additional-options');
+ if (typeof cartDropDown != "undefined") {
+ jQuery(cartDropDown).attr('disabled', 'disabled');
+ }
jQuery(clickedBtn).attr('disabled', 'disabled')
.html('
' + langAdding + '...');
jQuery.post(
"domainchecker.php",
- "addtocart=1&check=" + performAvailabilityCheck + "&token=" + csrfToken + "&domain=" + selectedDomain + "&orderType=" + orderType,
+ "addtocart=1&check=" + performAvailabilityCheck + "&token=" + csrfToken + "&domain=" + selectedDomain + "&orderType=" + orderType + appendYears,
function(data) {
if (data == 1) {
jQuery("#cartItemCount").html(((jQuery("#cartItemCount").html() * 1) + 1));
diff --git a/pwreset.tpl b/pwreset.tpl
index 2ab0a14d..ccce9e05 100644
--- a/pwreset.tpl
+++ b/pwreset.tpl
@@ -2,57 +2,61 @@
{include file="$template/includes/pageheader.tpl" title=$LANG.pwreset}
- {if $success}
+ {if $loggedin}
+ {include file="$template/includes/alert.tpl" type="error" msg=$LANG.noPasswordResetWhenLoggedIn textcenter=true}
+ {else}
+ {if $success}
- {include file="$template/includes/alert.tpl" type="success" msg=$LANG.pwresetvalidationsent textcenter=true}
+ {include file="$template/includes/alert.tpl" type="success" msg=$LANG.pwresetvalidationsent textcenter=true}
-
{$LANG.pwresetvalidationcheckemail}
+
{$LANG.pwresetvalidationcheckemail}
- {else}
+ {else}
- {if $errormessage}
- {include file="$template/includes/alert.tpl" type="error" msg=$errormessage textcenter=true}
- {/if}
+ {if $errormessage}
+ {include file="$template/includes/alert.tpl" type="error" msg=$errormessage textcenter=true}
+ {/if}
- {if $securityquestion}
+ {if $securityquestion}
-
{$LANG.pwresetsecurityquestionrequired}
+
{$LANG.pwresetsecurityquestionrequired}
-
+
- {else}
+ {else}
-
{$LANG.pwresetemailneeded}
+
{$LANG.pwresetemailneeded}
-
+
- {/if}
+ {/if}
+ {/if}
{/if}
diff --git a/serverstatus.tpl b/serverstatus.tpl
index fd487d8b..1c750cac 100644
--- a/serverstatus.tpl
+++ b/serverstatus.tpl
@@ -5,7 +5,7 @@
{$issue.title} ({$issue.status})