mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 14:22:54 +09:00
관리자 페이지 패키지별 UI 적용을 위한 1차 작업 마무리
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4616 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
856ab513ec
commit
ba4e9e26e2
248 changed files with 3520 additions and 3424 deletions
|
|
@ -171,6 +171,7 @@
|
|||
* @brief <!--@, --> 사이의 구문을 php코드로 변경
|
||||
**/
|
||||
function _compileFuncToCode($matches) {
|
||||
static $idx = 0;
|
||||
$code = trim($matches[1]);
|
||||
if(!$code) return;
|
||||
|
||||
|
|
@ -203,11 +204,14 @@
|
|||
$tmp_str = substr($code, 8);
|
||||
$tmp_arr = explode(' ', $tmp_str);
|
||||
$var_name = $tmp_arr[0];
|
||||
$prefix = '$Context->__idx['.$idx.']=0;';
|
||||
if(substr($var_name, 0, 1) == '$') {
|
||||
$prefix = sprintf('if(count($__Context->%s)) ', substr($var_name, 1));
|
||||
$prefix .= sprintf('if(count($__Context->%s)) ', substr($var_name, 1));
|
||||
} else {
|
||||
$prefix = sprintf('if(count(%s)) ', $var_name);
|
||||
$prefix .= sprintf('if(count(%s)) ', $var_name);
|
||||
}
|
||||
$idx++;
|
||||
$suffix .= '$__idx['.$idx.']=($__idx['.$idx.']+1)%2; $cycle_idx = $__idx['.$idx.']+1;';
|
||||
} elseif(substr($code, 0, 4) == 'case') {
|
||||
$suffix = ':';
|
||||
} elseif(substr($code, 0, 10) == 'break@case') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue