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
@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対応でレイヤーを書き出し。
@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 / 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 / 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 / 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"
<?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 / plugin-install-list.php
Created May 26, 2014 15:10
plugin install list
<?php
/**
* Plugin Install.
*
* @package TGM-Plugin-Activation
* @version 2.4.0
* @author Thomas Griffin <thomasgriffinmedia.com>
* @author Gary Jones <gamajo.com>
* @copyright Copyright (c) 2014, Thomas Griffin
* @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later
@1shiharat
1shiharat / class-wp-theme-customizer-import-json.php
Last active June 24, 2019 05:59
WordPress Theme Customizer Setting json Import.
<?php
/**
* class WP_Theme_Customizer_Import_Json
*
* method list:
* - __construct()
* - register_json()
* - set_capability()
* - register_customizer()
* - get_theme_name()
@1shiharat
1shiharat / theme-customizer-setting.json
Created May 30, 2014 16:59
theme-customizer-setting.json
{
"setting": {
"theme_slug": "growcreater_basic" ,
"capability": "edit_theme_options"
},
"sections" : {
"gg_general_settings": {
"title" : "基本的な設定",
"priority" : 29,
@1shiharat
1shiharat / gcb-setup.php
Created June 3, 2014 07:33
allow x-domain for wp json api
/**
* ぜっっっったいわすれんな : テスト用
*
*/
add_action( 'init', 'handle_preflight' );
function handle_preflight() {
header("Access-Control-Allow-Origin: " . get_http_origin());
header("Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE");
header("Access-Control-Allow-Credentials: true");