Skip to content

Instantly share code, notes, and snippets.

View Masamasamasashito's full-sized avatar

Masatoshi Nishimura Masamasamasashito

View GitHub Profile
@Masamasamasashito
Masamasamasashito / bulma.html
Last active February 18, 2019 09:59
Bulma Basic Components
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hello Bulma!</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.4/css/bulma.min.css">
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
</head>
<body>
@Masamasamasashito
Masamasamasashito / debug.css
Created February 18, 2019 01:48
css bulma debbuger
* {
color: hsla(210, 100%, 100%, 0.9) !important;
background: hsla(210, 100%, 50%, 0.5) !important;
outline: solid 0.25rem hsla(210, 100%, 100%, 0.5) !important;
}
@Masamasamasashito
Masamasamasashito / design-plus-contact-form.php
Created June 12, 2018 06:15
TCD プラグイン Workflow
<?php
/*
Plugin Name: TCD Workflow
Plugin URI: http://design-plus1.com/tcd-w/
Description: Easily create contact forms in your website
Version: 1.5.3
Author: DesignPlus
Author URI: http://design-plus1.com/tcd-w/wp-tcd
License: GPL
Copyright: DesignPlus
@Masamasamasashito
Masamasamasashito / form.php
Last active June 12, 2018 04:11
TCD プラグイン Workflow
<?php
$data['mail'] = null;
if( $data['id'] ){
$data['id'] = $data['id'];
} else {
$data['id'] = 'null';
}
?>
@Masamasamasashito
Masamasamasashito / table.php
Last active June 12, 2018 04:11
TCD プラグイン Workflow table.php
<style type="text/css">
<?php if(isset($phpData['customcss'])) :
echo $phpData['customcss'];
endif; ?>
</style>
<table class="workflow_table table table-bordered table-flow tcd-workflow <?php if(!$phpData['border']) echo "borderless-table"; ?>" style="table-layout:auto; width:<?php echo $phpData['tablewidth']; ?>; background:#<?php if(isset($phpData['mainbgcol'])){echo $phpData['mainbgcol'];} ?>">
<?php if( $phpData['title'] ) : ?>
<tr class="workflow_table_headline" style="background:#<?php echo $phpData['col1']; ?>; color:#<?php echo $phpData['textcol1']; ?>;">
<th class="text-center" colspan="2">
<?php
global $showBorder;
$options = get_desing_plus_option();
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<?php
if($options['use_ogp']) {
?>
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
@Masamasamasashito
Masamasamasashito / template4.php
Last active June 12, 2018 05:17
TCD Agent 033
<?php
if(get_post_meta($post->ID,'page_main_image',true)) {
if(is_mobile()){
if(get_post_meta($post->ID, 'page_main_image_mobile', true)){
$value = get_post_meta($post->ID, 'page_main_image_mobile', true);
}else{
$value = get_post_meta($post->ID, 'page_main_image', true);
}
}else{
$value = get_post_meta($post->ID, 'page_main_image', true);
<?php
// Start class widget //
class google_search extends WP_Widget {
// Constructor //
function __construct() {
$widget_ops = array( 'classname' => 'google_search', 'description' => __('Displays Google Custom Search form.', 'tcd-w') ); // Widget Settings
$control_ops = array( 'id_base' => 'google_search' ); // Widget Control Settings
parent::__construct( 'google_search', __('Google Custom Search (tcd-w ver)', 'tcd-w'), $widget_ops, $control_ops ); // Create the widget
<?php
// Start class widget //
class styled_post_list2_widget extends WP_Widget {
// Constructor //
function __construct() {
$widget_ops = array( 'classname' => 'styled_post_list2_widget', 'description' => __('Displays styled post list.', 'tcd-w') ); // Widget Settings
$control_ops = array( 'id_base' => 'styled_post_list2_widget' ); // Widget Control Settings
parent::__construct( 'styled_post_list2_widget', __('Styled post list2 (tcd ver)', 'tcd-w'), $widget_ops, $control_ops ); // Create the widget
<?php
// Start class widget //
class styled_post_list1_widget extends WP_Widget {
// Constructor //
function __construct() {
$widget_ops = array( 'classname' => 'styled_post_list1_widget', 'description' => __('Displays styled post list.', 'tcd-w') ); // Widget Settings
$control_ops = array( 'id_base' => 'styled_post_list1_widget' ); // Widget Control Settings
parent::__construct( 'styled_post_list1_widget', __('Styled post list (tcd ver)', 'tcd-w'), $widget_ops, $control_ops ); // Create the widget