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
<-- Fixing Warning: Missing required field “entry-title”--> | |
<h1 class="entry-title"><?php the_title(); ?></h1> | |
<-- Fixing Warning: Missing required field “updated” --> | |
<span class="date updated"><?php the_time(); ?></span> | |
<-- Fixing Warning: Missing required hCard “author” --> | |
<span class="vcard author"> | |
<span class="fn"><?php the_author(); ?></span> | |
</span> |
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 | |
wp_deregister_script('jquery'); | |
wp_enqueue_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js', array(), '1.7.1'); | |
?> | |
<?php wp_enqueue_script('countdown',get_bloginfo('template_url') . '/countdown/jquery.countdown.js', array('jquery'), '1.0'); ?> | |
<?php wp_enqueue_script('countdown',get_bloginfo('template_url') . '/countdown/jquery.countdown-ja.js', array('jquery'), '1.0'); ?> | |
<?php wp_enqueue_style('countdown',get_bloginfo('template_url') . '/countdown/jquery.countdown.css'); ?> | |
<?php wp_head(); ?> | |
<script type="text/javascript"> | |
jQuery(function() { |
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 | |
include 'signed_request.php'; | |
if (isset($_POST['signed_request']) ) { | |
$fb_data = parse_signed_request($_POST['signed_request'], 'シークレットキー'); | |
if ($fb_data) { | |
if( $fb_data['page']['liked'] ){ | |
include 'fan.php'; | |
} | |
else { | |
include 'not-fan.php'; |
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 | |
get_header(); | |
?> | |
<div id="content" class="two-column"> | |
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> | |
<?php /* If this is a category archive */ if (is_category()) { ?> | |
<h1 class="pagetitle"><?php printf( __( 'Category Archives: %s', 'uscestheme' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?></h1> | |
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?> |
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
<form name="irekae" method="get" id="sort_form5" class="sort_form5"> | |
<select name='narabi' onChange="document.forms['irekae'].submit()" > | |
<option value="sort1"<?php if(!isset($_REQUEST['narabi']) || $_REQUEST['narabi'] == 'sort1') echo ' selected="selected"';?>>新しい順</option> | |
<option value="sort2"<?php if(isset($_REQUEST['narabi']) && $_REQUEST['narabi'] == 'sort2') echo ' selected="selected"';?>>古い順</option> | |
<option value="sort3"<?php if(isset($_REQUEST['narabi']) && $_REQUEST['narabi'] == 'sort3') echo ' selected="selected"';?>>価格:安い順</option> | |
<option value="sort4"<?php if(isset($_REQUEST['narabi']) && $_REQUEST['narabi'] == 'sort4') echo ' selected="selected"';?>>価格:高い順</option> | |
<option value="sort5"<?php if(isset($_REQUEST['narabi']) && $_REQUEST['narabi'] == 'sort5') echo ' selected="selected"';?>>ランダム</option> | |
<option value="sort6"<?php if(isset($_REQUEST['narabi']) && $_REQUEST['narabi'] == 'sort6') echo ' selected="selected"'; |
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 | |
global $post; | |
$tmp_post = $post; | |
$category_ids = array( '29','33','34','85','113','32','28','43','30','31','114');//カテゴリーID | |
$numberposts = '4';//投稿数 | |
foreach ( $category_ids as $category_id ) { | |
?> | |
/*カテゴリー名*/ | |
<?php echo get_cat_name( $category_id ); ?> | |
<span class="sub"><a href="<?php echo get_category_link( $category_id ); ?>"><?php _e('see all', 'usces'); ?> »</a></span> |
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
//headerにjQuery | |
<?php | |
wp_deregister_script('jquery'); | |
wp_enqueue_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js', array(), '1.7.1'); | |
?> | |
//js | |
<script type="text/javascript"> | |
$(function(){ | |
var link_src = location.href; |
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
/* Reset code to remove theme inherent styling */ | |
#dc_jqmegamenu_widget-%ID%-item ul.menu ul, #dc_jqmegamenu_widget-%ID%-item ul.menu li { | |
list-style: none; | |
padding: 0; | |
margin: 0; | |
} | |
#dc_jqmegamenu_widget-%ID%-item ul.menu ul { | |
display: none; /* Hides non-mega links */ | |
} | |
#dc_jqmegamenu_widget-%ID%-item ul.menu .sub ul { |
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 my_get_calendar($yearmonth = ''){ | |
global $m; | |
$m = isset($_GET['ym']) ? $_GET['ym'] : $yearmonth; // 前後月リンク対応 | |
// $m = $yearmonth; // 'YYYYMM' の書式でカレンダーの年月を指定 | |
ob_start(); | |
get_calendar(); | |
$output = ob_get_contents(); | |
ob_end_clean(); |
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 if( !usces_have_zaiko() ) : ?> | |
<div class="field_price"><?php echo apply_filters('usces_filters_single_sku_zaiko_message', __('Sold Out', 'usces')); ?></div> | |
<?php else : ?> | |
<div class="field_price"><?php usces_the_itemPriceCr(); ?></div> | |
<?php endif; ?> |