Add reusable NL/EN contact form with configurable admin settings
This commit is contained in:
commit
3e598b4bae
11 files changed
+633
No files matched your search
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Build a WordPress-installable ZIP from this checkout."""
|
||||
from pathlib import Path
|
||||
import zipfile
|
||||
root=Path(__file__).resolve().parents[1]
|
||||
destination=root/'dist/hg-contactform.zip'
|
||||
destination.parent.mkdir(exist_ok=True)
|
||||
files=[root/'hg-contactform.php',root/'readme.txt',root/'LICENSE']
|
||||
for directory in ['assets','includes']:files.extend(sorted((root/directory).rglob('*')))
|
||||
with zipfile.ZipFile(destination,'w',zipfile.ZIP_DEFLATED) as archive:
|
||||
for path in files:
|
||||
if path.is_file():archive.write(path,Path('hg-contactform')/path.relative_to(root))
|
||||
print(destination)
|
||||
Reference in new issue
Block a user