NewsFeaturesDownloadsDevelopmentSupportAbout Us
Plugin cookie

Plugin cookie

From LifeType Wiki

Name: cookie

Latest version: 20070302

Download link: http://prdownloads.sourceforge.net/lifetype/1.2_cookie.zip?download

License: GPL

Author: Jon Daley

[edit] Description

Allows access to HTTP cookies from within your template.

[edit] Configuration

Add the something like the following to a template file:

{if $cookie}
  {assign var=lala value=$cookie->getCookie("MyCookie")}
  {if $lala == "test"}
    <img src="test.jpg" />
  {/if}
{/if}

[edit] Notes

You should ignore (or use if you find it helpful) the printAlternateStyleSheets() function, that is mostly for some tests I was doing on 0.3.2 and 1.0 that doesn't work so well any more, but I don't want to delete it.