Objectives:
- Create a new module with a
template
field - Prefill the block editor for new items according to the selected template
Requirements:
:root { | |
--primary-color-hue: 230; | |
--background-darkest: hsl(var(--primary-color-hue), 70%, 30%); | |
--background-darker: hsl(var(--primary-color-hue), 20%, 95%); | |
--background-normal: hsl(var(--primary-color-hue), 70%, 98%); | |
--background-contrast: hsl(var(--primary-color-hue), 90%, 100%); | |
--background-highlight: hsl(var(--primary-color-hue), 100%, 98%); | |
--border-normal: hsl(var(--primary-color-hue), 30%, 90%); | |
--border-highlight: hsl(var(--primary-color-hue), 100%, 95%); | |
--body-text-normal: hsl(var(--primary-color-hue), 45%, 55%); |
Objectives:
template
fieldRequirements:
<?php | |
class ProcessWireValetDriver extends BasicValetDriver | |
{ | |
private $possibleDirectories = [ | |
'', // PW in root, do not remove except you're sure you never use it | |
'/dist', | |
'/public' | |
]; |
<?php namespace ProcessWire; | |
use Aws\S3\S3Client; | |
use League\Flysystem\AwsS3v3\AwsS3Adapter; | |
use League\Flysystem\Filesystem; | |
use League\Flysystem\Adapter\Local; | |
class ProcessSync extends WireData implements Module, ConfigurableModule { | |
public static function getModuleInfo() { |
import shutil | |
import os | |
# This script will move the files of the current folder into the folder structure according to the FoldersMap. | |
# detect the current working directory | |
currentFolder = os.getcwd() | |
filePath = currentFolder | |
FoldersMap = { |
Sub Export4KPowerpoint() | |
If ActivePresentation.CreateVideoStatus <> ppMediaTaskStatusInProgress Then | |
ActivePresentation.CreateVideo FileName:=Environ("USERPROFILE") & "\Desktop\export.mp4", _ | |
UseTimingsAndNarrations:=True, _ | |
VertResolution:=2160, _ | |
FramesPerSecond:=30, _ | |
Quality:=100 | |
Else: MsgBox "There is another conversion to video in progress" | |
End If | |
End Sub |
<?php namespace ProcessWire; | |
class ProcessSendyAPI extends WireData implements Module, ConfigurableModule | |
{ | |
public static function getModuleInfo() | |
{ | |
return array( | |
'title' => __('Process Sendy API'), | |
'summary' => __('Handle API calls to a Sendy installation'), |
// Place your settings in this file to overwrite the default settings | |
{ | |
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", | |
"editor.accessibilitySupport": "off", | |
"editor.lineHeight": 30, | |
"files.associations": { | |
"*.module": "php", | |
"*.latte": "smarty" | |
}, | |
"editor.cursorStyle": "line", |
# FORGE CONFIG (DOT NOT REMOVE!) | |
include forge-conf/example.com/before/*; | |
server { | |
server_name example.com www.example.com; | |
return 301 https://$server_name$request_uri; | |
} | |
server { | |
listen 443 ssl http2; |