This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function zusaar_count($atts){ | |
extract(shortcode_atts(array( | |
'zid' => null | |
), $atts)); | |
// return $zid; | |
define("ZUSAAR_API_EVENT_URI", "http://www.zusaar.com/api/event/?event_id="); //イベント自体のデータを取得。開催日時の取得用 | |
define("ZUSAAR_API_USER_URI", "http://www.zusaar.com/api/event/user/?event_id="); //イベント出席者のデータを取得 | |
$today = time(); // 現在の日付を確認 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$pageType = $c->getCollectionTypeHandle();//ページタイプのハンドルを取得 | |
$pageTypeCss = $this->getThemePath() . "/css/" . $pageType . ".css";//そのハンドルの名前を使ったcssがあるとすると | |
$checkExists = file_exists($pageTypeCss);//そもそもそのcssファイルが存在するか | |
if(!$checkExists):?> | |
<link rel="stylesheet" href="<?php echo $pageTypeCss;?>"> | |
<?php endif; // あるならlinkタグで出力。ないならそのまま ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>deadline php</title> | |
</head> | |
<body> | |
<?php | |
$current = time();//現在時刻の取得 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.row { | |
max-width: none; | |
width: 960px; /* any width you want */ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// You SHOULD check the version of Foundation and _setting.scss. | |
// If you don't understant these files how they work, should change just path on Line:58(on this file, Line:61). | |
// Foundation by ZURB | |
// foundation.zurb.com | |
// Licensed under MIT Open Source | |
// | |
// Table of Contents |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// make random color codes for background, to recognize betweens of each columns easily. | |
function rand_color() { | |
return sprintf("#%06x",rand(0,16777215)); | |
} | |
$color = rand_color(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doctype html | |
html.no-js(lang='en') | |
head | |
meta(charset='utf-8') | |
meta(name='viewport', content='width=device-width, initial-scale=1.0') | |
title Foundation | |
link(rel='stylesheet', href='stylesheets/app.css') | |
script(src='bower_components/modernizr/modernizr.js') | |
body | |
.row |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// img roll over | |
$(function(){ | |
$("img[src*='_on']").addClass("current"); | |
$("img,input[type='image']").hover(function(){ | |
if ($(this).attr("src")){ | |
$(this).attr("src",$(this).attr("src").replace("_off.", "_on.")); | |
} | |
},function(){ | |
if ($(this).attr("src") && !$(this).hasClass("current") ){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this script depends on jQuery | |
$('#toTop').click(function(){ | |
var speed = 400; | |
var href= $(this).attr("href"); | |
var target = $(href == "#" || href == "" ? 'html' : href); | |
var position = target.offset().top; | |
$("html, body").animate({scrollTop:position}, speed, "swing"); | |
return false; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// add class current page navigation | |
$(document).ready(function() { | |
var url = location.pathname; | |
if(location.pathname != "/") { | |
$('nav.subpage_sidebar a[href^="' + location.pathname + '"]').parent().addClass('active'); | |
} else $('nav.subpage_sidebar a:eq(0)').parent().addClass('active'); | |
//console.log(url); |
OlderNewer