Recently Browsing 0 members
No registered users viewing this page.
By Alf S.
Hello there. I was wondering if there is a more elegant way inlining an SVG that was uploaded in the backend by an image field?
// /processwire/site/assets/files/1101/monitor.svg <- this is what I get // ../assets/files/1101/monitor.svg <- this is what I need $iconURL = $page->icon->url; $findThis = '/assets/'; $iconURL_arr = explode($findThis, $iconURL); $iconURL = "..".$findThis.$iconURL_arr; echo "<span class='icon'>".file_get_contents($iconURL)."</span> ... and before somebody is asking:
- yes, I want it inline.
- and no, I do not want to use an icon font.
My new portfolio website is nearly finished and I would love some feedback and bugs if anyone has a moment. Built with PW using mixup.js, ajax, loaded.js, tons of css transitions and some custom slideshow and canvas bits.
currently here http://benbyford.com/dev/new/ but will be moving it soon to replace http://benbyford.com
Had fun to create a webfont with only one single glyph: Processwire-Logo Unicode-Letter: (Unicode Block "For Private Use")
I created first an svg with inkscape and created the font-set with http://icomoon.io/app (very nice website!)
Like it, use it, waste it.
font-package with demo file here:
(4 Glyphs: 'processwire', 'process', 'wire' and 'w')