This file contains hidden or 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
<h3>タイトル <span style="color: red; font-size: 9pt;">必須項目</span></h3> | |
<p>記事のタイトル。</p> | |
<p>全角28文字以内になることを想定にサイトのデザインは作成されている。</p> | |
<h4>表示される場所</h4> | |
<h5>トップページ</h5> | |
画像入れたりとか | |
<h5>記事の一覧</h5> | |
ごにょごにょ | |
<h5>カテゴリーの一覧</h5> |
This file contains hidden or 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 | |
// 管理画面にCSSとJSの読み込みを追加 | |
function enqueue_post_guide_files() { | |
wp_enqueue_style('post-guide-style' , get_stylesheet_directory_uri() . '/css/post_guide.css'); | |
wp_enqueue_script('post-guide-js' , get_stylesheet_directory_uri() . '/js/post_guide.js'); | |
} | |
add_action('admin_enqueue_scripts', 'enqueue_post_guide_files'); | |
// 指定されたpost_idの投稿の投稿タイプを返す | |
function ajax_post_type_by_post_id() { |
This file contains hidden or 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
jQuery(document).ready(function () { | |
// 投稿の新規追加もしくは編集画面以外では表示しない | |
if (location.pathname != '/wp-admin/post-new.php' && location.pathname != '/wp-admin/post.php') { | |
return; | |
} | |
// 投稿ガイドの表示 | |
initPostGuide(); | |
}); |
This file contains hidden or 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
ul.post-guide-panel { | |
position: fixed; | |
table-layout: fixed; | |
top: 30; | |
width: 100%; | |
z-index: 88888; | |
} | |
ul.post-guide-panel li { | |
position: relative; |
This file contains hidden or 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 | |
// 管理画面にCSSとJSの読み込みを追加 | |
function enqueue_modal_files() { | |
wp_enqueue_style('modal-style' , get_stylesheet_directory_uri() . '/css/modal.css'); | |
wp_enqueue_script('modal-js' , get_stylesheet_directory_uri() . '/js/modal.js'); | |
} | |
add_action('admin_enqueue_scripts', 'enqueue_modal_files'); | |
// AJAXリクエストに対してJSONを返す | |
function ajax_modal() { |
This file contains hidden or 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/bash | |
# Download dcpTool | |
# https://sourceforge.net/projects/dcptool/files/latest/download | |
# 作業フォルダを作成してその中に移動 | |
cd ~ | |
mkdir setup-k-1-mk2-profile-tmp | |
cd setup-k-1-mk2-profile-tmp |
This file contains hidden or 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
TEST |
This file contains hidden or 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
# | |
# Cookbook Name:: sensu-mailer-sample | |
# Recipe:: default | |
# | |
sensu_gem "mail" | |
mailer_rb_path = "#{node.sensu.directory}/handlers/mailer.rb" | |
cookbook_file mailer_rb_path do | |
source "mailer.rb" |
This file contains hidden or 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
# -*- encoding : utf-8 -*- | |
# | |
# for thread safe | |
# | |
class ThreadValueStore | |
@@value_store = {} | |
@@store_types = {} | |
def self.reserve(name, store_type = :value) |
This file contains hidden or 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
p "HOGE!" |
NewerOlder