This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AuthName "Protected area, need authorization" | |
AuthType Basic | |
AuthUserFile /home/d/detali/rebel.detali.digital/public_html/dtls1234/.htpasswd | |
require valid-user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[+checkZoomRange:is=`0`:or:is=`false`:or:is=``:then=` `:else=` | |
geoObjects.applyBoundsToMap(myMap[[+idMap]], { | |
checkZoomRange: false | |
}); | |
myMap[[+idMap]].setZoom([[+zoom]]); | |
`]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$lowerURI=strtolower($_SERVER['REQUEST_URI']); | |
if($_SERVER['REQUEST_URI']!=$lowerURI) | |
{ | |
header("HTTP/1.1 301 Moved Permanently"); | |
header("Location: http://" . $_SERVER['HTTP_HOST'] . $lowerURI); | |
exit(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// set OnHandleRequest OnHandleRequest | |
if ($modx->event->name == 'OnHandleRequest') { | |
$rAlias = $modx->getOption('request_param_alias', null, 'q'); | |
if ( isset ($_REQUEST[$rAlias]) ) { | |
//$_REQUEST[$rAlias] != strtolower($_REQUEST[$rAlias]); | |
if($_REQUEST[$rAlias] != strtolower($_REQUEST[$rAlias])){ | |
$target=strtolower($_REQUEST[$rAlias]); | |
$modx->sendRedirect($target, 0, 'REDIRECT_HEADER', 'HTTP/1.1 301 Moved Permanently'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<title> | |
[[*seotitle:empty=`[[*pagetitle]] | [[++site_name]]`]] | |
</title> | |
[[*seokeywords:notempty=`<meta name="keywords" content="[[*seokeywords]]">`]] | |
[[*seodescription:notempty=`<meta name="description" content="[[*seodescription]]">`]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!class_exists('msDeliveryInterface')) { | |
require_once MODX_CORE_PATH . 'components/minishop2/model/minishop2/msdeliveryhandler.class.php'; | |
} | |
//Важно: при изменении названия файла, вот в этом месте также нужно изменить класс | |
class mscustomdeliveryhandler extends msDeliveryHandler implements msDeliveryInterface { | |
public function getCost(msOrderInterface $order, msDelivery $delivery, $cost = 0) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
miniShop2.Order.deliveryCost = '#ms2_delivery_cost'; | |
miniShop2.Callbacks.Order.getcost.response.success = function(response) { | |
var rdc = response.data['delivery_cost']; | |
if(rdc) $(miniShop2.Order.deliveryCost, miniShop2.Order.order).text(miniShop2.Utils.formatPrice(rdc)); | |
else $(miniShop2.Order.deliveryCost, miniShop2.Order.order).text('0'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Регистронезависиммые урлы | |
if($_SERVER['REQUEST_URI'] != strtolower($_SERVER['REQUEST_URI'])){ | |
header('Location: http://'.$_SERVER['HTTP_HOST'].strtolower($_SERVER['REQUEST_URI']), true, 301); | |
exit(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Добавляем в настройки сниппета yandexMaps параметр scroll тип вывод список |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!class_exists('msDeliveryInterface')) { | |
require_once MODX_CORE_PATH . 'components/minishop2/model/minishop2/msdeliveryhandler.class.php'; | |
} | |
//Важно: при изменении названия файла, вот в этом месте также нужно изменить класс | |
class mscustomdeliveryhandler extends msDeliveryHandler implements msDeliveryInterface { | |
public function getCost(msOrderInterface $order, msDelivery $delivery, $cost = 0) { |
OlderNewer