Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
Dwoo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Common
Dwoo
Commits
daf0a014
Commit
daf0a014
authored
May 05, 2008
by
Seldaek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
svn://dwoo.org/dwoo/trunk@42
0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent
cc6c72f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
smartyinterface.php
lib/plugins/builtin/blocks/smartyinterface.php
+7
-1
No files found.
lib/plugins/builtin/blocks/smartyinterface.php
View file @
daf0a014
...
@@ -47,10 +47,16 @@ class Dwoo_Plugin_smartyinterface extends Dwoo_Plugin
...
@@ -47,10 +47,16 @@ class Dwoo_Plugin_smartyinterface extends Dwoo_Plugin
else
else
$callback
=
'smarty_block_'
.
$func
.
'('
;
$callback
=
'smarty_block_'
.
$func
.
'('
;
$paramsOut
=
''
;
foreach
(
$params
as
$i
=>
$p
)
{
$paramsOut
.=
var_export
(
$i
,
true
)
.
' => '
.
$p
.
','
;
}
$curBlock
=&
$compiler
->
getCurrentBlock
();
$curBlock
=&
$compiler
->
getCurrentBlock
();
$curBlock
[
'params'
][
'postOut'
]
=
Dwoo_Compiler
::
PHP_OPEN
.
' $_block_content = ob_get_clean(); $_block_repeat=false; echo '
.
$callback
.
'$_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);'
.
Dwoo_Compiler
::
PHP_CLOSE
;
$curBlock
[
'params'
][
'postOut'
]
=
Dwoo_Compiler
::
PHP_OPEN
.
' $_block_content = ob_get_clean(); $_block_repeat=false; echo '
.
$callback
.
'$_tag_stack[count($_tag_stack)-1], $_block_content, $this, $_block_repeat); } array_pop($_tag_stack);'
.
Dwoo_Compiler
::
PHP_CLOSE
;
return
Dwoo_Compiler
::
PHP_OPEN
.
$prepend
.
' if(!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] =
'
.
var_export
(
$params
,
true
)
.
'
; $_block_repeat=true; '
.
$callback
.
'$_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();'
.
Dwoo_Compiler
::
PHP_CLOSE
;
return
Dwoo_Compiler
::
PHP_OPEN
.
$prepend
.
' if(!isset($_tag_stack)){ $_tag_stack = array(); } $_tag_stack[] =
array('
.
$paramsOut
.
')
; $_block_repeat=true; '
.
$callback
.
'$_tag_stack[count($_tag_stack)-1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start();'
.
Dwoo_Compiler
::
PHP_CLOSE
;
}
}
public
static
function
postProcessing
(
Dwoo_Compiler
$compiler
,
array
$params
,
$prepend
=
''
,
$append
=
''
)
public
static
function
postProcessing
(
Dwoo_Compiler
$compiler
,
array
$params
,
$prepend
=
''
,
$append
=
''
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment