@@ 86-90 (lines=5) @@ | ||
83 | ||
84 | $output .= '$this->globals[\'section\'][' . $name . '] = array();' . "\n" . '$_section' . $cnt . ' =& $this->globals[\'section\'][' . $name . '];' . "\n"; |
|
85 | ||
86 | if ($loop !== 'null') { |
|
87 | $output .= '$_section' . $cnt . '[\'loop\'] = is_array($tmp = ' . $loop . ') ? count($tmp) : max(0, (int) $tmp);' . "\n"; |
|
88 | } else { |
|
89 | $output .= '$_section' . $cnt . '[\'loop\'] = 1;' . "\n"; |
|
90 | } |
|
91 | ||
92 | if ($show !== 'null') { |
|
93 | $output .= '$_section' . $cnt . '[\'show\'] = ' . $show . ";\n"; |
|
@@ 92-96 (lines=5) @@ | ||
89 | $output .= '$_section' . $cnt . '[\'loop\'] = 1;' . "\n"; |
|
90 | } |
|
91 | ||
92 | if ($show !== 'null') { |
|
93 | $output .= '$_section' . $cnt . '[\'show\'] = ' . $show . ";\n"; |
|
94 | } else { |
|
95 | $output .= '$_section' . $cnt . '[\'show\'] = true;' . "\n"; |
|
96 | } |
|
97 | ||
98 | if ($name !== 'null') { |
|
99 | $output .= '$_section' . $cnt . '[\'name\'] = ' . $name . ";\n"; |
|
@@ 98-102 (lines=5) @@ | ||
95 | $output .= '$_section' . $cnt . '[\'show\'] = true;' . "\n"; |
|
96 | } |
|
97 | ||
98 | if ($name !== 'null') { |
|
99 | $output .= '$_section' . $cnt . '[\'name\'] = ' . $name . ";\n"; |
|
100 | } else { |
|
101 | $output .= '$_section' . $cnt . '[\'name\'] = true;' . "\n"; |
|
102 | } |
|
103 | ||
104 | if ($max !== 'null') { |
|
105 | $output .= '$_section' . $cnt . '[\'max\'] = (int)' . $max . ";\n" . 'if($_section' . $cnt . '[\'max\'] < 0) { $_section' . $cnt . '[\'max\'] = $_section' . $cnt . '[\'loop\']; }' . "\n"; |
|
@@ 110-114 (lines=5) @@ | ||
107 | $output .= '$_section' . $cnt . '[\'max\'] = $_section' . $cnt . '[\'loop\'];' . "\n"; |
|
108 | } |
|
109 | ||
110 | if ($step !== 'null') { |
|
111 | $output .= '$_section' . $cnt . '[\'step\'] = (int)' . $step . ' == 0 ? 1 : (int) ' . $step . ";\n"; |
|
112 | } else { |
|
113 | $output .= '$_section' . $cnt . '[\'step\'] = 1;' . "\n"; |
|
114 | } |
|
115 | ||
116 | if ($start !== 'null') { |
|
117 | $output .= '$_section' . $cnt . '[\'start\'] = (int)' . $start . ";\n"; |