mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-05 12:14:12 +02:00
- major update including some API changes
This commit is contained in:
@@ -13,6 +13,11 @@
|
||||
* Smarty Internal Plugin Compile Section Class
|
||||
*/
|
||||
class Smarty_Internal_Compile_Section extends Smarty_Internal_CompileBase {
|
||||
// attribute definitions
|
||||
public $required_attributes = array('name', 'loop');
|
||||
public $shorttag_order = array('name', 'loop');
|
||||
public $optional_attributes = array('start', 'step', 'max', 'show');
|
||||
|
||||
/**
|
||||
* Compiles code for the {section} tag
|
||||
*
|
||||
@@ -23,8 +28,6 @@ class Smarty_Internal_Compile_Section extends Smarty_Internal_CompileBase {
|
||||
public function compile($args, $compiler)
|
||||
{
|
||||
$this->compiler = $compiler;
|
||||
$this->required_attributes = array('name', 'loop');
|
||||
$this->optional_attributes = array('start', 'step', 'max', 'show');
|
||||
// check and get attributes
|
||||
$_attr = $this->_get_attributes($args);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user