This file contains hidden or 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
/** | |
* call bxSlider | |
*/ | |
$(function($) { | |
var mySlider = $('.bxslider').bxSlider({ | |
auto: true, | |
speed: 1000, | |
pause: 500, | |
mode: 'fade', | |
captions: false, |
This file contains hidden or 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 | |
$header_images = get_uploaded_header_images(); | |
if ($header_images) { | |
echo '<ul class="bxslider">'; | |
foreach ($header_images as $key => $value) { | |
echo '<li><img src="'.$value['url'].'" /></li>'; | |
} | |
echo '</ul>'; | |
} else { | |
echo '<img id="frontpage-image" src="'.get_template_directory_uri().'/img/sky_2x.jpg" width="900" height="200" />'; |
This file contains hidden or 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
// カスタムヘッダーを有効にする | |
$custom_header_defaults = array( | |
'default-image' => get_bloginfo('template_url').'/img/sky_2x.jpg', | |
'width' => 1800, | |
'height' => 400, | |
'header-text' => false, //ヘッダー画像上にテキストをかぶせる | |
); | |
add_theme_support( 'custom-header', $custom_header_defaults ); |
This file contains hidden or 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
{% extends "base.html" %} | |
{% block title_html %} | |
Add user form | |
{% endblock %} | |
{% block h1 %} | |
Add user form | |
{% endblock %} | |
{% block article_content %} | |
<form method="post" action="{{ add_user }}"> | |
{% csrf_token %} |
This file contains hidden or 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
{% extends "base.html" %} | |
{% block title_html %} | |
Django Test Page | |
{% endblock %} | |
{% block h1 %} | |
Hello world | |
{% endblock %} | |
{% block article_content %} | |
<p>Welcome to Django world!</p> | |
<p><a href="login">Your Account</a></p> |
This file contains hidden or 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
{% extends "base.html" %} | |
{% block title_html %} | |
User login form | |
{% endblock %} | |
{% block article_content %} | |
{% if user.is_authenticated %} | |
<!-- Authenticated. --> | |
<h1>You are connected.</h1> | |
<p>Your email : {{ user.email }}</p> | |
<p><a href="/">Return to home</a></p> |
This file contains hidden or 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="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script src="http://d3js.org/topojson.v0.min.js"></script> | |
<style type="text/css"> | |
h1 { | |
font-size: 16px; | |
} |
This file contains hidden or 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="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script src="http://d3js.org/topojson.v0.min.js"></script> | |
<style type="text/css"> | |
h1 { | |
font-size: 16px; | |
} |
This file contains hidden or 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 get_header(); ?> | |
<!-- メイン --> | |
<div id="content"> | |
<div id="main"> | |
<article class="post"> | |
<?php | |
if(is_category()) { | |
$obj = get_queried_object(); | |
$title = '<span>「'.get_cat_name($obj->term_id).'」</span>の記事'; | |
} elseif (is_tag()) { |
This file contains hidden or 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="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script src="http://d3js.org/topojson.v0.min.js"></script> | |
<style type="text/css"> | |
h1 { | |
font-size: 16px; | |
} |