https://github.com/SamKirkland/FTP-Deploy-Action
name: ActionName
on: push
{ | |
// The plugin looks for a .jsbeautifyrc file in the same directory as the | |
// source file you're prettifying (or any directory above if it doesn't exist, | |
// or in your home folder if everything else fails) and uses those options | |
// along the default ones. | |
// Details: https://github.com/victorporof/Sublime-HTMLPrettify#using-your-own-jsbeautifyrc-options | |
// Documentation: https://github.com/einars/js-beautify/ | |
"html": { | |
"allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg", "dust"], |
https://github.com/SamKirkland/FTP-Deploy-Action
name: ActionName
on: push
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<!-- requir --> | |
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css"> | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js'></script> | |
</head> | |
<body> |
// cf7カスタムバリデーション(名前の日本語を強制) | |
function wpcf7_validate_spam_message($result, $tag) | |
{ | |
$value = str_replace(array(PHP_EOL, ' '), '', esc_attr($_POST['your-name'])); // この行と | |
if (!empty($value)) { | |
if (preg_match('/^[!-~]+$/', $value)) { //正規表現で日本語以外を指定 | |
$result['valid'] = false; | |
$result['reason'] = array('your-name' => 'お名前は日本語で入力してください'); // この行でフィールドを指定 | |
} | |
} |
// ビジュアルエディタに表(テーブル)作成機能を追加 | |
// プラグインロード | |
function mce_external_plugins_table($plugins) | |
{ | |
$plugins['table'] = '//cdn.tinymce.com/4/plugins/table/plugin.min.js'; | |
return $plugins; | |
} | |
add_filter('mce_external_plugins', 'mce_external_plugins_table'); | |
// ボタン追加 | |
function mce_buttons_table($buttons) |
ズームや左右上下にゆっくりとアニメーションしながら切り替えることで、単なる写真に命を与えると言われています。
ケン・バーンズ監督が映画の中で使っていたことでそう呼ばれています。