Пример #1
0
            return '  GOOD! ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('goodchild'))) . ' ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('gender'))) . ' - ' . LCRun3::raw($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('gender'))) . ' X ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 2], array('name'))) . ' ~ ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 2], array('end'))) . '
';
        }, function ($cx, $in) {
            return '  BAD! ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('badchild'))) . ' ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('gender'))) . ' - ' . LCRun3::raw($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('gender'))) . ' Y ' . LCRun3::raw($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 2], array('name'))) . ' = ' . LCRun3::raw($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 2], array('end'))) . '
';
        }) . '' . LCRun3::wi($cx, LCRun3::v($cx, $in, array('good')), $in, function ($cx, $in) {
            return '    WITH: ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('gender'))) . ' , ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 2], array('name'))) . ' , ' . LCRun3::raw($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 2], array('end'))) . '
';
        }) . '';
    }) . '----------SECTION .
' . LCRun3::sec($cx, $in, $in, false, function ($cx, $in) {
        return ' <li>' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ' is a ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('gender'))) . ' (' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('name'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('value'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('end'))) . ')</li>
' . LCRun3::ifv($cx, LCRun3::v($cx, $in, array('good')), $in, function ($cx, $in) {
            return '  GOOD! ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('goodchild'))) . ' ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('gender'))) . ' - ' . LCRun3::raw($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('gender'))) . ' X ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 2], array('name'))) . ' ~ ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 2], array('end'))) . '
';
        }, function ($cx, $in) {
            return '  BAD! ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('badchild'))) . ' ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('gender'))) . ' - ' . LCRun3::raw($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('gender'))) . ' Y ' . LCRun3::raw($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 2], array('name'))) . ' = ' . LCRun3::raw($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 2], array('end'))) . '
';
        }) . '' . LCRun3::wi($cx, LCRun3::v($cx, $in, array('good')), $in, function ($cx, $in) {
            return '    WITH: ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('gender'))) . ' , ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 2], array('name'))) . ' , ' . LCRun3::raw($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 2], array('end'))) . '
';
        }) . '';
    }) . '</ul>
WITH TEST>
' . LCRun3::wi($cx, LCRun3::v($cx, $in, array('people')), $in, function ($cx, $in) {
        return ' single: ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('gender'))) . ' , p -> ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('name'))) . '
 ' . LCRun3::sec($cx, $in, $in, true, function ($cx, $in) {
            return 'loop: ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ' - ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('name'))) . ' - ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 2], array('name'))) . '';
        }) . '
';
    }) . '' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('end'))) . '
Пример #2
0
    }) . 'end each.

##2 start each+if:
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('winners')), $in, true, function ($cx, $in) {
        return '' . LCRun3::ifv($cx, LCRun3::v($cx, $in, array('test')), $in, function ($cx, $in) {
            return '' . '  Name:' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', Value:' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . ', This: ' . LCRun3::encq($cx, $in) . ', Test: ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('test'))) . '
' . '';
        }) . '';
    }) . 'end each+if.

##3 start each+if+with:
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('winners')), $in, true, function ($cx, $in) {
        return '' . LCRun3::ifv($cx, LCRun3::v($cx, $in, array('test')), $in, function ($cx, $in) {
            return '' . LCRun3::wi($cx, LCRun3::v($cx, $in, array('people')), $in, function ($cx, $in) {
                return '' . '   Name:' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', Value:' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . ', This: ' . LCRun3::encq($cx, $in) . ', Test: ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('test'))) . '
' . '';
            }) . '';
        }) . '';
    }) . 'end each+if+with.

##4 start each+with+if:
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('winners')), $in, true, function ($cx, $in) {
        return '' . LCRun3::wi($cx, LCRun3::v($cx, $in, array('people')), $in, function ($cx, $in) {
            return '' . LCRun3::ifv($cx, LCRun3::v($cx, $in, array('test')), $in, function ($cx, $in) {
                return '' . '   Name:' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', Value:' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . ', This: ' . LCRun3::encq($cx, $in) . ', Test: ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('test'))) . '
' . '';
            }) . '';
        }) . '';
    }) . 'end each+with+if.
';
};
Пример #3
0
<?php

return function ($in, $debugopt = 1) {
    $cx = array('flags' => array('jstrue' => true, 'jsobj' => true, 'spvar' => true, 'prop' => true, 'method' => false, 'mustlok' => false, 'mustsec' => false, 'echo' => false, 'debug' => $debugopt), 'constants' => array(), 'helpers' => array(), 'blockhelpers' => array(), 'hbhelpers' => array(), 'partials' => array(), 'scopes' => array($in), 'sp_vars' => array('root' => $in));
    return '' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('specs')), $in, true, function ($cx, $in) {
        return '   <div class="item-spec">
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('options')), $in, true, function ($cx, $in) {
            return '' . LCRun3::ifv($cx, LCRun3::v($cx, $in, array('icon')), $in, function ($cx, $in) {
                return '        <div class="spec">
            <div class="spec-overlay"></div>
            <input type="radio" id="spec-' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('id'))) . '-' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('id'))) . '" value="' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('id'))) . '" name="' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('id'))) . '" alt="' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . '" data-name="' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . '"/>
            <label class="spec-label icon" for="spec-' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('id'))) . '-' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('id'))) . '" style="background-image:url(' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('icon'))) . ');">
            </label>
        </div>
';
            }, function ($cx, $in) {
                return '        <div class="spec">
            <div class="spec-overlay"></div>
            <input type="radio" id="spec-' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('id'))) . '-' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('id'))) . '" value="' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('id'))) . '" name="' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('id'))) . '" data-name="' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . '"/>
            <label class="spec-label" for="spec-' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('id'))) . '-' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('id'))) . '">' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . '</label>
        </div>
';
            }) . '        <script>
            document.getElementById(\'spec-' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('id'))) . '-' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('id'))) . '\').className += \'hidden\';
        </script>
';
        }) . '    </div>
';
    }) . '';
};
Пример #4
0
<?php

return function ($in, $debugopt = 1) {
    $cx = array('flags' => array('jstrue' => true, 'jsobj' => true, 'spvar' => true, 'prop' => true, 'method' => false, 'mustlok' => false, 'mustsec' => false, 'echo' => false, 'debug' => $debugopt), 'constants' => array(), 'helpers' => array(), 'blockhelpers' => array(), 'hbhelpers' => array(), 'partials' => array(), 'scopes' => array($in), 'sp_vars' => array('root' => $in));
    return '
Children for ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ':

' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('child')), $in, true, function ($cx, $in) {
        return '' . LCRun3::ifv($cx, LCRun3::v($cx, $in, array('key')), $in, function ($cx, $in) {
            return '       The value is = ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('key'))) . ' !!
';
        }, function ($cx, $in) {
            return '        key is empty or null
';
        }) . '';
    }, function ($cx, $in) {
        return '  ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('name'))) . ' has no children.
';
    }) . '';
};
Пример #5
0
<?php

return function ($in, $debugopt = 1) {
    $cx = array('flags' => array('jstrue' => true, 'jsobj' => true, 'spvar' => true, 'prop' => true, 'method' => false, 'mustlok' => false, 'mustsec' => false, 'echo' => false, 'debug' => $debugopt), 'constants' => array(), 'helpers' => array(), 'blockhelpers' => array(), 'hbhelpers' => array(), 'partials' => array(), 'scopes' => array($in), 'sp_vars' => array('root' => $in));
    return '<ul>
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('people')), $in, true, function ($cx, $in) {
        return ' <li>' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars'], array('index'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars'], array('key'))) . ' : ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ' ' . LCRun3::ifv($cx, LCRun3::v($cx, $in, array('name')), $in, function ($cx, $in) {
            return '(V)';
        }) . '' . LCRun3::ifv($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('test')), $in, function ($cx, $in) {
            return '(Y)';
        }) . '</li>
';
    }) . '</ul>
';
};