This file contains 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 | |
# Script adapted by pduchnovsky | |
# https://duchnovsky.com/2020/11/images-optimization-for-web/ | |
# Add list of folder names to ignore array here, separated by space | |
ignore=("./themes/*" "./resources/*" "./assets/*") | |
# Array of png optimizers with their arguments | |
optimizers=( | |
"optipng -nb -nc" |
This file contains 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
<? | |
//Для запуска необходимой карты укажите в адресе ее ID, пример: | |
//sitemap_run.php?action=sitemap_run&ID=2&lang=ru | |
$_SERVER['DOCUMENT_ROOT'] = realpath(dirname(__FILE__) . '/../../..'); | |
if($argv){ | |
unset($argv[0]); |