blob: c7ed7d402108eac8ac367a21c221a90fa5e09cbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<% local form, viewlibrary, page_info = ...
htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>
<% if form.value.data then %>
<% local header_level = htmlviewfunctions.displaysectionstart(form.value.data, page_info) %>
<textarea name="filecontent">
<%= html.html_escape(form.value.data.value) %>
</textarea>
<% htmlviewfunctions.displaysectionend(header_level) %>
<% end %>
<%
form.value.data = nil
htmlviewfunctions.displayitem(form, page_info)
%>
|