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
<!--Snippets Added by IMAMO --> | |
<snippet id="si.imamo.TextActions.HTML5.CurlyBracket" category="hidden"> | |
<title>Open Curly Bracket</title> | |
<text-trigger key-equivalent="{"></text-trigger> | |
<text>{$0}</text> | |
<syntax-context>html, html *,container.block.source.php, container.block.source.php > *, xml, xml *, js, js * </syntax-context> | |
</snippet> |
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
{pyro:blog:posts limit="5" order="desc"} | |
<h2><a href="news/view/{slug}">{title}</a></h2> | |
{intro} | |
{/pyro:blog:posts} | |
----- with read more button/link ----- | |
{pyro:blog:posts limit="5" order="desc"} | |
<h2><a href="news/view/{slug}">{title}</a></h2> | |
{intro} |
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
$(document).ready(function(){ | |
$('div').bind('scroll',chk_scroll); | |
}); | |
function chk_scroll(e) | |
{ | |
var elem = $(e.currentTarget); | |
if (elem[0].scrollHeight - elem.scrollTop() == elem.outerHeight()) | |
{ |
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 | |
function pagesForFolder($folderName) { | |
$pages = array(); | |
// this is the path to the sitemap XML that Pagelime publishes | |
$pages_path = "/cms-assets/xml/sitemap.xml"; | |
// if the XML file exists, keep going | |
if (file_exists($_SERVER["DOCUMENT_ROOT"].$pages_path)) { | |
// initialize an XML DOM Document | |
$xml = new DOMDocument; |