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
.entry-content ul { | |
counter-reset:list; | |
list-style-type:none; | |
font-size: 14px; | |
} | |
.entry-content ul li { | |
position:relative; | |
color: #fff; | |
padding: 5px 5px 5px 30px; | |
margin: 7px 0; |
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
"babel": { | |
"presets": [ | |
"react", | |
"env" | |
], | |
"plugins": [ | |
"transform-async-to-generator", | |
[ | |
"transform-runtime", | |
{ |
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
// extension-js.js | |
export default class ExtensionJs { | |
constructor() { | |
console.log('ExtensionJs'); | |
} | |
} | |
// extension-jsx.jsx | |
export default class ExtensionJsx { | |
constructor() { |
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 | |
public function createDatabaseTable() | |
{ | |
global $wpdb; | |
$charsetCollate = $wpdb->get_charset_collate(); | |
$sql = "CREATE TABLE {$this->tableName} ( | |
id VARCHAR(8) NOT NULL, | |
datetime_register DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL, |
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 | |
public function optionPackage($hook) | |
{ | |
if ($hook === 'settings_page_your-plugin') { | |
wp_deregister_script('jquery'); | |
wp_enqueue_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js', array(), '3.2.1'); | |
wp_enqueue_style('bootstrap', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css', array(), '3.3.7'); | |
wp_enqueue_script('bootstrap', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js', array(), '3.3.7'); | |
} |
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
root = true | |
[*] | |
end_of_line = lf | |
charset = utf-8 | |
indent_style = space | |
indent_size = 2 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
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
Show hidden characters
{ | |
"env": { | |
"browser": true, | |
"commonjs": true, | |
"es6": true | |
}, | |
"parserOptions": { | |
"ecmaVersion": 2017, | |
"sourceType": "module", | |
"ecmaFeatures": { |
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
const webpack = require('webpack'); | |
const path = require('path'); | |
// 環境を記述 development or production | |
const env = 'development'; | |
const config = { | |
entry: './entry.jsx', | |
output: { | |
path: path.join(__dirname, '/dist'), |