Skip to content

Instantly share code, notes, and snippets.

@horst-n
horst-n / MarkupSvgIcons.module
Last active September 26, 2015 11:46
A Proof of Concept, ProcessWire module for SVG-Icon usage on API level
<?php
/**
* Markup SVG Icons
*
* @author horst
*
*
* ProcessWire 2.3+
* Copyright (C) 2011 by Ryan Cramer
* Licensed under GNU/GPL v2, see LICENSE.TXT
@horst-n
horst-n / template-test-code-4_pageimage.php
Created June 21, 2014 00:21
this is a simple template code that test the new pageimage methods regarding suffix!
<?php
// test for static helper function pageimage::addSuffix
foreach(array(
'suf1' => '/www/htdocs/site/assets/files/1001/basename.jpg',
'suf2' => '/www/htdocs/site/assets/files/1001/basename.100x0.jpg',
'suf3' => '/www/htdocs/site/assets/files/1001/basename.100x0nw.jpg',
'suf4' => '/www/htdocs/site/assets/files/1001/basename.100x0nw-suf4.jpg',
'suf5' => '/www/htdocs/site/assets/files/1001/basename.100x0nw-suf7.jpg',
'suf6' => '/www/htdocs/site/assets/files/1001/basename.100x0nw-suf7-suf6-suf1.jpg',