PLEASE NOTE: This article may be out-of-date. Please visit the Support site for the latest information.

ShrinkTheWeb Smarty Integration

1 post / 0 new
puravida's picture
puravida
Jedi Warrior
Offline
Joined: 09/01/2007
Visit puravida's Website

**************************************************
*** For Advanced Integrators / Developers ***
**************************************************
The code provided in this section is not supported.
Consulting rates will apply for any support or customizations requested.

We have funded the development of a "Smarty" integration kit. This code makes it easier to integrate ShrinkTheWeb into any Smarty template enabled software.

It uses the following smarty tag: {stwthumb}

All configuration for this method must be done within the files found in the /stw_api/ folder

DOWNLOAD: Smarty only plugin

*****

Examples (where $URL is the URL to capture)

1. Typical usage

{stwthumb Size=xlg Alt=$TITLE Style="border:1px solid #999999"}$URL{/stwthumb}

2. A "Custom Size", "Full-Length" capture

{stwthumb SizeCustom=400 FullSizeCapture=true Alt=$TITLE Style="border:1px solid #999999"}$URL{/stwthumb}

3. If you set defaults, this will override "Custom Size" and "Full Size" to force "Size=sm" (which is 120x90px)

{stwthumb Size=sm SizeCustom=0 FullSizeCapture=false Alt=$TITLE Style="border:1px solid #999999"}$URL{/stwthumb}

ShrinkTheWeb® (About STW) is another innovation by Neosys Consulting

Contact Us | PagePix Benefits | Learn More | Our Partners | Privacy Policy | Terms of Use

©2014 ShrinkTheWeb. All rights reserved. ShrinkTheWeb is a registered trademark of ShrinkTheWeb.