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
/*! jQuery Validation Plugin - v1.12.0 - 4/1/2014 | |
* http://jqueryvalidation.org/ | |
* Copyright (c) 2014 Jörn Zaefferer; Licensed MIT */ | |
!function(a){a.extend(a.fn,{validate:function(b){if(!this.length)return void(b&&b.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var c=a.data(this[0],"validator");return c?c:(this.attr("novalidate","novalidate"),c=new a.validator(b,this[0]),a.data(this[0],"validator",c),c.settings.onsubmit&&(this.validateDelegate(":submit","click",function(b){c.settings.submitHandler&&(c.submitButton=b.target),a(b.target).hasClass("cancel")&&(c.cancelSubmit=!0),void 0!==a(b.target).attr("formnovalidate")&&(c.cancelSubmit=!0)}),this.submit(function(b){function d(){var d;return c.settings.submitHandler?(c.submitButton&&(d=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(a(c.submitButton).val()).appendTo(c.currentForm)),c.settings.submitHandler.call(c,c.currentForm,b),c.submitButton&&d.remove(),!1):!0}return c.settings.debug&&b.preven |
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
$e = &$modx->Event; | |
$output = ''; | |
$userID = $modx->getLoginUserID(); | |
if(empty($userID)) return; | |
$user = $modx->getWebUserInfo($id); | |
$userDiscount = $user['discount']; |
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
$e = &$modx->Event; | |
$output = ""; | |
if ($e->name == 'OnSiteSettingsRender'){ | |
$settingsArr = !empty($settings) ? explode('||',$settings) : array('Example custom setting~custom_st_example'); | |
$fname = !empty($pname) ? $pname : 'Инфо сайта'; | |
$output .= '</td></tr></table></div><div style="display: block;" class="tab-page" id="tabPage8"><h2 class="tab">'.$fname.'</h2><script type="text/javascript">tpSettings.addTabPage( document.getElementById( "tabPage8" ) );</script><table border="0" cellpadding="3" cellspacing="0"><tbody>'; | |
foreach($settingsArr as $key => $st_row){ | |
$st_label_arr = explode('~',$st_row); | |
$custom_st_label = trim($st_label_arr[0]); | |
$custom_st_name = isset($st_label_arr[1]) ? $st_label_arr[1] : 'custom_st'; |
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
return number_format((float)$price, 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
<offer id="[+id+]" available="true"> | |
<url>[(site_url)][~[+id+]~]</url> | |
<price>[+price+]</price> | |
<currencyId>RUR</currencyId> | |
<categoryId>[[UltimateParent? &id=`[+id+]` &topLevel=`2`]]</categoryId> | |
<picture>[(site_url)][+image+]</picture> | |
<delivery>true</delivery> | |
<name>[+pagetitle+]</name> | |
<vendor>[[DocInfo? &field=`pagetitle` &docid=`[[UltimateParent? &id=`[+id+]` &topLevel=`2`]]`]]</vendor> | |
<description> |
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
$e = &$modx->Event; | |
switch ($e->name) { | |
case "OnManagerWelcomeHome": | |
// OnManagerWelcomeHome | |
//if($action!=1 || $_GET['f']!=='tree') return; // In the case of top navigation, $_GET['f'] is 'menu'. | |
echo <<< EOT | |
<base target="main" /> | |
<div class="tab-page" id="tabhome" style="padding-left: 0px; padding-right: 0px; display: block;"> |
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
/* Russian (UTF-8) initialisation for the jQuery UI date picker plugin. */ | |
jQuery(function($){ | |
$.datepicker.regional['ru'] = { | |
closeText: 'Закрыть', | |
prevText: '<Пред', | |
nextText: 'След>', | |
currentText: 'Сегодня', | |
monthNames: ['Январь','Февраль','Март','Апрель','Май','Июнь', | |
'Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'], | |
monthNamesShort: ['Янв','Фев','Мар','Апр','Май','Июн', |
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 | |
namespace ACompany\AnAppName\Dao\PdoImpl; | |
/** | |
* PDOConnection is a singleton implementation. | |
* getConnection() returning an instance of PDO connection. | |
* | |
* <code> | |
* Example usage: |
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
nav#layout-mainmenu.navbar { | |
background-color: #2b3e50!important; | |
} | |
nav#layout-mainmenu.navbar ul li { | |
color: rgba(255,255,255,0.64)!important; | |
} | |
nav#layout-mainmenu.navbar ul li a i, nav#layout-mainmenu .menu-toggle i, .mainmenu-collapsed li a i { | |
font-size: 20px; | |
} |
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
serialize: function serialize(form) | |
{ | |
if (!form || form.nodeName !== "FORM") { | |
return; | |
} | |
var i, j, | |
obj = {}; | |
for (i = form.elements.length - 1; i >= 0; i = i - 1) { | |
if (form.elements[i].name === "") { | |
continue; |
OlderNewer