This file contains hidden or 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
| $(document).ready(function () { | |
| $(document).on("scroll", onScroll); | |
| //smoothscroll | |
| $('a[href^="#"]').on('click', function (e) { | |
| e.preventDefault(); | |
| $(document).off("scroll"); | |
| $('a').each(function () { | |
| $(this).removeClass('active'); |
This file contains hidden or 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 (empty($parent)) {$parent = $modx->resource->id;} | |
| $pids = array_merge(array($parent), $modx->getChildIds($parent)); | |
| $ids = array(); | |
| $q = $modx->newQuery('msProduct'); | |
| $q->where(array('class_key' => 'msProduct','parent:IN' => $pids,'published' => 1,'deleted' => 0)); | |
| $q->select('`msProduct`.`id`'); | |
| if ($q->prepare() && $q->stmt->execute()) { | |
| $ids = $q->stmt->fetchAll(PDO::FETCH_COLUMN); |
This file contains hidden or 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 | |
| $id = $modx->resource->id; | |
| if (!isset($limit)) {$limit = 4;} | |
| // Добавляем просмотренный товар MS2 в сессию | |
| if ($modx->resource->get('class_key') == 'msProduct') { | |
| if (!isset($_SESSION['viewedrecent'])) { | |
| $_SESSION['viewedrecent'] = array($id); | |
| } | |
| else { |
This file contains hidden or 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
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Bootstrap Masonry Template</title> | |
| <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> | |
| <link rel="stylesheet" href="style.css"> | |
| <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans+Caption:400,700"> |
This file contains hidden or 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
| <!-- General Settings --> | |
| <advancedsettings> | |
| <loglevel hide="true">-1</loglevel> <!-- Comment: Disables logging --> | |
| <playcountminimumpercent>95</playcountminimumpercent> | |
| <skiploopfilter>0</skiploopfilter> <!-- Comment: For RPi or similar use 16 or higher (low CPU usage) --> | |
| <nodvdrom>true</nodvdrom> | |
| <!-- MySQL Library --> | |
| <videodatabase> | |
| <type>mysql</type> |
This file contains hidden or 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
| Keymap (Windows Users): | |
| [ | |
| { "keys": ["alt+shift+f"], "command": "reindent" }, | |
| ] | |
| Settings: | |
| { | |
| "show_definitions": false, | |
| "auto_complete": false, | |
| "bold_folder_labels": true, |
This file contains hidden or 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
| var groups = [{ | |
| name: "Азов", | |
| style: "kino#customPoint", | |
| items: [{ | |
| [[pdoResources? | |
| &parents=`217` | |
| &depth=`2` | |
| &limit=`0` | |
| &tpl=`geoObject_group` | |
| &outputSeparator=`}, |
This file contains hidden or 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
| center: [[[+tv.geo_shop]]], | |
| name: "[[+pagetitle]]", | |
| address: "[[+tv.address_shop]]", | |
| tc_shop: "[[+tv.tc_shop]]", | |
| geo_accuracy: "house", | |
| state: "[[+tv.state_shop:is=`0`:then=`[[+tv.state_shop]]`:else=`—`]]", | |
| city: "[[+tv.city_shop]]" |
This file contains hidden or 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 $idx == 2} | |
| <div class="maxus-news__item post pull-left" data-news-type="part"> | |
| <header class="entry-header maxus-news__img"> | |
| <a href="[[~[[+id]]]]" title="[[+pagetitle]]"> | |
| <img src="[[+medium]]" alt="[[+pagetitle]]"> | |
| <span class="maxus-news__overlay" data-color-class="white"></span> | |
| </a> | |
| </header> | |
| <!-- /.entry-header --> |

