Log in | Register | Lost password

Bottom
svg template example
  • Posted: 10.03.2004, 09:33
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Here is an example of a news-print-svg template.
    first you need to change the content-type with this setting

    Code

    header("Content-type: image/svg+xml");

    then here is a very simple example, without any decoration

    Code

    <!--[* Smarty *]-->

    <svg width="90%" height="100%"

    xmlns="http://www.w3.org/2000/svg" version="1.2" streamable="true">

    <pageSet>

    <page>

    <text x="15%" y="10%"

    font-family="Arial" font-size="18">

    <!--[$title]--> </text>

    <text x="5%" y="11%"

    font-family="Arial" font-size="10">

    By: <!--[$core.author]--> (<!--[$core.creator]-->) <!--[$core.lastUpdated|date_format:"%Y.%m.%d"]-->

    </text>

    <text x="5%" y="15%" font-family="Arial" font-size="12">

    <!--[foreach from=$text item=p]-->

    <!--[$p]-->

    <!--[/foreach]-->

    </text>

    </page>

    </pageSet>

    </svg>



    [Edited on 10/3/2004 by littlehouse]

Template courtesy of Designs By Darren.