Skip to content

Instantly share code, notes, and snippets.

View 1shiharat's full-sized avatar
💭
I may be slow to respond.

ishihara takashi 1shiharat

💭
I may be slow to respond.
View GitHub Profile
<?php
/**
* Theme Activation Tour
*
* This class handles the pointers used in the introduction tour.
* @package Popup Demo
* @see https://gist.github.com/DevinWalker/7595475
*
*/
class WordImpress_Theme_Tour {
@1shiharat
1shiharat / black-studio-tinymce-widget-ja.po
Created May 7, 2014 12:51
Black studio tinymce widget japanese file
msgid ""
msgstr ""
"Project-Id-Version: Black Studio TinyMCE Widget\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-03-06 12:08+0100\n"
"PO-Revision-Date: 2014-05-07 21:48+0900\n"
"Last-Translator: ishihara <ishihara@grow-group.jp>\n"
"Language-Team: Black Studio <info@blackstudio.it>\n"
"Language: it_IT\n"
"MIME-Version: 1.0\n"
@1shiharat
1shiharat / siteorigin-panels-ja.po
Created May 7, 2014 12:35
SiteOrigin Japanese .po file
msgid ""
msgstr ""
"Project-Id-Version: Page Builder by SiteOrigin\n"
"POT-Creation-Date: 2014-05-01 09:51+0200\n"
"PO-Revision-Date: 2014-05-07 21:28+0900\n"
"Last-Translator: ishihara <ishihara@grow-group.jp>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
@1shiharat
1shiharat / acf-repeater-image-convert-thumbnail.php
Created March 28, 2014 04:40
acf-repeater-image-convert-thumbnail
/**
* ACF
* リピーターリピーターフィールドでの一番はじめの画像をアイキャッチ画像にも設定する。
**/
function acf_set_featured_image( $value, $post_id, $field ){
if( $value != ''){
update_post_meta($post_id, '_thumbnail_id', $value);
} else {
delete_post_meta($post_id, '_thumbnail_id');
@1shiharat
1shiharat / custom taxonomy
Created March 19, 2014 03:49
custom taxonomy create.
// Register Custom Taxonomy
function news_custom_taxonomy() {
$labels = array(
'name' => _x( 'ニュースカテゴリ', 'Taxonomy General Name', 'text_domain' ),
'singular_name' => _x( 'ニュースカテゴリ', 'Taxonomy Singular Name', 'text_domain' ),
'menu_name' => __( 'ニュースカテゴリ', 'text_domain' ),
'all_items' => __( 'すべてのニュースカテゴリ', 'text_domain' ),
'parent_item' => __( '親カテゴリ', 'text_domain' ),
'parent_item_colon' => __( '親カテゴリ:', 'text_domain' ),
@1shiharat
1shiharat / design-tool.md
Created March 5, 2014 14:47
plugins for adobe photoshop & sketch app.

For adobe photoshop.

  • BlenMeIn : ベクター素材をPhotoshop内で表示。
  • Flat Icon : フラットなアイコン素材をPhotoshop内でクロール・挿入。
  • Ink : Photoshopのレイヤー情報を書き出し。
  • Socail Kit : FacebookやTwitterなどの画面PSDを用意。
  • Zeick : 選択したレイヤー(ベクターに限る)をSVG書き出し。
  • Random user generator : ランダムなユーザー画像・情報を表示・挿入可能に。
  • SUBTLE PATTERNS PHOTOSHOP PLUGIN : 高品質なパターン素材をクロール・挿入。
  • PNG HAT : Base64や、png・Retina対応でレイヤーを書き出し。