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 defined('C5_EXECUTE') or die("Access Denied."); | |
Loader::model('section', 'multilingual'); | |
class MultilingualTextHelper { | |
/** | |
* Takes area name string (like Header) and add language string (like Header Ja JP) | |
* @param string $text | |
* @return string |
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
(function() { | |
if (!window.Modernizr) { | |
return; | |
} | |
var ua = new String(window.navigator.userAgent.toLowerCase()); | |
ua.has = function (cond) { | |
return this.indexOf(cond) != -1; | |
}; |
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
// Determine if an element is in the visible viewport | |
function isInViewport(element) { | |
var rect = element.getBoundingClientRect(); | |
var html = document.documentElement; | |
return ( | |
rect.top >= 0 && | |
rect.left >= 0 && | |
rect.bottom <= (window.innerHeight || html.clientHeight) && | |
rect.right <= (window.innerWidth || html.clientWidth) | |
); |
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
ー へ | |
:eye::nose::eye: | |
) :lips:( |
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 defined('C5_EXECUTE') or die("Access Denied."); | |
// application/blocks/autonav/templates/grouping_autonav/view.php | |
$navItems = $controller->getNavItems(); | |
$c = Page::getCurrentPage(); | |
function cmp($a, $b) | |
{ | |
$cmp = strcmp($a->cObj->getAttribute('attribute'), $b->cObj->getAttribute('attribute')); |
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
{ | |
"hosting": { | |
"public": "public", | |
"rewrites": [ | |
{ | |
"source": "**", | |
"function": "app" | |
} | |
], | |
"redirects": [{ |