<?php
/**
* Created by PhpStorm.
* User: pg
* Date: 30.01.19
* Time: 18:10
*/
function getPublicInfo($tag) {
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
{foreach $_modx->resource['adv.Index'] | fromJSON as $item} | |
<div class="col-xs-12 col-sm-6 col-md-4"> | |
<div class="icon-box left media p-0 mb-40"> | |
<div class="media-left pull-left"><i class="{$item['icon']} text-theme-colored"></i></div> | |
<div class="media-body"> | |
<p class="media-heading heading h5">{$item['title']}</p> | |
<p>{$item['desc']}</p> | |
</div> | |
</div> | |
</div> |
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
// js | |
<script> | |
if(typeof addResults === "undefined"){ | |
var page = 1; | |
} else { | |
var page = addResults; | |
} |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-s | |
RewriteRule ^(.*)$ rest/index.php?_rest=$1 [QSA,NC,L] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^(.*)$ rest/index.php [QSA,NC,L] | |
</IfModule> |
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
import Swiper from "swiper/bundle"; | |
import "swiper/swiper-bundle.css"; | |
window.addEventListener( | |
"load", | |
() => { | |
// swiper | |
var slider = document.querySelectorAll(".swiper-container"); | |
for (let index = 0; index < slider.length; index++) { | |
slider[index].classList.add("swiper-container-" + index); |
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
# add snippet into <head> | |
[[BabelLinks? | |
&tpl=`babelCanonicalTag` | |
&showCurrent=`1` ]] | |
# create chunk with name babelCanonicalTag | |
<link rel="alternate" hreflang="[[+cultureKey]]" href="[[+url]]"> |
OlderNewer