wCMF
3.6
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Groups
Pages
block.assign_block.php
Go to the documentation of this file.
1
<?php
2
/**
3
* wCMF - wemove Content Management Framework
4
* Copyright (C) 2005-2014 wemove digital solutions GmbH
5
*
6
* Licensed under the terms of any of the following licenses
7
* at your choice:
8
*
9
* - GNU Lesser General Public License (LGPL)
10
* http://www.gnu.org/licenses/lgpl.html
11
* - Eclipse Public License (EPL)
12
* http://www.eclipse.org/org/documents/epl-v10.php
13
*
14
* See the license.txt file distributed with this work for
15
* additional information.
16
*
17
* $Id: block.assign_block.php 1462 2014-02-04 23:52:27Z iherwig $
18
*/
19
20
/*
21
* Smarty plugin
22
* -------------------------------------------------------------
23
* File: block.assign_block.php
24
* Type: block
25
* Name: assign_block
26
* Purpose: assign a multiline string to a variable
27
* Parameters: var [required] - the name of the variable
28
* Usage: {assign_block var="myVar"}
29
* ... string to
30
* assign ...
31
* {/assign_block}
32
*
33
* Author: Ingo Herwig <ingo@wemove.com>
34
* -------------------------------------------------------------
35
*/
36
function
smarty_block_assign_block
($params, $content, &$smarty)
37
{
38
if
(!empty($content))
39
{
40
$smarty->assign($params[
'var'
], $content);
41
}
42
}
43
?>
smarty_block_assign_block
smarty_block_assign_block($params, $content, &$smarty)
Definition:
block.assign_block.php:36
wcmf3.x
SVN
framework
wcmf
lib
presentation
smarty_plugins
block.assign_block.php
Generated on Wed Feb 5 2014 10:51:06 for wCMF by
1.8.6