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
function show_form(){ | |
global $script; | |
global $data_dir; | |
if(isset($_GET['response'])){ | |
$response = htmlspecialchars($_GET['response'], ENT_QUOTES, 'UTF-8'); | |
$contents_file = $data_dir."data/{$response}.txt"; | |
$pointer = fopen($contents_file,'r'); |
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
/*HTML*/ | |
<div class="box1"> | |
<p>ここに文章</p> | |
</div> | |
/*CSS*/ | |
.box1 { | |
padding: 0.5em 1em; | |
margin: 2em 0; | |
border: double 5px #4ec4d3; |
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
/*HTML*/ | |
<div class="box2"> | |
<p>ここに文章</p> | |
</div> | |
/*CSS*/ | |
.box2 { | |
padding: 0.5em 1em; | |
margin: 2em 0; | |
background: #f0f7ff; |
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
/*HTML*/ | |
<div class="box3"> | |
<p>ここに文章</p> | |
</div> | |
/*CSS*/ | |
.box3 { | |
padding: 0.5em 1em; | |
margin: 2em 0; | |
color: #232323; |
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
/*HTML*/ | |
<div class="box4"> | |
<p>ここに文章</p> | |
</div> | |
/*CSS*/ | |
.box4 { | |
padding: 0.5em 1em; | |
margin: 2em 0; | |
color: #ff7d6e; |
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
/*HTML*/ | |
<div class="box5"> | |
<p>ここに文章</p> | |
</div> | |
/*CSS*/ | |
.box5 { | |
padding: 0.5em 1em; | |
margin: 2em 0; | |
color: #00BCD4; |
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
/*.htaccess_code_startキャッシュを有効化して、WP高速化*/ | |
# キャッシュを有効にする | |
Header set Cache-Control "max-age=2628000, public" | |
# キャッシュ設定 | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType image/jpg "access 1 year" | |
ExpiresByType image/jpeg "access 1 year" |
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
/*function.phpへ*/ | |
# 不要な文言を変更・削除 | |
// メールアドレスが公開されることはありませんの文言を変更 | |
add_filter('comment_form_defaults', 'change_comment_email_notes'); | |
function change_comment_email_notes( $defaults ) { | |
$defaults['comment_notes_before'] = '<p class="comment-notes"><span id="email-notes">メールアドレスは公開されることはありません。</span></p>'; | |
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
<IfModule mod_deflate.c> | |
SetOutputFilter DEFLATE | |
#古いブラウザ対策 | |
BrowserMatch ^Mozilla/4\.0[678] no-gzip | |
BrowserMatch ^Mozilla/4 gzip-only-text/html | |
BrowserMatch \bMSIE\s(7|8) !no-gzip !gzip-only-text/html | |
#画像は圧縮しない GIF、JPEG、PNG、ICO | |
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|ico)$ no-gzip dont-vary |
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
// キャッシュの設定をする | |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] |