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 cptui_register_my_cpts_news() { | |
/** | |
* Post Type: 新着情報. | |
*/ | |
$labels = [ | |
"name" => __( "新着情報", "twentytwenty" ), | |
"singular_name" => __( "新着情報", "twentytwenty" ), | |
]; |
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
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
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
@echo off | |
cd /d "%~dp0" | |
if "%~1" == "" goto error | |
mkdir "%~dp1gif\" | |
:loop | |
if not "%~nx1"=="" ( | |
echo ---- %~nx1 ffmpeg... |
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/sh | |
for f in "$@" | |
do | |
mkdir -p "$(dirname $f)/mozcjpeg" | |
/usr/local/bin/mozcjpeg $f > "$(dirname $f)/mozcjpeg/$(basename $f)" | |
dir="$(dirname $f)/mozcjpeg" | |
done | |
osascript -e "display notification \"$dir\" with title \"mozcjpeg complete!\"" |