This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script should be run on a new dev branch for B5 Plugin | |
# NOTE: Make sure to uncomment the right version of sed commands | |
# This script does the following: | |
# - Clones empty B5 plugin template | |
# - Updates the plugin config's summary | |
# - Creates empty _custom.scss and _variables.scss files | |
# - Copies header, footer, and homepage templates (unless excluded by flags) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function prodlog($message = "", $value = "") | |
{ | |
$logFile = "./log/qubit_prod.log"; | |
if ($value != null) { | |
$logMessage = $message.": "; | |
if (is_string($value)) { | |
count($value) > 0 ? $logMessage .= $value : $logMessage .= 'no value'; | |
} elseif (is_bool($value)) { |