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 | |
Class fieldDate extends Field{ | |
const SIMPLE = 0; | |
const REGEXP = 1; | |
const RANGE = 3; | |
const ERROR = 4; | |
private $key; |
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
public function grab(&$param_pool=NULL){ | |
// I am not able to access $param_pool, so I'm taking a detour via Frontend::Page() | |
$page = Frontend::Page(); | |
// CREATE XML DOCUMENT | |
$doc = new DOMDocument; | |
$root = $doc->createElement($this->dsParamROOTELEMENT); | |
$doc->appendChild($root); | |
// APPEND ARTICLES |
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
<ul> | |
<xsl:apply-templates select="/data/categories/entry[not(parent)]" /> | |
</ul> | |
<xsl:template match="categories/entry"> | |
<xsl:param name="path" select="''" /> | |
<li id="{title/@handle}"> | |
<a href="{$root}{$path}{title/@handle}/"> | |
<xsl:value-of select="title" /> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
exclude-result-prefixes="xsl"> | |
<xsl:template name="loop"> <!-- Loop --> | |
<xsl:param name="i" /> | |
<xsl:param name="limit" /> | |
<xsl:call-template name="loop-item"> |
NewerOlder