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
[[subject:isnt=``:then=``]] |
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
<base href="[[++site_url]]" /> | |
<meta charset="[[++modx_charset]]"> | |
[[*longtitle:ne=``:then=`<title>[[*longtitle]] | [[++site_name]]</title>`:else=`<title>[[*pagetitle]] | [[++site_name]]</title>`]] | |
<meta name="keywords" content="[[*keywords]]" /> | |
<meta name="description" content="[[*description]]" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
<link href="/assets/site/img/favicon.ico" rel="shortcut icon" /> | |
<link rel="stylesheet" href="/assets/site/css/style.css"> |
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
<!--pdoCrumbs for bootstrap--> | |
[[pdoCrumbs? | |
&tpl=`@INLINE <li><a href="[[+link]]#catalog">[[+menutitle]]</a></li>` // template link | |
&tplCurrent=`@INLINE <li class="active">[[+menutitle]]</li>` //template current | |
&tplWrapper=`@INLINE <ol class="breadcrumb">[[+output]]</ol>` //template wrapper | |
&outputSeparator=`` //razdelitel | |
&showHome=`1` //def="0" show home page | |
]] |
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
[[!FormIt? | |
&hooks=`recaptcha,spam,email,redirect` | |
&emailTpl=`sentEmailTpl` //template massage | |
&emailSubject=`Message from Learn MODx Revo Website` //theme massage | |
&emailTo=`mymail@gmail.com` | |
&redirectTo=`x` // redirect on page id x | |
]] | |
<form method="post" action="[[~[[*id]]]]"> | |
<div> |
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 gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
auto = require('gulp-autoprefixer'), | |
sprite = require('gulp.spritesmith'); | |
gulp.task('scss', function(){ | |
gulp.src('assets/site/css/style.scss') | |
.pipe(sass()) | |
.pipe(auto({ | |
'browsers':['last 12 versions'] |
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
$( 'a[href^="#"]' ).click( function(){ | |
var el = $( this ).attr( 'href' ); | |
$( 'body' ).animate( { | |
scrollTop: $( el ).offset().top - 20 | |
}, 500 ); | |
return false; | |
} ); |