<%= toctree :from => '/' %>
<%= toctree %>
ul.post-guide-panel { | |
position: fixed; | |
table-layout: fixed; | |
top: 30; | |
width: 100%; | |
z-index: 88888; | |
} | |
ul.post-guide-panel li { | |
position: relative; |
<h3>タイトル <span style="color: red; font-size: 9pt;">必須項目</span></h3> | |
<p>記事のタイトル。</p> | |
<p>全角28文字以内になることを想定にサイトのデザインは作成されている。</p> | |
<h4>表示される場所</h4> | |
<h5>トップページ</h5> | |
画像入れたりとか | |
<h5>記事の一覧</h5> | |
ごにょごにょ | |
<h5>カテゴリーの一覧</h5> |
jQuery(document).ready(function () { | |
// 投稿の新規追加もしくは編集画面以外では表示しない | |
if (location.pathname != '/wp-admin/post-new.php' && location.pathname != '/wp-admin/post.php') { | |
return; | |
} | |
// 投稿ガイドの表示 | |
initPostGuide(); | |
}); |
<?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() { |
<?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() { |
#!/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 |
# -*- encoding : utf-8 -*- | |
# | |
# for thread safe | |
# | |
class ThreadValueStore | |
@@value_store = {} | |
@@store_types = {} | |
def self.reserve(name, store_type = :value) |
p "HOGE!" |
source 'http://rubygems.org' | |
gem 'bundler' | |
gem 'rack' | |
gem 'rack-rewrite' | |
gem 'mime-types' | |
gem 'nanoc', '3.4' | |
gem 'adsf' | |
gem 'haml' | |
gem 'sass' |