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
/** | |
* @author Fumito MIZUNO http://php-web.net/ | |
* @license GPL ver.2 or later {@link http://www.gnu.org/copyleft/gpl.html} | |
*/ | |
add_action('wp_head','page_template_css') ; | |
function page_template_css() { | |
global $template; | |
$dir = '/css'; // (テーマ配下の)スタイルシートを入れるディレクトリを設定する | |
$pos = strrpos($template, "/"); | |
$template = substr($template, $pos); |
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 | |
namespace Fuel\Migrations; | |
class Create_users | |
{ | |
public function up() | |
{ | |
\DBUtil::create_table('users', array( | |
'id' => array('constraint' => 11, 'type' => 'int', 'auto_increment' => true), |
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
/** | |
* 指定日時によって内容を表示するショートコード | |
*/ | |
// [datecontent opendate="YmdH" closeDate="YmdH"] | |
function datecontent_func($atts, $content = null) { | |
$nowdate = date_i18n("YmdH"); // 現在の時間を取得 | |
extract(shortcode_atts(array( | |
'opendate' => null, | |
'closedate' => null, | |
), $atts)); |
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
#----------------------------------------------------------------------------- | |
# Copyright (c) 2006-2009 Gerard Flanagan | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining | |
# a copy of this software and associated documentation files (the "Software"), | |
# to deal in the Software without restriction, including without limitation | |
# the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
# and/or sell copies of the Software, and to permit persons to whom the | |
# Software is furnished to do so, subject to the following conditions: | |
# |
NewerOlder