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
if( function_exists('acf_add_local_field_group') ): | |
acf_add_local_field_group(array( | |
'key' => 'group_5dce4992e0efd', | |
'title' => 'リンクの設定', | |
'fields' => array( | |
array( | |
'key' => 'field_5dce4acaebed8', | |
'label' => 'リンク先', | |
'name' => 'link-active', |
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
.hamburger: span |
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 shortcode_not_break($atts, $content = null){ | |
return do_shortcode(preg_replace('/(]<br>|]<br \/>)/', ']', $content)); | |
} | |
add_shortcode('not_break', 'shortcode_not_break'); |
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
version: '3.3' | |
# PORT: 8211 <- この数字を変える | |
services: | |
db: | |
image: mysql:5.7 | |
volumes: | |
- db_data:/var/lib/mysql | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: somewordpress |
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
<main id="MainContents"> | |
<div class="row"> | |
<div class="col-md-12"> | |
<div class="error-template"> | |
<h1> | |
Oops!</h1> | |
<h2> | |
404 Not Found</h2> | |
<div class="error-details"> |
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 console( $data, $log = false ) { | |
if(WP_DEBUG){ | |
$_data = json_encode($data); | |
$obj = debug_backtrace(); | |
$parent = $obj[0]; | |
$path = $parent['file']; | |
$filename = basename($path); | |
if($log){ | |
error_log("\n".gettype($data)."--", 3, dirname( __FILE__ ) . '/../../app.log'); | |
error_log("\n".$_data, 3, dirname( __FILE__ ) . '/../../app.log'); |
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
if (document.readyState === "loading"){ | |
document.addEventListener("DOMContentLoaded", init); | |
} else { | |
init(); | |
} |
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
<?php | |
$type = "WebPage"; // BlogPosting, WebSite, Article, Person, SearchAction, NewsArticle | |
$author_name = get_the_author_meta('display_name'); | |
$logo_url = "https://www.coffee-break-designs.com/wp-content/themes/coffee-break-designs-v8/img/logo.svg"; | |
$description = get_post_meta(get_the_id(), "_aioseop_description", true); | |
$thumbnail_id = get_post_thumbnail_id(); | |
$imageobject = wp_get_attachment_image_src( $thumbnail_id, 'full' ); | |
?> | |
<script type="application/ld+json"> | |
{ |
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
@echo off | |
set /P QUALITY="quality(90):" || SET QUALITY=90 | |
cd /d "%~dp0" | |
if "%~1" == "" goto error | |
mkdir "%~dp1mozjpeg\" | |
:loop | |
if not "%~nx1"=="" ( |
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
@echo off | |
cd /d "%~dp0" | |
if "%~1" == "" goto error | |
mkdir "%~dp1gif\" | |
:loop | |
if not "%~nx1"=="" ( | |
echo ---- %~nx1 ffmpeg... |