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 | |
/** | |
* Class Widget_Template | |
*/ | |
class Widget_Template extends WP_Widget { | |
/** | |
* Widget_Template コンストラクタ | |
*/ |
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 | |
/** | |
* 記事の公開、更新日に合わせて「New」ラベルの表示 | |
* | |
* @param int $days 公開(更新)されてからラベルを表示する日数 | |
* @param string $label_text ラベルに表示するテキストを指定 | |
* @param string $class クラス名を指定 | |
* @param string $date_type ラベルの表示条件が公開日なら'release'、更新日なら'modified' | |
* @param int|WP_Post $post WP_Post object or ID. Default is global $post object. | |
*/ |
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
.search-form { | |
$height: 48px; | |
$font-size: 16px; | |
$input-border-color: #ccc; | |
$button-text-color: #fff; | |
$button-background-color: #2f78d0; | |
$transition-list: all 0.3s ease-in-out; | |
overflow: hidden; | |
clear: both; |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
{ | |
"remove-empty-rulesets": true, | |
"always-semicolon": true, | |
"color-case": "lower", | |
"block-indent": " ", | |
"color-shorthand": true, | |
"element-case": "lower", | |
"eof-newline": true, | |
"leading-zero": false, | |
"quotes": "double", |