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 / 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 / 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");

スタッフリレーブログ4日目を任されました、石原です。 普段は GrowGroup合同会社で CMSを使ったWeb制作業務を行っております。

WordFes では、サイト制作を主に担当しており、「WordPress の最新動向」との題材でセッションを行います。 ご期待に沿えるセッションができるか不安ではありますが、 興味がある方は是非ご来場ください。

(一応) 去年からスタッフとして参加していましたが、今年はサイト制作を担当しました。 野末さん、Katz さんにディレクションをしていただき、 デザインと土台のコーディングを WordBench Nagoya 山田さおりさん にやってもらい、

@1shiharat
1shiharat / acf_image.php
Created September 9, 2014 10:29
acf_image.php
<?php
$image_id = get_field( 'カスタムフィールドID' );
$src = wp_get_attachment_image_src( $image_id, 'カスタムサイズのスラッグ' );?>
<img src="<?php echo esc_url( $src['url'] ); ?>" alt="placeholder+image">
http://sourcedrop.net/eEP0deadce3fb
@1shiharat
1shiharat / terms.php
Last active August 29, 2015 14:10
カンマ区切りでカテゴリを出力
<?php
$terms = get_the_terms( get_the_ID(), 'category' );
if ( !empty($terms) ) {
if ( !is_wp_error( $terms ) ) {
foreach( $terms as $term_key => $term ) {
// カテゴリー名がhogehogeの場合ループをすっ飛ばす
if( $term->name == 'hogehoge' ) {
continue;
}
if ($term === end($terms)) {
<a href="">
<img src="http://image.rakuten.co.jp/510-corp/cabinet/top/03263171/imgrc0064027279.gif" alt="" width="294" >
</a>