diff options
| author | Nick Palmer <nick@sluggardy.net> | 2007-04-08 18:00:35 +0000 |
|---|---|---|
| committer | Nick Palmer <nick@sluggardy.net> | 2007-04-08 18:00:35 +0000 |
| commit | 43d34ff924270b1dbe7853f71039c1c48bdd76f6 (patch) | |
| tree | 7cfb12133a1ebab7526b176b18ce8556d9f9ea75 /preview.php | |
| parent | 7ee5b09ffbb797780cb0c957c16091049966b7b7 (diff) | |
| download | liberty-43d34ff924270b1dbe7853f71039c1c48bdd76f6.tar.gz liberty-43d34ff924270b1dbe7853f71039c1c48bdd76f6.tar.bz2 liberty-43d34ff924270b1dbe7853f71039c1c48bdd76f6.zip | |
Add preview functionality and ability to popup based on a content_id.
Diffstat (limited to 'preview.php')
| -rw-r--r-- | preview.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/preview.php b/preview.php new file mode 100644 index 0000000..39d45d8 --- /dev/null +++ b/preview.php @@ -0,0 +1,23 @@ +<?php + +// $Header: /cvsroot/bitweaver/_bit_liberty/preview.php,v 1.1 2007/04/08 18:00:35 nickpalmer Exp $ + +// Copyright( c ) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. +// All Rights Reserved. See copyright.txt for details and a complete list of authors. +// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. +require_once( '../bit_setup_inc.php' ); + +global $gContent, $gBitSystem, $gBitSmarty; +include_once( LIBERTY_PKG_PATH.'lookup_content_inc.php' ); +// If we can't find one make an invalid one to keep the template happy. +if (empty($gContent)) { + $gContent = new LibertyContent(); + $gBitSmarty->assign_by_ref('gContent', $gContent); +} +// Should we tell the template to generate a closeclick icon +if (isset($_REQUEST['closeclick'])) { + $gBitSmarty->assign('closeclick', true); +} + +header( 'Content-Type: text/html; charset=utf-8' ); +echo $gContent->getPreview();
\ No newline at end of file |
