code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231 values | license stringclasses 13 values | size int64 1 2.01M |
|---|---|---|---|---|---|
<?php
/*
Template Name: Discography
*/
get_header();
echo do_shortcode('[content_header]');
echo do_shortcode('[gnavi]');
echo do_shortcode('[admin_login]');
echo '<!-- //コンテンツ START// -->';
?>
<div id="main" class="clearfix">
<h2 class="discography">Discography</h2>
<div id="search_box">
<?php
if(!is_single()){
echo '<div class="category"><p><img src="' . get_stylesheet_directory_uri() . '/images/front/stitle_cat.png" /></p>';
echo get_selectbox_category();
echo '</div>';
}
?>
</div>
<!-- Discography START -->
<div id="disco_list">
<?php $displayablePostID = ""; ?>
<!-- グッズSTART -->
<?php if(is_single()): ?>
<?php $displayablePostID = get_the_ID(); ?>
<!-- シングルページSTART -->
<?php if(get_post_meta($displayablePostID, '登録タイプ', true) == "ALBUM"): ?>
<!--=NewsListArea=-->
<!--News-->
<dl class="articleHeader">
<dt><?php the_title(); ?></dt>
<dd class="catIcon txtTrd info"><?php echo get_post_meta($displayablePostID, 'カテゴリ', true); ?></dd>
<dd class="like"><?php echo getLikeBottun(); ?></dd>
</dl>
<dl class="Cont" id="cbo1">
<dt>
<?php echo wp_get_attachment_image(get_post_meta($displayablePostID, 'アルバム画像', true), 'medium'); ?>
</dt>
<dd class="textArea txtSnd">
<p><?php echo get_post_meta($displayablePostID, 'サマリー', true); ?></p>
<ul class="info">
<li><?php echo get_post_meta($displayablePostID, '発売日', true); ?></li>
<li><?php echo get_post_meta($displayablePostID, '商品番号', true); ?></li>
<li><?php echo get_post_meta($displayablePostID, '価格', true); ?></li>
</ul>
<!--Buy Now Btn-->
<?php echo gethtml_discography_ext_links($displayablePostID, "buyBtnL mgT20"); ?>
</dd>
</dl>
<div class="Cont clear" id="cbo2">
<h3 class="mgB10">Track List</h3>
<?php $songlist = explode(",", get_post_meta($displayablePostID, '収録曲リスト', true)); ?>
<?php
foreach($songlist as $key => $value){
echo '
<table class="itemList clear txtSnd">
<tr class="odd">
<td width="50%" class="pdL10">' . get_the_title($value) . '</td>
<td width="25%" class="alighR clear"><!--' . get_post_meta($displayablePostID, 'カテゴリ', true) . '--></td>
<td width="35%">
<!--Buy Now Btn-->' . gethtml_discography_ext_links($songlist[$key], "buyBtn killMarginB") . '
</td>
</tr>
</table>';
}
?>
</div>
<?php endif; ?>
<?php else: ?>
<!-- Discography START -->
<div id="disco_list">
<?php
$p = get_posts('post_type=discography&order=ASC&posts_per_page=1000');
foreach($p as $post):
setup_postdata($post);
if(get_post_meta(get_the_ID(), '登録タイプ', true) == "ALBUM"):
if(isset($_GET["cat"])):
if($_GET["cat"] != get_post_meta(get_the_ID(), 'カテゴリ', true)):
continue;
endif;
endif;
?>
<div id="disco_box">
<div class="img_box">
<p><a href="<?php the_permalink(); ?>"><img src="<?php list($img_src) = wp_get_attachment_image_src(get_post_meta(get_the_ID(), 'アルバム画像', true), 'thumbnail'); echo $img_src; ?>" /></a></p>
</div>
<div class="disco_detail">
<p class="disc_ttl"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></p>
<p class="disc_genre"><?php echo get_post_meta(get_the_ID(), 'カテゴリ', true); ?></p>
<p><?php echo get_post_meta(get_the_ID(), '発売日', true); ?></p>
<p><?php echo get_post_meta(get_the_ID(), '商品番号', true); ?></p>
<p><?php echo get_post_meta(get_the_ID(), '価格', true); ?></p>
</div>
<div class="btnBox floatClear">
<!--Buy Now Btn-->
<?php echo gethtml_discography_ext_links(get_the_ID(), "buyBtnL clear"); ?>
<p><?php echo getLikeBottun(); ?></p>
</div>
</div>
<?php
endif;
endforeach;
?>
</div>
<!-- //Discography END// -->
<?php
endif;
$custom_counts = wp_count_posts(CUSTOM_TYPE);
$publish_count = isset($custom_counts) ? $custom_counts->publish : 0;
if ( $publish_count === 0 ){
$demo_img = '/var/www/html/cybird/demoimg/dummy_' . CUSTOM_TYPE . '.png';
if ( is_file( $demo_img ) ):
echo '<img src="/cybird/demoimg/dummy_' . CUSTOM_TYPE . '.png">';
endif;
}
?>
</div>
<div class="ContBox killBorderB">
</div>
</div>
<?php get_footer(); ?>
<?php
function gethtml_discography_ext_links($id, $divclass){
$issetURL = false;
$html = "";
if ( get_post_meta($id, 'iTunesストア', true) !== "" ){
$html .= '<li><a href="' . get_post_meta($id, 'iTunesストア', true) . '" target="_blank">iTunes</a></li>';
$issetURL = true;
}
if ( get_post_meta($id, 'Amazon', true) !== "" ){
$html .= '<li><a href="' . get_post_meta($id, 'Amazon', true) . '" target="_blank">Amazon</a></li>';
$issetURL = true;
}
if ( get_post_meta($id, 'SonyMusicStore', true) !== "" ){
$html .= '<li><a href="' . get_post_meta($id, 'SonyMusicStore', true) . '" target="_blank">SonyMusicStore</a></li>';
$issetURL = true;
}
if ( get_post_meta($id, 'HMV', true) !== "" ){
$html .= '<li><a href="' . get_post_meta($id, 'HMV', true) . '" target="_blank">HMV</a></li>';
$issetURL = true;
}
if ( get_post_meta($id, 'TowerRecords', true) !== "" ){
$html .= '<li><a href="' . get_post_meta($id, 'TowerRecords', true) . '" target="_blank">TowerRecords</a></li>';
$issetURL = true;
}
if ( get_post_meta($id, 'レコチョク', true) !== "" ){
$html .= '<li><a href="' . get_post_meta($id, 'レコチョク', true) . '" target="_blank">レコチョク</a></li>';
$issetURL = true;
}
if ( get_post_meta($id, 'Spotify', true) !== "" ){
$html .= '<li><a href="' . get_post_meta($id, 'Spotify', true) . '" target="_blank">Spotify</a></li>';
$issetURL = true;
}
if($issetURL){
$html_f .= '<!--Buy Now Btn-->';
$html_f .= '<div class="' . $divclass . '">';
$html_f .= '<ul class="dropdown">';
$html_f .= '<li class="arrow"><img src="' . get_bloginfo('template_url') . '/images/front/buyBtnArrow.jpg" width="26" height="18" alt="Buy Now" class="mgR5" />';
$html_f .= '<ul class="snd">';
$html_r .= '</ul>';
$html_r .= '</li>';
$html_r .= '</ul>';
$html_r .= '</div>';
$html = $html_f . $html . $html_r;
}
return $html;
}
function get_selectbox_category(){
$p = get_posts('post_type=discography&order=ASC&posts_per_page=1000');
$catList = array();
foreach($p as $post){
$cat = get_post_custom_values('カテゴリ', $post->ID);
if($cat[0] != ""){
$catList[$cat[0]] = "";
}
}
$catListKeys = array_keys($catList);
$selectbox_html = "<select name='cat' id='cat' class='postform' >";
$selectbox_html .= "<option value=''>Select Category</option>";
foreach($catListKeys as $k=>$v){
if($_REQUEST["cat"] === $v){$selected = "selected";}else{$selected = "";}
$selectbox_html .= '<option class="level-0" value="' . $v . '" ' . $selected . '>' . $v . '</option>';
}
$selectbox_html .= "</select>";
$selectbox_html .= "<script type='text/javascript'>";
$selectbox_html .= "/* <![CDATA[ */";
$selectbox_html .= "var catdropdown = document.getElementById('cat');";
$selectbox_html .= " function onCatChange() {";
$selectbox_html .= " location.href = './?cat='+catdropdown.options[catdropdown.selectedIndex].value;";
$selectbox_html .= "}";
$selectbox_html .= "catdropdown.onchange = onCatChange;";
$selectbox_html .= "/* ]]> */";
$selectbox_html .= "</script>";
return $selectbox_html;
}
| 018erri-rose | custom_discography.php | PHP | oos | 7,708 |
/*
*
* Theme Name: 001_template
*
*/
| 018erri-rose | style.css | CSS | oos | 47 |
<?php
define("PACKAGE_ROOT", dirname(__FILE__));
include_once PACKAGE_ROOT.'/lib/mastercontrol.php';
// お試し中
//include_once 'lib/theme-options.php';
/* DEBUG
define('SAVEQUERIES', true);
// Debug SQL Logger
add_action('shutdown', 'sql_logger');
function sql_logger() {
global $wpdb;
$log_file = fopen(PACKAGE_ROOT.'/log/sql_log.txt', 'a');
fwrite($log_file, "//////////////////////////////////////////\n\n" . date("F j, Y, g:i:s a")."\n");
foreach($wpdb->queries as $q) {
fwrite($log_file, $q[0] . " - ($q[1] s)" . "\n\n");
}
fclose($log_file);
}
*/
/* 翻訳ファイルを読み込む */
load_theme_textdomain( 'aspthemes', get_template_directory() . '/languages' );
$locale = get_locale();
$locale_file = get_template_directory() . "/languages/$locale.php";
if ( is_readable( $locale_file ) )
require_once( $locale_file );
// 自動保存をしない
function disable_autosave() {
wp_deregister_script('autosave');
}
add_action( 'wp_print_scripts', 'disable_autosave' );
//+++++++++++++++++++++++++++++++++++++++++
//カスタムヘッダー
include_once 'lib/func_header.php';
include_once 'lib/func_footer.php';
include_once 'lib/layout/func.php';
include_once 'lib/design/func.php';
include_once 'lib/xml/notshow.php';
include_once 'lib/coverimg/func.php';
include_once 'lib/social.php';
include_once 'lib/pagenavi.php';
include_once 'lib/func_feedwordpress_filter.php';
//+++++++++++++++++++++++++++++++++++++++++
// 個別いいね設定
function ogp_single_blog(){}
add_shortcode('ogp_single_blog', 'ogp_single_base_content');
add_shortcode('blog_like', 'get_base_like');
//+++++++++++++++++++++++++++++++++++++++++
// グローバルナビ
include_once 'lib/func_gnavi.php';
//+++++++++++++++++++++++++++++++++++++++++
// 管理画面設定
// エディタ・スタイルシート
include_once 'lib/func_admin.php';
//+++++++++++++++++++++++++++++++++++++++++
//ウィジェット
include_once 'lib/func_widget.php';
$ary_pages = get_pulish_pages();
$ary_menu = get_menu_order();
// 00. TOP Page
include_once 'lib/module/top/func.php';
$notshow_menu = array_diff( $ary_pages , $ary_menu );
foreach ( $notshow_menu as $none ){
$module_file = PACKAGE_ROOT . '/lib/module/' . $none . '/notshow.php';
if ( is_file( $module_file ) ){
include $module_file;
}
}
foreach ( $ary_menu as $module ){
$module_file = PACKAGE_ROOT . '/lib/module/' . $module . '/func.php';
if ( is_file( $module_file ) ){
include $module_file;
} else {
echo "Not Load Module " . $module_file . "<br>\n";
}
}
/*
//+++++++++++++++++++++++++++++++++++++++++
// 01. Profile
include_once 'lib/module/profile/func.php';
//+++++++++++++++++++++++++++++++++++++++++
// 02. Event情報
include_once 'lib/module/event/func.php';
//+++++++++++++++++++++++++++++++++++++++++
// 02. information情報
include_once 'lib/module/information/func.php';
//+++++++++++++++++++++++++++++++++++++++++
// 03. MEDIA
include_once 'lib/module/media/func.php';
//+++++++++++++++++++++++++++++++++++++++++
// 04. GOODS
include_once 'lib/module/goods/func.php';
//+++++++++++++++++++++++++++++++++++++++++
// 05. DISCOGRAPHY
include_once 'lib/module/discography/func.php';
//+++++++++++++++++++++++++++++++++++++++++
// 06. PhotoGallery
include_once 'lib/module/gallery/func.php';
//+++++++++++++++++++++++++++++++++++++++++
// 07. iTunes
include_once 'lib/module/itunes/func.php';
//+++++++++++++++++++++++++++++++++++++++++
// 08. YouTube
include_once 'lib/module/youtube/func.php';
//+++++++++++++++++++++++++++++++++++++++++
// 09. BLOG
include_once 'lib/module/blog/func.php';
//+++++++++++++++++++++++++++++++++++++++++
// 10. Twitter
include_once 'lib/module/twitter/func.php';
//+++++++++++++++++++++++++++++++++++++++++
// 12. SHOP
include_once 'lib/module/shop/func.php';
*/
//+++++++++++++++++++++++++++++++++++++++++
//パンくずリスト用
include_once 'lib/func_breadcrumb.php';
?>
| 018erri-rose | functions.php | PHP | oos | 3,958 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="content-style-type" content="text/css">
<meta http-equiv="content-script-type" content="text/javascript">
<title><?php bloginfo('name'); ?></title>
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/common/base.css?<?php echo time(); ?>" type="text/css" />
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"></script>
<?php
//echo str_replace("Shop List", "", strip_tags(exec_shoplist(), '<iframe><br>'));
// POST_ID
$title = get_the_title();
$lonlat = get_custom_text(POST_ID, 'lonlat');
$address = get_custom_text(POST_ID, 'address');
$etc = get_custom_text(POST_ID, 'etc');
$tel = get_custom_text(POST_ID, 'tel');
?>
</head>
<body>
<div id="map" style="width: 510px; height: 400px;"></div>
<script type="text/javascript">
function attachMessage(marker, msg) {
google.maps.event.addListener(marker, 'click', function(event) {
new google.maps.InfoWindow({
content: msg
}).open(marker.getMap(), marker);
});
}
// 位置情報と表示データの組み合わせ
var data = new Array();
data.push({position: new google.maps.LatLng(<?php echo $lonlat; ?>), content: '<?php echo $title; ?>'});
var myMap = new google.maps.Map(document.getElementById('map'), {
zoom: 14,
center: new google.maps.LatLng(<?php echo $lonlat; ?>),
scrollwheel: false,
mapTypeId: google.maps.MapTypeId.ROADMAP
});
for (i = 0; i < data.length; i++) {
var myMarker = new google.maps.Marker({
position: data[i].position,
map: myMap,
title:"<?php echo $title . '\n' . $address . '\n' . $etc; ?>"
});
attachMessage(myMarker, data[i].content);
}
</script>
</body>
</html>
| 018erri-rose | dialog_shop.php | PHP | oos | 2,017 |
/*
* Thickbox 3.1 - One Box To Rule Them All.
* By Cody Lindley (http://www.codylindley.com)
* Copyright (c) 2007 cody lindley
* Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/
var tb_pathToImage = "/wp-content/images/tool/loadingAnimation.gif";
/*!!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/
//on page load call tb_init
$(document).ready(function(){
tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox
imgLoader = new Image();// preload image
imgLoader.src = tb_pathToImage;
});
//add thickbox to href & area elements that have a class of .thickbox
function tb_init(domChunk){
$(domChunk).click(function(){
var t = this.title || this.name || null;
var a = this.href || this.alt;
var g = this.rel || false;
tb_show(t,a,g);
this.blur();
return false;
});
}
function tb_show(caption, url, imageGroup) {//function called when the user clicks on a thickbox link
try {
if (typeof document.body.style.maxHeight === "undefined") {//if IE 6
$("body","html").css({height: "100%", width: "100%"});
$("html").css("overflow","hidden");
if (document.getElementById("TB_HideSelect") === null) {//iframe to hide select elements in ie6
$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");
$("#TB_overlay").click(tb_remove);
}
}else{//all others
if(document.getElementById("TB_overlay") === null){
$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");
$("#TB_overlay").click(tb_remove);
}
}
if(tb_detectMacXFF()){
$("#TB_overlay").addClass("TB_overlayMacFFBGHack");//use png overlay so hide flash
}else{
$("#TB_overlay").addClass("TB_overlayBG");//use background and opacity
}
if(caption===null){caption="";}
$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");//add loader to the page
$('#TB_load').show();//show loader
var baseURL;
if(url.indexOf("?")!==-1){ //ff there is a query string involved
baseURL = url.substr(0, url.indexOf("?"));
}else{
baseURL = url;
}
var urlString = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;
var urlType = baseURL.toLowerCase().match(urlString);
if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp'){//code to show images
TB_PrevCaption = "";
TB_PrevURL = "";
TB_PrevHTML = "";
TB_NextCaption = "";
TB_NextURL = "";
TB_NextHTML = "";
TB_imageCount = "";
TB_FoundURL = false;
if(imageGroup){
TB_TempArray = $("a[@rel="+imageGroup+"]").get();
for (TB_Counter = 0; ((TB_Counter < TB_TempArray.length) && (TB_NextHTML === "")); TB_Counter++) {
var urlTypeTemp = TB_TempArray[TB_Counter].href.toLowerCase().match(urlString);
if (!(TB_TempArray[TB_Counter].href == url)) {
if (TB_FoundURL) {
TB_NextCaption = TB_TempArray[TB_Counter].title;
TB_NextURL = TB_TempArray[TB_Counter].href;
TB_NextHTML = "<span id='TB_next'> <a href='#'>Next ></a></span>";
} else {
TB_PrevCaption = TB_TempArray[TB_Counter].title;
TB_PrevURL = TB_TempArray[TB_Counter].href;
TB_PrevHTML = "<span id='TB_prev'> <a href='#'>< Prev</a></span>";
}
} else {
TB_FoundURL = true;
TB_imageCount = "Image " + (TB_Counter + 1) +" of "+ (TB_TempArray.length);
}
}
}
imgPreloader = new Image();
imgPreloader.onload = function(){
imgPreloader.onload = null;
// Resizing large images - orginal by Christian Montoya edited by me.
var pagesize = tb_getPageSize();
var x = pagesize[0] - 150;
var y = pagesize[1] - 150;
var imageWidth = imgPreloader.width;
var imageHeight = imgPreloader.height;
if (imageWidth > x) {
imageHeight = imageHeight * (x / imageWidth);
imageWidth = x;
if (imageHeight > y) {
imageWidth = imageWidth * (y / imageHeight);
imageHeight = y;
}
} else if (imageHeight > y) {
imageWidth = imageWidth * (y / imageHeight);
imageHeight = y;
if (imageWidth > x) {
imageHeight = imageHeight * (x / imageWidth);
imageWidth = x;
}
}
// End Resizing
TB_WIDTH = imageWidth + 30;
TB_HEIGHT = imageHeight + 60;
$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>" + "<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div>");
$("#TB_closeWindowButton").click(tb_remove);
if (!(TB_PrevHTML === "")) {
function goPrev(){
if($(document).unbind("click",goPrev)){$(document).unbind("click",goPrev);}
$("#TB_window").remove();
$("body").append("<div id='TB_window'></div>");
tb_show(TB_PrevCaption, TB_PrevURL, imageGroup);
return false;
}
$("#TB_prev").click(goPrev);
}
if (!(TB_NextHTML === "")) {
function goNext(){
$("#TB_window").remove();
$("body").append("<div id='TB_window'></div>");
tb_show(TB_NextCaption, TB_NextURL, imageGroup);
return false;
}
$("#TB_next").click(goNext);
}
document.onkeydown = function(e){
if (e == null) { // ie
keycode = event.keyCode;
} else { // mozilla
keycode = e.which;
}
if(keycode == 27){ // close
tb_remove();
} else if(keycode == 190){ // display previous image
if(!(TB_NextHTML == "")){
document.onkeydown = "";
goNext();
}
} else if(keycode == 188){ // display next image
if(!(TB_PrevHTML == "")){
document.onkeydown = "";
goPrev();
}
}
};
tb_position();
$("#TB_load").remove();
$("#TB_ImageOff").click(tb_remove);
$("#TB_window").css({display:"block"}); //for safari using css instead of show
};
imgPreloader.src = url;
}else{//code to show html
var queryString = url.replace(/^[^\?]+\??/,'');
var params = tb_parseQuery( queryString );
TB_WIDTH = (params['width']*1) + 30 || 630; //defaults to 630 if no paramaters were added to URL
TB_HEIGHT = (params['height']*1) + 40 || 440; //defaults to 440 if no paramaters were added to URL
ajaxContentW = TB_WIDTH - 30;
ajaxContentH = TB_HEIGHT - 45;
$("#TB_window").css('top', mouseY);
$("#TB_load").css('top', mouseY);
if(url.indexOf('TB_iframe') != -1){// either iframe or ajax window
urlNoQuery = url.split('TB_');
$("#TB_iframeContent").remove();
if(params['modal'] != "true"){//iframe no modal
$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' > </iframe>");
}else{//iframe modal
$("#TB_overlay").unbind();
$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;'> </iframe>");
}
}else{// not an iframe, ajax
if($("#TB_window").css("display") != "block"){
if(params['modal'] != "true"){//ajax no modal
$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a> or Esc Key</div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>");
}else{//ajax modal
$("#TB_overlay").unbind();
$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");
}
}else{//this means the window is already up, we are just loading new content via ajax
$("#TB_ajaxContent")[0].style.width = ajaxContentW +"px";
$("#TB_ajaxContent")[0].style.height = ajaxContentH +"px";
$("#TB_ajaxContent")[0].scrollTop = 0;
$("#TB_ajaxWindowTitle").html(caption);
}
}
$("#TB_closeWindowButton").click(tb_remove);
if(url.indexOf('TB_inline') != -1){
$("#TB_ajaxContent").append($('#' + params['inlineId']).children());
$("#TB_window").unload(function () {
$('#' + params['inlineId']).append( $("#TB_ajaxContent").children() ); // move elements back when you're finished
});
tb_position();
$("#TB_load").remove();
$("#TB_window").css({display:"block"});
}else if(url.indexOf('TB_iframe') != -1){
tb_position();
if($.browser.safari){//safari needs help because it will not fire iframe onload
$("#TB_load").remove();
$("#TB_window").css({display:"block"});
}
}else{
$("#TB_ajaxContent").load(url += "&random=" + (new Date().getTime()),function(){//to do a post change this load method
tb_position();
$("#TB_load").remove();
tb_init("#TB_ajaxContent a.thickbox");
$("#TB_window").css({display:"block"});
});
}
}
if(!params['modal']){
document.onkeyup = function(e){
if (e == null) { // ie
keycode = event.keyCode;
} else { // mozilla
keycode = e.which;
}
if(keycode == 27){ // close
tb_remove();
}
};
}
} catch(e) {
//nothing here
}
}
//helper functions below
function tb_showIframe(){
$("#TB_load").remove();
$("#TB_window").css({display:"block"});
}
function tb_remove() {
$("#TB_imageOff").unbind("click");
$("#TB_closeWindowButton").unbind("click");
$("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();});
$("#TB_load").remove();
if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
$("body","html").css({height: "auto", width: "auto"});
$("html").css("overflow","");
}
document.onkeydown = "";
document.onkeyup = "";
return false;
}
function tb_position() {
$("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + 'px', width: TB_WIDTH + 'px'});
if ( !(jQuery.browser.msie && jQuery.browser.version < 7)) { // take away IE6
$("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'});
}
}
function tb_parseQuery ( query ) {
var Params = {};
if ( ! query ) {return Params;}// return empty object
var Pairs = query.split(/[;&]/);
for ( var i = 0; i < Pairs.length; i++ ) {
var KeyVal = Pairs[i].split('=');
if ( ! KeyVal || KeyVal.length != 2 ) {continue;}
var key = unescape( KeyVal[0] );
var val = unescape( KeyVal[1] );
val = val.replace(/\+/g, ' ');
Params[key] = val;
}
return Params;
}
function tb_getPageSize(){
var de = document.documentElement;
var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
arrayPageSize = [w,h];
return arrayPageSize;
}
function tb_detectMacXFF() {
var userAgent = navigator.userAgent.toLowerCase();
if (userAgent.indexOf('mac') != -1 && userAgent.indexOf('firefox')!=-1) {
return true;
}
}
| 018erri-rose | js/thickbox.js | JavaScript | oos | 11,724 |
<?php
define( POST_ID, get_the_ID());
define( CUSTOM_TYPE , get_template_type() );
$custom_type_file = PACKAGE_ROOT . '/custom_' . CUSTOM_TYPE . '.php';
if ( CUSTOM_TYPE === "shop" ){
include 'dialog_shop.php';
exit;
} else if ( CUSTOM_TYPE === "xml" ){
echo exec_xml();
exit;
}
if ( is_file( $custom_type_file ) ){
include $custom_type_file;
} else {
get_header();
run_layout();
get_footer();
}
?>
| 018erri-rose | single.php | PHP | oos | 417 |
<?php
/*
Template Name: Discography
*/
get_header();
echo '<div id="google_translate_element" style="float:right"></div>';
echo do_shortcode('[content_header]');
echo do_shortcode('[gnavi]');
echo '<!-- //コンテンツ START// -->';
?>
<div id="main" class="clearfix">
<div id="search_box">
<?php
if(!is_single()){
echo '<div class="category"><p><img src="./images/front/stitle_cat.png" /></p>';
echo get_selectbox_category();
echo '</div>';
}
?>
</div>
<!-- Discography START -->
<div id="disco_list">
<?php $displayablePostID = ""; ?>
<!-- グッズSTART -->
<?php if(is_single()): ?>
<?php $displayablePostID = get_the_ID(); ?>
<!-- シングルページSTART -->
<?php if(get_post_meta($displayablePostID, '登録タイプ', true) == "ALBUM"): ?>
<!--=NewsListArea=-->
<!--News-->
<dl class="articleHeader">
<dt><?php the_title(); ?></dt>
<dd class="catIcon txtTrd info"><?php echo get_post_meta($displayablePostID, 'カテゴリ', true); ?></dd>
<dd class="like"><?php echo getLikeBottun(); ?></dd>
</dl>
<dl class="Cont" id="cbo1">
<dt>
<?php echo wp_get_attachment_image(get_post_meta($displayablePostID, 'アルバム画像', true), 'medium'); ?>
</dt>
<dd class="textArea txtSnd">
<p><?php echo get_post_meta($displayablePostID, 'サマリー', true); ?></p>
<ul class="info">
<li><?php echo get_post_meta($displayablePostID, '発売日', true); ?></li>
<li><?php echo get_post_meta($displayablePostID, '商品番号', true); ?></li>
<li><?php echo get_post_meta($displayablePostID, '価格', true); ?></li>
</ul>
<!--Buy Now Btn-->
<?php echo gethtml_discography_ext_links($displayablePostID, "buyBtnL mgT20"); ?>
</dd>
</dl>
<div class="Cont clear" id="cbo2">
<h3 class="mgB10">Track List</h3>
<?php $songlist = explode(",", get_post_meta($displayablePostID, '収録曲リスト', true)); ?>
<?php
foreach($songlist as $key => $value){
echo '
<table class="itemList clear txtSnd">
<tr class="odd">
<td width="50%" class="pdL10">' . get_the_title($value) . '</td>
<td width="25%" class="alighR clear"><!--' . get_post_meta($displayablePostID, 'カテゴリ', true) . '--></td>
<td width="35%">
<!--Buy Now Btn-->' . gethtml_discography_ext_links($songlist[$key], "buyBtn killMarginB") . '
</td>
</tr>
</table>';
}
?>
</div>
<?php endif; ?>
<?php else: ?>
<?php
$p = get_posts('post_type=discography&order=ASC&posts_per_page=1000');
foreach($p as $post):
setup_postdata($post);
if(get_post_meta(get_the_ID(), '登録タイプ', true) == "ALBUM"):
if(isset($_GET["cat"])):
if($_GET["cat"] != get_post_meta(get_the_ID(), 'カテゴリ', true)):
continue;
endif;
endif;
?>
<dl class="Cont innerL">
<dt class="mgB80 flL"><a href="<?php the_permalink(); ?>"><img src="<?php echo get_featured_image_url(); ?>" /></a></dt>
<dd class="flL infoBox">
<p class="clear"><a href="<?php echo get_permalink(); ?>"><?php the_title(); ?></a></p>
<ul class="info txtSnd">
<li class="catIcon txtTrd mgB5"><?php echo get_post_meta(get_the_ID(), 'カテゴリ', true); ?></li>
<li><?php echo get_post_meta(get_the_ID(), '発売日', true); ?></li>
<li><?php echo get_post_meta(get_the_ID(), '商品番号', true); ?></li>
<li><?php echo get_post_meta(get_the_ID(), '価格', true); ?></li>
</ul>
</dd>
<dd class="clear btnBox">
<!--Buy Now Btn-->
<?php echo gethtml_discography_ext_links(get_the_ID(), "buyBtnL clear"); ?>
<p><?php echo getLikeBottun(); ?></p>
</dd>
</dl>
<?php
endif;
endforeach;
endif;
?>
</div>
<div class="ContBox killBorderB">
</div>
</div>
<?php get_footer(); ?>
<?php
function gethtml_discography_ext_links($id, $divclass){
$issetURL = false;
$html = "";
if ( get_post_meta($id, 'iTunesストア', true) !== "" ){
$html .= '<li><a href="' . get_post_meta($id, 'iTunesストア', true) . '" target="_blank">iTunes</a></li>';
$issetURL = true;
}
if ( get_post_meta($id, 'Amazon', true) !== "" ){
$html .= '<li><a href="' . get_post_meta($id, 'Amazon', true) . '" target="_blank">Amazon</a></li>';
$issetURL = true;
}
if ( get_post_meta($id, 'SonyMusicStore', true) !== "" ){
$html .= '<li><a href="' . get_post_meta($id, 'SonyMusicStore', true) . '" target="_blank">SonyMusicStore</a></li>';
$issetURL = true;
}
if ( get_post_meta($id, 'HMV', true) !== "" ){
$html .= '<li><a href="' . get_post_meta($id, 'HMV', true) . '" target="_blank">HMV</a></li>';
$issetURL = true;
}
if ( get_post_meta($id, 'TowerRecords', true) !== "" ){
$html .= '<li><a href="' . get_post_meta($id, 'TowerRecords', true) . '" target="_blank">TowerRecords</a></li>';
$issetURL = true;
}
if ( get_post_meta($id, 'レコチョク', true) !== "" ){
$html .= '<li><a href="' . get_post_meta($id, 'レコチョク', true) . '" target="_blank">レコチョク</a></li>';
$issetURL = true;
}
if ( get_post_meta($id, 'Spotify', true) !== "" ){
$html .= '<li><a href="' . get_post_meta($id, 'Spotify', true) . '" target="_blank">Spotify</a></li>';
$issetURL = true;
}
if($issetURL){
$html_f .= '<!--Buy Now Btn-->';
$html_f .= '<div class="' . $divclass . '">';
$html_f .= '<ul class="dropdown">';
$html_f .= '<li class="arrow"><img src="' . get_bloginfo('template_url') . '/images/front/buyBtnArrow.jpg" width="26" height="18" alt="Buy Now" class="mgR5" />';
$html_f .= '<ul class="snd">';
$html_r .= '</ul>';
$html_r .= '</li>';
$html_r .= '</ul>';
$html_r .= '</div>';
$html = $html_f . $html . $html_r;
}
return $html;
}
function get_selectbox_category(){
$p = get_posts('post_type=discography&order=ASC&posts_per_page=1000');
foreach($p as $post){
$cat = get_post_custom_values('カテゴリ', $post->ID);
if($cat[0] != ""){
$catList[$cat[0]] = "";
}
}
$catListKeys = array_keys($catList);
$selectbox_html = "<select name='cat' id='cat' class='postform' >";
$selectbox_html .= "<option value=''>Select Category</option>";
foreach($catListKeys as $k=>$v){
if($_REQUEST["cat"] === $v){$selected = "selected";}else{$selected = "";}
$selectbox_html .= '<option class="level-0" value="' . $v . '" ' . $selected . '>' . $v . '</option>';
}
$selectbox_html .= "</select>";
$selectbox_html .= "<script type='text/javascript'>";
$selectbox_html .= "/* <![CDATA[ */";
$selectbox_html .= "var catdropdown = document.getElementById('cat');";
$selectbox_html .= " function onCatChange() {";
$selectbox_html .= " location.href = './?cat='+catdropdown.options[catdropdown.selectedIndex].value;";
$selectbox_html .= "}";
$selectbox_html .= "catdropdown.onchange = onCatChange;";
$selectbox_html .= "/* ]]> */";
$selectbox_html .= "</script>";
return $selectbox_html;
}
| 018erri-rose | custom/custom_discography.php | PHP | oos | 7,088 |
<?php
/*
* トップページ
*/
echo 'トップページ';
?>
| 018erri-rose | custom/custom_top.php | PHP | oos | 66 |
<?php
/*
* Template Name: Profile
*/
get_header();
echo '<div id="google_translate_element" style="float:right"></div>';
echo do_shortcode('[content_header]');
echo do_shortcode('[gnavi]');
echo '<!-- //コンテンツ START// -->';
list($conf_profile) = get_posts('post_type=profile&order=DSC');
if ( isset( $conf_profile ) ):
define('PROF_ID' , $conf_profile->ID);
endif;
//
// [site_name] : サイト名
// [prof_image] : イメージ(管理画面より登録)
// [prof_comment] : コメント
// [prof_detail] : 詳細
$profile_html = <<<PROFILE_HTML
<div id="main" class="clearfix">
<h2 class="prof">[app_title]</h2>
<div class="prof_img">
<img src="[prof_image]" alt="[site_name]" title="[site_name]" />
</div>
<div class="prof_msg">
<h3>[site_name]</h3>
<p class="p_data">[prof_comment]</p>
<div class="desc">[prof_detail]</p>
</div>
</div>
<br style="clear:both;">
PROFILE_HTML;
echo do_shortcode($profile_html);
echo '<!-- //コンテンツ END// -->';
get_footer();
?>
| 018erri-rose | custom/custom_profile.php | PHP | oos | 1,049 |
<?php
/*
Template Name: PhotoGallery
*/
?>
<?php get_header();
echo '<div id="google_translate_element" style="float:right"></div>';
echo do_shortcode('[content_header]');
echo do_shortcode('[gnavi]');
?>
<!--<link type="text/css" rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style.css" />-->
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.lightbox-0.5.js"></script>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/jquery.lightbox-0.5.css" media="screen" />
<script type="text/javascript">
$(function() {
$('#gallery a').lightBox({maxWidth:450});
});
</script>
<!--===MainContentsArea===-->
<div id="main">
<div id="pageNavigation">
<ul class="bread">
<li><a href="<?php echo str_replace("http://", "https://", get_bloginfo("home")); ?>" title="Top">Top</a> > </li>
<li>Gallery</li>
</ul>
<h2>Gallery</h2>
</div>
<!-- end: #pageNavi-->
<div class="entry">
<!--=NewsListArea=-->
<div class="ContBox">
<!-- ##シングルページへのアクセスだった場合(single.phpからのincludeの場合)は表示させるPostIDを取得 -->
<?php if(is_single()){ $displayablePostID = get_the_ID();}else{$displayablePostID = "";} ?>
<?php if(is_single()): ?>
<!-- フォトギャラリーSTART -->
<div class="ProfCont">
<h3><?php the_title(); ?></h3>
<p class="like"><?php echo getLikeBottun(); ?></p>
</div>
<?php query_posts('post_type=photogallery'); ?>
<?php if(have_posts()): ?>
<?php while(have_posts()): the_post(); ?>
<?php if($displayablePostID !== "" && $displayablePostID != get_the_ID()){ continue; } ?>
<div id="gallery"><div class="photo"><?php the_content(); ?></div></div>
<?php endwhile; ?>
<?php endif; ?>
<!-- //フォトギャラリーEND// -->
<?php else: ?>
<!-- フォトギャラリーSTART -->
<?php query_posts('post_type=photogallery&order=DESC&orderby=date'); ?>
<?php if(have_posts()): ?>
<?php while(have_posts()): the_post(); ?>
<dl class="listBox">
<dt class="thumb"><a href="<?php the_permalink(); ?>"><img src="<?php echo get_featured_image_url(); ?>" /></a></dt>
<dd><a href="<?php the_permalink(); ?>"><?php echo get_the_title(); ?></a></dd>
<dd><?php echo getLikeBottun(); ?></dd>
</dl>
<?php endwhile; ?>
<?php endif; ?>
<!-- //フォトギャラリーEND// -->
<?php endif; ?>
</div>
</div>
<?php /*
<!-- フォトギャラリーSTART -->
<div class="ContBox">
<div class="listBoxWrap">
<!-- ##シングルページへのアクセスだった場合(single.phpからのincludeの場合)は表示させるPostIDを取得 -->
<?php if(is_single()){ $displayablePostID = get_the_ID();}else{$displayablePostID = "";} ?>
<!-- ##blogポスト取得のループ開始 -->
<?php query_posts('post_type=photogallery'); ?>
<?php if(have_posts()): ?>
<?php while(have_posts()): the_post(); ?>
<?php $title = get_the_title(); ?>
<!-- ##シングルページの場合は、指定されたPostID以外は表示させない -->
<?php if($displayablePostID == get_the_ID()){
echo '<dl class="Cont">
<dt class="bigImg mgB15"><img src="' . get_featured_image_url($displayablePostID) . '" width="482" height="278" alt="fig01" /></dt>
<dd>
<ul class="info txtSnd">
<li></li>
</ul>
</dd>
</dl>';
//continue;
}?>
<dl class="listBox">
<dt class="thumb"><a href="<?php the_permalink(); ?>"><img src="<?php get_featured_image_url(); ?>" width="113" height="100"></a></dt>
<dd><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></dd>
<dd><?php echo getLikeBottun(); ?></dd>
</dl>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
<!-- //フォトギャラリーEND// -->
*/ ?>
<!--=PagerArea=-->
<div class="ContBox killBorderB">
</div>
<?php get_footer(); ?>
| 018erri-rose | custom/custom_photogallery.php | PHP | oos | 4,101 |
<?php
// 固定ページでない時、表示するページ
if ( is_home() ){
echo "Not Found Page";
} else {
echo "<!-- index.php -->";
}
define( CUSTOM_TYPE , get_template_type() );
$custom_type_file = PACKAGE_ROOT . '/custom_' . CUSTOM_TYPE . '.php';
global $posts;
if ( is_file( $custom_type_file ) ){
include $custom_type_file;
} else {
get_header();
run_layout();
get_footer();
}
?>
| 018erri-rose | index.php | PHP | oos | 409 |
<?php
define( CUSTOM_TYPE , get_template_type() );
if ( CUSTOM_TYPE === "xml" ){
echo exec_xml();
exit;
}
$custom_type_file = PACKAGE_ROOT . '/custom_' . CUSTOM_TYPE . '.php';
if ( is_file( $custom_type_file ) ){
include $custom_type_file;
} else {
get_header();
run_layout();
get_footer();
}
?>
| 018erri-rose | page.php | PHP | oos | 310 |
<!-- フッター START -->
<div id="footer">
CopyRight <?php bloginfo('name'); ?>
</div>
<!-- //フッター END// -->
<?php wp_footer(); ?>
</div>
</body>
</html>
| 018erri-rose | footer.php | PHP | oos | 176 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="content-style-type" content="text/css">
<meta http-equiv="content-script-type" content="text/javascript">
<title><?php bloginfo('name'); ?></title>
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/common/base.css?<?php echo time(); ?>" type="text/css" />
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/common/common.css?<?php echo time(); ?>" type="text/css" />
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri(); ?>/css/layout.css?<?php echo time(); ?>" type="text/css" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>?<?php echo time(); ?>" type="text/css" />
<?php
loadIframeFB();
wp_head();
echo do_shortcode('[ogp_meta]');
redirectFB();
?>
</head>
<body>
<div style="text-align:right;height:30px;">
<div id="google_translate_element"></div>
</div>
<a name="pagetop" id="pagetop"></a>
<div id="wrapper">
| 018erri-rose | header.php | PHP | oos | 1,220 |
<?php
echo $custom_type_file;
$custom_type_file = PACKAGE_ROOT . '/custom_top.php';
if ( is_file( $custom_type_file ) ){
include $custom_type_file;
} else {
get_header();
run_layout();
get_footer();
}
?>
| 018erri-rose | home.php | PHP | oos | 210 |
@charset "utf-8";
#twitter_box {
width:760px;
margin:0px auto 10px;
padding-bottom:40px;
background:url(../images/front/line_bottom.jpg) no-repeat center bottom;
}
.followme {
width:760px;
height:60px;
margin:0px auto 10px;
text-align:right;
background:url(../images/front/line_top.jpg) no-repeat center bottom;
}
| 018erri-rose | css/twitter.css | CSS | oos | 325 |
/**
* jQuery lightBox plugin
* This jQuery plugin was inspired and based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/)
* and adapted to me for use like a plugin from jQuery.
* @name jquery-lightbox-0.5.css
* @author Leandro Vieira Pinho - http://leandrovieira.com
* @version 0.5
* @date April 11, 2008
* @category jQuery plugin
* @copyright (c) 2008 Leandro Vieira Pinho (leandrovieira.com)
* @license CCAttribution-ShareAlike 2.5 Brazil - http://creativecommons.org/licenses/by-sa/2.5/br/deed.en_US
* @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for more informations about this jQuery plugin
*/
#jquery-overlay {
position: absolute;
top: 0;
left: 0;
z-index: 90;
width: 100%;
height: 500px;
}
#jquery-lightbox {
position: absolute;
top: 0;
left: 0;
width: 100%;
z-index: 100;
text-align: center;
line-height: 0;
}
#jquery-lightbox a img { border: none; }
#lightbox-container-image-box {
position: relative;
background-color: #fff;
width: 250px;
height: 250px;
margin: 0 auto;
}
#lightbox-container-image { padding: 10px; }
#lightbox-loading {
position: absolute;
top: 40%;
left: 0%;
height: 25%;
width: 100%;
text-align: center;
line-height: 0;
}
#lightbox-nav {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 10;
}
#lightbox-container-image-box > #lightbox-nav { left: 0; }
#lightbox-nav a { outline: none;}
#lightbox-nav-btnPrev, #lightbox-nav-btnNext {
width: 49%;
height: 100%;
zoom: 1;
display: block;
}
#lightbox-nav-btnPrev {
left: 0;
float: left;
}
#lightbox-nav-btnNext {
right: 0;
float: right;
}
#lightbox-container-image-data-box {
font: 10px Verdana, Helvetica, sans-serif;
background-color: #fff;
margin: 0 auto;
line-height: 1.4em;
overflow: auto;
width: 100%;
padding: 0 10px 0;
}
#lightbox-container-image-data {
padding: 0 10px;
color: #666;
}
#lightbox-container-image-data #lightbox-image-details {
width: 70%;
float: left;
text-align: left;
}
#lightbox-image-details-caption { font-weight: bold; }
#lightbox-image-details-currentNumber {
display: block;
clear: left;
padding-bottom: 1.0em;
}
#lightbox-secNav-btnClose {
width: 66px;
float: right;
padding-bottom: 0.7em;
} | 018erri-rose | css/jquery.lightbox-0.5.css | CSS | oos | 2,266 |
/* ----------------------------------------------------------------------------------------------------------------*/
/* ---------->>> global settings needed for thickbox <<<-----------------------------------------------------------*/
/* ----------------------------------------------------------------------------------------------------------------*/
*{padding: 0; margin: 0;}
/* ----------------------------------------------------------------------------------------------------------------*/
/* ---------->>> thickbox specific link and font settings <<<------------------------------------------------------*/
/* ----------------------------------------------------------------------------------------------------------------*/
#TB_window {
font: 12px Arial, Helvetica, sans-serif;
color: #333333;
}
#TB_secondLine {
font: 10px Arial, Helvetica, sans-serif;
color:#666666;
}
#TB_window a:link {color: #666666;}
#TB_window a:visited {color: #666666;}
#TB_window a:hover {color: #000;}
#TB_window a:active {color: #666666;}
#TB_window a:focus{color: #666666;}
/* ----------------------------------------------------------------------------------------------------------------*/
/* ---------->>> thickbox settings <<<-----------------------------------------------------------------------------*/
/* ----------------------------------------------------------------------------------------------------------------*/
#TB_overlay {
position: fixed;
z-index:100;
top: 0px;
left: 0px;
height:100%;
width:100%;
}
.TB_overlayMacFFBGHack {background: url(macFFBgHack.png) repeat;}
.TB_overlayBG {
background-color:#000;
filter:alpha(opacity=75);
-moz-opacity: 0.75;
opacity: 0.75;
}
* html #TB_overlay { /* ie6 hack */
position: absolute;
height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
}
#TB_window {
position: fixed;
background: #ffffff;
z-index: 102;
color:#000000;
display:none;
border: 4px solid #525252;
text-align:left;
top:50%;
left:50%;
}
* html #TB_window { /* ie6 hack */
position: absolute;
margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
}
#TB_window img#TB_Image {
display:block;
margin: 15px 0 0 15px;
border-right: 1px solid #ccc;
border-bottom: 1px solid #ccc;
border-top: 1px solid #666;
border-left: 1px solid #666;
}
#TB_caption{
height:25px;
padding:7px 30px 10px 25px;
float:left;
}
#TB_closeWindow{
height:25px;
padding:11px 25px 10px 0;
float:right;
}
#TB_closeAjaxWindow{
padding:7px 10px 5px 0;
margin-bottom:1px;
text-align:right;
float:right;
}
#TB_ajaxWindowTitle{
float:left;
padding:7px 0 5px 10px;
margin-bottom:1px;
}
#TB_title{
background-color:#e8e8e8;
height:27px;
}
#TB_ajaxContent{
clear:both;
padding:2px 15px 15px 15px;
overflow:auto;
text-align:left;
line-height:1.4em;
}
#TB_ajaxContent.TB_modal{
padding:15px;
}
#TB_ajaxContent p{
padding:5px 0px 5px 0px;
}
#TB_load{
position: fixed;
display:none;
height:13px;
width:208px;
z-index:103;
top: 50%;
left: 50%;
margin: -6px 0 0 -104px; /* -height/2 0 0 -width/2 */
}
* html #TB_load { /* ie6 hack */
position: absolute;
margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
}
#TB_HideSelect{
z-index:99;
position:fixed;
top: 0;
left: 0;
background-color:#fff;
border:none;
filter:alpha(opacity=0);
-moz-opacity: 0;
opacity: 0;
height:100%;
width:100%;
}
* html #TB_HideSelect { /* ie6 hack */
position: absolute;
height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
}
#TB_iframeContent{
clear:both;
border:none;
margin-bottom:-1px;
margin-top:1px;
_margin-bottom:1px;
}
| 018erri-rose | css/thickbox.css | CSS | oos | 4,012 |
@charset "utf-8";
/*------------------------------LINK Setting */
a:link,a:visited {
color:#af4e91;
text-decoration:none;
}
a:hover {
color:#af4e91;
text-decoration:underline;
}
/**************************** Layout Setting -wrapper*/
#wrapper {
background-color:#fcecfc;
color:#595959;
}
/**************************** Layout Setting -header*/
#header {
background:url(../images/front/bg_header.jpg) no-repeat 0 0;
}
#header h1 {
width:360px;
height:80px;
margin:0px auto;
position:relative;
top:15px;
}
/**************************** Layout Setting -main*/
/**************************** Layout Setting -footer*/
#footer {
background:url(../images/front/bg_footer.jpg) repeat-x 0 0;
}
/*------------------------------Content h2 setting */
#main h2.prof {
width:780px;
height:34px;
margin:0 auto 20px;
background:url("../images/front/h2_prof.png") 0 0 no-repeat;
text-indent:-9999px;
}
#main h2.info {
width:780px;
height:34px;
margin:0 auto 20px;
background:url("../images/front/h2_info.png") 0 0 no-repeat;
text-indent:-9999px;
}
#main h2.event {
width:780px;
height:34px;
margin:0 auto 20px;
background:url("../images/front/h2_event.png") 0 0 no-repeat;
text-indent:-9999px;
}
#main h2.goods {
width:780px;
height:34px;
margin:0 auto 20px;
background:url("../images/front/h2_goods.png") 0 0 no-repeat;
text-indent:-9999px;
}
#main h2.gallery {
width:780px;
height:34px;
margin:0 auto 20px;
background:url("../images/front/h2_gallery.png") 0 0 no-repeat;
text-indent:-9999px;
}
#main h2.blog {
width:780px;
height:34px;
margin:0 auto 20px;
background:url("../images/front/h2_blog.png") 0 0 no-repeat;
text-indent:-9999px;
}
#main h2.twitter {
width:780px;
height:34px;
margin:0 auto 20px;
background:url("../images/front/h2_twitter.png") 0 0 no-repeat;
text-indent:-9999px;
}
#main h2.shop {
width:780px;
height:34px;
margin:0 auto 20px;
background:url("../images/front/h2_shop.png") 0 0 no-repeat;
text-indent:-9999px;
}
#main h2.media {
width:780px;
height:34px;
margin:0 auto 20px;
background:url("../images/front/h2_media.png") 0 0 no-repeat;
text-indent:-9999px;
}
#main h2.itunes {
width:780px;
height:34px;
margin:0 auto 20px;
background:url("../images/front/h2_itunes.png") 0 0 no-repeat;
text-indent:-9999px;
}
#main h2.youtube {
width:780px;
height:34px;
margin:0 auto 20px;
background:url("../images/front/h2_youtube.png") 0 0 no-repeat;
text-indent:-9999px;
}
#main h2.discography {
width:780px;
height:34px;
margin:0 auto 20px;
background:url("../images/front/h2_discography.png") 0 0 no-repeat;
text-indent:-9999px;
}
/*------------------------------Footer */
#footer p {
color:#ffffff;
padding-top:10px;
font-size:73%;
} | 018erri-rose | css/layout.css | CSS | oos | 2,732 |
@charset "utf-8";
#album_list {
width:760px;
margin:0 auto 25px;
overflow:hidden;
}
#album_list .simg_box {
font-size:93%;
width:120px;
float:left;
display:inline;
margin:12px;
text-align:center;
}
#album_list .photobox p {
margin-bottom:10px;
}
#album_list .photobox p.item {
font-size:93%;
text-align:left;
margin-bottom:5px;
}
#album_list .photobox p.like {
text-align:left;
} | 018erri-rose | css/itunes.css | CSS | oos | 398 |
@charset "utf-8";
.top_img {
width:340px;
height:340px;
float:left;
display:inline;
margin:50px 20px 0 30px;
text-align:center;
}
.top_msg {
width:390px;
float:left;
display:inline;
font-size:1.2em;
position:relative;
top:120px;
color:#993e7d;
text-align:center;
}
.top_msg em {
font-size:1.6em;
font-style: normal;
font-weight:bold;
}
.top_msg p {
margin-top:10px;
line-height:1.5em;
text-align:left;
}
| 018erri-rose | css/top.css | CSS | oos | 428 |
@charset "utf-8";
#search_box {
width:760px;
margin:20px auto 30px;
}
#search_box select{
font-size:85%;
width:200px;
background-color:#ffffff;
border:#ffccff 2px solid;
margin-left:10px;
}
#search_box .month {
width:350px;
margin:0;
}
#search_box .month p {
width:120px;
float:left;
display:inline;
margin-top:5px;
}
/********************This property is Category true*****/
/*#search_box select{
margin-top:10px;
font-size:85%;
width:200px;
background-color:#ffffff;
border:#ffccff 2px solid;
}*/
/*#search_box .category {
width:220px;
float:left;
display:inline;
margin-right:40px;
}*/
/*#search_box .month {
width:230px;
float:left;
}*/
#info_box {
width:750px;
margin:10px auto 20px;
}
.info_top {
width:750px;
height:66px;
margin:0;
background:url(../images/front/line_top.jpg) no-repeat center top;
}
.info_top p.date {
color:#993e7d;
font-weight:bold;
font-size:93%;
margin-left:25px;
padding-top:35px;
}
.info_body {
width:750px;
padding:10px 0;
}
.info_body h3 {
font-size:123.1%;
margin:0 0 20px 25px;
}
.info_body p {
font-size:93%;
margin:10px 20px 0 25px;
line-height:1.5em;
}
.info_bottom {
width:730px;
height:66px;
margin:10px auto 0;
padding-right:20px;
background:url(../images/front/line_bottom.jpg) no-repeat center bottom;
text-align:right;
}
| 018erri-rose | css/event.css | CSS | oos | 1,328 |
@charset "utf-8";
#pv_box {
width:640px;
margin:0 auto;
}
#pv_box .play_area {
cursor:pointer;
clear:both;
height:360px;
overflow:hidden;
}
#pv_box .screen {
width:640px;
position:absolute;
z-index:9;
}
#pv_box .caption {
position:absolute;
z-index:10;
font-size:123.1%;
margin-top:15px;
margin-left:15px;
color:#ffffff;
font-weight:bold;
}
#pv_box .disc_txt {
width:640px;
}
#pv_box .disc_txt p {
margin-top:10px;
}
#pv_list {
width:720px;
margin:20px auto 0;
overflow:hidden;
}
#pv_list .thum_box {
width:110px;
float:left;
display:inline;
margin:10px 0 10px 10px;
}
#pv_list .thum_box .movie_title {
padding-top:5px;
font-weight:bold;
font-size:83%;
}
#pv_list .thum_box .artist_name {
padding-top:5px;
font-size:83%;
} | 018erri-rose | css/youtube.css | CSS | oos | 762 |
@charset "utf-8";
.prof_img {
width:340px;
height:340px;
float:left;
display:inline;
margin:0 20px 0 30px;
text-align:center;
}
.prof_msg {
width:390px;
float:left;
display:inline;
}
.prof_msg h3 {
font-size:123.1%;
font-weight:bold;
color:#993e7d;
margin:0;
}
.prof_msg p.bd {
margin-top:5px;
color:#993e7d;
font-size:85%;
}
.prof_msg p.p_data {
margin-top:10px;
font-size:93%;
line-height:1.5em;
}
| 018erri-rose | css/profile.css | CSS | oos | 424 |
@charset "utf-8";
/**************************** Layout Setting -header*/
#header {
width:810px;
height:115px;
margin:0;
background:url(../images/front/bg_header.jpg) no-repeat 0 0;
}
#header h1 {
width:360px;
height:80px;
margin:0px auto;
position:relative;
top:15px;
}
| 018erri-rose | css/header.css | CSS | oos | 291 |
@charset "utf-8";
#gallery_box {
width:760px;
margin:0 auto 25px;
}
#gallery_box .photobox {
font-size:93%;
width:120px;
float:left;
display:inline-block;
margin:16px;
text-align:center;
}
#gallery_box .photobox p {
margin-bottom:10px;
}
#gallery_box .photobox p.item {
font-size:93%;
text-align:left;
margin-bottom:5px;
}
#gallery_box .photobox p.like {
text-align:left;
} | 018erri-rose | css/goods.css | CSS | oos | 391 |
@charset "utf-8";
.shop_list {
width:720px;
margin:0 auto 10px;
padding:10px;
border-bottom:#bc3876 solid 1px;
}
.shop_list .shop_name {
font-weight:bold;
margin-bottom:5px;
font-size:14px;
}
.shop_list .map_btn {
background-color:#ffccff;
color:#bc3876;
margin-left:10px;
padding:2px;
font-size:12px;
border:#ff99ff solid 1px;
}
.shop_list .map_btn a {
color:#bc3876!important;
}
.shop_list .map_btn a:hover {
color:#ffffff!important;
text-decoration:none;
}
.shop_list .map_btn:hover {
background-color:#bc3876;
color:#ffffff;
margin-left:10px;
padding:2px;
border:#ffffff solid 1px;
}
.shop_list .blog_btn {
background-color:#ffccff;
color:#bc3876;
margin-left:5px;
padding:2px;
font-size:12px;
border:#ff99ff solid 1px;
}
.shop_list .blog_btn a {
color:#bc3876!important;
}
.shop_list .blog_btn a:hover {
color:#ffffff!important;
text-decoration:none;
}
.shop_list .blog_btn:hover {
background-color:#bc3876;
color:#ffffff;
margin-left:5px;
padding:2px;
border:#ffffff solid 1px;
}
.shop_list .shop_address {
margin-top:10px;
line-height:1.3em;
}
| 018erri-rose | css/shop.css | CSS | oos | 1,099 |
@charset "utf-8";
#search_box {
width:760px;
margin:20px auto 30px;
}
#search_box select{
font-size:85%;
width:200px;
background-color:#ffffff;
border:#ffccff 2px solid;
margin-left:3px;
}
#search_box .category {
width:350px;
margin:0;
}
#search_box .category p {
width:115px;
float:left;
display:inline;
margin-top:5px;
}
span.ddm { display : block; padding:0 10px; height:20px; }
#disco_list {
width:740px;
margin:0 auto 15px;
overflow:hidden;
}
#disco_box {
width:235px;
float:left;
display:inline;
margin:0 5px 20px 0;
}
.img_box {
width:120px;
height:115px;
float:left;
display:inline;
}
.disco_detail {
width:115px;
float:left;
}
.disco_detail p.disc_ttl {
margin-bottom:3px;
font-weight:bold;
}
.disco_detail p.disc_genre {
display: block;
width: 95px;
height: 14px;
text-align: center;
vertical-align: middle;
padding-bottom: 1px;
background: #ffccff;
font-weight:bold;
font-size:77%;
border-radius: 3px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
}
.disco_detail p {
line-height:1.5em;
}
.btn_Box {
margin-top:15px;
}
.buyBtnL {
background: url(../images/front/buyBtnBg.jpg) no-repeat;
width: 109px;
height: 18px;
text-align: right;
position: relative;
margin-bottom: 15px;
font-size: 11px;
}
.buyBtnL ul {
position: absolute;
top: 0px;
right: 0px;
_right: -1px;
}
.buyBtn ul li.arrow {
text-align: right;
}
.buyBtnL ul ul {
width: 109px;
margin-top: 17px;
padding: 5px 0 5px 0px;
background: #e6e6e6;
z-index: 100;
}
.buyBtnL ul ul li {
display: block;
width: 109px;
background: #e6e6e6;
text-indent: 1em;
line-height: 1.8em;
}
.buyBtnL ul ul li a:link ,
.buyBtnL ul ul li a:visited { display: block;}
.buyBtnL ul ul li a:hover,
.buyBtnL ul ul li a:active { background: #c8c8c8; display: block;}
| 018erri-rose | css/discography.css | CSS | oos | 1,800 |
@charset "utf-8";
#blog_box {
width:750px;
margin:10px auto 20px;
}
.blog_top {
width:730px;
height:50px;
margin:0 0 0 25px;
padding-right:20px;
background:url(../images/front/line_top.jpg) no-repeat center top;
/*text-align:right;*/
}
.blog_top p.date {
font-size:85%;
padding-top:30px;
}
.blog_body {
width:750px;
padding:10px 0;
}
.blog_body h3 {
font-size:123.1%;
margin:0 0 20px 25px;
}
.blog_body p {
font-size:93%;
margin:10px 20px 0 25px;
line-height:1.5em;
}
.blog_bottom {
width:730px;
height:66px;
margin:10px auto 0;
padding-right:20px;
background:url(../images/front/line_bottom.jpg) no-repeat center bottom;
text-align:right;
}
| 018erri-rose | css/blog.css | CSS | oos | 673 |
@charset "utf-8";
#search_box {
width:760px;
margin:20px auto 30px;
}
#search_box select{
font-size:85%;
width:200px;
background-color:#ffffff;
border:#ffccff 2px solid;
margin-left:10px;
}
#search_box .month {
width:350px;
margin:0;
}
#search_box .month p {
width:120px;
float:left;
display:inline;
margin-top:5px;
}
/********************This property is Category true*****/
/*#search_box select{
margin-top:10px;
font-size:85%;
width:200px;
background-color:#ffffff;
border:#ffccff 2px solid;
}*/
/*#search_box .category {
width:220px;
float:left;
display:inline;
margin-right:40px;
}*/
/*#search_box .month {
width:230px;
float:left;
}*/
#info_box {
width:750px;
margin:10px auto 20px;
}
.info_top {
width:750px;
height:66px;
margin:0;
background:url(../images/front/line_top.jpg) no-repeat center top;
}
.info_top p.date {
color:#993e7d;
font-weight:bold;
font-size:93%;
margin-left:25px;
padding-top:35px;
}
.info_body {
width:750px;
padding:10px 0;
}
.info_body h3 {
font-size:123.1%;
margin:0 0 20px 25px;
}
.info_body p {
font-size:93%;
margin:10px 20px 0 25px;
line-height:1.5em;
}
.info_bottom {
width:730px;
height:66px;
margin:10px auto 0;
padding-right:20px;
background:url(../images/front/line_bottom.jpg) no-repeat center bottom;
text-align:right;
}
| 018erri-rose | css/information.css | CSS | oos | 1,328 |
@charset "utf-8";
#gallery_box {
width:760px;
margin:0 auto 25px;
}
#gallery_box .photobox {
font-size:93%;
width:120px;
float:left;
display:inline-block;
margin:16px;
text-align:center;
}
#gallery_box .photobox p {
margin-bottom:10px;
}
#gallery_box .photobox p.item {
font-size:93%;
text-align:left;
margin-bottom:5px;
}
#gallery_box .photobox p.like {
text-align:left;
} | 018erri-rose | css/photogallery.css | CSS | oos | 391 |
@charset "utf-8";
#search_box {
width:480px;
margin:20px auto 30px;
}
#search_box select{
margin-top:10px;
font-size:85%;
width:200px;
background-color:#ffffff;
border:#ffccff 2px solid;
}
#search_box .category {
width:220px;
float:left;
display:inline;
margin-right:40px;
}
#search_box .month {
width:230px;
float:left;
}
#info_box {
width:760px;
margin:10px auto 20px;
}
.info_top {
width:760px;
height:70px;
margin:0;
background:url(../images/front/line_top.jpg) no-repeat center top;
}
.info_top p.date {
color:#993e7d;
font-weight:bold;
margin:3px 0 0 25px;
font-size:93%;
}
.info_top p.genre {
margin-left:25px;
padding-top:30px;
}
.info_body {
width:760px;
}
.info_body h3 {
font-size:123.1%;
margin:0 0 20px 25px;
}
.info_body p {
font-size:93%;
margin:10px 20px 0 25px;
line-height:1.5em;
}
.info_bottom {
width:760px;
height:53px;
margin:10px auto 0;
padding-right:20px;
background:url(../images/front/line_bottom.jpg) no-repeat center bottom;
text-align:right;
}
| 018erri-rose | css/media.css | CSS | oos | 1,024 |
@charset "utf-8";
/**************************** Block Setting -gnav*/
#gnav {
width:810px
height:35px;
background:url(../images/front/bg_gnavi.png) repeat-x 0 0;
text-align:center;
}
/*------------------------------Gloval Navi */
.navi {
width:469px;
height:35px;
margin: 0 auto;
padding: 0;
}
.navi li, .navi a {
height: 35px;
display: block;
}
.navi li {
float:left;
list-style: none;
display: inline;
margin:0;
text-indent: -9999em;
}
.menu_profile,.menu_information,.menu_event,.menu_goods,.menu_gallery,.menu_blog,.menu_twitter,.menu_media,.menu_discography,.menu_itunes,.menu_youtube,.menu_shop { width: 67px; }
.menu_profile a:link,.menu_profile a:visited { background:url("../images/front/gnavi_profile.png") 0px 0 no-repeat; }
.menu_information a:link,.menu_information a:visited { background:url("../images/front/gnavi_information.png") 0 0 no-repeat; }
.menu_event a:link,.menu_event a:visited { background:url("../images/front/gnavi_event.png") 0 0 no-repeat; }
.menu_goods a:link,.menu_goods a:visited { background:url("../images/front/gnavi_goods.png") 0 0 no-repeat; }
.menu_gallery a:link,.menu_gallery a:visited { background:url("../images/front/gnavi_gallery.png") 0 0 no-repeat; }
.menu_blog a:link,.menu_blog a:visited { background:url("../images/front/gnavi_blog.png") 0 0 no-repeat; }
.menu_twitter a:link,.menu_twitter a:visited { background:url("../images/front/gnavi_twitter.png") 0 0 no-repeat; }
.menu_media a:link,.menu_media a:visited { background:url("../images/front/gnavi_media.png") 0 0 no-repeat; }
.menu_discography a:link,.menu_discography a:visited { background:url("../images/front/gnavi_discography.png") 0 0 no-repeat; }
.menu_itunes a:link,.menu_itunes a:visited { background:url("../images/front/gnavi_itunes.png") 0 0 no-repeat; }
.menu_youtube a:link,.menu_youtube a:visited { background:url("../images/front/gnavi_youtube.png") 0 0 no-repeat; }
.menu_shop a:link,.menu_shop a:visited { background:url("../images/front/gnavi_shop.png") 0 0 no-repeat; }
.menu_profile a:hover,.menu_profile a.current { background:url("../images/front/gnavi_profile.png") 0px -35px no-repeat; }
.menu_information a:hover,.menu_information a.current { background:url("../images/front/gnavi_information.png") 0 -35px no-repeat; }
.menu_event a:hover,.menu_event a.current { background:url("../images/front/gnavi_event.png") 0 -35px no-repeat; }
.menu_goods a:hover,.menu_goods a.current { background:url("../images/front/gnavi_goods.png") 0 -35px no-repeat; }
.menu_gallery a:hover,.menu_gallery a.current { background:url("../images/front/gnavi_gallery.png") 0 -35px no-repeat; }
.menu_blog a:hover,.menu_blog a.current { background:url("../images/front/gnavi_blog.png") 0 -35px no-repeat; }
.menu_twitter a:hover,.menu_twitter a.current { background:url("../images/front/gnavi_twitter.png") 0 -35px no-repeat; }
.menu_media a:hover,.menu_media a.current { background:url("../images/front/gnavi_media.png") 0 -35px no-repeat; }
.menu_discography a:hover,.menu_discography a.current { background:url("../images/front/gnavi_discography.png") 0 -35px no-repeat; }
.menu_itunes a:hover,.menu_itunes a.current { background:url("../images/front/gnavi_itunes.png") 0 -35px no-repeat; }
.menu_youtube a:hover,.menu_youtube a.current { background:url("../images/front/gnavi_youtube.png") 0 -35px no-repeat; }
.menu_shop a:hover,.menu_shop a.current { background:url("../images/front/gnavi_shop.png") 0 -35px no-repeat; }
| 018erri-rose | common/gnavi07.css | CSS | oos | 3,459 |
@charset "utf-8";
/**************************** Block Setting -gnav*/
#gnav {
width:810px
height:35px;
background:url(../images/front/bg_gnavi.png) repeat-x 0 0;
text-align:center;
}
/*------------------------------Gloval Navi */
.navi {
width:134px;
height:35px;
margin: 0 auto;
padding: 0;
}
.navi li, .navi a {
height: 35px;
display: block;
}
.navi li {
float:left;
list-style: none;
display: inline;
margin:0;
text-indent: -9999em;
}
.menu_profile,.menu_information,.menu_event,.menu_goods,.menu_gallery,.menu_blog,.menu_twitter,.menu_media,.menu_discography,.menu_itunes,.menu_youtube,.menu_shop { width: 67px; }
.menu_profile a:link,.menu_profile a:visited { background:url("../images/front/gnavi_profile.png") 0px 0 no-repeat; }
.menu_information a:link,.menu_information a:visited { background:url("../images/front/gnavi_information.png") 0 0 no-repeat; }
.menu_event a:link,.menu_event a:visited { background:url("../images/front/gnavi_event.png") 0 0 no-repeat; }
.menu_goods a:link,.menu_goods a:visited { background:url("../images/front/gnavi_goods.png") 0 0 no-repeat; }
.menu_gallery a:link,.menu_gallery a:visited { background:url("../images/front/gnavi_gallery.png") 0 0 no-repeat; }
.menu_blog a:link,.menu_blog a:visited { background:url("../images/front/gnavi_blog.png") 0 0 no-repeat; }
.menu_twitter a:link,.menu_twitter a:visited { background:url("../images/front/gnavi_twitter.png") 0 0 no-repeat; }
.menu_media a:link,.menu_media a:visited { background:url("../images/front/gnavi_media.png") 0 0 no-repeat; }
.menu_discography a:link,.menu_discography a:visited { background:url("../images/front/gnavi_discography.png") 0 0 no-repeat; }
.menu_itunes a:link,.menu_itunes a:visited { background:url("../images/front/gnavi_itunes.png") 0 0 no-repeat; }
.menu_youtube a:link,.menu_youtube a:visited { background:url("../images/front/gnavi_youtube.png") 0 0 no-repeat; }
.menu_shop a:link,.menu_shop a:visited { background:url("../images/front/gnavi_shop.png") 0 0 no-repeat; }
.menu_profile a:hover,.menu_profile a.current { background:url("../images/front/gnavi_profile.png") 0px -35px no-repeat; }
.menu_information a:hover,.menu_information a.current { background:url("../images/front/gnavi_information.png") 0 -35px no-repeat; }
.menu_event a:hover,.menu_event a.current { background:url("../images/front/gnavi_event.png") 0 -35px no-repeat; }
.menu_goods a:hover,.menu_goods a.current { background:url("../images/front/gnavi_goods.png") 0 -35px no-repeat; }
.menu_gallery a:hover,.menu_gallery a.current { background:url("../images/front/gnavi_gallery.png") 0 -35px no-repeat; }
.menu_blog a:hover,.menu_blog a.current { background:url("../images/front/gnavi_blog.png") 0 -35px no-repeat; }
.menu_twitter a:hover,.menu_twitter a.current { background:url("../images/front/gnavi_twitter.png") 0 -35px no-repeat; }
.menu_media a:hover,.menu_media a.current { background:url("../images/front/gnavi_media.png") 0 -35px no-repeat; }
.menu_discography a:hover,.menu_discography a.current { background:url("../images/front/gnavi_discography.png") 0 -35px no-repeat; }
.menu_itunes a:hover,.menu_itunes a.current { background:url("../images/front/gnavi_itunes.png") 0 -35px no-repeat; }
.menu_youtube a:hover,.menu_youtube a.current { background:url("../images/front/gnavi_youtube.png") 0 -35px no-repeat; }
.menu_shop a:hover,.menu_shop a.current { background:url("../images/front/gnavi_shop.png") 0 -35px no-repeat; }
| 018erri-rose | common/gnavi02.css | CSS | oos | 3,459 |
@charset "utf-8";
/*------------------------------Font-SIZE Setting */
.txt_bold { font-weight:bold; }
.txt_red { color:#ff0000; }
.txt_10 { font-size:77%; }
.txt_11 { font-size:85%; }
.txt_12 { font-size:93%; }
.txt_13 { font-size:100%; }
.txt_14 { font-size:108%; }
.txt_15 { font-size:116%; }
.txt_16 { font-size:123.1%; }
.txt_17 { font-size:131%; }
.txt_18 { font-size:138.5%; }
.txt_19 { font-size:146.5%; }
.txt_20 { font-size:153.9%; }
.txt_21 { font-size:161.6%; }
.txt_22 { font-size:167%; }
.txt_23 { font-size:174%; }
.txt_24 { font-size:182%; }
.txt_25 { font-size:189%; }
.txt_26 { font-size:197%; }
/*------------------------------Page Nation */
.pager {
width:500px;
margin:0 auto 20px;
text-align:center;
}
.pager ul {
width:500px;
height:20px;
float:right;
}
.pager ul li {
margin:0 5px;
display:inline-block;
font-size:85%;
}
.pager .current {
font-weight:bold;
text-decoration:underline;
}
/*------------------------------Page Top */
.pagetop {
width:800px;
text-align:right;
padding-right:10px;
}
.pagetop p {
font-size:93%;
} | 018erri-rose | common/common.css | CSS | oos | 1,070 |
@charset "utf-8";
/**************************** Block Setting -gnav*/
#gnav {
width:810px
height:35px;
background:url(../images/front/bg_gnavi.png) repeat-x 0 0;
text-align:center;
}
/*------------------------------Gloval Navi */
.navi {
width:67px;
height:35px;
margin: 0 auto;
padding: 0;
}
.navi li, .navi a {
height: 35px;
display: block;
}
.navi li {
float:left;
list-style: none;
display: inline;
margin:0;
text-indent: -9999em;
}
.menu_profile,.menu_information,.menu_event,.menu_goods,.menu_gallery,.menu_blog,.menu_twitter,.menu_media,.menu_discography,.menu_itunes,.menu_youtube,.menu_shop { width: 67px; }
.menu_profile a:link,.menu_profile a:visited { background:url("../images/front/gnavi_profile.png") 0px 0 no-repeat; }
.menu_information a:link,.menu_information a:visited { background:url("../images/front/gnavi_information.png") 0 0 no-repeat; }
.menu_event a:link,.menu_event a:visited { background:url("../images/front/gnavi_event.png") 0 0 no-repeat; }
.menu_goods a:link,.menu_goods a:visited { background:url("../images/front/gnavi_goods.png") 0 0 no-repeat; }
.menu_gallery a:link,.menu_gallery a:visited { background:url("../images/front/gnavi_gallery.png") 0 0 no-repeat; }
.menu_blog a:link,.menu_blog a:visited { background:url("../images/front/gnavi_blog.png") 0 0 no-repeat; }
.menu_twitter a:link,.menu_twitter a:visited { background:url("../images/front/gnavi_twitter.png") 0 0 no-repeat; }
.menu_media a:link,.menu_media a:visited { background:url("../images/front/gnavi_media.png") 0 0 no-repeat; }
.menu_discography a:link,.menu_discography a:visited { background:url("../images/front/gnavi_discography.png") 0 0 no-repeat; }
.menu_itunes a:link,.menu_itunes a:visited { background:url("../images/front/gnavi_itunes.png") 0 0 no-repeat; }
.menu_youtube a:link,.menu_youtube a:visited { background:url("../images/front/gnavi_youtube.png") 0 0 no-repeat; }
.menu_shop a:link,.menu_shop a:visited { background:url("../images/front/gnavi_shop.png") 0 0 no-repeat; }
.menu_profile a:hover,.menu_profile a.current { background:url("../images/front/gnavi_profile.png") 0px -35px no-repeat; }
.menu_information a:hover,.menu_information a.current { background:url("../images/front/gnavi_information.png") 0 -35px no-repeat; }
.menu_event a:hover,.menu_event a.current { background:url("../images/front/gnavi_event.png") 0 -35px no-repeat; }
.menu_goods a:hover,.menu_goods a.current { background:url("../images/front/gnavi_goods.png") 0 -35px no-repeat; }
.menu_gallery a:hover,.menu_gallery a.current { background:url("../images/front/gnavi_gallery.png") 0 -35px no-repeat; }
.menu_blog a:hover,.menu_blog a.current { background:url("../images/front/gnavi_blog.png") 0 -35px no-repeat; }
.menu_twitter a:hover,.menu_twitter a.current { background:url("../images/front/gnavi_twitter.png") 0 -35px no-repeat; }
.menu_media a:hover,.menu_media a.current { background:url("../images/front/gnavi_media.png") 0 -35px no-repeat; }
.menu_discography a:hover,.menu_discography a.current { background:url("../images/front/gnavi_discography.png") 0 -35px no-repeat; }
.menu_itunes a:hover,.menu_itunes a.current { background:url("../images/front/gnavi_itunes.png") 0 -35px no-repeat; }
.menu_youtube a:hover,.menu_youtube a.current { background:url("../images/front/gnavi_youtube.png") 0 -35px no-repeat; }
.menu_shop a:hover,.menu_shop a.current { background:url("../images/front/gnavi_shop.png") 0 -35px no-repeat; }
| 018erri-rose | common/gnavi01.css | CSS | oos | 3,458 |
@charset "utf-8";
/*------------------------------Base Setting */
html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,
abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,
sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,
tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,
footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video {
margin:0;
padding:0;
border:0;
outline:0;
font-size:13px;
vertical-align:baseline;
background:transparent;
*font-size:small;
*font:x-small;
}
body {
line-height:1;
font-family:Meiryo,'Trebuchet MS', Arial, 'MS Pゴシック';
}
a {
margin:0;
padding:0;
vertical-align:baseline;
}
a img {
border:none;
}
blockquote, q {
quotes:none;
}
blockquote:before, blockquote:after,q:before, q:after {
content:'';
content:none;
}
table {
border-collapse:collapse;
border-spacing:0;
font-size:inherit;
font:100%;
}
hr {
display:block;
height:1px;
border:0;
border-top:1px solid #cccccc;
margin:1em 0;
padding:0;
}
input,select {
vertical-align:middle;
}
ul,ol {
list-style:none;
}
/**************************** For HTML5 */
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
display:block;
}
ins {
background-color:#ff9;
color:#000;
text-decoration:none;
}
mark {
background-color:#ff9;
color:#000;
font-style:italic;
font-weight:bold;
}
del {
text-decoration: line-through;
}
abbr[title], dfn[title] {
border-bottom:1px dotted;
cursor:help;
}
/**************************** For Modern Browser */
.floatClear {
clear: both;
}
.clearfix {
overflow: visible;
}
.clearfix:after {
content:".";
display:block;
height:1px;
clear:both;
visibility:hidden;
}
/**************************** Block Setting -wrapper*/
#wrapper {
width:810px;
margin:0 auto;
}
/**************************** Block Setting -header*/
#header {
width:810px;
height:115px;
margin:0;
}
/**************************** Block Setting -gnav*/
/* to gnavi0x.css */
/**************************** Block Setting -main*/
#main {
width:810px;
margin:20px 0;
}
/**************************** Block Setting -footer*/
#footer {
width:810px;
height:25px;
margin:0;
text-align:center;
}
| 018erri-rose | common/base.css | CSS | oos | 2,265 |
@charset "utf-8";
/**************************** Block Setting -gnav*/
#gnav {
width:810px
height:35px;
background:url(../images/front/bg_gnavi.png) repeat-x 0 0;
text-align:center;
}
/*------------------------------Gloval Navi */
.navi {
width:670px;
height:35px;
margin: 0 auto;
padding: 0;
}
.navi li, .navi a {
height: 35px;
display: block;
}
.navi li {
float:left;
list-style: none;
display: inline;
margin:0;
text-indent: -9999em;
}
.menu_profile,.menu_information,.menu_event,.menu_goods,.menu_gallery,.menu_blog,.menu_twitter,.menu_media,.menu_discography,.menu_itunes,.menu_youtube,.menu_shop { width: 67px; }
.menu_profile a:link,.menu_profile a:visited { background:url("../images/front/gnavi_profile.png") 0px 0 no-repeat; }
.menu_information a:link,.menu_information a:visited { background:url("../images/front/gnavi_information.png") 0 0 no-repeat; }
.menu_event a:link,.menu_event a:visited { background:url("../images/front/gnavi_event.png") 0 0 no-repeat; }
.menu_goods a:link,.menu_goods a:visited { background:url("../images/front/gnavi_goods.png") 0 0 no-repeat; }
.menu_gallery a:link,.menu_gallery a:visited { background:url("../images/front/gnavi_gallery.png") 0 0 no-repeat; }
.menu_blog a:link,.menu_blog a:visited { background:url("../images/front/gnavi_blog.png") 0 0 no-repeat; }
.menu_twitter a:link,.menu_twitter a:visited { background:url("../images/front/gnavi_twitter.png") 0 0 no-repeat; }
.menu_media a:link,.menu_media a:visited { background:url("../images/front/gnavi_media.png") 0 0 no-repeat; }
.menu_discography a:link,.menu_discography a:visited { background:url("../images/front/gnavi_discography.png") 0 0 no-repeat; }
.menu_itunes a:link,.menu_itunes a:visited { background:url("../images/front/gnavi_itunes.png") 0 0 no-repeat; }
.menu_youtube a:link,.menu_youtube a:visited { background:url("../images/front/gnavi_youtube.png") 0 0 no-repeat; }
.menu_shop a:link,.menu_shop a:visited { background:url("../images/front/gnavi_shop.png") 0 0 no-repeat; }
.menu_profile a:hover,.menu_profile a.current { background:url("../images/front/gnavi_profile.png") 0px -35px no-repeat; }
.menu_information a:hover,.menu_information a.current { background:url("../images/front/gnavi_information.png") 0 -35px no-repeat; }
.menu_event a:hover,.menu_event a.current { background:url("../images/front/gnavi_event.png") 0 -35px no-repeat; }
.menu_goods a:hover,.menu_goods a.current { background:url("../images/front/gnavi_goods.png") 0 -35px no-repeat; }
.menu_gallery a:hover,.menu_gallery a.current { background:url("../images/front/gnavi_gallery.png") 0 -35px no-repeat; }
.menu_blog a:hover,.menu_blog a.current { background:url("../images/front/gnavi_blog.png") 0 -35px no-repeat; }
.menu_twitter a:hover,.menu_twitter a.current { background:url("../images/front/gnavi_twitter.png") 0 -35px no-repeat; }
.menu_media a:hover,.menu_media a.current { background:url("../images/front/gnavi_media.png") 0 -35px no-repeat; }
.menu_discography a:hover,.menu_discography a.current { background:url("../images/front/gnavi_discography.png") 0 -35px no-repeat; }
.menu_itunes a:hover,.menu_itunes a.current { background:url("../images/front/gnavi_itunes.png") 0 -35px no-repeat; }
.menu_youtube a:hover,.menu_youtube a.current { background:url("../images/front/gnavi_youtube.png") 0 -35px no-repeat; }
.menu_shop a:hover,.menu_shop a.current { background:url("../images/front/gnavi_shop.png") 0 -35px no-repeat; }
| 018erri-rose | common/gnavi10.css | CSS | oos | 3,459 |
@charset "utf-8";
/**************************** Block Setting -gnav*/
#gnav {
width:810px
height:35px;
background:url(../images/front/bg_gnavi.png) repeat-x 0 0;
text-align:center;
}
/*------------------------------Gloval Navi */
.navi {
width:536px;
height:35px;
margin: 0 auto;
padding: 0;
}
.navi li, .navi a {
height: 35px;
display: block;
}
.navi li {
float:left;
list-style: none;
display: inline;
margin:0;
text-indent: -9999em;
}
.menu_profile,.menu_information,.menu_event,.menu_goods,.menu_gallery,.menu_blog,.menu_twitter,.menu_media,.menu_discography,.menu_itunes,.menu_youtube,.menu_shop { width: 67px; }
.menu_profile a:link,.menu_profile a:visited { background:url("../images/front/gnavi_profile.png") 0px 0 no-repeat; }
.menu_information a:link,.menu_information a:visited { background:url("../images/front/gnavi_information.png") 0 0 no-repeat; }
.menu_event a:link,.menu_event a:visited { background:url("../images/front/gnavi_event.png") 0 0 no-repeat; }
.menu_goods a:link,.menu_goods a:visited { background:url("../images/front/gnavi_goods.png") 0 0 no-repeat; }
.menu_gallery a:link,.menu_gallery a:visited { background:url("../images/front/gnavi_gallery.png") 0 0 no-repeat; }
.menu_blog a:link,.menu_blog a:visited { background:url("../images/front/gnavi_blog.png") 0 0 no-repeat; }
.menu_twitter a:link,.menu_twitter a:visited { background:url("../images/front/gnavi_twitter.png") 0 0 no-repeat; }
.menu_media a:link,.menu_media a:visited { background:url("../images/front/gnavi_media.png") 0 0 no-repeat; }
.menu_discography a:link,.menu_discography a:visited { background:url("../images/front/gnavi_discography.png") 0 0 no-repeat; }
.menu_itunes a:link,.menu_itunes a:visited { background:url("../images/front/gnavi_itunes.png") 0 0 no-repeat; }
.menu_youtube a:link,.menu_youtube a:visited { background:url("../images/front/gnavi_youtube.png") 0 0 no-repeat; }
.menu_shop a:link,.menu_shop a:visited { background:url("../images/front/gnavi_shop.png") 0 0 no-repeat; }
.menu_profile a:hover,.menu_profile a.current { background:url("../images/front/gnavi_profile.png") 0px -35px no-repeat; }
.menu_information a:hover,.menu_information a.current { background:url("../images/front/gnavi_information.png") 0 -35px no-repeat; }
.menu_event a:hover,.menu_event a.current { background:url("../images/front/gnavi_event.png") 0 -35px no-repeat; }
.menu_goods a:hover,.menu_goods a.current { background:url("../images/front/gnavi_goods.png") 0 -35px no-repeat; }
.menu_gallery a:hover,.menu_gallery a.current { background:url("../images/front/gnavi_gallery.png") 0 -35px no-repeat; }
.menu_blog a:hover,.menu_blog a.current { background:url("../images/front/gnavi_blog.png") 0 -35px no-repeat; }
.menu_twitter a:hover,.menu_twitter a.current { background:url("../images/front/gnavi_twitter.png") 0 -35px no-repeat; }
.menu_media a:hover,.menu_media a.current { background:url("../images/front/gnavi_media.png") 0 -35px no-repeat; }
.menu_discography a:hover,.menu_discography a.current { background:url("../images/front/gnavi_discography.png") 0 -35px no-repeat; }
.menu_itunes a:hover,.menu_itunes a.current { background:url("../images/front/gnavi_itunes.png") 0 -35px no-repeat; }
.menu_youtube a:hover,.menu_youtube a.current { background:url("../images/front/gnavi_youtube.png") 0 -35px no-repeat; }
.menu_shop a:hover,.menu_shop a.current { background:url("../images/front/gnavi_shop.png") 0 -35px no-repeat; }
| 018erri-rose | common/gnavi08.css | CSS | oos | 3,459 |
@charset "utf-8";
/**************************** Block Setting -gnav*/
#gnav {
width:810px
height:35px;
background:url(../images/front/bg_gnavi.png) repeat-x 0 0;
text-align:center;
}
/*------------------------------Gloval Navi */
.navi {
width:335px;
height:35px;
margin: 0 auto;
padding: 0;
}
.navi li, .navi a {
height: 35px;
display: block;
}
.navi li {
float:left;
list-style: none;
display: inline;
margin:0;
text-indent: -9999em;
}
.menu_profile,.menu_information,.menu_event,.menu_goods,.menu_gallery,.menu_blog,.menu_twitter,.menu_media,.menu_discography,.menu_itunes,.menu_youtube,.menu_shop { width: 67px; }
.menu_profile a:link,.menu_profile a:visited { background:url("../images/front/gnavi_profile.png") 0px 0 no-repeat; }
.menu_information a:link,.menu_information a:visited { background:url("../images/front/gnavi_information.png") 0 0 no-repeat; }
.menu_event a:link,.menu_event a:visited { background:url("../images/front/gnavi_event.png") 0 0 no-repeat; }
.menu_goods a:link,.menu_goods a:visited { background:url("../images/front/gnavi_goods.png") 0 0 no-repeat; }
.menu_gallery a:link,.menu_gallery a:visited { background:url("../images/front/gnavi_gallery.png") 0 0 no-repeat; }
.menu_blog a:link,.menu_blog a:visited { background:url("../images/front/gnavi_blog.png") 0 0 no-repeat; }
.menu_twitter a:link,.menu_twitter a:visited { background:url("../images/front/gnavi_twitter.png") 0 0 no-repeat; }
.menu_media a:link,.menu_media a:visited { background:url("../images/front/gnavi_media.png") 0 0 no-repeat; }
.menu_discography a:link,.menu_discography a:visited { background:url("../images/front/gnavi_discography.png") 0 0 no-repeat; }
.menu_itunes a:link,.menu_itunes a:visited { background:url("../images/front/gnavi_itunes.png") 0 0 no-repeat; }
.menu_youtube a:link,.menu_youtube a:visited { background:url("../images/front/gnavi_youtube.png") 0 0 no-repeat; }
.menu_shop a:link,.menu_shop a:visited { background:url("../images/front/gnavi_shop.png") 0 0 no-repeat; }
.menu_profile a:hover,.menu_profile a.current { background:url("../images/front/gnavi_profile.png") 0px -35px no-repeat; }
.menu_information a:hover,.menu_information a.current { background:url("../images/front/gnavi_information.png") 0 -35px no-repeat; }
.menu_event a:hover,.menu_event a.current { background:url("../images/front/gnavi_event.png") 0 -35px no-repeat; }
.menu_goods a:hover,.menu_goods a.current { background:url("../images/front/gnavi_goods.png") 0 -35px no-repeat; }
.menu_gallery a:hover,.menu_gallery a.current { background:url("../images/front/gnavi_gallery.png") 0 -35px no-repeat; }
.menu_blog a:hover,.menu_blog a.current { background:url("../images/front/gnavi_blog.png") 0 -35px no-repeat; }
.menu_twitter a:hover,.menu_twitter a.current { background:url("../images/front/gnavi_twitter.png") 0 -35px no-repeat; }
.menu_media a:hover,.menu_media a.current { background:url("../images/front/gnavi_media.png") 0 -35px no-repeat; }
.menu_discography a:hover,.menu_discography a.current { background:url("../images/front/gnavi_discography.png") 0 -35px no-repeat; }
.menu_itunes a:hover,.menu_itunes a.current { background:url("../images/front/gnavi_itunes.png") 0 -35px no-repeat; }
.menu_youtube a:hover,.menu_youtube a.current { background:url("../images/front/gnavi_youtube.png") 0 -35px no-repeat; }
.menu_shop a:hover,.menu_shop a.current { background:url("../images/front/gnavi_shop.png") 0 -35px no-repeat; }
| 018erri-rose | common/gnavi05.css | CSS | oos | 3,459 |
@charset "utf-8";
/**************************** Block Setting -gnav*/
#gnav {
width:810px
height:35px;
background:url(../images/front/bg_gnavi.png) repeat-x 0 0;
text-align:center;
}
/*------------------------------Gloval Navi */
.navi {
width:804px;
height:35px;
margin: 0 auto;
padding: 0;
}
.navi li, .navi a {
height: 35px;
display: block;
}
.navi li {
float:left;
list-style: none;
display: inline;
margin:0;
text-indent: -9999em;
}
.menu_profile,.menu_information,.menu_event,.menu_goods,.menu_gallery,.menu_blog,.menu_twitter,.menu_media,.menu_discography,.menu_itunes,.menu_youtube,.menu_shop { width: 67px; }
.menu_profile a:link,.menu_profile a:visited { background:url("../images/front/gnavi_profile.png") 0px 0 no-repeat; }
.menu_information a:link,.menu_information a:visited { background:url("../images/front/gnavi_information.png") 0 0 no-repeat; }
.menu_event a:link,.menu_event a:visited { background:url("../images/front/gnavi_event.png") 0 0 no-repeat; }
.menu_goods a:link,.menu_goods a:visited { background:url("../images/front/gnavi_goods.png") 0 0 no-repeat; }
.menu_gallery a:link,.menu_gallery a:visited { background:url("../images/front/gnavi_gallery.png") 0 0 no-repeat; }
.menu_blog a:link,.menu_blog a:visited { background:url("../images/front/gnavi_blog.png") 0 0 no-repeat; }
.menu_twitter a:link,.menu_twitter a:visited { background:url("../images/front/gnavi_twitter.png") 0 0 no-repeat; }
.menu_media a:link,.menu_media a:visited { background:url("../images/front/gnavi_media.png") 0 0 no-repeat; }
.menu_discography a:link,.menu_discography a:visited { background:url("../images/front/gnavi_discography.png") 0 0 no-repeat; }
.menu_itunes a:link,.menu_itunes a:visited { background:url("../images/front/gnavi_itunes.png") 0 0 no-repeat; }
.menu_youtube a:link,.menu_youtube a:visited { background:url("../images/front/gnavi_youtube.png") 0 0 no-repeat; }
.menu_shop a:link,.menu_shop a:visited { background:url("../images/front/gnavi_shop.png") 0 0 no-repeat; }
.menu_profile a:hover,.menu_profile a.current { background:url("../images/front/gnavi_profile.png") 0px -35px no-repeat; }
.menu_information a:hover,.menu_information a.current { background:url("../images/front/gnavi_information.png") 0 -35px no-repeat; }
.menu_event a:hover,.menu_event a.current { background:url("../images/front/gnavi_event.png") 0 -35px no-repeat; }
.menu_goods a:hover,.menu_goods a.current { background:url("../images/front/gnavi_goods.png") 0 -35px no-repeat; }
.menu_gallery a:hover,.menu_gallery a.current { background:url("../images/front/gnavi_gallery.png") 0 -35px no-repeat; }
.menu_blog a:hover,.menu_blog a.current { background:url("../images/front/gnavi_blog.png") 0 -35px no-repeat; }
.menu_twitter a:hover,.menu_twitter a.current { background:url("../images/front/gnavi_twitter.png") 0 -35px no-repeat; }
.menu_media a:hover,.menu_media a.current { background:url("../images/front/gnavi_media.png") 0 -35px no-repeat; }
.menu_discography a:hover,.menu_discography a.current { background:url("../images/front/gnavi_discography.png") 0 -35px no-repeat; }
.menu_itunes a:hover,.menu_itunes a.current { background:url("../images/front/gnavi_itunes.png") 0 -35px no-repeat; }
.menu_youtube a:hover,.menu_youtube a.current { background:url("../images/front/gnavi_youtube.png") 0 -35px no-repeat; }
.menu_shop a:hover,.menu_shop a.current { background:url("../images/front/gnavi_shop.png") 0 -35px no-repeat; }
| 018erri-rose | common/gnavi12.css | CSS | oos | 3,459 |
@charset "utf-8";
/**************************** Block Setting -gnav*/
#gnav {
width:810px
height:35px;
background:url(../images/front/bg_gnavi.png) repeat-x 0 0;
text-align:center;
}
/*------------------------------Gloval Navi */
.navi {
width:268px;
height:35px;
margin: 0 auto;
padding: 0;
}
.navi li, .navi a {
height: 35px;
display: block;
}
.navi li {
float:left;
list-style: none;
display: inline;
margin:0;
text-indent: -9999em;
}
.menu_profile,.menu_information,.menu_event,.menu_goods,.menu_gallery,.menu_blog,.menu_twitter,.menu_media,.menu_discography,.menu_itunes,.menu_youtube,.menu_shop { width: 67px; }
.menu_profile a:link,.menu_profile a:visited { background:url("../images/front/gnavi_profile.png") 0px 0 no-repeat; }
.menu_information a:link,.menu_information a:visited { background:url("../images/front/gnavi_information.png") 0 0 no-repeat; }
.menu_event a:link,.menu_event a:visited { background:url("../images/front/gnavi_event.png") 0 0 no-repeat; }
.menu_goods a:link,.menu_goods a:visited { background:url("../images/front/gnavi_goods.png") 0 0 no-repeat; }
.menu_gallery a:link,.menu_gallery a:visited { background:url("../images/front/gnavi_gallery.png") 0 0 no-repeat; }
.menu_blog a:link,.menu_blog a:visited { background:url("../images/front/gnavi_blog.png") 0 0 no-repeat; }
.menu_twitter a:link,.menu_twitter a:visited { background:url("../images/front/gnavi_twitter.png") 0 0 no-repeat; }
.menu_media a:link,.menu_media a:visited { background:url("../images/front/gnavi_media.png") 0 0 no-repeat; }
.menu_discography a:link,.menu_discography a:visited { background:url("../images/front/gnavi_discography.png") 0 0 no-repeat; }
.menu_itunes a:link,.menu_itunes a:visited { background:url("../images/front/gnavi_itunes.png") 0 0 no-repeat; }
.menu_youtube a:link,.menu_youtube a:visited { background:url("../images/front/gnavi_youtube.png") 0 0 no-repeat; }
.menu_shop a:link,.menu_shop a:visited { background:url("../images/front/gnavi_shop.png") 0 0 no-repeat; }
.menu_profile a:hover,.menu_profile a.current { background:url("../images/front/gnavi_profile.png") 0px -35px no-repeat; }
.menu_information a:hover,.menu_information a.current { background:url("../images/front/gnavi_information.png") 0 -35px no-repeat; }
.menu_event a:hover,.menu_event a.current { background:url("../images/front/gnavi_event.png") 0 -35px no-repeat; }
.menu_goods a:hover,.menu_goods a.current { background:url("../images/front/gnavi_goods.png") 0 -35px no-repeat; }
.menu_gallery a:hover,.menu_gallery a.current { background:url("../images/front/gnavi_gallery.png") 0 -35px no-repeat; }
.menu_blog a:hover,.menu_blog a.current { background:url("../images/front/gnavi_blog.png") 0 -35px no-repeat; }
.menu_twitter a:hover,.menu_twitter a.current { background:url("../images/front/gnavi_twitter.png") 0 -35px no-repeat; }
.menu_media a:hover,.menu_media a.current { background:url("../images/front/gnavi_media.png") 0 -35px no-repeat; }
.menu_discography a:hover,.menu_discography a.current { background:url("../images/front/gnavi_discography.png") 0 -35px no-repeat; }
.menu_itunes a:hover,.menu_itunes a.current { background:url("../images/front/gnavi_itunes.png") 0 -35px no-repeat; }
.menu_youtube a:hover,.menu_youtube a.current { background:url("../images/front/gnavi_youtube.png") 0 -35px no-repeat; }
.menu_shop a:hover,.menu_shop a.current { background:url("../images/front/gnavi_shop.png") 0 -35px no-repeat; }
| 018erri-rose | common/gnavi04.css | CSS | oos | 3,459 |
@charset "utf-8";
/**************************** Block Setting -gnav*/
#gnav {
width:810px
height:35px;
background:url(../images/front/bg_gnavi.png) repeat-x 0 0;
text-align:center;
}
/*------------------------------Gloval Navi */
.navi {
width:737px;
height:35px;
margin: 0 auto;
padding: 0;
}
.navi li, .navi a {
height: 35px;
display: block;
}
.navi li {
float:left;
list-style: none;
display: inline;
margin:0;
text-indent: -9999em;
}
.menu_profile,.menu_information,.menu_event,.menu_goods,.menu_gallery,.menu_blog,.menu_twitter,.menu_media,.menu_discography,.menu_itunes,.menu_youtube,.menu_shop { width: 67px; }
.menu_profile a:link,.menu_profile a:visited { background:url("../images/front/gnavi_profile.png") 0px 0 no-repeat; }
.menu_information a:link,.menu_information a:visited { background:url("../images/front/gnavi_information.png") 0 0 no-repeat; }
.menu_event a:link,.menu_event a:visited { background:url("../images/front/gnavi_event.png") 0 0 no-repeat; }
.menu_goods a:link,.menu_goods a:visited { background:url("../images/front/gnavi_goods.png") 0 0 no-repeat; }
.menu_gallery a:link,.menu_gallery a:visited { background:url("../images/front/gnavi_gallery.png") 0 0 no-repeat; }
.menu_blog a:link,.menu_blog a:visited { background:url("../images/front/gnavi_blog.png") 0 0 no-repeat; }
.menu_twitter a:link,.menu_twitter a:visited { background:url("../images/front/gnavi_twitter.png") 0 0 no-repeat; }
.menu_media a:link,.menu_media a:visited { background:url("../images/front/gnavi_media.png") 0 0 no-repeat; }
.menu_discography a:link,.menu_discography a:visited { background:url("../images/front/gnavi_discography.png") 0 0 no-repeat; }
.menu_itunes a:link,.menu_itunes a:visited { background:url("../images/front/gnavi_itunes.png") 0 0 no-repeat; }
.menu_youtube a:link,.menu_youtube a:visited { background:url("../images/front/gnavi_youtube.png") 0 0 no-repeat; }
.menu_shop a:link,.menu_shop a:visited { background:url("../images/front/gnavi_shop.png") 0 0 no-repeat; }
.menu_profile a:hover,.menu_profile a.current { background:url("../images/front/gnavi_profile.png") 0px -35px no-repeat; }
.menu_information a:hover,.menu_information a.current { background:url("../images/front/gnavi_information.png") 0 -35px no-repeat; }
.menu_event a:hover,.menu_event a.current { background:url("../images/front/gnavi_event.png") 0 -35px no-repeat; }
.menu_goods a:hover,.menu_goods a.current { background:url("../images/front/gnavi_goods.png") 0 -35px no-repeat; }
.menu_gallery a:hover,.menu_gallery a.current { background:url("../images/front/gnavi_gallery.png") 0 -35px no-repeat; }
.menu_blog a:hover,.menu_blog a.current { background:url("../images/front/gnavi_blog.png") 0 -35px no-repeat; }
.menu_twitter a:hover,.menu_twitter a.current { background:url("../images/front/gnavi_twitter.png") 0 -35px no-repeat; }
.menu_media a:hover,.menu_media a.current { background:url("../images/front/gnavi_media.png") 0 -35px no-repeat; }
.menu_discography a:hover,.menu_discography a.current { background:url("../images/front/gnavi_discography.png") 0 -35px no-repeat; }
.menu_itunes a:hover,.menu_itunes a.current { background:url("../images/front/gnavi_itunes.png") 0 -35px no-repeat; }
.menu_youtube a:hover,.menu_youtube a.current { background:url("../images/front/gnavi_youtube.png") 0 -35px no-repeat; }
.menu_shop a:hover,.menu_shop a.current { background:url("../images/front/gnavi_shop.png") 0 -35px no-repeat; }
| 018erri-rose | common/gnavi11.css | CSS | oos | 3,459 |
@charset "utf-8";
/**************************** Block Setting -gnav*/
#gnav {
width:810px
height:35px;
background:url(../images/front/bg_gnavi.png) repeat-x 0 0;
text-align:center;
}
/*------------------------------Gloval Navi */
.navi {
width:603px;
height:35px;
margin: 0 auto;
padding: 0;
}
.navi li, .navi a {
height: 35px;
display: block;
}
.navi li {
float:left;
list-style: none;
display: inline;
margin:0;
text-indent: -9999em;
}
.menu_profile,.menu_information,.menu_event,.menu_goods,.menu_gallery,.menu_blog,.menu_twitter,.menu_media,.menu_discography,.menu_itunes,.menu_youtube,.menu_shop { width: 67px; }
.menu_profile a:link,.menu_profile a:visited { background:url("../images/front/gnavi_profile.png") 0px 0 no-repeat; }
.menu_information a:link,.menu_information a:visited { background:url("../images/front/gnavi_information.png") 0 0 no-repeat; }
.menu_event a:link,.menu_event a:visited { background:url("../images/front/gnavi_event.png") 0 0 no-repeat; }
.menu_goods a:link,.menu_goods a:visited { background:url("../images/front/gnavi_goods.png") 0 0 no-repeat; }
.menu_gallery a:link,.menu_gallery a:visited { background:url("../images/front/gnavi_gallery.png") 0 0 no-repeat; }
.menu_blog a:link,.menu_blog a:visited { background:url("../images/front/gnavi_blog.png") 0 0 no-repeat; }
.menu_twitter a:link,.menu_twitter a:visited { background:url("../images/front/gnavi_twitter.png") 0 0 no-repeat; }
.menu_media a:link,.menu_media a:visited { background:url("../images/front/gnavi_media.png") 0 0 no-repeat; }
.menu_discography a:link,.menu_discography a:visited { background:url("../images/front/gnavi_discography.png") 0 0 no-repeat; }
.menu_itunes a:link,.menu_itunes a:visited { background:url("../images/front/gnavi_itunes.png") 0 0 no-repeat; }
.menu_youtube a:link,.menu_youtube a:visited { background:url("../images/front/gnavi_youtube.png") 0 0 no-repeat; }
.menu_shop a:link,.menu_shop a:visited { background:url("../images/front/gnavi_shop.png") 0 0 no-repeat; }
.menu_profile a:hover,.menu_profile a.current { background:url("../images/front/gnavi_profile.png") 0px -35px no-repeat; }
.menu_information a:hover,.menu_information a.current { background:url("../images/front/gnavi_information.png") 0 -35px no-repeat; }
.menu_event a:hover,.menu_event a.current { background:url("../images/front/gnavi_event.png") 0 -35px no-repeat; }
.menu_goods a:hover,.menu_goods a.current { background:url("../images/front/gnavi_goods.png") 0 -35px no-repeat; }
.menu_gallery a:hover,.menu_gallery a.current { background:url("../images/front/gnavi_gallery.png") 0 -35px no-repeat; }
.menu_blog a:hover,.menu_blog a.current { background:url("../images/front/gnavi_blog.png") 0 -35px no-repeat; }
.menu_twitter a:hover,.menu_twitter a.current { background:url("../images/front/gnavi_twitter.png") 0 -35px no-repeat; }
.menu_media a:hover,.menu_media a.current { background:url("../images/front/gnavi_media.png") 0 -35px no-repeat; }
.menu_discography a:hover,.menu_discography a.current { background:url("../images/front/gnavi_discography.png") 0 -35px no-repeat; }
.menu_itunes a:hover,.menu_itunes a.current { background:url("../images/front/gnavi_itunes.png") 0 -35px no-repeat; }
.menu_youtube a:hover,.menu_youtube a.current { background:url("../images/front/gnavi_youtube.png") 0 -35px no-repeat; }
.menu_shop a:hover,.menu_shop a.current { background:url("../images/front/gnavi_shop.png") 0 -35px no-repeat; }
| 018erri-rose | common/gnavi09.css | CSS | oos | 3,459 |
@charset "utf-8";
/**************************** Block Setting -gnav*/
#gnav {
width:810px
height:35px;
background:url(../images/front/bg_gnavi.png) repeat-x 0 0;
text-align:center;
}
/*------------------------------Gloval Navi */
.navi {
width:804px;
height:35px;
margin: 0 auto;
padding: 0;
}
.navi li, .navi a {
height: 35px;
display: block;
}
.navi li {
/*float:left;*/
list-style: none;
display: inline-block;
margin:0;
text-indent: -9999em;
}
.menu_profile,.menu_information,.menu_event,.menu_goods,.menu_photogallery,.menu_blog,.menu_twitter,.menu_media,.menu_discography,.menu_itunes,.menu_youtube { width: 67px; }
.menu_profile a:link,a:visited { background:url("../images/front/gnavi_profile.png") 0px 0 no-repeat; }
.menu_information a:link,a:visited { background:url("../images/front/gnavi_information.png") 0 0 no-repeat; }
.menu_event a:link,a:visited { background:url("../images/front/gnavi_event.png") 0 0 no-repeat; }
.menu_goods a:link,a:visited { background:url("../images/front/gnavi_goods.png") 0 0 no-repeat; }
.menu_photogallery a:link,a:visited { background:url("../images/front/gnavi_gallery.png") 0 0 no-repeat; }
.menu_blog a:link,a:visited { background:url("../images/front/gnavi_blog.png") 0 0 no-repeat; }
.menu_twitter a:link,a:visited { background:url("../images/front/gnavi_twitter.png") 0 0 no-repeat; }
.menu_media a:link,a:visited { background:url("../images/front/gnavi_media.png") 0 0 no-repeat; }
.menu_discography a:link,a:visited { background:url("../images/front/gnavi_discography.png") 0 0 no-repeat; }
.menu_itunes a:link,a:visited { background:url("../images/front/gnavi_itunes.png") 0 0 no-repeat; }
.menu_youtube a:link,a:visited { background:url("../images/front/gnavi_youtube.png") 0 0 no-repeat; }
.menu_shop a:link,a:visited { background:url("../images/front/gnavi_shop.png") 0 0 no-repeat; }
.menu_profile a:hover,.menu_profile a.current { background:url("../images/front/gnavi_profile.png") 0px -35px no-repeat; }
.menu_information a:hover,.menu_information a.current { background:url("../images/front/gnavi_information.png") 0 -35px no-repeat; }
.menu_event a:hover,.menu_event a.current { background:url("../images/front/gnavi_event.png") 0 -35px no-repeat; }
.menu_goods a:hover,.menu_goods a.current { background:url("../images/front/gnavi_goods.png") 0 -35px no-repeat; }
.menu_photogallery a:hover,.menu_photogallery a.current { background:url("../images/front/gnavi_gallery.png") 0 -35px no-repeat; }
.menu_blog a:hover,.menu_blog a.current { background:url("../images/front/gnavi_blog.png") 0 -35px no-repeat; }
.menu_twitter a:hover,.menu_twitter a.current { background:url("../images/front/gnavi_twitter.png") 0 -35px no-repeat; }
.menu_media a:hover,.menu_media a.current { background:url("../images/front/gnavi_media.png") 0 -35px no-repeat; }
.menu_discography a:hover,.menu_discography a.current { background:url("../images/front/gnavi_discography.png") 0 -35px no-repeat; }
.menu_itunes a:hover,.menu_itunes a.current { background:url("../images/front/gnavi_itunes.png") 0 -35px no-repeat; }
.menu_youtube a:hover,.menu_youtube a.current { background:url("../images/front/gnavi_youtube.png") 0 -35px no-repeat; }
.menu_shop a:hover,.menu_shop a.current { background:url("../images/front/gnavi_shop.png") 0 -35px no-repeat; }
| 018erri-rose | common/gnavi.css | CSS | oos | 3,315 |
@charset "utf-8";
/**************************** Block Setting -gnav*/
#gnav {
width:810px
height:35px;
background:url(../images/front/bg_gnavi.png) repeat-x 0 0;
text-align:center;
}
/*------------------------------Gloval Navi */
.navi {
width:402px;
height:35px;
margin: 0 auto;
padding: 0;
}
.navi li, .navi a {
height: 35px;
display: block;
}
.navi li {
float:left;
list-style: none;
display: inline;
margin:0;
text-indent: -9999em;
}
.menu_profile,.menu_information,.menu_event,.menu_goods,.menu_gallery,.menu_blog,.menu_twitter,.menu_media,.menu_discography,.menu_itunes,.menu_youtube,.menu_shop { width: 67px; }
.menu_profile a:link,.menu_profile a:visited { background:url("../images/front/gnavi_profile.png") 0px 0 no-repeat; }
.menu_information a:link,.menu_information a:visited { background:url("../images/front/gnavi_information.png") 0 0 no-repeat; }
.menu_event a:link,.menu_event a:visited { background:url("../images/front/gnavi_event.png") 0 0 no-repeat; }
.menu_goods a:link,.menu_goods a:visited { background:url("../images/front/gnavi_goods.png") 0 0 no-repeat; }
.menu_gallery a:link,.menu_gallery a:visited { background:url("../images/front/gnavi_gallery.png") 0 0 no-repeat; }
.menu_blog a:link,.menu_blog a:visited { background:url("../images/front/gnavi_blog.png") 0 0 no-repeat; }
.menu_twitter a:link,.menu_twitter a:visited { background:url("../images/front/gnavi_twitter.png") 0 0 no-repeat; }
.menu_media a:link,.menu_media a:visited { background:url("../images/front/gnavi_media.png") 0 0 no-repeat; }
.menu_discography a:link,.menu_discography a:visited { background:url("../images/front/gnavi_discography.png") 0 0 no-repeat; }
.menu_itunes a:link,.menu_itunes a:visited { background:url("../images/front/gnavi_itunes.png") 0 0 no-repeat; }
.menu_youtube a:link,.menu_youtube a:visited { background:url("../images/front/gnavi_youtube.png") 0 0 no-repeat; }
.menu_shop a:link,.menu_shop a:visited { background:url("../images/front/gnavi_shop.png") 0 0 no-repeat; }
.menu_profile a:hover,.menu_profile a.current { background:url("../images/front/gnavi_profile.png") 0px -35px no-repeat; }
.menu_information a:hover,.menu_information a.current { background:url("../images/front/gnavi_information.png") 0 -35px no-repeat; }
.menu_event a:hover,.menu_event a.current { background:url("../images/front/gnavi_event.png") 0 -35px no-repeat; }
.menu_goods a:hover,.menu_goods a.current { background:url("../images/front/gnavi_goods.png") 0 -35px no-repeat; }
.menu_gallery a:hover,.menu_gallery a.current { background:url("../images/front/gnavi_gallery.png") 0 -35px no-repeat; }
.menu_blog a:hover,.menu_blog a.current { background:url("../images/front/gnavi_blog.png") 0 -35px no-repeat; }
.menu_twitter a:hover,.menu_twitter a.current { background:url("../images/front/gnavi_twitter.png") 0 -35px no-repeat; }
.menu_media a:hover,.menu_media a.current { background:url("../images/front/gnavi_media.png") 0 -35px no-repeat; }
.menu_discography a:hover,.menu_discography a.current { background:url("../images/front/gnavi_discography.png") 0 -35px no-repeat; }
.menu_itunes a:hover,.menu_itunes a.current { background:url("../images/front/gnavi_itunes.png") 0 -35px no-repeat; }
.menu_youtube a:hover,.menu_youtube a.current { background:url("../images/front/gnavi_youtube.png") 0 -35px no-repeat; }
.menu_shop a:hover,.menu_shop a.current { background:url("../images/front/gnavi_shop.png") 0 -35px no-repeat; }
| 018erri-rose | common/gnavi06.css | CSS | oos | 3,459 |
@charset "utf-8";
/**************************** Block Setting -gnav*/
#gnav {
width:810px
height:35px;
background:url(../images/front/bg_gnavi.png) repeat-x 0 0;
text-align:center;
}
/*------------------------------Gloval Navi */
.navi {
width:201px;
height:35px;
margin: 0 auto;
padding: 0;
}
.navi li, .navi a {
height: 35px;
display: block;
}
.navi li {
float:left;
list-style: none;
display: inline;
margin:0;
text-indent: -9999em;
}
.menu_profile,.menu_information,.menu_event,.menu_goods,.menu_gallery,.menu_blog,.menu_twitter,.menu_media,.menu_discography,.menu_itunes,.menu_youtube,.menu_shop { width: 67px; }
.menu_profile a:link,.menu_profile a:visited { background:url("../images/front/gnavi_profile.png") 0px 0 no-repeat; }
.menu_information a:link,.menu_information a:visited { background:url("../images/front/gnavi_information.png") 0 0 no-repeat; }
.menu_event a:link,.menu_event a:visited { background:url("../images/front/gnavi_event.png") 0 0 no-repeat; }
.menu_goods a:link,.menu_goods a:visited { background:url("../images/front/gnavi_goods.png") 0 0 no-repeat; }
.menu_gallery a:link,.menu_gallery a:visited { background:url("../images/front/gnavi_gallery.png") 0 0 no-repeat; }
.menu_blog a:link,.menu_blog a:visited { background:url("../images/front/gnavi_blog.png") 0 0 no-repeat; }
.menu_twitter a:link,.menu_twitter a:visited { background:url("../images/front/gnavi_twitter.png") 0 0 no-repeat; }
.menu_media a:link,.menu_media a:visited { background:url("../images/front/gnavi_media.png") 0 0 no-repeat; }
.menu_discography a:link,.menu_discography a:visited { background:url("../images/front/gnavi_discography.png") 0 0 no-repeat; }
.menu_itunes a:link,.menu_itunes a:visited { background:url("../images/front/gnavi_itunes.png") 0 0 no-repeat; }
.menu_youtube a:link,.menu_youtube a:visited { background:url("../images/front/gnavi_youtube.png") 0 0 no-repeat; }
.menu_shop a:link,.menu_shop a:visited { background:url("../images/front/gnavi_shop.png") 0 0 no-repeat; }
.menu_profile a:hover,.menu_profile a.current { background:url("../images/front/gnavi_profile.png") 0px -35px no-repeat; }
.menu_information a:hover,.menu_information a.current { background:url("../images/front/gnavi_information.png") 0 -35px no-repeat; }
.menu_event a:hover,.menu_event a.current { background:url("../images/front/gnavi_event.png") 0 -35px no-repeat; }
.menu_goods a:hover,.menu_goods a.current { background:url("../images/front/gnavi_goods.png") 0 -35px no-repeat; }
.menu_gallery a:hover,.menu_gallery a.current { background:url("../images/front/gnavi_gallery.png") 0 -35px no-repeat; }
.menu_blog a:hover,.menu_blog a.current { background:url("../images/front/gnavi_blog.png") 0 -35px no-repeat; }
.menu_twitter a:hover,.menu_twitter a.current { background:url("../images/front/gnavi_twitter.png") 0 -35px no-repeat; }
.menu_media a:hover,.menu_media a.current { background:url("../images/front/gnavi_media.png") 0 -35px no-repeat; }
.menu_discography a:hover,.menu_discography a.current { background:url("../images/front/gnavi_discography.png") 0 -35px no-repeat; }
.menu_itunes a:hover,.menu_itunes a.current { background:url("../images/front/gnavi_itunes.png") 0 -35px no-repeat; }
.menu_youtube a:hover,.menu_youtube a.current { background:url("../images/front/gnavi_youtube.png") 0 -35px no-repeat; }
.menu_shop a:hover,.menu_shop a.current { background:url("../images/front/gnavi_shop.png") 0 -35px no-repeat; }
| 018erri-rose | common/gnavi03.css | CSS | oos | 3,459 |
<?php
function stockstyle_footer(){
$likeCount = facebook_likeCount("http://www.facebook.com/stockstyle");
print <<<FOOTER_STYLE
<div style="clear:both; width:810px; height:125px; margin:0; text-align:center;"><img src="/cybird/ad/images/ad.png"></div>
<div id="powered">
Powered by <a href="https://www.facebook.com/stockstyle">STOCK STYLE</a>
<span class="likeCountArrow"><span>$likeCount</span></span>
</div>
FOOTER_STYLE;
}
add_action( 'wp_footer', 'stockstyle_footer' );
//+++++++++++++++++++++++++++++++++++++++++
// 管理画面フッターのテキスト
function custom_admin_footer() {
//echo '<div style="clear:both;"><img src="/cybird/ad/images/ad.png"></div>';
echo '<p class="copyright" style="float:right;">
<img src="/cybird/img/logo_cybird-group.gif" alt="CYBIRD GROUP one to onlyone" />
<small>© <a href="http://www.cybird.co.jp/">CYBIRD Co.,Ltd</a> All Rights Reserved.</small></p>';
}
add_filter('admin_footer_text', 'custom_admin_footer');
?>
| 018erri-rose | lib/func_footer.php | PHP | oos | 995 |
<?php
// プラグイン
//remove_action( 'wp_head', 'wordbooker_header' );
// login-with-ajax'
remove_action( 'wp_head', 'wpogp_auto_include' );
remove_action( 'wp_head', 'wp_page_numbers_stylesheet' );
remove_action( 'wp_head', 'widget_akismet_style' );
remove_action( 'wp_head', 'feed_links' );
// システム
remove_action( 'wp_head', 'feed_links');
remove_action( 'wp_head', 'feed_links_extra');
remove_action( 'wp_head', 'rsd_link');
remove_action( 'wp_head', 'wlwmanifest_link');
remove_action( 'wp_head', 'index_rel_link');
remove_action( 'wp_head', 'parent_post_rel_link');
remove_action( 'wp_head', 'start_post_rel_link');
remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head');
remove_action( 'wp_head', 'wp_generator' );
remove_action( 'wp_head', 'rel_canonical' );
remove_action( 'wp_head', 'wp_enqueue_scripts' );
remove_action( 'wp_head', 'locale_stylesheet' );
remove_action( 'wp_head', 'noindex' );
remove_action( 'wp_head', 'wp_print_styles' );
remove_action( 'wp_head', 'wp_print_head_scripts' );
remove_action( 'wp_head', '_custom_background_cb' );
// ヘッダースタイル
add_action( 'wp_head', 'header_style' );
//+++++++++++++++++++++++++++++++++++++++++
//カスタムヘッダー
//add_custom_image_header('','admin_header_style');
//function admin_header_style() {}
/*
add_action( 'after_setup_theme', 'my_theme_setup', 11 );
function my_theme_setup() {
global $_wp_default_headers;
unregister_default_headers( array_keys( $_wp_default_headers ) );
}
*/
function my_child_theme_setup(){
//標準のヘッダー画像を指定
define('HEADER_IMAGE', get_stylesheet_directory_uri() . '/images/520x115.png');
register_default_headers( array(
'default' => array(
'url' => get_stylesheet_directory_uri() . '/images/520x115.png',
'thumbnail_url' => get_stylesheet_directory_uri() . '/images/520x115.png',
'description' => __( 'default', 'default_header' )
)
) );
//ヘッダー画像の横幅と高さを指定
define('HEADER_IMAGE_WIDTH','520');
define('HEADER_IMAGE_HEIGHT','115');
}
//add_action( 'after_setup_theme', 'my_child_theme_setup' );
//ヘッダーの文字を隠す
define('NO_HEADER_TEXT',true);
function get_custom_css($design_type){
list($conf_designs) = get_posts("post_type=design&meta_key=design_type&meta_value=$design_type&orderby=menu_order&order=ASC");
$style_sheet = "";
if( isset($conf_designs) ):
list($get_style) = get_post_meta($conf_designs->ID, 'stylesheet');
$style_sheet = $get_style;
endif;
return $style_sheet;
}
function get_custom_js_file($design_type){
list($conf_designs) = get_posts("post_type=design&meta_key=design_type&meta_value=$design_type&orderby=menu_order&order=ASC");
$js_meta = "";
if( isset($conf_designs) ):
$js_libs = get_post_meta($conf_designs->ID, 'js_file');
foreach ($js_libs as &$js) {
if ( preg_match('/http/', $js ) ){
} else {
$js = get_stylesheet_directory_uri() . '/js/' . $js;
}
$js_meta .= sprintf('<script type="text/javascript" src="%s"></script>' . "\n", $js);
}
endif;
return $js_meta;
}
function get_ogp_meta(){
$template_type = get_template_type();
$app_ogp = "ogp_" . PAGE_TYPE . "_" . $template_type;
if(function_exists($app_ogp)) {
return do_shortcode("[" . $app_ogp ."]");
} else {
return "";
}
}
add_shortcode('ogp_meta', 'get_ogp_meta');
function get_template_type(){
global $posts;
$app_type = "top";
if ( is_home() ){
// TOPページ
}else if ( $posts[0]->{"post_type"} === 'page' ){
$app_type = $posts[0]->{"post_name"};
define( 'PAGE_TYPE', 'page' );
} else {
$app_type = $posts[0]->{"post_type"};
$single_id = $posts[0]->{"ID"};
define( 'PAGE_TYPE', 'single' );
define( 'POST_ID', $single_id );
}
return $app_type;
}
function header_style(){
$header_image = get_custom_header_image();
$background_style = get_custom_background();
$custom_style = get_custom_css(get_template_type());
$custom_js_file = get_custom_js_file(get_template_type());
$template_url = get_stylesheet_directory_uri();
$local_time = time();
$header_html = "";
if ( isset($header_image) && $header_image !== "" ){
$buf_image = @getimagesize($header_image);
$img_h = $buf_image[1];
$header_html = <<<HEADER_IMAGE
#custom_header {
background: url($header_image);
height: $img_h;
}
HEADER_IMAGE;
}
$custom_type = get_template_type();
print <<<HEADER_STYLE
<link rel="stylesheet" href="$template_url/css/$custom_type.css?$local_time" type="text/css" />
<style>
$header_html
body { overflow-x : hidden ;}
$custom_style
</style>
<script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'ja',
autoDisplay: false,
includedLanguages: 'en,ko,ja',
layout: google.translate.TranslateElement.FloatPosition.TOP_RIGHT
}, 'google_translate_element');
}
</script>
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
$custom_js_file
HEADER_STYLE;
}
function facebook_height(){
print <<<HEADER_FACEBOOK_HEIGHT
<script type="text/javascript">
jQuery.event.add(window, "load", function(){
var footer_height = jQuery("#footer").position().top + 220;
FB.Canvas.setSize({ height: footer_height });
});
</script>
HEADER_FACEBOOK_HEIGHT;
}
add_action( 'wp_head', 'facebook_height' );
if ( is_admin() ){
require_once( ABSPATH . 'wp-admin/custom-background.php' );
$GLOBALS['custom_background'] =& new Custom_Background( $admin_header_callback, $admin_image_div_callback );
add_action( 'admin_menu', array( &$GLOBALS['custom_background'], 'init' ) );
}
/**
* Default custom background callback.
*
* @since 3.0.0
* @see add_custom_background()
* @access protected
*/
function get_custom_background() {
$background = get_background_image();
$color = get_background_color();
if ( ! $background && ! $color )
return;
$style = $color ? "background-color: #$color;" : '';
if ( $background ) {
$image = " background-image: url('$background');";
$repeat = get_theme_mod( 'background_repeat', 'repeat' );
if ( ! in_array( $repeat, array( 'no-repeat', 'repeat-x', 'repeat-y', 'repeat' ) ) )
$repeat = 'repeat';
$repeat = " background-repeat: $repeat;";
$position = get_theme_mod( 'background_position_x', 'left' );
if ( ! in_array( $position, array( 'center', 'right', 'left' ) ) )
$position = 'left';
$position = " background-position: top $position;";
$attachment = get_theme_mod( 'background_attachment', 'scroll' );
if ( ! in_array( $attachment, array( 'fixed', 'scroll' ) ) )
$attachment = 'scroll';
$attachment = " background-attachment: $attachment;";
$style .= $image . $repeat . $position . $attachment;
}
return trim( $style );
}
?>
| 018erri-rose | lib/func_header.php | PHP | oos | 7,148 |
<?php
/**
* MasterControl Theme Options
*
* @package WordPress
* @since MasterControl 1.0
*/
/**
* Properly enqueue styles and scripts for our theme options page.
*
* This function is attached to the admin_enqueue_scripts action hook.
*
* @since MasterControl 1.0
*
*/
function mastercontrol_admin_enqueue_scripts( $hook_suffix ) {
wp_enqueue_style( 'mastercontrol-theme-options', get_template_directory_uri() . '/inc/theme-options.css', false, '2011-04-28' );
wp_enqueue_script( 'mastercontrol-theme-options', get_template_directory_uri() . '/inc/theme-options.js', array( 'farbtastic' ), '2011-06-10' );
wp_enqueue_style( 'farbtastic' );
}
add_action( 'admin_print_styles-appearance_page_theme_options', 'mastercontrol_admin_enqueue_scripts' );
/**
* Register the form setting for our mastercontrol_options array.
*
* This function is attached to the admin_init action hook.
*
* This call to register_setting() registers a validation callback, mastercontrol_theme_options_validate(),
* which is used when the option is saved, to ensure that our option values are complete, properly
* formatted, and safe.
*
* We also use this function to add our theme option if it doesn't already exist.
*
* @since MasterControl 1.0
*/
function mastercontrol_theme_options_init() {
// If we have no options in the database, let's add them now.
if ( false === mastercontrol_get_theme_options() )
add_option( 'mastercontrol_theme_options', mastercontrol_get_default_theme_options() );
register_setting(
'mastercontrol_options', // Options group, see settings_fields() call in mastercontrol_theme_options_render_page()
'mastercontrol_theme_options', // Database option, see mastercontrol_get_theme_options()
'mastercontrol_theme_options_validate' // The sanitization callback, see mastercontrol_theme_options_validate()
);
// Register our settings field group
add_settings_section(
'general', // Unique identifier for the settings section
'', // Section title (we don't want one)
'__return_false', // Section callback (we don't want anything)
'theme_options' // Menu slug, used to uniquely identify the page; see mastercontrol_theme_options_add_page()
);
// Register our individual settings fields
add_settings_field(
'color_scheme', // Unique identifier for the field for this section
__( 'Color Scheme', 'mastercontrol' ), // Setting field label
'mastercontrol_settings_field_color_scheme', // Function that renders the settings field
'theme_options', // Menu slug, used to uniquely identify the page; see mastercontrol_theme_options_add_page()
'general' // Settings section. Same as the first argument in the add_settings_section() above
);
add_settings_field( 'link_color', __( 'Link Color', 'mastercontrol' ), 'mastercontrol_settings_field_link_color', 'theme_options', 'general' );
add_settings_field( 'layout', __( 'Default Layout', 'mastercontrol' ), 'mastercontrol_settings_field_layout', 'theme_options', 'general' );
}
add_action( 'admin_init', 'mastercontrol_theme_options_init' );
/**
* Change the capability required to save the 'mastercontrol_options' options group.
*
* @see mastercontrol_theme_options_init() First parameter to register_setting() is the name of the options group.
* @see mastercontrol_theme_options_add_page() The edit_theme_options capability is used for viewing the page.
*
* By default, the options groups for all registered settings require the manage_options capability.
* This filter is required to change our theme options page to edit_theme_options instead.
* By default, only administrators have either of these capabilities, but the desire here is
* to allow for finer-grained control for roles and users.
*
* @param string $capability The capability used for the page, which is manage_options by default.
* @return string The capability to actually use.
*/
function mastercontrol_option_page_capability( $capability ) {
return 'edit_theme_options';
}
add_filter( 'option_page_capability_mastercontrol_options', 'mastercontrol_option_page_capability' );
/**
* Add our theme options page to the admin menu, including some help documentation.
*
* This function is attached to the admin_menu action hook.
*
* @since MasterControl 1.0
*/
function mastercontrol_theme_options_add_page() {
$theme_page = add_theme_page(
__( 'Theme Options', 'mastercontrol' ), // Name of page
__( 'Theme Options', 'mastercontrol' ), // Label in menu
'edit_theme_options', // Capability required
'theme_options', // Menu slug, used to uniquely identify the page
'mastercontrol_theme_options_render_page' // Function that renders the options page
);
if ( ! $theme_page )
return;
add_action( "load-$theme_page", 'mastercontrol_theme_options_help' );
}
add_action( 'admin_menu', 'mastercontrol_theme_options_add_page' );
function mastercontrol_theme_options_help() {
$help = '<p>' . __( 'Some themes provide customization options that are grouped together on a Theme Options screen. If you change themes, options may change or disappear, as they are theme-specific. Your current theme, MasterControl, provides the following Theme Options:', 'mastercontrol' ) . '</p>' .
'<ol>' .
'<li>' . __( '<strong>Color Scheme</strong>: You can choose a color palette of "Light" (light background with dark text) or "Dark" (dark background with light text) for your site.', 'mastercontrol' ) . '</li>' .
'<li>' . __( '<strong>Link Color</strong>: You can choose the color used for text links on your site. You can enter the HTML color or hex code, or you can choose visually by clicking the "Select a Color" button to pick from a color wheel.', 'mastercontrol' ) . '</li>' .
'<li>' . __( '<strong>Default Layout</strong>: You can choose if you want your site’s default layout to have a sidebar on the left, the right, or not at all.', 'mastercontrol' ) . '</li>' .
'</ol>' .
'<p>' . __( 'Remember to click "Save Changes" to save any changes you have made to the theme options.', 'mastercontrol' ) . '</p>';
$sidebar = '<p><strong>' . __( 'For more information:', 'mastercontrol' ) . '</strong></p>' .
'<p>' . __( '<a href="http://codex.wordpress.org/Appearance_Theme_Options_Screen" target="_blank">Documentation on Theme Options</a>', 'mastercontrol' ) . '</p>' .
'<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>', 'mastercontrol' ) . '</p>';
$screen = get_current_screen();
if ( method_exists( $screen, 'add_help_tab' ) ) {
// WordPress 3.3
$screen->add_help_tab( array(
'title' => __( 'Overview', 'mastercontrol' ),
'id' => 'theme-options-help',
'content' => $help,
)
);
$screen->set_help_sidebar( $sidebar );
} else {
// WordPress 3.2
add_contextual_help( $screen, $help . $sidebar );
}
}
/**
* Returns an array of color schemes registered for MasterControl.
*
* @since MasterControl 1.0
*/
function mastercontrol_color_schemes() {
$color_scheme_options = array(
'light' => array(
'value' => 'light',
'label' => __( 'Light', 'mastercontrol' ),
'thumbnail' => get_template_directory_uri() . '/inc/images/light.png',
'default_link_color' => '#1b8be0',
),
'dark' => array(
'value' => 'dark',
'label' => __( 'Dark', 'mastercontrol' ),
'thumbnail' => get_template_directory_uri() . '/inc/images/dark.png',
'default_link_color' => '#e4741f',
),
);
return apply_filters( 'mastercontrol_color_schemes', $color_scheme_options );
}
/**
* Returns an array of layout options registered for MasterControl.
*
* @since MasterControl 1.0
*/
function mastercontrol_layouts() {
$layout_options = array(
'content-sidebar' => array(
'value' => 'content-sidebar',
'label' => __( 'Content on left', 'mastercontrol' ),
'thumbnail' => get_template_directory_uri() . '/inc/images/content-sidebar.png',
),
'sidebar-content' => array(
'value' => 'sidebar-content',
'label' => __( 'Content on right', 'mastercontrol' ),
'thumbnail' => get_template_directory_uri() . '/inc/images/sidebar-content.png',
),
'content' => array(
'value' => 'content',
'label' => __( 'One-column, no sidebar', 'mastercontrol' ),
'thumbnail' => get_template_directory_uri() . '/inc/images/content.png',
),
);
return apply_filters( 'mastercontrol_layouts', $layout_options );
}
/**
* Returns the default options for MasterControl.
*
* @since MasterControl 1.0
*/
function mastercontrol_get_default_theme_options() {
$default_theme_options = array(
'color_scheme' => 'light',
'link_color' => mastercontrol_get_default_link_color( 'light' ),
'theme_layout' => 'content-sidebar',
);
if ( is_rtl() )
$default_theme_options['theme_layout'] = 'sidebar-content';
return apply_filters( 'mastercontrol_default_theme_options', $default_theme_options );
}
/**
* Returns the default link color for MasterControl, based on color scheme.
*
* @since MasterControl 1.0
*
* @param $string $color_scheme Color scheme. Defaults to the active color scheme.
* @return $string Color.
*/
function mastercontrol_get_default_link_color( $color_scheme = null ) {
if ( null === $color_scheme ) {
$options = mastercontrol_get_theme_options();
$color_scheme = $options['color_scheme'];
}
$color_schemes = mastercontrol_color_schemes();
if ( ! isset( $color_schemes[ $color_scheme ] ) )
return false;
return $color_schemes[ $color_scheme ]['default_link_color'];
}
/**
* Returns the options array for MasterControl.
*
* @since MasterControl 1.0
*/
function mastercontrol_get_theme_options() {
return get_option( 'mastercontrol_theme_options', mastercontrol_get_default_theme_options() );
}
/**
* Renders the Color Scheme setting field.
*
* @since MasterControl 1.3
*/
function mastercontrol_settings_field_color_scheme() {
$options = mastercontrol_get_theme_options();
foreach ( mastercontrol_color_schemes() as $scheme ) {
?>
<div class="layout image-radio-option color-scheme">
<label class="description">
<input type="radio" name="mastercontrol_theme_options[color_scheme]" value="<?php echo esc_attr( $scheme['value'] ); ?>" <?php checked( $options['color_scheme'], $scheme['value'] ); ?> />
<input type="hidden" id="default-color-<?php echo esc_attr( $scheme['value'] ); ?>" value="<?php echo esc_attr( $scheme['default_link_color'] ); ?>" />
<span>
<img src="<?php echo esc_url( $scheme['thumbnail'] ); ?>" width="136" height="122" alt="" />
<?php echo $scheme['label']; ?>
</span>
</label>
</div>
<?php
}
}
/**
* Renders the Link Color setting field.
*
* @since MasterControl 1.3
*/
function mastercontrol_settings_field_link_color() {
$options = mastercontrol_get_theme_options();
?>
<input type="text" name="mastercontrol_theme_options[link_color]" id="link-color" value="<?php echo esc_attr( $options['link_color'] ); ?>" />
<a href="#" class="pickcolor hide-if-no-js" id="link-color-example"></a>
<input type="button" class="pickcolor button hide-if-no-js" value="<?php esc_attr_e( 'Select a Color', 'mastercontrol' ); ?>" />
<div id="colorPickerDiv" style="z-index: 100; background:#eee; border:1px solid #ccc; position:absolute; display:none;"></div>
<br />
<span><?php printf( __( 'Default color: %s', 'mastercontrol' ), '<span id="default-color">' . mastercontrol_get_default_link_color( $options['color_scheme'] ) . '</span>' ); ?></span>
<?php
}
/**
* Renders the Layout setting field.
*
* @since MasterControl 1.3
*/
function mastercontrol_settings_field_layout() {
$options = mastercontrol_get_theme_options();
foreach ( mastercontrol_layouts() as $layout ) {
?>
<div class="layout image-radio-option theme-layout">
<label class="description">
<input type="radio" name="mastercontrol_theme_options[theme_layout]" value="<?php echo esc_attr( $layout['value'] ); ?>" <?php checked( $options['theme_layout'], $layout['value'] ); ?> />
<span>
<img src="<?php echo esc_url( $layout['thumbnail'] ); ?>" width="136" height="122" alt="" />
<?php echo $layout['label']; ?>
</span>
</label>
</div>
<?php
}
}
/**
* Returns the options array for MasterControl.
*
* @since MasterControl 1.2
*/
function mastercontrol_theme_options_render_page() {
?>
<div class="wrap">
<?php screen_icon(); ?>
<h2><?php printf( __( '%s Theme Options', 'mastercontrol' ), get_current_theme() ); ?></h2>
<?php settings_errors(); ?>
<form method="post" action="options.php">
<?php
settings_fields( 'mastercontrol_options' );
do_settings_sections( 'theme_options' );
submit_button();
?>
</form>
</div>
<?php
}
/**
* Sanitize and validate form input. Accepts an array, return a sanitized array.
*
* @see mastercontrol_theme_options_init()
* @todo set up Reset Options action
*
* @since MasterControl 1.0
*/
function mastercontrol_theme_options_validate( $input ) {
$output = $defaults = mastercontrol_get_default_theme_options();
// Color scheme must be in our array of color scheme options
if ( isset( $input['color_scheme'] ) && array_key_exists( $input['color_scheme'], mastercontrol_color_schemes() ) )
$output['color_scheme'] = $input['color_scheme'];
// Our defaults for the link color may have changed, based on the color scheme.
$output['link_color'] = $defaults['link_color'] = mastercontrol_get_default_link_color( $output['color_scheme'] );
// Link color must be 3 or 6 hexadecimal characters
if ( isset( $input['link_color'] ) && preg_match( '/^#?([a-f0-9]{3}){1,2}$/i', $input['link_color'] ) )
$output['link_color'] = '#' . strtolower( ltrim( $input['link_color'], '#' ) );
// Theme layout must be in our array of theme layout options
if ( isset( $input['theme_layout'] ) && array_key_exists( $input['theme_layout'], mastercontrol_layouts() ) )
$output['theme_layout'] = $input['theme_layout'];
return apply_filters( 'mastercontrol_theme_options_validate', $output, $input, $defaults );
}
/**
* Enqueue the styles for the current color scheme.
*
* @since MasterControl 1.0
*/
function mastercontrol_enqueue_color_scheme() {
$options = mastercontrol_get_theme_options();
$color_scheme = $options['color_scheme'];
if ( 'dark' == $color_scheme )
wp_enqueue_style( 'dark', get_template_directory_uri() . '/colors/dark.css', array(), null );
do_action( 'mastercontrol_enqueue_color_scheme', $color_scheme );
}
add_action( 'wp_enqueue_scripts', 'mastercontrol_enqueue_color_scheme' );
/**
* Add a style block to the theme for the current link color.
*
* This function is attached to the wp_head action hook.
*
* @since MasterControl 1.0
*/
function mastercontrol_print_link_color_style() {
$options = mastercontrol_get_theme_options();
$link_color = $options['link_color'];
$default_options = mastercontrol_get_default_theme_options();
// Don't do anything if the current link color is the default.
if ( $default_options['link_color'] == $link_color )
return;
?>
<style>
/* Link color */
a,
#site-title a:focus,
#site-title a:hover,
#site-title a:active,
.entry-title a:hover,
.entry-title a:focus,
.entry-title a:active,
.widget_mastercontrol_ephemera .comments-link a:hover,
section.recent-posts .other-recent-posts a[rel="bookmark"]:hover,
section.recent-posts .other-recent-posts .comments-link a:hover,
.format-image footer.entry-meta a:hover,
#site-generator a:hover {
color: <?php echo $link_color; ?>;
}
section.recent-posts .other-recent-posts .comments-link a:hover {
border-color: <?php echo $link_color; ?>;
}
article.feature-image.small .entry-summary p a:hover,
.entry-header .comments-link a:hover,
.entry-header .comments-link a:focus,
.entry-header .comments-link a:active,
.feature-slider a.active {
background-color: <?php echo $link_color; ?>;
}
</style>
<?php
}
add_action( 'wp_head', 'mastercontrol_print_link_color_style' );
/**
* Adds MasterControl layout classes to the array of body classes.
*
* @since MasterControl 1.0
*/
function mastercontrol_layout_classes( $existing_classes ) {
$options = mastercontrol_get_theme_options();
$current_layout = $options['theme_layout'];
if ( in_array( $current_layout, array( 'content-sidebar', 'sidebar-content' ) ) )
$classes = array( 'two-column' );
else
$classes = array( 'one-column' );
if ( 'content-sidebar' == $current_layout )
$classes[] = 'right-sidebar';
elseif ( 'sidebar-content' == $current_layout )
$classes[] = 'left-sidebar';
else
$classes[] = $current_layout;
$classes = apply_filters( 'mastercontrol_layout_classes', $classes, $current_layout );
return array_merge( $existing_classes, $classes );
}
add_filter( 'body_class', 'mastercontrol_layout_classes' );
| 018erri-rose | lib/theme-options.php | PHP | oos | 17,170 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
//パンくずリスト用
function get_breadcrumbs(){
global $wp_query;
if ( !is_home() ){
// Add the Home link
echo '<a href="'. get_settings('home') .'">TOP</a>';
if ( is_category() )
{
$catTitle = single_cat_title( "", false );
$cat = get_cat_ID( $catTitle );
echo '><span class="now">'. get_category_parents( $cat, TRUE, "" ) .'</span>';
}
elseif ( is_archive() && !is_category() )
{
echo '> <span class="now">Archives</span>';
}
elseif ( is_search() ) {
echo '> <span class="now">Search Results</span>';
}
elseif ( is_404() )
{
echo '> <span class="now">404 Not Found</span>';
}
elseif ( is_single() )
{
$category = get_the_category();
$category_id = get_cat_ID( $category[0]->cat_name );
echo '><span class="now">'. get_category_parents( $category_id, TRUE, ">" );
echo ' ' . the_title('','', FALSE) ."</span>";
}
elseif ( is_page() )
{
$post = $wp_query->get_queried_object();
if ( $post->post_parent == 0 ){
echo ' > <span class="now">'.the_title('','', FALSE).'</span>';
} else {
$title = the_title('','', FALSE);
$ancestors = array_reverse( get_post_ancestors( $post->ID ) );
array_push($ancestors, $post->ID);
foreach ( $ancestors as $ancestor ){
if( $ancestor != end($ancestors) ){
echo ' > <a href="'. get_permalink($ancestor) .'">'. strip_tags( apply_filters( 'single_post_title', get_the_title( $ancestor ) ) ) .'</a>';
} else {
echo ' > <span class="now">'. strip_tags( apply_filters( 'single_post_title', get_the_title( $ancestor ) ) ) .'</span>';
}
}
}
}
}
}
function get_breadcrumb(){
if(function_exists('bcn_display')){
return bcn_display(true);
}
return;
}
add_shortcode('bcn_display', 'get_breadcrumb');
?>
| 018erri-rose | lib/func_breadcrumb.php | PHP | oos | 1,916 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// XML
register_post_type(
'xml',
array(
'label' => 'XML',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/design.gif',
'supports' => array(
'title',
'custom-fields'
)
)
);
add_shortcode('photogallery_title', 'get_photogallery_title');
function get_photogallery_title(){
return get_the_title();
}
add_shortcode('photogallery_image_path', 'get_photogallery_image_path');
function get_photogallery_image_path(){
return;
}
add_shortcode('photogallery_image_thumb', 'get_photogallery_image_thumb');
function get_photogallery_image_thumb(){
global $attach_id;
list($img_src) = wp_get_attachment_image_src($attach_id, $size='thumbnail');
return $img_src;
}
add_shortcode('photogallery_image_large', 'get_photogallery_image_large');
function get_photogallery_image_large(){
global $attach_id;
list($img_src) = wp_get_attachment_image_src($attach_id, $size='large');
return $img_src;
}
add_shortcode('photogallery_image_excerpt', 'get_photogallery_image_excerpt');
function get_photogallery_image_excerpt(){
global $attachment;
if ( empty($attachment->post_excerpt) ) return;
return '<![CDATA[' . $attachment->post_excerpt . ']]>';
}
add_shortcode('photogallery_single_list', 'get_photogallery_single_list');
function get_photogallery_single_list(){
$single_format =<<<SINGLE_FORMAT
<slide name="[photogallery_image_large]" thumbName="[photogallery_image_thumb]">
[photogallery_image_excerpt]
</slide>
SINGLE_FORMAT;
$attachments = get_children( array('post_parent' => get_the_ID(), 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) );
global $attach_id, $attachment;
$content_xml = "";
foreach ( $attachments as $attach_id => $attachment ) :
$content_xml .= do_shortcode( $single_format );
endforeach;
return $content_xml;
}
add_shortcode('photogallery_album_xml', 'get_photogallery_album_xml');
function get_photogallery_album_xml(){
$album_format =<<<ALBUM_XML
<album slidePath="[photogallery_image_path]" thumbPath="[photogallery_image_path]">
<description>
<![CDATA[
[photogallery_title]
]]>
</description>
<slides>
[photogallery_single_list]
</slides>
</album>
ALBUM_XML;
global $xml_type;
$content_xml = "";
wp_reset_query();
query_posts("post_type=$xml_type&order=ASC");
if(have_posts()):
while(have_posts()): the_post();
$content_xml .= do_shortcode( $album_format );
endwhile;
endif;
wp_reset_query();
return $content_xml;
}
function exec_xml(){
$base_format =<<<BASE_XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<slideshow>
<preferences
thumbSize="150"
/>
<albums>
[photogallery_album_xml]
</albums>
</slideshow>
BASE_XML;
global $xml_type;
wp_reset_query();
$content_xml = "";
if(have_posts()): the_post();
list($xml_type) = get_post_meta(get_the_ID(), 'xml_type');
$content_xml = do_shortcode( $base_format );
endif;
wp_reset_query();
return $content_xml;
}
add_shortcode('run_xml', 'exec_xml');
?>
| 018erri-rose | lib/xml/func.php | PHP | oos | 3,241 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト BLOG
register_post_type(
'xml',
array(
'label' => 'XML',
'hierarchical' => false,
'public' => true,
'show_ui' => false,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/design.gif',
'supports' => array(
'title',
'editor',
'custom-fields'
)
)
);
?>
| 018erri-rose | lib/xml/notshow.php | PHP | oos | 450 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// アイキャチ画像
add_theme_support('post-thumbnails');
set_post_thumbnail_size(120, 90, true);
//+++++++++++++++++++++++++++++++++++++++++
// アイキャチ画像のURLを取得
function get_featured_image_url() {
$image_id = get_post_thumbnail_id();
$image_url = wp_get_attachment_image_src($image_id, 'thumbnail', true);
echo $image_url[0];
}
add_editor_style();
remove_filter('the_content', 'wpautop');
//+++++++++++++++++++++++++++++++++++++++++
// How to display sorted posts in the 'All Posts' page
function set_post_order_in_admin( $wp_query ) {
if ( is_admin() ) {
if( 'edit.php' === $GLOBALS['pagenow'] ) {
$wp_query->set( 'orderby', 'menu_order' );
$wp_query->set( 'order', 'ASC' );
}
}
}
add_filter( 'pre_get_posts', 'set_post_order_in_admin' );
//+++++++++++++++++++++++++++++++++++++++++
// ログイン画面ロゴ
function custom_login_logo() {
echo '<style type="text/css">h1 a { background: url(/wp-content/images/tool/master_control_image.png) 50% 50% no-repeat !important; }</style>';
}
add_action('login_head', 'custom_login_logo');
//+++++++++++++++++++++++++++++++++++++++++
// 管理画面左上のロゴ
add_action('admin_head', 'my_custom_logo');
function my_custom_logo() {
echo '<style type="text/css">#header-logo { background-image:url(/wp-content/images/tool/master_control_logo.png) !important; }</style>';
}
//+++++++++++++++++++++++++++++++++++++++++
// HTML エディタのフォントを変更
function change_editor_font(){
echo "<style type='text/css'>
#editorcontainer textarea#content {
font-family: \"ヒラギノ角ゴ Pro W3\",
\"Hiragino Kaku Gothic Pro\",
Osaka,
\"MS Pゴシック\",
sans-serif;
font-size:14px;
color:#333;
}
</style>";
}
add_action("admin_print_styles", "change_editor_font");
//+++++++++++++++++++++++++++++++++++++++++
// アドミンバーを消す
add_filter('show_admin_bar','__return_false');
//+++++++++++++++++++++++++++++++++++++++++
// 管理者以外にアップデートのお知らせ非表示
if (!current_user_can('edit_users')) {
function wphidenag() {
remove_action( 'admin_notices', 'update_nag');
}
add_action('admin_menu','wphidenag');
}
add_action( 'wp_head', 'get_admin_head' );
function get_admin_head(){
if ( PAGE_ADMIN == 1 ){
$page_id = PAGE_SITE_PATH;
$custom_type = CUSTOM_TYPE;
print <<<ADMIN_SCRIPT
<script type="text/javascript">
var page_id = '$page_id';
var custom_type = '$custom_type';
var edit_type = 'post-new';
function next_wpadmin(){
FB.getLoginStatus(function(response) {
if (response.authResponse.accessToken) {
jQuery('#wpadmin').css('display','block');
jQuery('#wpform').attr('action', 'https://asp.mastercontrol.jp/'+page_id+'/wp-admin/'+edit_type+'.php?post_type='+custom_type);
jQuery('#wpadmin').click();
}
});
}
function loginUser() {
FB.login(
function(response) {
next_wpadmin();
},
{scope:'email,user_website'}
);
}
</script>
ADMIN_SCRIPT;
}
}
function get_admin_login(){
$admin_button = "";
// echo 'get_admin_login' . PAGE_ADMIN . "\n";
if ( PAGE_ADMIN == 1 ){
global $wp_post_types;
$page_id = PAGE_SITE_PATH;
$custom_type = CUSTOM_TYPE;
$post_new_label = $wp_post_types[$custom_type]->labels->add_new_item;
$post_admin_label = __('Edit Page', 'aspthemes');
$admin_button = <<<ADMIN_BUTTON
<a href="#" id="fbedit" class="wpedit_button" onClick="edit_type='edit';loginUser();return false;" style="float:left;">$post_admin_label</a>
<a href="#" id="fbnew" class="wpnew_button" onClick="edit_type='post-new';loginUser();return false;" style="float:left;">$post_new_label</a>
<!--fb:login-button v="2" scope="email,user_website" onlogin="next_wpadmin();" >管理画面</fb:login-button-->
<form id="wpform" action="https://asp.mastercontrol.jp/$page_id/wp-admin/edit.php?post_type=$custom_type" method="post" target="_blank">
<input type="image" name="submit" id="wpadmin" style="display:none;" src="/wp-content/images/tool/loadingAnimation.gif" width="1px" height="1px" />
</form>
ADMIN_BUTTON;
}
return $admin_button;
}
add_shortcode('admin_login', 'get_admin_login');
?>
| 018erri-rose | lib/func_admin.php | PHP | oos | 4,437 |
<?php
/*
*
* ページナビゲーション出力
*/
function get_pagenavi(){
$navi_html = "";
$navi_html = '<div class="pager clearfix">';
$paged = get_query_var('paged');
$paginate_base = get_pagenum_link(1);
global $wp_rewrite;
global $max_pages;
if (strpos($paginate_base, '?') || ! $wp_rewrite->using_permalinks()) {
$paginate_format = '';
$paginate_base = add_query_arg('paged', '%#%');
} else {
$paginate_format = (substr($paginate_base, -1 ,1) == '/' ? '' : '/') .
user_trailingslashit('page/%#%/', 'paged');;
$paginate_base .= '%_%';
}
$navi_html .= paginate_links( array(
'base' => $paginate_base,
'format' => $paginate_format,
'total' => $max_pages,
'mid_size' => 3,
'current' => ($paged ? $paged : 1),
'prev_text' => '«',
'next_text' => '»',
'type' => 'list'
));
$navi_html .= '</div>';
return str_replace('http:', '', $navi_html);
}
add_shortcode('pagenavi', 'get_pagenavi');
?>
| 018erri-rose | lib/pagenavi.php | PHP | oos | 986 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// MasterControl Setting
/*
register_post_type(
'mastercontrol',
array(
'label' => 'MasterControl',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/master_control_logo.png',
'supports' => array(
'title'
)
)
);
*/
// 変更不可
define("APP_ID", '189419227831303');
define("SECRET_KEY", 'd8be62975cd7a48023767fbe49102830');
$current_blog_id = $GLOBALS['blog_id'];
load_page_status();
function load_page_status(){
global $wpdb;
$current_blog_id = $GLOBALS['blog_id'];
$pageid = str_replace("/", "", $wpdb->get_var($wpdb->prepare("SELECT path FROM wp_blogs WHERE blog_id = $current_blog_id;")));
$query = "SELECT * FROM `socialstyle`.`facebookpages` WHERE `facebookpage_id` = '" . $pageid . "'";
list($pages) = $wpdb->get_results( $query );
if ( isset( $pages->link) ){
define("FB_URL", $pages->link);
define("FBPAGE_ONLY", true);
}
define("PAGE_ID", $pages->facebookpage_id);
if ( isset($pages->token) ){
define("ACCESS_TOKEN", $pages->token);
define("ENABLE_SITE", get_bloginfo('siteurl') );
}
}
// FacebookPageにリダイレクト
function redirectFB() {
$agent = $_SERVER['HTTP_USER_AGENT'];
if(ereg("^DoCoMo", $agent)){
}else if(ereg("^J-PHONE|^Vodafone|^SoftBank", $agent)){
}else if(ereg("^UP.Browser|^KDDI", $agent)){
}else if(ereg("iPhone", $agent)){
}else if(ereg("Android", $agent)){
}else {
// 携帯端末以外をFaceBookにリダイレクトする
if( isset($_GET["app_data"]) ){
echo '<meta http-equiv="refresh" CONTENT="0;URL=' . FB_URL . "&app_data=" . $_GET["app_data"] . '" />';
exit;
} else {
if(FB_URL !== "FB_URL" && FBPAGE_ONLY){
echo '<script>if(window==top.window) location.href="' . FB_URL . '?sk=app_189419227831303";</script>';
}
}
}
}
function loadIframeFB(){
require '/var/www/html/facebook/php-sdk/src/facebook.php';
$facebook = new Facebook(
array(
'appId' => "189419227831303",
'secret' => "d8be62975cd7a48023767fbe49102830",
'cookie' => true,
)
);
$data = $facebook->getSignedRequest();
if ( isset($data["user_id"]) ){
global $wpdb;
$user_id = $data["user_id"];
$current_blog_id = $GLOBALS['blog_id'];
$page_id = str_replace("/", "", $wpdb->get_var($wpdb->prepare("SELECT path FROM wp_blogs WHERE blog_id = $current_blog_id;")));
//echo '<!--user_id: '.$user_id.' page_id:' . $page_id . '-->';
$admin_count = $wpdb->get_var($wpdb->prepare("SELECT count(*) FROM `socialstyle`.`users_facebookpages` WHERE `user_id` = '$user_id' AND `facebookpage_id` = '$page_id';"));
//echo '<!--admin_count:' . $admin_count . '-->';;
if ( $admin_count > 0 ){
define( PAGE_ADMIN, true );
define( PAGE_SITE_PATH, $page_id );
}
}
// Fan Gate
/*
if ( isset($data["page"]["liked"]) ){
if ( $data["page"]["liked"] === true ){
} else {
echo '<html><head><style>body{overflow-x : hidden ;overflow-y : hidden ;}</style></head><body><img src="'. get_bloginfo('template_url'). '/images/front/fangate.jpg" alt="' . get_bloginfo('name') . '" title="' . get_bloginfo('name') . '" /></body></html>';
exit;
}
}
*/
// like page
if ( isset($data["app_data"]) ){
echo '<meta http-equiv="refresh" CONTENT="0;URL=' . get_bloginfo("siteurl") . base64_decode($data["app_data"]) . '" />';
exit;
}
}
// FacebookLikeボタンを取得
function getLikeBottun() {
$permalink = get_permalink();
$appdata = str_replace(get_bloginfo("siteurl"), "", $permalink);
$like_link = $permalink . '?app_data=' . base64_encode( $appdata );
$like_bottun = '<iframe src="https://www.facebook.com/plugins/like.php?app_id=' . APP_ID . '&href=';
$like_bottun .= urlencode($like_link);
$like_bottun .= '&send=false&layout=button_count&width=150&show_faces=false&action=like&colorscheme=light&font=arial&height=20" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:150px; height:20px" allowTransparency="true"></iframe>';
return '<!--' . $like_link . '-->' . $like_bottun;
//return $like_bottun;
}
add_shortcode('facebook_like', 'getLikeBottun');
// OGPタグを取得
function getOGPMeta() {
global $post, $id;
setup_postdata($post);
if (is_page_template('custom_photogallary.php')) {
$OGP_meta = '<meta property="og:type" content="article" />';
$OGP_meta .= '<meta property="og:title" content="Photo Gallary' . get_the_title() . '" />';
$OGP_meta .= '<meta property="og:url" content="' . get_permalink() . '?app_data=' . base64_encode(get_permalink()) . '" />';
$OGP_meta .= '<meta property="og:description" content="' . get_the_title() . '" />';
$OGP_meta .= '<meta property="og:site_name" content="' . get_bloginfo('name') . '" />';
$OGP_meta .= '<meta property="og:image" content="' . get_the_post_thumbnail($id) . '" />';
$OGP_meta .= '<meta property="fb:app_id" content="' . APP_ID . '" />';
}else if (is_single()) {
$OGP_meta = '<meta property="og:type" content="article" />';
$OGP_meta .= '<meta property="og:title" content="「' . get_the_title() . '」" />';
$OGP_meta .= '<meta property="og:url" content="' . get_permalink() . '?app_data=' . base64_encode(get_permalink()) . '" />';
$OGP_meta .= '<meta property="og:description" content="' . get_the_title() . '" />';
$OGP_meta .= '<meta property="og:site_name" content="' . get_bloginfo('name') . '" />';
$OGP_meta .= '<meta property="og:image" content="' . get_bloginfo('template_url') . '/images/front/img_head.jpg" />';
$OGP_meta .= '<meta property="fb:app_id" content="' . APP_ID . '" />';
}else if (is_attachment()) {
$url_large = wp_get_attachment_image_src($id, $size='large');
$OGP_meta = '<meta property="og:type" content="article" />';
$OGP_meta .= '<meta property="og:title" content="「' . get_the_title() . '」" />';
$OGP_meta .= '<meta property="og:url" content="' . get_bloginfo('home') . '/?attachment_id=' . $id . '&app_data=' . base64_encode(get_bloginfo('home')) . '/?attachment_id=' . $id . '" />';
$OGP_meta .= '<meta property="og:description" content="' . get_the_title() . '" />';
$OGP_meta .= '<meta property="og:site_name" content="' . get_bloginfo('name') . '" />';
$OGP_meta .= '<meta property="og:image" content="' . $url_large[0] . '" />';
$OGP_meta .= '<meta property="fb:app_id" content="' . APP_ID . '" />';
}else{
$OGP_meta = '<meta property="og:type" content="article" />';
$OGP_meta .= '<meta property="og:title" content="「' . get_the_title() . '」" />';
$OGP_meta .= '<meta property="og:url" content="' . get_permalink() . '?app_data=' . base64_encode(get_permalink()) . '" />';
$OGP_meta .= '<meta property="og:description" content="' . get_the_title() . '" />';
$OGP_meta .= '<meta property="og:site_name" content="' . get_bloginfo('name') . '" />';
$OGP_meta .= '<meta property="og:image" content="' . get_bloginfo('template_url') . '/images/front/img_head.jpg" />';
$OGP_meta .= '<meta property="fb:app_id" content="' . APP_ID . '" />';
}
return $OGP_meta;
}
?>
| 018erri-rose | lib/mastercontrol.php | PHP | oos | 7,599 |
<?php
function header_googleplus(){
print <<<GOOGLE_PLUS
<!-- google plus -->
<script type="text/javascript">
window.___gcfg = {lang: 'ja'};
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
<!-- //google plus -->
GOOGLE_PLUS;
}
add_action( 'wp_head', 'header_googleplus' );
/*
* いいね用 デフォルト
*/
function get_base_like(){
global $custom_post;
if ( isset($custom_post) ){
$ID = $custom_post->ID;
$like_title = $custom_post->post_title;
} else {
$ID = get_the_ID();
$like_title = get_the_title();
}
if(preg_match("/^PR:/", $like_title)){ return "";}
//$single_page = '/single/' . get_template_type() . '/' . $ID . '/';
//$permalink = get_bloginfo('siteurl') . $single_page;
//$single_page = str_replace( get_bloginfo('siteurl') , "", get_permalink());
$like_link = $permalink = get_permalink();
/*
$like_link = $permalink . '?app_data=' . base64_encode( $single_page );
$like_bottun = '<iframe src="https://www.facebook.com/plugins/like.php?app_id=' . APP_ID . '&href=';
$like_bottun .= urlencode($like_link);
$like_bottun .= '&send=false&layout=button_count&width=68&show_faces=false&action=like&colorscheme=light&font=arial&height=20" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:68px; height:20px" allowTransparency="true"></iframe>';
*/
$facebook_like = '<div class="fb-like" data-href="' . $permalink . '" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false"></div>';
$google_plus = '<div class="g-plusone" data-size="medium" data-annotation="none"></div>';
//$google_plus = '';
$twitter = <<<TWITTER_BUTTON
<a href="https://twitter.com/share" class="twitter-share-button" data-url="$like_link" data-text="$like_title" data-lang="ja" data-count="none">ツイート</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
TWITTER_BUTTON;
//$twitter = '';
return "\n" . $google_plus . "\n" . $twitter . "\n" . $facebook_like . "\n" . '<!-- facebook_like: ' . $like_link . ' // -->';
}
add_shortcode('base_like', 'get_base_like');
add_shortcode('facebook_like', 'get_base_like');
/*
* OpenGraphProtocol デフォルト
*
* Usage:
*
*/
function ogp_single_base_content(){
$ogp_meta = "";
global $wp_query;
$og_site = get_bloginfo('name');
$permalink = get_permalink();
$appdata = str_replace(get_bloginfo("siteurl"), "", $permalink);
$og_url = $permalink . '?app_data=' . urlencode(base64_encode( $appdata ));
$og_appId = APP_ID;
$text_excerpt = strip_tags(htmlspecialchars_decode(get_the_excerpt()));
$text_content = $wp_query->{"queried_object"}->{"post_content"};
//$default_img = get_bloginfo("template_url") . "/screenshot.png";
$default_img = null;
$all_images = (preg_match_all('~img.+?src="([^"]+?)"~', $text_content, $matches)) ? array_unique($matches[1]) : array($default_img);
$og_title = get_the_title();
$og_content = $text_excerpt;
$refresh = FB_URL . "&app_data=" . urlencode(base64_encode( get_permalink() ));
$maxwidth = 0;
foreach ( $all_images as $image ) :
$buf_image = @getimagesize($image);
if ( $buf_image[0] > $maxwidth ){
$maxwidth = $buf_image[0];
$og_image = $image;
}
endforeach;
if ( isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && ('https' === $_SERVER['HTTP_X_FORWARDED_PROTO']) ){
$og_url = str_replace( "http:", "https:", $og_url );
}
$og_image_meta = "";
if ( isset($og_image) ){
$og_image_meta = '<meta property="og:image" content="'.$og_image.'" />';
}
$ogp_meta = <<<META_OGP
<meta property="og:title" content="$og_title" />
<meta property="og:type" content="article" />
<meta property="og:url" content="$og_url" />
$og_image_meta
<meta property="og:site_name" content="$og_site" />
<meta property="fb:app_id" content="$og_appId" />
<meta property="og:description" content="$og_content">
<meta property="og:locale" content="ja_JP" />
<meta itemprop="name" content="$og_title">
<meta itemprop="description" content="$og_content">
<meta itemprop="image" content="$og_image">
META_OGP;
return $ogp_meta;
}
add_shortcode('ogp_single_content', 'ogp_single_base_content');
/*
* WallPost用
*
* @prams og_image 画像 (無くてもよい)
* @prams og_url いいね用 URL
* @prams title タイトル
* @prams message メッセージ
*
*/
function wall_post( $og_image, $og_url, $og_title, $message ){
$fanpage = PAGE_ID;
$page_token = ACCESS_TOKEN;
if ( $page_token !== "" ):
$ch = curl_init();
$params = 'access_token=' . urlencode($page_token);
if ( !empty($og_image) )
$params .= '&picture=' . urlencode($og_image);
$params .= '&link=' . urlencode($og_url);
$params .= '&name=' . urlencode($og_title);
$params .= '&message=' . $message;
curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/'.$fanpage.'/feed');
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$resp = curl_exec($ch);
curl_close($ch);
endif;
}
$wppostfix = new WpPostFix();
// 記事が保存されたときに起動する
add_action('save_post', array($wppostfix, 'postfix'), 99);
//add_action('edit_post', array($wppostfix, 'postfix'), 99);
//add_action('publish_post', array($wppostfix, 'postfix'), 99);
class WpPostFix {
function postfix($postID) {
// ウォール投稿多重チェック
$wall_posted = get_option( 'wall_posted' );
if ( empty($wall_posted) ){
// 未投稿
add_option( 'wall_posted', $postID, '', 'yes' );
} else {
if ( $wall_posted < $postID ){
// 投稿許可
} else {
// 投稿済みの為 ここで終了
return $postID;
}
}
global $wpdb;
list($result) = $wpdb->get_results("SELECT post_status,post_title,post_type,post_content FROM {$wpdb->posts} WHERE ID = '{$postID}' LIMIT 1");
$post_status = $result->post_status;
$content = $result->post_content;
$post_type = $result->post_type;
$og_title = $result->post_title;
$message = br2nl( strip_tags(htmlspecialchars_decode( $content ), '<br>') );
// 誤動作防止
if ( get_bloginfo("siteurl") !== ENABLE_SITE ) {
return $postID;
}
$single_page_url = '/single/' . $post_type . '/' . $postID;
$og_url = get_bloginfo("siteurl") . $single_page_url . '?app_data=' . urlencode(base64_encode($single_page_url));
//$og_url = htmlspecialchars_decode(get_post_meta($postID ,'syndication_permalink',true));
// 画像 content 内
// デフォルト画像が必要な時
$default_img = get_bloginfo("template_url") . "/screenshot.png";
// $default_img = null;
$all_images = (preg_match_all('~img.+?src="([^"]+?)"~', $content, $matches)) ? array_unique($matches[1]) : array($default_img);
$maxwidth = 0;
foreach ( $all_images as $image ) :
$buf_image = @getimagesize($image);
if ( $buf_image[0] > $maxwidth ){
$maxwidth = $buf_image[0];
$og_image = $image;
}
endforeach;
if ( empty($og_image) ) {
$og_image = $default_img;
}
// 画像 ここまで
// ウォール投稿を許可するカスタムポストタイプ
$enable_type = array( 'blog' );
if ( in_array( $post_type , $enable_type ) ):
/*
* 動作チェック用
* // コンテンツ書き換え
*/
// $content = $this->blogcontent($post_status, $content);
// * // DB をなおした内容でアップデートする
// $wpdb->query("UPDATE {$wpdb->posts} SET post_content = '{$content}' WHERE ID = '{$postID}'");
// */
// 公開の投稿をウォールへポスト
if ( $post_status === 'publish' ){
// ウォールへポスト
wall_post( $og_image, $og_url, $og_title, $message );
update_option( 'wall_posted', $postID );
}
endif;
// 次の人のために post_id 戻しておく
return $postID;
}
function blogcontent($post_type, $content) {
// 書き換えたい内容を記載
$before = 'hogehoge';
$after = 'mogemoge';
$after = $post_type;
$content = preg_replace("/$before/i", $after, $content);
// 戻す
return $content;
}
}
function br2nl($string){
//改行コードのリスト
$aBreakTags = array(
'/<br>/',
'/<br \/>/',
'/<BR>/',
'/<br>/',
'/<BR>/',
'/<br \/>/',
'/<BR \/>/'
);
return preg_replace($aBreakTags ,"\n" , $string );
}
function facebook_likeCount($str = null) {
if($str) $url = $str;
else $url = ((!empty($_SERVER['HTTPS']))? "https://" : "http://").$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
$json = file_get_contents('http://graph.facebook.com/' . $url ,true);
$data = json_decode($json, true);
return ($data['shares'])? $data['shares'] : 0;
}
?>
| 018erri-rose | lib/social.php | PHP | oos | 9,393 |
<?php
/**
* The custom background script.
*
* @package WordPress
* @subpackage Administration
*/
/**
* The custom background class.
*
* @since 3.0.0
* @package WordPress
* @subpackage Administration
*/
class Custom_Background {
/**
* Callback for administration header.
*
* @var callback
* @since 3.0.0
* @access private
*/
var $admin_header_callback;
/**
* Callback for header div.
*
* @var callback
* @since 3.0.0
* @access private
*/
var $admin_image_div_callback;
/**
* Holds the page menu hook.
*
* @var string
* @since 3.0.0
* @access private
*/
var $page = '';
/**
* Constructor - Register administration header callback.
*
* @since 3.0.0
* @param callback $admin_header_callback
* @param callback $admin_image_div_callback Optional custom image div output callback.
* @return Custom_Background
*/
function __construct($admin_header_callback = '', $admin_image_div_callback = '') {
$this->admin_header_callback = $admin_header_callback;
$this->admin_image_div_callback = $admin_image_div_callback;
}
/**
* Set up the hooks for the Custom Background admin page.
*
* @since 3.0.0
*/
function init() {
if ( ! current_user_can('edit_theme_options') )
return;
$this->page = $page = add_theme_page(__('Background'), __('Background'), 'edit_theme_options', 'custom-background', array(&$this, 'admin_page'));
add_action("load-$page", array(&$this, 'admin_load'));
add_action("load-$page", array(&$this, 'take_action'), 49);
add_action("load-$page", array(&$this, 'handle_upload'), 49);
if ( $this->admin_header_callback )
add_action("admin_head-$page", $this->admin_header_callback, 51);
}
/**
* Set up the enqueue for the CSS & JavaScript files.
*
* @since 3.0.0
*/
function admin_load() {
get_current_screen()->add_help_tab( array(
'id' => 'overview',
'title' => __('Overview'),
'content' =>
'<p>' . __( 'You can customize the look of your site without touching any of your theme’s code by using a custom background. Your background can be an image or a color.' ) . '</p>' .
'<p>' . __( 'To use a background image, simply upload it, then choose your display options below. You can display a single instance of your image, or tile it to fill the screen. You can have your background fixed in place, so your site content moves on top of it, or you can have it scroll with your site.' ) . '</p>' .
'<p>' . __( 'You can also choose a background color. If you know the hexadecimal code for the color you want, enter it in the Background Color field. If not, click on the Select a Color link, and a color picker will allow you to choose the exact shade you want.' ) . '</p>' .
'<p>' . __( 'Don’t forget to click on the Save Changes button when you are finished.' ) . '</p>'
) );
get_current_screen()->set_help_sidebar(
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
'<p>' . __( '<a href="http://codex.wordpress.org/Appearance_Background_Screen" target="_blank">Documentation on Custom Background</a>' ) . '</p>' .
'<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>'
);
wp_enqueue_script('custom-background');
wp_enqueue_style('farbtastic');
}
/**
* Execute custom background modification.
*
* @since 3.0.0
*/
function take_action() {
if ( empty($_POST) )
return;
if ( isset($_POST['reset-background']) ) {
check_admin_referer('custom-background-reset', '_wpnonce-custom-background-reset');
remove_theme_mod('background_image');
remove_theme_mod('background_image_thumb');
$this->updated = true;
return;
}
if ( isset($_POST['remove-background']) ) {
// @TODO: Uploaded files are not removed here.
check_admin_referer('custom-background-remove', '_wpnonce-custom-background-remove');
set_theme_mod('background_image', '');
set_theme_mod('background_image_thumb', '');
$this->updated = true;
return;
}
if ( isset($_POST['background-repeat']) ) {
check_admin_referer('custom-background');
if ( in_array($_POST['background-repeat'], array('repeat', 'no-repeat', 'repeat-x', 'repeat-y')) )
$repeat = $_POST['background-repeat'];
else
$repeat = 'repeat';
set_theme_mod('background_repeat', $repeat);
}
if ( isset($_POST['background-position-x']) ) {
check_admin_referer('custom-background');
if ( in_array($_POST['background-position-x'], array('center', 'right', 'left')) )
$position = $_POST['background-position-x'];
else
$position = 'left';
set_theme_mod('background_position_x', $position);
}
if ( isset($_POST['background-attachment']) ) {
check_admin_referer('custom-background');
if ( in_array($_POST['background-attachment'], array('fixed', 'scroll')) )
$attachment = $_POST['background-attachment'];
else
$attachment = 'fixed';
set_theme_mod('background_attachment', $attachment);
}
if ( isset($_POST['background-color']) ) {
check_admin_referer('custom-background');
$color = preg_replace('/[^0-9a-fA-F]/', '', $_POST['background-color']);
if ( strlen($color) == 6 || strlen($color) == 3 )
set_theme_mod('background_color', $color);
else
set_theme_mod('background_color', '');
}
$this->updated = true;
}
/**
* Display the custom background page.
*
* @since 3.0.0
*/
function admin_page() {
?>
<div class="wrap" id="custom-background">
<?php screen_icon(); ?>
<h2><?php _e('Custom Background'); ?></h2>
<?php if ( !empty($this->updated) ) { ?>
<div id="message" class="updated">
<p><?php printf( __( 'Background updated. <a href="%s">Visit your site</a> to see how it looks.' ), home_url( '/' ) ); ?></p>
</div>
<?php }
if ( $this->admin_image_div_callback ) {
call_user_func($this->admin_image_div_callback);
} else {
?>
<h3><?php _e('Background Image'); ?></h3>
<table class="form-table">
<tbody>
<tr valign="top">
<th scope="row"><?php _e('Preview'); ?></th>
<td>
<?php
$background_styles = '';
if ( $bgcolor = get_background_color() )
$background_styles .= 'background-color: #' . $bgcolor . ';';
if ( get_background_image() ) {
// background-image URL must be single quote, see below
$background_styles .= ' background-image: url(\'' . get_theme_mod('background_image_thumb', '') . '\');'
. ' background-repeat: ' . get_theme_mod('background_repeat', 'repeat') . ';'
. ' background-position: top ' . get_theme_mod('background_position_x', 'left');
}
?>
<div id="custom-background-image" style="<?php echo $background_styles; ?>"><?php // must be double quote, see above ?>
<?php if ( get_background_image() ) { ?>
<img class="custom-background-image" src="<?php echo get_theme_mod('background_image_thumb', ''); ?>" style="visibility:hidden;" alt="" /><br />
<img class="custom-background-image" src="<?php echo get_theme_mod('background_image_thumb', ''); ?>" style="visibility:hidden;" alt="" />
<?php } ?>
</div>
<?php } ?>
</td>
</tr>
<?php if ( get_background_image() ) : ?>
<tr valign="top">
<th scope="row"><?php _e('Remove Image'); ?></th>
<td>
<form method="post" action="">
<?php wp_nonce_field('custom-background-remove', '_wpnonce-custom-background-remove'); ?>
<?php submit_button( __( 'Remove Background Image' ), 'button', 'remove-background', false ); ?><br/>
<?php _e('This will remove the background image. You will not be able to restore any customizations.') ?>
</form>
</td>
</tr>
<?php endif; ?>
<?php if ( defined( 'BACKGROUND_IMAGE' ) ) : // Show only if a default background image exists ?>
<tr valign="top">
<th scope="row"><?php _e('Restore Original Image'); ?></th>
<td>
<form method="post" action="">
<?php wp_nonce_field('custom-background-reset', '_wpnonce-custom-background-reset'); ?>
<?php submit_button( __( 'Restore Original Image' ), 'button', 'reset-background', false ); ?><br/>
<?php _e('This will restore the original background image. You will not be able to restore any customizations.') ?>
</form>
</td>
</tr>
<?php endif; ?>
<tr valign="top">
<th scope="row"><?php _e('Upload Image'); ?></th>
<td><form enctype="multipart/form-data" id="upload-form" method="post" action="">
<label for="upload"><?php _e('Choose an image from your computer:'); ?></label><br /><input type="file" id="upload" name="import" />
<input type="hidden" name="action" value="save" />
<?php wp_nonce_field('custom-background-upload', '_wpnonce-custom-background-upload') ?>
<?php submit_button( __( 'Upload' ), 'button', 'submit', false ); ?>
</form>
</td>
</tr>
</tbody>
</table>
<h3><?php _e('Display Options') ?></h3>
<form method="post" action="">
<table class="form-table">
<tbody>
<?php if ( get_background_image() ) : ?>
<tr valign="top">
<th scope="row"><?php _e( 'Position' ); ?></th>
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Background Position' ); ?></span></legend>
<label>
<input name="background-position-x" type="radio" value="left"<?php checked('left', get_theme_mod('background_position_x', 'left')); ?> />
<?php _e('Left') ?>
</label>
<label>
<input name="background-position-x" type="radio" value="center"<?php checked('center', get_theme_mod('background_position_x', 'left')); ?> />
<?php _e('Center') ?>
</label>
<label>
<input name="background-position-x" type="radio" value="right"<?php checked('right', get_theme_mod('background_position_x', 'left')); ?> />
<?php _e('Right') ?>
</label>
</fieldset></td>
</tr>
<tr valign="top">
<th scope="row"><?php _e( 'Repeat' ); ?></th>
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Background Repeat' ); ?></span></legend>
<label><input type="radio" name="background-repeat" value="no-repeat"<?php checked('no-repeat', get_theme_mod('background_repeat', 'repeat')); ?> /> <?php _e('No Repeat'); ?></label>
<label><input type="radio" name="background-repeat" value="repeat"<?php checked('repeat', get_theme_mod('background_repeat', 'repeat')); ?> /> <?php _e('Tile'); ?></label>
<label><input type="radio" name="background-repeat" value="repeat-x"<?php checked('repeat-x', get_theme_mod('background_repeat', 'repeat')); ?> /> <?php _e('Tile Horizontally'); ?></label>
<label><input type="radio" name="background-repeat" value="repeat-y"<?php checked('repeat-y', get_theme_mod('background_repeat', 'repeat')); ?> /> <?php _e('Tile Vertically'); ?></label>
</fieldset></td>
</tr>
<tr valign="top">
<th scope="row"><?php _e( 'Attachment' ); ?></th>
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Background Attachment' ); ?></span></legend>
<label>
<input name="background-attachment" type="radio" value="scroll" <?php checked('scroll', get_theme_mod('background_attachment', 'scroll')); ?> />
<?php _e('Scroll') ?>
</label>
<label>
<input name="background-attachment" type="radio" value="fixed" <?php checked('fixed', get_theme_mod('background_attachment', 'scroll')); ?> />
<?php _e('Fixed') ?>
</label>
</fieldset></td>
</tr>
<?php endif; // get_background_image() ?>
<tr valign="top">
<th scope="row"><?php _e( 'Background Color' ); ?></th>
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Background Color' ); ?></span></legend>
<?php $show_clear = get_background_color() ? '' : ' style="display:none"'; ?>
<input type="text" name="background-color" id="background-color" value="#<?php echo esc_attr(get_background_color()) ?>" />
<a class="hide-if-no-js" href="#" id="pickcolor"><?php _e('Select a Color'); ?></a> <span<?php echo $show_clear; ?> class="hide-if-no-js" id="clearcolor"> (<a href="#"><?php _e( 'Clear' ); ?></a>)</span>
<div id="colorPickerDiv" style="z-index: 100; background:#eee; border:1px solid #ccc; position:absolute; display:none;"></div>
</fieldset></td>
</tr>
</tbody>
</table>
<?php wp_nonce_field('custom-background'); ?>
<?php submit_button( null, 'primary', 'save-background-options' ); ?>
</form>
</div>
<?php
}
/**
* Handle an Image upload for the background image.
*
* @since 3.0.0
*/
function handle_upload() {
if ( empty($_FILES) )
return;
check_admin_referer('custom-background-upload', '_wpnonce-custom-background-upload');
$overrides = array('test_form' => false);
$file = wp_handle_upload($_FILES['import'], $overrides);
if ( isset($file['error']) )
wp_die( $file['error'] );
$url = $file['url'];
$type = $file['type'];
$file = $file['file'];
$filename = basename($file);
// Construct the object array
$object = array(
'post_title' => $filename,
'post_content' => $url,
'post_mime_type' => $type,
'guid' => $url,
'context' => 'custom-background'
);
// Save the data
$id = wp_insert_attachment($object, $file);
// Add the meta-data
wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) );
update_post_meta( $id, '_wp_attachment_is_custom_background', get_option('stylesheet' ) );
set_theme_mod('background_image', esc_url($url));
$thumbnail = wp_get_attachment_image_src( $id, 'thumbnail' );
set_theme_mod('background_image_thumb', esc_url( $thumbnail[0] ) );
do_action('wp_create_file_in_uploads', $file, $id); // For replication
$this->updated = true;
}
}
?>
| 018erri-rose | lib/custom-background.php | PHP | oos | 13,138 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
//カスタムメニュー
register_nav_menus(array(
'navbar' => 'ナビゲーションバー',
'sidebar' => 'サイドバー'
));
function facebook_js(){
print <<<FACEBOOK_HEADER
<script type="text/javascript" src="https://connect.facebook.net/en_US/all.js"></script>
<script type="text/javascript">
FB.Canvas.setSize({ width: 520, height: 800 });
</script>
FACEBOOK_HEADER;
}
//add_action( 'wp_head', 'facebook_js' );
add_action('admin_menu', 'mastercontrol_plugin_menu');
function mastercontrol_plugin_menu(){
// Add to admin_menu function
$page = add_submenu_page( 'edit.php?post_type=theme', __('Theme Page Options'), __('Theme Menu Options'), 'edit_themes', 'theme_options', theme_options);
}
function theme_options() {
// Render our theme options page here ...
}
function get_menu_order(){
global $wpdb;
$wp_posts = $wpdb->posts;
$wp_term_relationships = $wpdb->term_relationships;
$wp_term_taxonomy = $wpdb->term_taxonomy;
$navi_count_sql = <<<MENU_SQL
SELECT
ID,post_title, menu_order
FROM
(
SELECT ID,post_title,menu_order as page_order
FROM $wp_posts AS wpp
WHERE
wpp.post_type = 'page'
AND
wpp.post_status = 'publish'
ORDER BY post_date DESC
) AS sorts
INNER JOIN
(
SELECT
meta_value,menu_order
FROM (
SELECT ID,menu_order
FROM $wp_posts AS wp_post
WHERE
ID IN (
SELECT tr.object_id
FROM $wp_term_relationships AS tr
INNER JOIN $wp_term_taxonomy AS tt
ON tr.term_taxonomy_id = tt.term_taxonomy_id
WHERE tt.taxonomy IN ('nav_menu') AND tt.term_id IN ('4') ORDER BY tr.object_id ASC
)
AND
wp_post.post_type = 'nav_menu_item'
AND
(wp_post.post_status = 'publish')
ORDER BY menu_order ASC
) AS menu_sort
INNER JOIN
(
SELECT post_id, meta_key, meta_value FROM wp_2_postmeta
WHERE
meta_key LIKE '%_object_id' AND
post_id IN (
SELECT tr.object_id
FROM $wp_term_relationships AS tr
INNER JOIN $wp_term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id
WHERE tt.taxonomy IN ('nav_menu') AND tt.term_id IN ('4') ORDER BY tr.object_id ASC
)
) metas
ON menu_sort.ID = metas.post_id
) AS titles
ON sorts.ID = titles.meta_value
ORDER BY titles.menu_order ASC
MENU_SQL;
$myrows = $wpdb->get_results( $navi_count_sql );
$module_array = array();
foreach ( $myrows as $module ){
array_push( $module_array, $module->post_title );
}
return $module_array;
}
function get_pulish_pages(){
global $wpdb;
$wp_posts = $wpdb->posts;
$page_count_sql = <<<MENU_SQL
SELECT post_title
FROM $wp_posts
WHERE
post_type = 'page'
AND
post_status = 'publish'
ORDER BY menu_order,post_title ASC
MENU_SQL;
$myrows = $wpdb->get_results( $page_count_sql );
$page_array = array();
foreach ( $myrows as $module ){
array_push( $page_array, $module->post_title );
}
return $page_array;
}
function header_gnav_script(){
global $wpdb;
$wp_terms = $wpdb->terms;
$wp_term_taxonomy = $wpdb->term_taxonomy;
// naviの個数
$navi_count_sql ="SELECT tt.count FROM $wp_terms AS t INNER JOIN $wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'nav_menu' AND t.slug ='gnav' LIMIT 1;";
$gnavi_num = sprintf("%02d", $wpdb->get_var($navi_count_sql));
if ( $gnavi_num > 12 ) $gnavi_num = 12;
$template_url = get_stylesheet_directory_uri();
$local_time = time();
define( CUSTOM_TYPE , get_template_type() );
print <<<HEADER_GNAV
<link rel="stylesheet" href="$template_url/common/gnavi$gnavi_num.css?$local_time" type="text/css" />
HEADER_GNAV;
}
add_action( 'wp_head', 'header_gnav_script' );
function get_navi(){
$nav_opt = array(
'menu' => 'gnav', // menu '' カスタムメニューのIDを指定
'container' => 'div', // container 'div' ナビゲーションメニューを囲むタグ名を指定
'container_class' => 'floatClear', // container_class '' ナビゲーションメニューを囲むタグのクラス名を指定
'container_id' => 'gnav', // container_id '' ナビゲーションメニューを囲むタグのIDを指定
'menu_class' => 'navi', // menu_class 'menu' ナビゲーションメニューを囲むタグのクラス名を指定
'echo' => false, // echo true ナビゲーションメニューを表示する場合はtrue、文字列として取得する場合はfalseを指定
'depth' => 0, // depth 0 階層数を指定(0はすべてを表示、1ならばメニューバーのみ)。
'walker' => new MasterControl_Global_Navi(), // walker '' コールバック関数名を指定
'theme_location' => 'navbar', // theme_location '' テーマ内のロケーションIDを指定。
);
return wp_nav_menu($nav_opt);
}
function print_navi(){
$nav_opt = array(
'menu' => 'gnav', // menu '' カスタムメニューのIDを指定
'container' => 'div', // container 'div' ナビゲーションメニューを囲むタグ名を指定
'container_class' => 'floatClear', // container_class '' ナビゲーションメニューを囲むタグのクラス名を指定
'container_id' => 'gnav', // container_id '' ナビゲーションメニューを囲むタグのIDを指定
'menu_class' => 'navi', // menu_class 'menu' ナビゲーションメニューを囲むタグのクラス名を指定
'echo' => false, // echo true ナビゲーションメニューを表示する場合はtrue、文字列として取得する場合はfalseを指定
'depth' => 0, // depth 0 階層数を指定(0はすべてを表示、1ならばメニューバーのみ)。
'walker' => new MasterControl_Global_Navi(), // walker '' コールバック関数名を指定
'theme_location' => 'navbar', // theme_location '' テーマ内のロケーションIDを指定。
);
print wp_nav_menu($nav_opt);
}
add_shortcode('gnavi', 'get_navi');
/**
* Navigation Menu template functions
*
* @package WordPress
* @subpackage Nav_Menus
* @since 3.0.0
*/
/**
* Create HTML list of nav menu items.
*
* @package WordPress
* @since 3.0.0
* @uses Walker
*/
class MasterControl_Global_Navi extends Walker_Nav_Menu {
/**
* @see Walker::start_el()
* @since 3.0.0
*
* @param string $output Passed by reference. Used to append additional content.
* @param object $item Menu item data object.
* @param int $depth Depth of menu item. Used for padding.
* @param int $current_page Menu item ID.
* @param object $args
*/
function start_el(&$output, $item, $depth, $args) {
global $gnavi_Class;
global $wp_query;
$indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
$LF = "\n";
$class_names = $value = '';
$gnavi_Class = 'menu_' . strtolower( $item->title );
if ( $item->classes[0] != $gnavi_Class ){
$gnavi_Class .= ' ' . $item->classes[0];
}
$class_names = ' class="' . esc_attr( 'menu_' . $item->title ) . '" ';
$id = ' id="' . esc_attr( 'gnav_' . $item->title ) . '"';
$output .= $LF . $indent . '<li' . $id . $value . $class_names .'>';
$attributes = ' title="' . esc_attr( $item->title ) . '"';
$attributes .= ! empty( $item->target ) ? ' target="' . esc_attr( $item->target ) .'"' : '';
$attributes .= ! empty( $item->xfn ) ? ' rel="' . esc_attr( $item->xfn ) .'"' : '';
$attributes .= strtolower(CUSTOM_TYPE) === strtolower($item->title) ? ' class="current"' : '';
if ( preg_match("/favorites/", $item->url)) {
$url = parse_url($item->url);
$stockstyle = $url['host'] === "dev.mastercontrol.jp" ? "stage.stockstyle.net" : "stockstyle.net";
$attributes .= 'href="//' . $stockstyle . '/products/facebook.php?osusume_url=' . $url['path'] . '"';
} else {
$lang_url = ( isset($_GET["lang"]) ) ? '?lang=' . $_GET["lang"] : '';
$attributes .= ! empty( $item->url ) ? ' href="' . esc_attr( $item->url ) . $lang_url . '"' : '';
}
$item_output = $args->before;
$item_output .= '<a'. str_replace( "http:", "", $attributes ) .'>';
$item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
$item_output .= '</a>';
$item_output .= $args->after;
$output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
}
}
?>
| 018erri-rose | lib/func_gnavi.php | PHP | oos | 9,014 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カバー画像
register_post_type(
'coverimg',
array(
'label' => __('Cover image', 'aspthemes'),
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/profile.png',
'supports' => array(
'title',
'custom-fields',
'page-attributes'
)
)
);
function manage_coverimg_columns ($columns) {
$columns['thumbnail'] = __('Thumbnail');
$columns['menu_order'] = __('Order');
unset( $columns['date'] );
return $columns;
}
function add_coverimg_column ($column, $post_id) {
global $post;
if ( $post->post_type !== 'coverimg' ) return;
if ($column === 'thumbnail') {
list($coverimg_image) = wp_get_attachment_image_src(get_post_meta($post_id, 'center_image' , true), 'thumbnail');
echo '<img src="'.$coverimg_image.'">';
} else if ($column === 'menu_order') {
global $post;
echo $post->menu_order;
}
}
add_filter('manage_edit-coverimg_columns', 'manage_coverimg_columns');
add_action('manage_posts_custom_column', 'add_coverimg_column', 10, 2);
function get_content_header(){
$default_center_image = get_stylesheet_directory_uri() . '/images/front/img_h1.png';
$center_image = $default_center_image;
if ( is_admin() ){
if ( isset($_GET['post']) ){
$conf_cover = wp_get_single_post( $_GET['post'], 'OBJECT' );
} else {
return;
}
} else {
list($conf_cover) = get_posts("post_type=coverimg&orderby=menu_order&order=ASC");
}
$background_id = "header";
$center_html = "";
if( isset($conf_cover) ) {
$get_image = get_custom_image($conf_cover->ID, 'center_image');
if ( isset($get_image) && strlen($get_image) > 0 ){
$center_image = $get_image . '?' . $conf_cover->ID . strlen($center_image);
$center_html = "<h1><a href='[bloginfo_site_url]'><img src='$center_image' alt='[site_name]' title='[site_name]' /></a></h1>";
} else {
$center_html = "<h1><a href='[bloginfo_site_url]'><img src='$default_center_image' alt='[site_name]' title='[site_name]' /></a></h1>";
}
// 背景画像を変更するとき
// $background = get_custom_image($conf_cover->ID, 'background_image');
if ( isset($background) && strlen($background) > 0 ){
$background_id = "custom_header";
$center_html = "<a href='[bloginfo_site_url]'><img src='$background' alt='[site_name]' title='[site_name]' /></a>";
}
} else {
$center_html = "<h1><a href='[bloginfo_site_url]'><img src='$default_center_image' alt='[site_name]' title='[site_name]' /></a></h1>";
}
$content_header = <<<HEADER_CONTENT
<div id="$background_id">
$center_html
</div>
HEADER_CONTENT;
return do_shortcode($content_header);
}
add_shortcode('content_header' , 'get_content_header');
/*管理画面が開いたときに実行*/
add_action('admin_menu', 'add_cover_image');
/*更新ボタンが押されたときに実行*/
add_action('save_post', 'save_cover_image_postdata');
/* カスタムフィールドを投稿画面に追加 */
function add_cover_image() {
//ページ編集画面にカスタムセクションを追加
add_meta_box('cover_preview', __('Preview','aspthemes'), 'preview_html', 'coverimg', 'normal', 'high');
add_meta_box('cover_image', __('Cover image','aspthemes'), 'cover_image_html', 'coverimg', 'normal', 'high');
}
function get_custom_header_image(){
list($conf_cover) = get_posts("post_type=coverimg&orderby=menu_order&order=ASC");
$background = null;
if( isset($conf_cover) ):
/*
$bg_image = get_custom_image($conf_cover->ID, 'background_image');
if ( isset($bg_image) ){
$background = $bg_image;
define( CUSTOM_BACKGROUND, true );
}
*/
$center_image = get_custom_image($conf_cover->ID, 'center_image');
if ( isset($center_image) ){
define( CUSTOM_CENTER_IMAGE, $center_image );
}
endif;
return $background;
}
function preview_html(){
$background_image = get_custom_image( $_GET['post'], 'background_image' );
$attachfile = get_custom_image( $_GET['post'], 'center_image' );
echo do_shortcode('[content_header]');
}
/* 投稿画面に表示するフォームのHTMLソース */
function cover_image_html() {
//既に値がある場合は値をフォームに反映して出力
$post_id = $_GET['post'];
$background_image = get_custom_image( $_GET['post'], 'background_image' );
/*
if ( $background_image ) {
echo '<div id="uploadedImageForm">
<label for="upload_image">背景画像</label>
<input type="checkbox" name="delete_background" value="on">削除
</div>
<div id="uploadedImageView">
<img src="' . $attachfile . '">
</div>
';
} else {
echo '<div id="uploadedImageForm">
<label for="upload_image">背景画像</label>
<input id="background_image" type="file" size="50" name="background_image" value="" />
</div>
<div id="uploadedImageView">
<img src="' . get_stylesheet_directory_uri() . '/images/front/bg_header.jpg">
</div>
';
}
*/
$attachfile = get_custom_image( $_GET['post'], 'center_image' );
$label = __('Center') . __('Insert Image');
$delete = __('Delete');
if ( $attachfile ) {
echo '<div id="uploadedImageForm">
<label for="upload_image">'.$label.'</label>
<input type="checkbox" name="delete_center_image" value="on">'.$delete.'
</div>
<div id="uploadedImageView">
<img src="' . $attachfile . '">
</div>
';
} else {
echo '<div id="uploadedImageForm">
<label for="upload_image">'.$label.'</label>
<input id="center_image" type="file" size="50" name="center_image" value="" />
</div>
<div id="uploadedImageView">
<img src="' . get_stylesheet_directory_uri() . '/images/front/img_h1.png">
</div>
';
}
}
/* 設定したカスタムフィールドの値をDBに書き込む記述 */
function save_cover_image_postdata( $post_id ) {
if ( $_REQUEST['post_type'] !== 'coverimg' ) return $post_id;
/* 背景画像
$del_flag = ( isset( $_POST['delete_background'] ) && $_POST['delete_background'] === 'on' ) ? true : false;
$background_id = media_handle_upload('background_image', '');
if ( "" === get_post_meta( $post_id, 'background_image' )) {
// 保存されていなかった場合、新しく保存
add_post_meta( $post_id, 'background_image', $background_id, true ) ;
} else if ( is_numeric($background_id) && $background_id != get_post_meta( $post_id, 'background_image' )) {
// 現在のデータが不一致の場合、更新
update_post_meta( $post_id, 'background_image', $background_id ) ;
} else if ( $del_flag ) {
// 現在のデータが無い場合、キーの値を削除
$value = get_post_meta($post_id, 'background_image');
wp_delete_attachment($value);
delete_post_meta( $post_id, 'background_image' ) ;
}
*/
$del_center_flag = isset($_POST['delete_center_image']) && $_POST['delete_center_image'] === "on" ? true : false;
$center_id = media_handle_upload('center_image', $post_id);
if ( "" === get_post_meta( $post_id, 'center_image' )) {
/* 保存されていなかった場合、新しく保存 */
add_post_meta( $post_id, 'center_image', $center_id, true ) ;
} else if ( is_numeric($center_id) && $center_id != get_post_meta( $post_id, 'center_image' )) {
/* 現在のデータが不一致の場合、更新 */
update_post_meta( $post_id, 'center_image', $center_id ) ;
} else if ( $del_center_flag ) {
/* 現在のデータが無い場合、キーの値を削除 */
$value = get_post_meta($post_id, 'center_image');
wp_delete_attachment($value);
delete_post_meta( $post_id, 'center_image' ) ;
}
}
/* バイパススクリプト+メタボックスのスタイリングCSS読み込み */
//add_action('admin_print_scripts', 'add_my_js');
add_action('admin_head' , 'header_css');
function add_my_js() {
wp_enqueue_script('admin_print_styles', get_stylesheet_directory_uri() . '/js/my_admin_scripts.js');
}
function header_css() {
echo "\n" . '<link type="text/css" rel="stylesheet" href="' . get_stylesheet_directory_uri() . '/css/header.css" />' . "\n";
}
| 018erri-rose | lib/coverimg/func.php | PHP | oos | 8,478 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト Info 情報
register_post_type(
'information',
array(
'labels' => array(
'name' => __('Infomation','aspthemes'),
'add_new_item' => str_replace(__('New Post'), __('Infomation','aspthemes'), __('Add New Post')),
),
'hierarchical' => false,
'public' => true,
'query_var' => false,
'has_archive' => 'information-archive',
'menu_icon' => '/wp-content/images/tool/event.png',
'supports' => array(
'title',
'editor',
'custom-fields'
)
)
);
function manage_information_columns ($columns) {
$columns['infostart'] = __('infostart');
$columns['opendate'] = __('opendate');
unset( $columns['date'] );
return $columns;
}
function add_information_column ($column, $post_id) {
global $post;
if ( $post->post_type !== 'information' ) return;
if ($column == 'infostart') {
echo nl2br( get_post_meta($post_id , 'infostart', true) );
} else if ($column == 'opendate') {
echo nl2br( get_post_meta($post_id , 'opendate', true) );
}
}
add_filter('manage_edit-information_columns', 'manage_information_columns');
add_action('manage_posts_custom_column', 'add_information_column', 10, 2);
function get_information_meta(){
$c = get_post_custom_values('infostart' , get_the_ID()); $info["startdate"] = $c[0];
$c = get_post_custom_values('infoend' , get_the_ID()); $info["enddate"] = $c[0];
$c = get_post_custom_values('opendate' , get_the_ID()); $info["opendate"] = $c[0];
$c = get_post_custom_values('closedate' , get_the_ID()); $info["closedate"] = $c[0];
if($info["enddate"] == "" || $info["enddate"] === $info["startdate"]){$info["datelabel"] = $info["startdate"];}
if($info["enddate"] != "" && $info["enddate"] != $info["startdate"]){$info["datelabel"] = $info["startdate"] . " - " . $info["enddate"];}
return $info;
}
function select_information_category(){
wp_reset_query();
query_posts('post_type=information');
$catList = array();
if(have_posts()){
while(have_posts()){
the_post();
$e = get_information_meta();
if( $e["opendate"] != ""){ if(strtotime( $e["opendate"] ) > time() ){ continue; }}
if( $e["closedate"] != ""){ if(strtotime( $e["closedate"] ) < time() ){ continue; }}
$cat = get_post_custom_values('category', get_the_ID());
$catList[$e["category"]] = "";
}
}
$catListKeys = array_keys($catList);
$selectbox_html = "<select name='cat' id='cat' class='postform' >";
$selectbox_html .= "<option value=''>カテゴリーを選択</option>";
foreach($catListKeys as $k=>$v){
if($_REQUEST["cat"] === $v){$selected = "selected";}else{$selected = "";}
$selectbox_html .= '<option class="level-0" value="' . $v . '" ' . $selected . '>' . $v . '</option>';
}
$selectbox_html .= "</select>";
$selectbox_html .= "<script type='text/javascript'>";
$selectbox_html .= "/* <![CDATA[ */";
$selectbox_html .= "var catdropdown = document.getElementById('cat');";
$selectbox_html .= " function onCatChange() {";
$selectbox_html .= " location.href = './?cat='+catdropdown.options[catdropdown.selectedIndex].value;";
$selectbox_html .= "}";
$selectbox_html .= "catdropdown.onchange = onCatChange;";
$selectbox_html .= "/* ]]> */";
$selectbox_html .= "</script>";
wp_reset_query();
return $selectbox_html;
}
add_shortcode('information_category', 'select_information_category');
function select_information_monthly(){
wp_reset_query();
query_posts('post_type=information');
$monthList = array();
if(have_posts()){
while(have_posts()){
the_post();
$e = get_information_meta();
if( $e["opendate"] != ""){ if(strtotime( $e["opendate"] ) > time() ){ echo '1'; continue; }}
if( $e["closedate"] != ""){ if(strtotime( $e["closedate"] ) < time() ){ echo '2'; continue; }}
$monthList[date("Y", strtotime($e["startdate"])) . "/" . date("n", strtotime($e["startdate"]))] = "";
}
}
$monthListKeys = array_keys($monthList);
$selectbox_html = "<select name='mon' id='mon' class='postform' >";
$selectbox_html .= "<option value=''>月を選択</option>";
foreach($monthListKeys as $k=>$v){
if(intval( $_REQUEST["mon"] ) === strtotime($v."/1")){
$selected = "selected";
}else{
$selected = "";
}
$selectbox_html .= '<option class="level-0" value="' . strtotime($v."/1") . '" ' . $selected . '>' . $v . '</option>';
}
$selectbox_html .= "</select>";
$selectbox_html .= "<script type='text/javascript'>";
$selectbox_html .= "/* <![CDATA[ */";
$selectbox_html .= "var mondropdown = document.getElementById('mon');";
$selectbox_html .= "function onMonChange() {";
$selectbox_html .= " location.href = './?mon='+mondropdown.options[mondropdown.selectedIndex].value;";
$selectbox_html .= "}";
$selectbox_html .= "mondropdown.onchange = onMonChange;";
$selectbox_html .= "/* ]]> */";
$selectbox_html .= "</script>";
wp_reset_query();
return $selectbox_html;
}
add_shortcode('information_monthly', 'select_information_monthly');
function get_information_the_title(){
return get_the_title();
}
add_shortcode('information_title', 'get_information_the_title');
function get_information_the_content(){
return get_the_content();
}
add_shortcode('information_content', 'get_information_the_content');
function get_information_date(){
return get_the_date('Y年m月d日');
}
add_shortcode('information_date', 'get_information_date');
function get_information_category(){
global $custom_post;
list($category) = get_post_custom_values('category' , get_the_ID());
return $category;
}
add_shortcode('information_category', 'get_information_category');
function get_page_information(){
if ( PAGE_TYPE === 'page' ) {
global $custom_post;
global $custom_query_posts;
$is_navi = constant( strtoupper(CUSTOM_TYPE) . '_NAVI');
$item_content = "";
wp_reset_query();
query_posts($custom_query_posts);
global $wp_query;
global $max_pages;
$max_pages = $wp_query->{"max_num_pages"};
if ( $is_navi )
$item_content .= do_shortcode('[pagenavi]');
if(have_posts()):
while(have_posts()): the_post();
$title = get_the_title();
$item_content .= do_shortcode( constant( strtoupper(CUSTOM_TYPE) . '_HTML_PAGE') );
endwhile;
endif;
wp_reset_query();
return $item_content;
}
return;
}
add_shortcode('information_page' , 'get_page_information');
function get_single_information(){
$item_content = "";
if ( PAGE_TYPE === 'single' ) {
global $custom_post;
$custom_post = wp_get_single_post( POST_ID, 'OBJECT' );
$item_content = do_shortcode(constant(strtoupper(CUSTOM_TYPE) . '_HTML_PAGE'));
}
return $item_content;
}
add_shortcode('information_single' , 'get_single_information');
function set_information_query(){
//echo $_GET["cat"] . "<BR>\n";
global $custom_query_posts;
$view_page = constant( strtoupper(CUSTOM_TYPE) . '_VIEW');
if ( empty($view_page) ){ $view_page = 10; }
$paged = get_query_var('paged');
$custom_query_posts = "";
if ( isset($_GET["cat"]) ){
$category = $_GET["cat"];
$custom_query_posts = array(
'post_type'=>'information',
'meta_query' => array(
array(
'key'=>'category',
'value'=>"$category",
),
array(
'key' => 'opendate',
'value' => date("Y-m-d"),
'compare'=> '<=',
'type' => 'DATE'
),
array(
'key' => 'closedate',
'value' => date("Y-m-d"),
'compare'=> '>=',
'type' => 'DATE'
),
'relation'=>'AND'
),
'paged'=>$paged,
'posts_per_page'=>$view_page,
'meta_key'=>'infostart',
'orderby'=>'meta_value',
'order'=>'ASC'
);
} elseif ( isset($_GET["mon"]) ){
$select_mon = $_GET["mon"];
$startDay = date("Y-m-d", $select_mon);
$lastDay = date("Y-m-d", mktime(0, 0, 0, date("m",$select_mon)+1, 0, date("Y",$select_mon)));
$custom_query_posts = array(
'meta_query' => array(
array(
'key' => 'infostart',
'value' => $startDay,
'compare'=> '>=',
'type' => 'DATE'
),
array(
'key' => 'infostart',
'value' => $lastDay,
'compare'=> '<=',
'type' => 'DATE'
),
array(
'key' => 'opendate',
'value' => date("Y-m-d"),
'compare'=> '<=',
'type' => 'DATE'
),
array(
'key' => 'closedate',
'value' => date("Y-m-d"),
'compare'=> '>=',
'type' => 'DATE'
),
'relation'=>'AND'
),
'meta_key' => 'infostart',
'orderby' => 'meta_value',
'post_type' => 'information',
'paged'=>$paged,
'posts_per_page' => $view_page,
'order' => 'DSC'
);
} else {
$custom_query_posts = array(
'meta_query' => array(
array(
'key' => 'opendate',
'value' => date("Y-m-d"),
'compare'=> '<=',
'type' => 'DATE'
),
array(
'key' => 'closedate',
'value' => date("Y-m-d"),
'compare'=> '>=',
'type' => 'DATE'
),
'relation'=>'AND'
),
'meta_key' => 'infostart',
'orderby' => 'meta_value',
'post_type' => 'information',
'paged'=>$paged,
'posts_per_page' => $view_page,
'order' => 'DSC'
);
}
}
function exec_information(){
get_import_design("information");
set_information_query();
return do_shortcode(constant(strtoupper(CUSTOM_TYPE) .'_HTML_FRAME'));
}
add_shortcode('run_information', 'exec_information');
?>
| 018erri-rose | lib/module/information/func.php | PHP | oos | 9,907 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト Info 情報
register_post_type(
'information',
array(
'label' => 'Infomation',
'hierarchical' => false,
'public' => true,
'show_ui' => false,
'query_var' => false,
'has_archive' => 'information-archive',
'menu_icon' => '/wp-content/images/tool/event.png',
'supports' => array(
'title',
'editor',
'custom-fields'
)
)
);
?>
| 018erri-rose | lib/module/information/notshow.php | PHP | oos | 498 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト shop 情報
register_post_type(
'shop',
array(
'labels' => array(
'name' => __('SHOP','aspthemes'),
'add_new_item' => str_replace(__('New Post'), __('SHOP','aspthemes'), __('Add New Post')),
),
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/blog.png',
'supports' => array(
'title',
'custom-fields',
'page-attributes'
)
)
);
register_taxonomy(
'shop_category',
'shop',
array(
'label' => 'SHOPカテゴリー',
'hierarchical' => true,
)
);
function manage_shop_columns ($columns) {
$columns['city'] = __('city');
$columns['lonlat'] = __('lonlat');
$columns['menu_order'] = __('Order');
unset( $columns['date'] );
return $columns;
}
function add_shop_column ($column, $post_id) {
global $post;
if ( $post->post_type !== 'shop' ) return;
if ($column === 'city') { list($city) = get_post_custom_values('city' , get_the_ID());
echo $city;
} else if ($column === 'lonlat') {
echo nl2br( get_post_meta($post_id , 'lonlat', true) );
} else if ($column === 'menu_order') {
global $post;
echo $post->menu_order;
}
}
add_filter('manage_edit-shop_columns', 'manage_shop_columns');
add_action('manage_posts_custom_column', 'add_shop_column', 10, 2);
function js_shop_load(){
$js_head = "";
if ( CUSTOM_TYPE === 'shop' ){
$template_url = get_custom_templateurl();
print <<<JAVASCRIPT
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="$template_url/js/jquery.js"></script>
<script type="text/javascript" src="$template_url/js/thickbox.js"></script>
<link rel="stylesheet" href="$template_url/css/thickbox.css" type="text/css" media="screen" />
<script type="text/javascript">
var mouseX;
var mouseY;
jQuery(document).ready(function(){
jQuery(document).mousemove(function(e){
x = 0;
y = 0;
if ( e ){
x = e.pageX;
y = e.pageY;
} else {
_getScroll();
x = event.x + scrollPos['scrollLeft'];
y = event.y + scrollPos['scrollTop'];
}
mouseX = x;
mouseY = y;
});
});
</script>
JAVASCRIPT;
}
return $js_head;
}
add_action( 'wp_head', 'js_shop_load' );
/*
* カスタムフィールド SELECT
function get_custom_select($select){
global $custom_post;
list($category) = get_post_custom_values($select , $custom_post->ID);
return $category;
}
add_shortcode('custom_select', 'get_custom_select');
カスタムフィールド テキスト取得
function get_custom_text($id, $key){
return get_post_meta($id, $key , true);
}
*/
function get_shop_the_title(){
return get_the_title();
}
add_shortcode('shop_title', 'get_shop_the_title');
function get_shop_select(){
list($category) = get_post_custom_values('city' , get_the_ID());
return $category;
}
add_shortcode('shop_city', 'get_shop_select');
function get_shop_tel(){
return get_custom_text(get_the_ID(), 'tel');
}
add_shortcode('shop_tel', 'get_shop_tel');
function get_shop_address(){
return get_custom_text(get_the_ID(), 'address');
}
add_shortcode('shop_address', 'get_shop_address');
function get_shop_etc(){
return get_custom_text(get_the_ID(), 'etc');
}
add_shortcode('shop_etc', 'get_shop_etc');
function get_shop_lonlat(){
return get_custom_text(get_the_ID(), 'lonlat');
}
add_shortcode('shop_lonlat', 'get_shop_lonlat');
function get_shop_parmalink(){
return get_the_permalink();
}
add_shortcode('shop_parmalink', 'get_shop_parmalink');
function get_shop_blog(){
$blog_html = "";
$blog_url = get_custom_text(get_the_ID(), 'blog_url');
if ( isset( $blog_url ) && strlen($blog_url) > 0 ){
$blog_html = <<<BLOG_HTML
<span class="blog_btn"><a href="$blog_url" target="_blank">blog</a></span>
BLOG_HTML;
}
return $blog_html;
}
add_shortcode('shop_blog', 'get_shop_blog');
function get_page_shop(){
if ( PAGE_TYPE === 'page' ) {
global $custom_post;
global $custom_query_posts;
$is_navi = constant( strtoupper(CUSTOM_TYPE) . '_NAVI');
$item_content = "";
wp_reset_query();
$items = query_posts($custom_query_posts);
global $wp_query;
global $max_pages;
$max_pages = $wp_query->{"max_num_pages"};
if ( $is_navi )
$item_content .= do_shortcode('[pagenavi]');
if(have_posts()):
while(have_posts()): the_post();
$item_content .= do_shortcode(constant('SHOP_HTML_PAGE'));
endwhile;
endif;
wp_reset_query();
return $item_content;
}
return;
}
add_shortcode('shop_page' , 'get_page_shop');
function get_single_shop(){
$item_content = "";
if ( PAGE_TYPE === 'single' ) {
global $custom_post;
$custom_post = wp_get_single_post( POST_ID, 'OBJECT' );
$item_content = do_shortcode(constant('SHOP_HTML_SINGLE'));
}
return $item_content;
}
add_shortcode('shop_single' , 'get_single_shop');
function exec_shop(){
global $custom_query_posts;
get_import_design("shop");
$custom_type = CUSTOM_TYPE;
$view_page = constant( strtoupper(CUSTOM_TYPE) . '_VIEW');
if ( empty($view_page) ){ $view_page = 100; }
$paged = get_query_var('paged');
$custom_query_posts = "post_type=$custom_type&posts_per_page=$view_page&paged=$paged&meta_key=rank&orderby=meta_value&order=ASC";
return do_shortcode(SHOP_HTML_FRAME);
}
add_shortcode('run_shop', 'exec_shop');
?>
| 018erri-rose | lib/module/shop/func.php | PHP | oos | 5,688 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト shop 情報
register_post_type(
'shop',
array(
'label' => 'SHOP',
'hierarchical' => false,
'public' => true,
'show_ui' => false,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/blog.png',
'supports' => array(
'title',
'custom-fields'
)
)
);
register_taxonomy(
'shop_category',
'shop',
array(
'label' => 'SHOPカテゴリー',
'hierarchical' => true,
)
);
?>
| 018erri-rose | lib/module/shop/notshow.php | PHP | oos | 575 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト YOUTUBE (YouTube)
register_post_type(
'youtube',
array(
'labels' => array(
'name' => __('youtube', 'aspthemes'),
'add_new_item' => str_replace(__('New Post'), __('youtube','aspthemes'), __('Add New Post')),
),
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/youtube.png',
'supports' => array(
'title',
'custom-fields'
)
)
);
add_action( 'wp_head', 'youtube_js' );
function youtube_js(){
if ( CUSTOM_TYPE === "youtube" ){
print <<<YOUTUBE_SCRIPT
<script type="text/javascript">
$(document).ready(function(){
$('.play_area').each(function(){
$(this).click(function(){
var youtube_id = $(this).attr('id');
var youtube_url = '<iframe width="640" height="355" src="https://www.youtube-nocookie.com/embed/'+youtube_id+'?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe>';
$(this).html(youtube_url);
});
});
});
</script>
YOUTUBE_SCRIPT;
}
}
function ogp_page_youtube(){
$ogp_meta = "";
list($ogp_post) = get_posts("post_type=youtube&order=DSC");
if(have_posts()): the_post();
//$ogp_meta = ogp_single_youtube();
setup_postdata($ogp_post);
$og_site = get_bloginfo('name');
$permalink = get_permalink();
$youtube_url = get_post_meta($ogp_post->ID, 'URL', true);
$contents = file_get_contents("https://youtu.be/" . $youtube_url);
$appdata = str_replace(get_bloginfo("siteurl"), "", $permalink);
$og_url = $permalink . '?app_data=' . urlencode(base64_encode( $appdata ));
$og_appId = APP_ID;
$htmls = split ( "\n" , $contents );
foreach ( $htmls as $linehtml ){
if ( preg_match('/"og:([^"]+)"/', $linehtml, $matchline) ){
if ( $matchline[1] === "url" ) {
$ogp_meta .= '<meta property="og:url" content="'.$og_url.'" />' . "\n";
} elseif ( $matchline[1] === "site_name" ){
$ogp_meta .= '<meta property="og:site_name" content="'.$og_site.'" />' . "\n";
} else {
$ogp_meta .= $linehtml . "\n";
}
}
}
endif;
$ogp_meta .= '<meta property="og:locale" content="ja_JP" />' . "\n";
return $ogp_meta;
}
add_shortcode('ogp_page_youtube', 'ogp_page_youtube');
function ogp_single_youtube(){
$ogp_meta = "";
$og_site = get_bloginfo('name');
$permalink = get_permalink();
$youtube_url = get_post_meta(get_the_ID(), 'URL', true);
$contents = file_get_contents("https://youtu.be/" . $youtube_url);
$appdata = str_replace(get_bloginfo("siteurl"), "", $permalink);
$og_url = $permalink . '?app_data=' . urlencode(base64_encode( $appdata ));
$og_appId = APP_ID;
$htmls = split ( "\n" , $contents );
foreach ( $htmls as $linehtml ){
if ( preg_match('/"og:([^"]+)"/', $linehtml, $matchline) ){
if ( $matchline[1] === "url" ) {
$ogp_meta .= '<meta property="og:url" content="'.$og_url.'" />' . "\n";
} elseif ( $matchline[1] === "site_name" ){
$ogp_meta .= '<meta property="og:site_name" content="'.$og_site.'" />' . "\n";
} else {
$ogp_meta .= $linehtml . "\n";
}
}
}
$ogp_meta .= '<meta property="og:locale" content="ja_JP" />';
return $ogp_meta;
}
add_shortcode('ogp_single_youtube', 'ogp_single_youtube');
function get_youtube_the_title(){
return get_the_title();
}
add_shortcode('youtube_the_title', 'get_youtube_the_title');
function get_custom_youtube_title(){
return get_custom_text(get_the_ID(), 'youtube_title');
}
add_shortcode('youtube_title', 'get_custom_youtube_title');
function get_custom_youtube_url(){
return get_custom_text(get_the_ID(), 'youtube_url');
}
add_shortcode('youtube_url', 'get_custom_youtube_url');
function get_custom_youtube_small_url(){
return get_custom_text(get_the_ID(), 'youtube_small_url');
}
add_shortcode('youtube_small_url', 'get_custom_youtube_small_url');
function get_youtube_img(){
$img = get_custom_youtube_small_url();
if ( empty($img) ){
$img = get_custom_youtube_image();
}
return $img;
}
add_shortcode('youtube_img', 'get_youtube_img');
function get_custom_youtube_image(){
return get_custom_text(get_the_ID(), 'youtube_image');
}
add_shortcode('youtube_image', 'get_custom_youtube_image');
function get_youtube_endrow($attr){
global $line_cnt;
$hr_html = "";
if ( $line_cnt % $attr['row'] == 0 ){
$hr_html = '</div>'."\n".'<div id="pv_list">'."\n";
}
return $hr_html;
}
add_shortcode('youtube_endrow', 'get_youtube_endrow');
function get_custom_youtube_auther(){
return get_custom_text(get_the_ID(), 'youtube_auther');
}
add_shortcode('youtube_auther', 'get_custom_youtube_auther');
function get_custom_youtube_detail(){
return get_custom_text(get_the_ID(), 'youtube_detail');
}
add_shortcode('youtube_detail', 'get_custom_youtube_detail');
function get_youtube_script(){
$url = get_custom_text(get_the_ID(), 'youtube_url');
$title = get_the_title();
$j_src =<<<YOUTUBE_LIST
{ id: '$url', title: '$title' },
YOUTUBE_LIST;
return $j_src;
}
add_shortcode('youtube_script', 'get_youtube_script');
function get_page_youtube(){
//if ( PAGE_TYPE === 'page' ) {
global $custom_query_posts;
global $line_cnt;
$item_content = "";
$line_cnt = PAGE_TYPE === 'single' ? 1 : 0;
wp_reset_query();
query_posts($custom_query_posts);
if(have_posts()):
while(have_posts()): the_post();
if ( PAGE_TYPE === 'single' && POST_ID === get_the_ID() ) { continue; }
if ( $line_cnt == 0 && PAGE_TYPE === 'page' ):
$item_content .= do_shortcode(constant('YOUTUBE_HTML_SINGLE'));
else :
$item_content .= do_shortcode(constant('YOUTUBE_HTML_PAGE'));
endif;
$line_cnt++;
endwhile;
endif;
wp_reset_query();
return $item_content;
//}
return;
}
add_shortcode('youtube_page' , 'get_page_youtube');
function get_single_youtube(){
$item_content = "";
if ( PAGE_TYPE === 'single' ) {
$item_content = get_page_youtube();
global $custom_post;
wp_reset_query();
$custom_post = wp_get_single_post( POST_ID, 'OBJECT' );
if(have_posts()): the_post();
$item_content = do_shortcode(constant('YOUTUBE_HTML_SINGLE'));
endif;
wp_reset_query();
}
return $item_content;
}
add_shortcode('youtube_single' , 'get_single_youtube');
function exec_youtube(){
global $custom_query_posts;
$custom_query_posts = "post_type=youtube&order=DSC";
get_import_design("youtube");
return do_shortcode(YOUTUBE_HTML_FRAME);
}
add_shortcode('run_youtube', 'exec_youtube');
?>
| 018erri-rose | lib/module/youtube/func.php | PHP | oos | 6,563 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト YOUTUBE (YouTube)
register_post_type(
'youtube',
array(
'label' => 'youtube',
'hierarchical' => false,
'public' => true,
'show_ui' => false,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/youtube.png',
'supports' => array(
'title',
'custom-fields'
)
)
);
?>
| 018erri-rose | lib/module/youtube/notshow.php | PHP | oos | 436 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト media 情報
register_post_type(
'media',
array(
'labels' => array(
'name' => __('media','aspthemes'),
'add_new_item' => str_replace(__('New Post'), __('media','aspthemes'), __('Add New Post')),
),
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/media.png',
'supports' => array(
'title',
'editor',
'custom-fields'
)
)
);
function manage_media_columns ($columns) {
$columns['mediastart'] = __('mediastart');
$columns['opendate'] = __('opendate');
unset( $columns['date'] );
return $columns;
}
function add_media_column ($column, $post_id) {
global $post;
if ( $post->post_type !== 'media' ) return;
if ($column == 'mediastart') {
echo nl2br( get_post_meta($post_id , 'mediastart', true) );
} else if ($column == 'opendate') {
echo nl2br( get_post_meta($post_id , 'opendate', true) );
}
}
add_filter('manage_edit-media_columns', 'manage_media_columns');
add_action('manage_posts_custom_column', 'add_media_column', 10, 2);
function get_media_meta(){
$c = get_post_custom_values('mediastart', get_the_ID()); $media["startdate"] = $c[0];
$c = get_post_custom_values('mediaend' , get_the_ID()); $media["enddate"] = $c[0];
$c = get_post_custom_values('opendate' , get_the_ID()); $media["opendate"] = $c[0];
$c = get_post_custom_values('closedate' , get_the_ID()); $media["closedate"] = $c[0];
$c = get_post_custom_values('category' , get_the_ID()); $media["category"] = $c[0];
if($media["enddate"] == "" || $media["enddate"] === $media["startdate"]){$media["datelabel"] = $media["startdate"];}
if($media["enddate"] != "" && $media["enddate"] != $media["startdate"]){$media["datelabel"] = $media["startdate"] . " - " . $media["enddate"];}
return $media;
}
function select_media_category(){
wp_reset_query();
query_posts('post_type=media');
$catList = array();
if(have_posts()){
while(have_posts()){
the_post();
$e = get_media_meta();
if( $e["opendate"] != ""){ if(strtotime( $e["opendate"] ) > time() ){ continue; }}
if( $e["closedate"] != ""){ if(strtotime( $e["closedate"] ) < time() ){ continue; }}
$cat = get_post_custom_values('category', get_the_ID());
$catList[$e["category"]] = "";
}
}
$catListKeys = array_keys($catList);
$selectbox_html = "<select name='cat' id='cat' class='postform' >";
$selectbox_html .= "<option value=''>カテゴリーを選択</option>";
foreach($catListKeys as $k=>$v){
if($_REQUEST["cat"] === $v){$selected = "selected";}else{$selected = "";}
$selectbox_html .= '<option class="level-0" value="' . $v . '" ' . $selected . '>' . $v . '</option>';
}
$selectbox_html .= "</select>";
$selectbox_html .= "<script type='text/javascript'>";
$selectbox_html .= "/* <![CDATA[ */";
$selectbox_html .= "var catdropdown = document.getElementById('cat');";
$selectbox_html .= " function onCatChange() {";
$selectbox_html .= " location.href = './?cat='+catdropdown.options[catdropdown.selectedIndex].value;";
$selectbox_html .= "}";
$selectbox_html .= "catdropdown.onchange = onCatChange;";
$selectbox_html .= "/* ]]> */";
$selectbox_html .= "</script>";
wp_reset_query();
return $selectbox_html;
}
add_shortcode('select_media_category', 'select_media_category');
function select_media_monthly(){
wp_reset_query();
query_posts('post_type=media');
$monthList = array();
if(have_posts()){
while(have_posts()){
the_post();
$e = get_media_meta();
if( $e["opendate"] != ""){ if(strtotime( $e["opendate"] ) > time() ){ continue; }}
if( $e["closedate"] != ""){ if(strtotime( $e["closedate"] ) < time() ){ continue; }}
$monthList[date("Y", strtotime($e["startdate"])) . "/" . date("n", strtotime($e["startdate"]))] = "";
}
}
$monthListKeys = array_keys($monthList);
$selectbox_html = "<select name='mon' id='mon' class='postform' >";
$selectbox_html .= "<option value=''>月を選択</option>";
foreach($monthListKeys as $k=>$v){
if(intval( $_REQUEST["mon"] ) === strtotime($v."/1")){
$selected = "selected";
}else{
$selected = "";
}
$selectbox_html .= '<option class="level-0" value="' . strtotime($v."/1") . '" ' . $selected . '>' . $v . '</option>';
}
$selectbox_html .= "</select>";
$selectbox_html .= "<script type='text/javascript'>";
$selectbox_html .= "/* <![CDATA[ */";
$selectbox_html .= "var mondropdown = document.getElementById('mon');";
$selectbox_html .= "function onMonChange() {";
$selectbox_html .= " location.href = './?mon='+mondropdown.options[mondropdown.selectedIndex].value;";
$selectbox_html .= "}";
$selectbox_html .= "mondropdown.onchange = onMonChange;";
$selectbox_html .= "/* ]]> */";
$selectbox_html .= "</script>";
wp_reset_query();
return $selectbox_html;
}
add_shortcode('select_media_monthly', 'select_media_monthly');
function get_media_the_title(){
return get_the_title();
}
add_shortcode('media_title', 'get_media_the_title');
function get_media_the_content(){
return get_the_content();
}
add_shortcode('media_content', 'get_media_the_content');
function get_media_date(){
return get_the_date('Y年m月d日');
}
add_shortcode('media_date', 'get_media_date');
function get_media_category(){
global $custom_post;
list($category) = get_post_custom_values('category' , get_the_ID());
return $category;
}
add_shortcode('media_category', 'get_media_category');
function get_page_media(){
if ( PAGE_TYPE === 'page' ) {
global $custom_post;
global $custom_query_posts;
$is_navi = constant( strtoupper(CUSTOM_TYPE) . '_NAVI');
$item_content = "";
wp_reset_query();
query_posts($custom_query_posts);
global $wp_query;
global $max_pages;
$max_pages = $wp_query->{"max_num_pages"};
if ( $is_navi )
$item_content .= do_shortcode('[pagenavi]');
if(have_posts()):
while(have_posts()): the_post();
$title = get_the_title();
$item_content .= do_shortcode( constant( strtoupper(CUSTOM_TYPE) . '_HTML_PAGE') );
endwhile;
endif;
wp_reset_query();
return $item_content;
}
return;
}
add_shortcode('media_page' , 'get_page_media');
function get_single_media(){
$item_content = "";
if ( PAGE_TYPE === 'single' ) {
global $custom_post;
$custom_post = wp_get_single_post( POST_ID, 'OBJECT' );
$item_content = do_shortcode(constant('MEDIA_HTML_PAGE'));
}
return $item_content;
}
add_shortcode('media_single' , 'get_single_media');
function set_media_query(){
//echo $_GET["cat"] . "<BR>\n";
global $custom_query_posts;
$view_page = constant( strtoupper(CUSTOM_TYPE) . '_VIEW');
if ( empty($view_page) ){ $view_page = 10; }
$paged = get_query_var('paged');
$custom_query_posts = "";
if ( isset($_GET["cat"]) ){
$category = $_GET["cat"];
$custom_query_posts = array(
'post_type'=>'media',
'meta_query' => array(
array(
'key'=>'category',
'value'=>"$category",
),
array(
'key' => 'opendate',
'value' => date("Y-m-d"),
'compare'=> '<=',
'type' => 'DATE'
),
array(
'key' => 'closedate',
'value' => date("Y-m-d"),
'compare'=> '>=',
'type' => 'DATE'
),
'relation'=>'AND'
),
'paged'=>$paged,
'posts_per_page'=>$view_page,
'meta_key'=>'mediastart',
'orderby'=>'meta_value',
'order'=>'ASC'
);
} elseif ( isset($_GET["mon"]) ){
$select_mon = $_GET["mon"];
$startDay = date("Y-m-d", $select_mon);
$lastDay = date("Y-m-d", mktime(0, 0, 0, date("m",$select_mon)+1, 0, date("Y",$select_mon)));
$custom_query_posts = array(
'meta_query' => array(
array(
'key' => 'mediastart',
'value' => $startDay,
'compare'=> '>=',
'type' => 'DATE'
),
array(
'key' => 'mediastart',
'value' => $lastDay,
'compare'=> '<=',
'type' => 'DATE'
),
array(
'key' => 'opendate',
'value' => date("Y-m-d"),
'compare'=> '<=',
'type' => 'DATE'
),
array(
'key' => 'closedate',
'value' => date("Y-m-d"),
'compare'=> '>=',
'type' => 'DATE'
),
'relation'=>'AND'
),
'meta_key' => 'mediastart',
'orderby' => 'meta_value',
'post_type' => 'media',
'paged'=>$paged,
'posts_per_page' => $view_page,
'order' => 'DSC'
);
} else {
$custom_query_posts = array(
'meta_query' => array(
array(
'key' => 'opendate',
'value' => date("Y-m-d"),
'compare'=> '<=',
'type' => 'DATE'
),
array(
'key' => 'closedate',
'value' => date("Y-m-d"),
'compare'=> '>=',
'type' => 'DATE'
),
'relation'=>'AND'
),
'meta_key' => 'mediastart',
'orderby' => 'meta_value',
'post_type' => 'media',
'paged'=>$paged,
'posts_per_page' => $view_page,
'order' => 'DSC'
);
}
}
function exec_media(){
get_import_design("media");
set_media_query();
return do_shortcode(MEDIA_HTML_FRAME);
}
add_shortcode('run_media', 'exec_media');
?>
| 018erri-rose | lib/module/media/func.php | PHP | oos | 9,694 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト media 情報
register_post_type(
'media',
array(
'label' => 'media',
'hierarchical' => false,
'public' => true,
'show_ui' => false,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/media.png',
'supports' => array(
'title',
'editor',
'custom-fields'
)
)
);
?>
| 018erri-rose | lib/module/media/notshow.php | PHP | oos | 446 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト トップページ
register_post_type(
'top',
array(
'labels' => array(
'name' => __('TOP PAGE','aspthemes'),
'add_new_item' => str_replace(__('New Post'), __('TOP PAGE','aspthemes'), __('Add New Post')),
),
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/profile.png',
'supports' => array(
'title',
'custom-fields',
'page-attributes'
)
)
);
function manage_top_columns ($columns) {
$columns['thumbnail'] = __('Thumbnail');
$columns['menu_order'] = __('Order');
unset( $columns['date'] );
return $columns;
}
function add_top_column ($column, $post_id) {
global $post;
if ( $post->post_type !== 'top' ) return;
if ($column == 'thumbnail') {
list($top_image) = wp_get_attachment_image_src(get_post_meta($post_id, 'top_image' , true), 'thumbnail');
echo '<img src="'.$top_image.'">';
} else if ($column == 'menu_order') {
global $post;
echo $post->menu_order;
}
}
add_filter('manage_edit-top_columns', 'manage_top_columns');
add_action('manage_posts_custom_column', 'add_top_column', 10, 2);
function get_top_default_type(){
return get_custom_text(TOP_ID, 'default_type');
}
add_shortcode('top_default_type', 'get_top_default_type');
function get_top_detail(){
return get_custom_textarea(TOP_ID, 'top_detail');
}
add_shortcode('top_detail', 'get_top_detail');
function get_top_comment(){
return get_custom_textarea(TOP_ID, 'top_comment');
}
add_shortcode('top_comment', 'get_top_comment');
function get_top_image(){
$read_img = get_custom_image(TOP_ID, ('top_image'));
return $read_img;
}
add_shortcode('top_image', 'get_top_image');
function exec_top(){
get_import_design("top");
list($conf_top) = get_posts('post_type=top&order=DSC');
if ( isset( $conf_top ) ):
define('TOP_ID' , $conf_top->ID);
define('PAGE_TYPE', 'page');
$default_type = get_top_default_type();
if ( isset($default_type) ){
if(function_exists("exec_" . $default_type)) {
echo "<!--".' exec_' . $default_type .'(); '."-->";
echo do_shortcode('[admin_login]');
return do_shortcode("[run_" . $default_type ."]");
} else {
echo '<!-- top layout Not Found ' . $default_type . "-->\n";
}
}
endif;
return do_shortcode(TOP_HTML_FRAME);
}
add_shortcode('run_top', 'exec_top');
?>
| 018erri-rose | lib/module/top/func.php | PHP | oos | 2,534 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト Profile
register_post_type(
'profile',
array(
'labels' => array(
'name' => __('Profile','aspthemes'),
'add_new_item' => str_replace(__('New Post'), __('Profile','aspthemes'), __('Add New Post')),
),
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/profile.png',
'supports' => array(
'title',
'custom-fields'
)
)
);
function get_prof_detail(){
return get_custom_textarea(PROF_ID, 'prof_detail');
}
add_shortcode('prof_detail', 'get_prof_detail');
function get_prof_comment(){
return get_custom_textarea(PROF_ID, 'prof_comment');
}
add_shortcode('prof_comment', 'get_prof_comment');
function get_prof_image(){
return get_custom_image(PROF_ID, ('prof_image'));
}
add_shortcode('prof_image', 'get_prof_image');
function exec_profile(){
get_import_design("profile");
list($conf_profile) = get_posts('post_type=profile&order=DSC');
if ( isset( $conf_profile ) ):
define('PROF_ID' , $conf_profile->ID);
endif;
return do_shortcode(PROFILE_HTML_FRAME);
}
add_shortcode('run_profile', 'exec_profile');
?>
| 018erri-rose | lib/module/profile/func.php | PHP | oos | 1,249 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト Profile
register_post_type(
'profile',
array(
'label' => 'Profile',
'hierarchical' => false,
'public' => true,
'show_ui' => false,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/profile.png',
'supports' => array(
'title',
'custom-fields'
)
)
);
?>
| 018erri-rose | lib/module/profile/notshow.php | PHP | oos | 425 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト ITUNES
register_post_type(
'itunes',
array(
'labels' => array(
'name' => __('iTunes', 'aspthemes'),
'add_new_item' => str_replace(__('New Post'), __('iTunes','aspthemes'), __('Add New Post')),
),
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/itune.png',
'supports' => array(
'title',
'custom-fields'
)
)
);
function get_itunes_endrow($attr){
global $line_cnt;
$hr_html = "";
if ( $line_cnt % $attr['row'] == 0 ){
$hr_html = '</div>'."\n".'<div id="album_list">'."\n";
}
return $hr_html;
}
add_shortcode('itunes_endrow', 'get_itunes_endrow');
function get_rss_song_url(){
global $album_rss;
$collectionId = $album_rss->{"collectionId"};
return get_bloginfo('siteurl') . '/itunes/?collectionId=' . $collectionId;
}
add_shortcode('song_url', 'get_rss_song_url');
function get_rss_album_title(){
global $album_rss;
return $album_rss->{"collectionName"};
}
add_shortcode('album_title', 'get_rss_album_title');
function get_rss_album_image(){
global $album_rss;
return $album_rss->{"artworkUrl100"};
}
add_shortcode('album_image', 'get_rss_album_image');
function get_rss_app_store(){
global $album_rss;
return $album_rss->{"collectionViewUrl"};
}
add_shortcode('app_store', 'get_rss_app_store');
function get_album_collectionId(){
return $_GET['collectionId'];
}
add_shortcode('album_collectionId', 'get_album_collectionId');
global $itunes_res;
global $album_rss;
function get_page_itunes(){
if ( !isset($_GET['collectionId']) ) {
global $itunes_res;
global $album_rss;
global $line_cnt;
$line_cnt = 1;
$item_content = "";
foreach ( $itunes_res->{"results"} as $album_rss ) :
$item_content .= do_shortcode(constant('ITUNES_HTML_PAGE'));
$line_cnt++;
endforeach;
return $item_content;
}
return;
}
add_shortcode('itunes_page' , 'get_page_itunes');
function get_single_itunes(){
$item_content = "";
if ( isset($_GET['collectionId']) ) {
$item_content = do_shortcode(constant('ITUNES_HTML_SINGLE'));
}
return $item_content;
}
add_shortcode('itunes_single' , 'get_single_itunes');
function exec_itunes(){
global $itunes_res;
wp_reset_query();
list($conf_itunes) = query_posts("post_type=itunes");
$artist = "";
if ( isset( $conf_itunes ) ):
$artist = get_custom_text($conf_itunes->ID, 'artistname');
endif;
wp_reset_query();
$itunes_url = "http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/wa/wsSearch?term=$artist&country=JP&limit=100&entity=album&offset=0";
$itunes_res = json_decode(file_get_contents($itunes_url));
get_import_design("itunes");
return do_shortcode(ITUNES_HTML_FRAME);
}
add_shortcode('run_itunes', 'exec_itunes');
?>
| 018erri-rose | lib/module/itunes/func.php | PHP | oos | 2,988 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト ITUNES
register_post_type(
'itunes',
array(
'label' => 'iTunes',
'hierarchical' => false,
'public' => true,
'show_ui' => false,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/itune.png',
'supports' => array(
'title',
'custom-fields'
)
)
);
?>
| 018erri-rose | lib/module/itunes/notshow.php | PHP | oos | 420 |
<?php
//
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト BLOG
register_post_type(
'blog',
array(
'labels' => array(
'name' => __('blog', 'aspthemes'),
'add_new_item' => str_replace(__('New Post'), __('blog','aspthemes'), __('Add New Post')),
),
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/blog.png',
'supports' => array(
'title',
'editor',
'custom-fields'
)
)
);
function get_blog_the_title(){
return get_the_title();
}
add_shortcode('blog_title', 'get_blog_the_title');
function get_blog_the_permalink(){
return get_permalink();
}
add_shortcode('blog_permalink', 'get_blog_the_permalink');
function get_blog_the_content(){
$content = str_replace('img src="', 'img src="/img.php?imgurl=', get_the_content());
$content = str_replace('a href="', 'a target="_blank" href="', $content);
$content = strip_tags( $content , '<img><br>');
return $content;
}
add_shortcode('blog_content', 'get_blog_the_content');
function get_blog_date(){
return get_the_date('Y年m月d日');
}
add_shortcode('blog_date', 'get_blog_date');
function get_blog_url(){
$rss_url = get_post_meta(get_the_ID() ,'syndication_permalink',true);
$readmore =<<<READMORE
<a href="$rss_url" target="_blank"><font color="#996600">続きを読む</font></a>
READMORE;
return $readmore;
}
add_shortcode('blog_url', 'get_blog_url');
function get_page_blog(){
if ( PAGE_TYPE === 'page' ) {
global $custom_post;
global $custom_query_posts;
$is_navi = constant( strtoupper(CUSTOM_TYPE) . '_NAVI');
$item_content = "";
wp_reset_query();
query_posts($custom_query_posts);
global $wp_query;
global $max_pages;
$max_pages = $wp_query->{"max_num_pages"};
if ( $is_navi )
$item_content .= do_shortcode('[pagenavi]');
if(have_posts()):
while(have_posts()): the_post();
$title = get_the_title();
$item_content .= do_shortcode( constant( strtoupper(CUSTOM_TYPE) . '_HTML_PAGE') );
endwhile;
endif;
wp_reset_query();
return $item_content;
}
return;
}
add_shortcode('blog_page' , 'get_page_blog');
function get_single_blog(){
$item_content = "";
if ( PAGE_TYPE === 'single' ) {
global $custom_post;
$custom_post = wp_get_single_post( POST_ID, 'OBJECT' );
if(have_posts()):
while(have_posts()): the_post();
$item_content = do_shortcode( constant( strtoupper(CUSTOM_TYPE) . '_HTML_PAGE') );
endwhile;
endif;
}
return $item_content;
}
add_shortcode('blog_single' , 'get_single_blog');
function exec_blog(){
global $custom_query_posts;
$blog_content = "";
wp_reset_query();
get_import_design("blog");
$paged = get_query_var('paged');
$view_page = constant( strtoupper(CUSTOM_TYPE) . '_VIEW');
$custom_query_posts = "post_type=blog&posts_per_page=$view_page&paged=$paged&order=DSC";
return do_shortcode( constant( strtoupper(CUSTOM_TYPE) . '_HTML_FRAME') );
}
add_shortcode('run_blog', 'exec_blog');
?>
| 018erri-rose | lib/module/blog/func.php | PHP | oos | 3,181 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト BLOG
register_post_type(
'blog',
array(
'label' => 'ブログ',
'hierarchical' => false,
'public' => true,
'show_ui' => false,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/blog.png',
'supports' => array(
'title',
'editor',
'custom-fields'
)
)
);
?>
| 018erri-rose | lib/module/blog/notshow.php | PHP | oos | 455 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト event 情報
register_post_type(
'event',
array(
'labels' => array(
'name' => __('event', 'aspthemes'),
'add_new_item' => str_replace(__('New Post'), __('event','aspthemes'), __('Add New Post')),
),
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/event.png',
'supports' => array(
'title',
'editor',
'custom-fields'
)
)
);
function manage_event_columns ($columns) {
$columns['eventstart'] = 'eventstart';
$columns['opendate'] = 'opendate';
unset( $columns['date'] );
return $columns;
}
function add_event_column ($column, $post_id) {
global $post;
if ( $post->post_type !== 'event' ) return;
if ($column == 'eventstart') {
echo nl2br( get_post_meta($post_id , 'eventstart', true) );
} else if ($column == 'opendate') {
echo nl2br( get_post_meta($post_id , 'opendate', true) );
}
}
add_filter('manage_edit-event_columns', 'manage_event_columns');
add_action('manage_posts_custom_column', 'add_event_column', 10, 2);
function get_event_meta(){
$c = get_post_custom_values('eventstart', get_the_ID()); $event["startdate"] = $c[0];
$c = get_post_custom_values('eventend' , get_the_ID()); $event["enddate"] = $c[0];
$c = get_post_custom_values('opendate' , get_the_ID()); $event["opendate"] = $c[0];
$c = get_post_custom_values('closedate' , get_the_ID()); $event["closedate"] = $c[0];
$c = get_post_custom_values('category' , get_the_ID()); $event["category"] = $c[0];
if($event["enddate"] == "" || $event["enddate"] === $event["startdate"]){$event["datelabel"] = $event["startdate"];}
if($event["enddate"] != "" && $event["enddate"] != $event["startdate"]){$event["datelabel"] = $event["startdate"] . " - " . $event["enddate"];}
return $event;
}
function select_event_category(){
wp_reset_query();
query_posts('post_type=event');
$catList = array();
if(have_posts()){
while(have_posts()){
the_post();
$e = get_event_meta();
if( $e["opendate"] != ""){ if(strtotime( $e["opendate"] ) > time() ){ continue; }}
if( $e["closedate"] != ""){ if(strtotime( $e["closedate"] ) < time() ){ continue; }}
$cat = get_post_custom_values('category', get_the_ID());
$catList[$e["category"]] = "";
}
}
$catListKeys = array_keys($catList);
$selectbox_html = "<select name='cat' id='cat' class='postform' >";
$selectbox_html .= "<option value=''>カテゴリーを選択</option>";
foreach($catListKeys as $k=>$v){
if($_REQUEST["cat"] === $v){$selected = "selected";}else{$selected = "";}
$selectbox_html .= '<option class="level-0" value="' . $v . '" ' . $selected . '>' . $v . '</option>';
}
$selectbox_html .= "</select>";
$selectbox_html .= "<script type='text/javascript'>";
$selectbox_html .= "/* <![CDATA[ */";
$selectbox_html .= "var catdropdown = document.getElementById('cat');";
$selectbox_html .= " function onCatChange() {";
$selectbox_html .= " location.href = './?cat='+catdropdown.options[catdropdown.selectedIndex].value;";
$selectbox_html .= "}";
$selectbox_html .= "catdropdown.onchange = onCatChange;";
$selectbox_html .= "/* ]]> */";
$selectbox_html .= "</script>";
return $selectbox_html;
}
add_shortcode('event_category', 'select_event_category');
function select_event_monthly(){
wp_reset_query();
query_posts('post_type=event');
$monthList = array();
if(have_posts()){
while(have_posts()){
the_post();
$e = get_event_meta();
if( $e["opendate"] != ""){ if(strtotime( $e["opendate"] ) > time() ){ continue; }}
if( $e["closedate"] != ""){ if(strtotime( $e["closedate"] ) < time() ){ continue; }}
$monthList[date("Y", strtotime($e["startdate"])) . "/" . date("n", strtotime($e["startdate"]))] = "";
}
}
$monthListKeys = array_keys($monthList);
$selectbox_html = "<select name='mon' id='mon' class='postform' >";
$selectbox_html .= "<option value=''>月を選択</option>";
foreach($monthListKeys as $k=>$v){
if(intval( $_REQUEST["mon"] ) === strtotime($v."/1")){
$selected = "selected";
}else{
$selected = "";
}
$selectbox_html .= '<option class="level-0" value="' . strtotime($v."/1") . '" ' . $selected . '>' . $v . '</option>';
}
$selectbox_html .= "</select>";
$selectbox_html .= "<script type='text/javascript'>";
$selectbox_html .= "/* <![CDATA[ */";
$selectbox_html .= "var mondropdown = document.getElementById('mon');";
$selectbox_html .= "function onMonChange() {";
$selectbox_html .= " location.href = './?mon='+mondropdown.options[mondropdown.selectedIndex].value;";
$selectbox_html .= "}";
$selectbox_html .= "mondropdown.onchange = onMonChange;";
$selectbox_html .= "/* ]]> */";
$selectbox_html .= "</script>";
return $selectbox_html;
}
add_shortcode('event_monthly', 'select_event_monthly');
function get_event_the_title(){
return get_the_title();
}
add_shortcode('event_title', 'get_event_the_title');
function get_event_the_content(){
return get_the_content();
}
add_shortcode('event_content', 'get_event_the_content');
function get_event_date(){
return get_the_date('Y年m月d日');
}
add_shortcode('event_date', 'get_event_date');
function get_event_category(){
global $custom_post;
list($category) = get_post_custom_values('category' , get_the_ID());
return $category;
}
add_shortcode('event_category', 'get_event_category');
function get_page_event(){
if ( PAGE_TYPE === 'page' ) {
global $custom_post;
global $custom_query_posts;
$is_navi = constant( strtoupper(CUSTOM_TYPE) . '_NAVI');
$item_content = "";
wp_reset_query();
query_posts($custom_query_posts);
global $wp_query;
global $max_pages;
$max_pages = $wp_query->{"max_num_pages"};
if ( $is_navi )
$item_content .= do_shortcode('[pagenavi]');
if(have_posts()):
while(have_posts()): the_post();
$title = get_the_title();
$item_content .= do_shortcode( constant('EVENT_HTML_PAGE') );
endwhile;
endif;
wp_reset_query();
return $item_content;
}
return;
}
add_shortcode('event_page' , 'get_page_event');
function get_single_event(){
$item_content = "";
if ( PAGE_TYPE === 'single' ) {
global $custom_post;
$custom_post = wp_get_single_post( POST_ID, 'OBJECT' );
$item_content = do_shortcode(constant('EVENT_HTML_PAGE'));
}
return $item_content;
}
add_shortcode('event_single' , 'get_single_event');
function set_event_query(){
//echo $_GET["cat"] . "<BR>\n";
global $custom_query_posts;
$view_page = constant( strtoupper(CUSTOM_TYPE) . '_VIEW');
if ( empty($view_page) ){ $view_page = 10; }
$paged = get_query_var('paged');
$custom_query_posts = "";
if ( isset($_GET["cat"]) ){
$category = $_GET["cat"];
$custom_query_posts = array(
'post_type'=>'event',
'meta_query' => array(
array(
'key'=>'category',
'value'=>"$category",
),
array(
'key' => 'opendate',
'value' => date("Y-m-d"),
'compare'=> '<=',
'type' => 'DATE'
),
array(
'key' => 'closedate',
'value' => date("Y-m-d"),
'compare'=> '>=',
'type' => 'DATE'
),
'relation'=>'AND'
),
'paged'=>$paged,
'posts_per_page'=>$view_page,
'meta_key'=>'eventstart',
'orderby'=>'meta_value',
'order'=>'ASC'
);
} elseif ( isset($_GET["mon"]) ){
$select_mon = $_GET["mon"];
$startDay = date("Y-m-d", $select_mon);
$lastDay = date("Y-m-d", mktime(0, 0, 0, date("m",$select_mon)+1, 0, date("Y",$select_mon)));
$custom_query_posts = array(
'meta_query' => array(
array(
'key' => 'eventstart',
'value' => $startDay,
'compare'=> '>=',
'type' => 'DATE'
),
array(
'key' => 'eventstart',
'value' => $lastDay,
'compare'=> '<=',
'type' => 'DATE'
),
array(
'key' => 'opendate',
'value' => date("Y-m-d"),
'compare'=> '<=',
'type' => 'DATE'
),
array(
'key' => 'closedate',
'value' => date("Y-m-d"),
'compare'=> '>=',
'type' => 'DATE'
),
'relation'=>'AND'
),
'meta_key' => 'eventstart',
'orderby' => 'meta_value',
'post_type' => 'event',
'paged'=>$paged,
'posts_per_page' => $view_page,
'order' => 'DSC'
);
} else {
$custom_query_posts = array(
'meta_query' => array(
array(
'key' => 'opendate',
'value' => date("Y-m-d"),
'compare'=> '<=',
'type' => 'DATE'
),
array(
'key' => 'closedate',
'value' => date("Y-m-d"),
'compare'=> '>=',
'type' => 'DATE'
),
'relation'=>'AND'
),
'meta_key' => 'eventstart',
'orderby' => 'meta_value',
'post_type' => 'event',
'paged'=>$paged,
'posts_per_page' => $view_page,
'order' => 'DSC'
);
}
}
function exec_event(){
get_import_design("event");
set_event_query();
return do_shortcode(EVENT_HTML_FRAME);
}
add_shortcode('run_event', 'exec_event');
?>
| 018erri-rose | lib/module/event/func.php | PHP | oos | 9,527 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト event 情報
register_post_type(
'event',
array(
'label' => 'event',
'hierarchical' => false,
'public' => true,
'show_ui' => false,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/event.png',
'supports' => array(
'title',
'editor',
'custom-fields'
)
)
);
?>
| 018erri-rose | lib/module/event/notshow.php | PHP | oos | 446 |
<?php
register_post_type(
'goods',
array(
'labels' => array(
'name' => __('Goods', 'aspthemes'),
'add_new_item' => str_replace(__('New Post'), __('Goods','aspthemes'), __('Add New Post')),
),
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/goods.png',
'supports' => array(
'title',
'custom-fields',
'page-attributes'
)
)
);
function manage_goods_columns ($columns) {
$columns['thumbnail'] = __('Thumbnail');
$columns['menu_order'] = __('Order');
unset( $columns['date'] );
return $columns;
}
function add_goods_column ($column, $post_id) {
global $post;
if ( $post->post_type !== 'goods' ) return;
if ($column == 'thumbnail') {
list($goods_image) = wp_get_attachment_image_src(get_post_meta($post_id, 'goods_image' , true), 'thumbnail');
echo '<img src="'.$goods_image.'">';
} else if ($column == 'menu_order') {
global $post;
echo $post->menu_order;
}
}
add_filter('manage_edit-goods_columns', 'manage_goods_columns');
add_action('manage_posts_custom_column', 'add_goods_column', 10, 2);
function get_goods_detail(){
return get_custom_textarea(get_the_ID(), 'goods_detail');
}
add_shortcode('goods_detail', 'get_goods_detail');
function get_goods_title(){
return get_custom_text(get_the_ID(), 'goods_title');
}
add_shortcode('goods_title', 'get_goods_title');
function get_goods_url(){
return get_custom_text(get_the_ID(), 'goods_url');
}
add_shortcode('goods_url', 'get_goods_url');
function get_goods_image(){
return get_custom_image_thumbnail(get_the_ID(), 'goods_image');
}
add_shortcode('goods_image', 'get_goods_image');
function get_page_goods(){
if ( PAGE_TYPE === 'page' ) {
global $custom_query_posts;
$is_navi = constant( strtoupper(CUSTOM_TYPE) . '_NAVI');
$item_content = "";
wp_reset_query();
$items = query_posts($custom_query_posts);
global $wp_query;
global $max_pages;
$max_pages = $wp_query->{"max_num_pages"};
if ( $is_navi )
$item_content .= do_shortcode('[pagenavi]');
if(have_posts()):
while(have_posts()): the_post();
$item_content .= do_shortcode(constant('GOODS_HTML_PAGE'));
endwhile;
endif;
wp_reset_query();
return $item_content;
}
return;
}
add_shortcode('goods_page' , 'get_page_goods');
function get_single_goods(){
if ( PAGE_TYPE === 'single' ) {
wp_get_single_post( POST_ID, 'OBJECT' );
$item_content .= do_shortcode(constant('GOODS_HTML_SINGLE'));
return $item_content;
}
return;
}
add_shortcode('goods_single' , 'get_single_goods');
function exec_goods(){
global $custom_query_posts;
get_import_design("goods");
$view_page = constant( strtoupper(CUSTOM_TYPE) . '_VIEW');
if ( empty($view_page) ){ $view_page = 10; }
$paged = get_query_var('paged');
$custom_query_posts = "post_type=goods&posts_per_page=$view_page&paged=$paged&orderby=menu_order&order=ASC";
return do_shortcode(GOODS_HTML_FRAME);
}
add_shortcode('run_goods', 'exec_goods');
?>
| 018erri-rose | lib/module/goods/func.php | PHP | oos | 3,160 |
<?php
register_post_type(
'goods',
array(
'label' => 'Goods',
'hierarchical' => false,
'public' => true,
'show_ui' => false,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/goods.png',
'supports' => array(
'title',
'custom-fields'
)
)
);
?>
| 018erri-rose | lib/module/goods/notshow.php | PHP | oos | 351 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト Twitter
register_post_type(
'twitter',
array(
'labels' => array(
'name' => __('Twitter','aspthemes'),
'add_new_item' => str_replace(__('New Post'), __('Twitter','aspthemes'), __('Add New Post')),
),
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/twitter.png',
'supports' => array(
'title'
)
)
);
function get_twitter_account(){
return get_custom_text(TWITTER_ID, ('Twitter'));
}
add_shortcode('twitter_account', 'get_twitter_account');
function exec_twitter(){
get_import_design("twitter");
list($conf_twitter) = get_posts('post_type=twitter&order=DSC');
if ( isset( $conf_twitter ) ):
define('TWITTER_ID' , $conf_twitter->ID);
endif;
return do_shortcode(TWITTER_HTML_FRAME);
}
add_shortcode('run_twitter', 'exec_twitter');
?>
| 018erri-rose | lib/module/twitter/func.php | PHP | oos | 998 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト Twitter
register_post_type(
'twitter',
array(
'label' => 'Twitter',
'hierarchical' => false,
'public' => true,
'show_ui' => false,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/twitter.png',
'supports' => array(
'title'
)
)
);
?>
| 018erri-rose | lib/module/twitter/notshow.php | PHP | oos | 405 |
<?php
register_post_type(
'discography',
array(
'labels' => array(
'name' => __('discography', 'aspthemes'),
'add_new_item' => str_replace(__('New Post'), __('discography','aspthemes'), __('Add New Post')),
),
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/discography.png',
'supports' => array(
'title',
)
)
);
?>
| 018erri-rose | lib/module/discography/func.php | PHP | oos | 478 |
<?php
register_post_type(
'discography',
array(
'label' => 'ディスコグラフィー',
'hierarchical' => false,
'public' => true,
'show_ui' => false,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/discography.png',
'supports' => array(
'title',
)
)
);
?>
| 018erri-rose | lib/module/discography/notshow.php | PHP | oos | 362 |
<?php
register_post_type(
'photogallery',
array(
'labels' => array(
'name' => __('PhotoGallery','aspthemes'),
'add_new_item' => str_replace(__('New Post'), __('PhotoGallery','aspthemes'), __('Add New Post')),
),
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/media.png',
'supports' => array(
'title',
'editor',
'custom-fields',
'thumbnail'
)
)
);
function get_page_xml_photogallery(){
$item_content = "";
$item_content .= do_shortcode( constant( strtoupper(CUSTOM_TYPE) . '_HTML_PAGE') );
return $item_content;
}
add_shortcode('photogallery_page_xml' , 'get_page_xml_photogallery');
function get_photogallery_xml(){
return get_bloginfo('siteurl') . "/xml/photogallery/";
}
add_shortcode('photogallery_xml', 'get_photogallery_xml');
function exec_photogallery(){
get_import_design("photogallery");
return do_shortcode(PHOTOGALLERY_HTML_FRAME);
}
add_shortcode('run_photogallery', 'exec_photogallery');
function photogallery_page(){
$itemcontent = "";
wp_reset_query();
$is_single = false;
$is_page = false;
if ( is_single() ){
$is_single = true;
wp_get_single_post( POST_ID, 'OBJECT' );
} else if ( is_page() ) {
$is_page = true;
query_posts('post_type=photogallery&order=ASC');
}
if(have_posts()):
while(have_posts()): the_post();
$post_id = get_the_ID();
$post_title = get_the_title();
$permalink = get_permalink();
$attachments = get_children( array('post_parent' => $post_id, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) );
// First Image
$url_thumbnail = "";
foreach ( $attachments as $id => $attachment ){
list($url_thumbnail) = wp_get_attachment_image_src($id, array(120,90));
if ( $is_page ) break;
list($url_large) = wp_get_attachment_image_src($id, 'large');
$post_detail = $attachment->post_excerpt;
$page_template = str_replace('[photogallery_detail]', $post_detail, PHOTOGALLERY_HTML_SINGLE);
$page_template = str_replace('[photogallery_large]', $url_large, $page_template );
$page_template = str_replace('[photogallery_image]', $url_thumbnail, $page_template );
$itemcontent .= do_shortcode( $page_template );
}
if ( $is_page ){
$page_template = str_replace('[photogallery_title]', $post_title, PHOTOGALLERY_HTML_PAGE);
$page_template = str_replace('[photogallery_image]', $url_thumbnail, $page_template );
$itemcontent .= do_shortcode( $page_template );
}
endwhile;
endif;
wp_reset_query();
return $itemcontent;
}
add_shortcode('photogallery_page', 'photogallery_page');
?>
| 018erri-rose | lib/module/photogallery/func.php | PHP | oos | 2,812 |
<?php
register_post_type(
'photogallery',
array(
'label' => 'PhotoGallery',
'hierarchical' => false,
'public' => true,
'show_ui' => false,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/media.png',
'supports' => array(
'title',
'editor',
'custom-fields',
'thumbnail'
)
)
);
?>
| 018erri-rose | lib/module/photogallery/notshow.php | PHP | oos | 412 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト デザイン
register_post_type(
'design',
array(
'label' => 'デザイン',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/design.gif',
'supports' => array(
'title',
'custom-fields',
'page-attributes'
)
)
);
function manage_design_columns ($columns) {
$columns['design_type'] = __('Design type');
$columns['menu_order'] = __('Order');
unset( $columns['date'] );
return $columns;
}
function add_design_column ($column, $post_id) {
global $post;
if ( $post->post_type !== 'design' ) return;
if ($column == 'design_type') {
echo get_custom_select($post_id, 'design_type');
} else if ($column == 'menu_order') {
global $post;
echo $post->menu_order;
}
}
add_filter('manage_edit-design_columns', 'manage_design_columns');
add_action('manage_posts_custom_column', 'add_design_column', 10, 2);
function get_css_design($design_type){
wp_reset_query();
list($conf_designs) = query_posts(
array('post_type'=>'design',
'meta_query' => array(
array(
'key'=>'design_type',
'value'=>"$design_type",
),
),
'order'=>'ASC'
)
);
$style_sheet = "";
if( isset($conf_designs) ):
list($get_style) = get_post_meta($conf_designs->ID, 'stylesheet');
$style_sheet = $get_style;
endif;
wp_reset_query();
return $style_sheet;
}
function get_import_design($design_type){
$design_config = PACKAGE_ROOT . "/config/$design_type" . '.conf';
if ( is_file( $design_config ) ){
// 個別デザイン読み込み
$config = file_get_contents( $design_config );
eval( $config );
$def_types = array(
'_VIEW',
'_NAVI',
'_HTML_FRAME',
'_HTML_SINGLE',
'_HTML_PAGE');
$custom_type = strtoupper( CUSTOM_TYPE );
foreach ( $def_types as $type ){
$frame_name = $custom_type . $type;
define( $frame_name, $design[$type] );
}
return;
}
// Design Template OUTPUT
$design = array();
wp_reset_query();
list($conf_designs) = get_posts("post_type=design&meta_key=design_type&meta_value=$design_type&orderby=menu_order&order=ASC");
if( isset($conf_designs) ):
// $title = $conf_designs->post_title;
list($conf_design_type) = get_post_meta($conf_designs->ID, 'design_type');
list($design["html_frame"]) = get_post_meta($conf_designs->ID, 'html_frame');
list($design["html_page"]) = get_post_meta($conf_designs->ID, 'html_page');
list($design["html_single"]) = get_post_meta($conf_designs->ID, 'html_single');
list($design["design_per_page"]) = get_post_meta($conf_designs->ID, 'design_per_page');
list($design["design_page_navi"]) = get_post_meta($conf_designs->ID, 'design_page_navi');
$frame_name = strtoupper($design_type) . '_VIEW';
define($frame_name, $design["design_per_page"] );
$frame_name = strtoupper($design_type) . '_NAVI';
define($frame_name, $design["design_page_navi"] );
$frame_name = strtoupper($design_type) . '_HTML_FRAME';
define($frame_name, $design["html_frame"] );
$frame_name = strtoupper($design_type) . '_HTML_SINGLE';
define($frame_name, $design["html_single"] );
$frame_name = strtoupper($design_type) . '_HTML_PAGE';
define($frame_name, $design["html_page"] );
endif;
wp_reset_query();
return $design;
}
?>
| 018erri-rose | lib/design/func.php | PHP | oos | 3,590 |
<?php
//+++++++++++++++++++++++++++++++++++++++++
//ウィジェット登録
register_sidebar(array(
'description' => '',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => ''
)
);
register_sidebar(array(
'description' => '',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => ''
)
);
//ウィジェットタイトル非表示
function my_widget_title( $title ) {
return '';
}
add_filter( 'widget_title', 'my_widget_title' );
?>
| 018erri-rose | lib/func_widget.php | PHP | oos | 561 |
<?php
// ameba広告をスキップ
add_action('syndicated_post', 'delete_amebarss');
function delete_amebarss( $post ){
if ( preg_match( '/^PR/', $post['post_title'] ) ) :
return NULL;
endif;
return $post;
}
| 018erri-rose | lib/func_feedwordpress_filter.php | PHP | oos | 217 |
msgfmt --output ja.mo ja.po
| 018erri-rose | languages/03_mo.sh | Shell | oos | 28 |
xgettext --from-code=UTF-8 --keyword=_e --language php --output languages/aspthemes.pot `find $PWD -name \*.php -type f`
| 018erri-rose | languages/01_create_pot.sh | Shell | oos | 121 |
msgmerge ja.po message.pot --output ja.po
| 018erri-rose | languages/update.sh | Shell | oos | 42 |
msginit --locale=ja --input=aspthemes.pot
| 018erri-rose | languages/02_init.sh | Shell | oos | 42 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="content-style-type" content="text/css">
<meta http-equiv="content-script-type" content="text/javascript">
<title>Twitter</title>
<link rel="stylesheet" type="text/css" href="base.css" media="all" />
<link rel="stylesheet" type="text/css" href="layout.css" media="all" />
<link rel="stylesheet" type="text/css" href="style.css" media="all" />
<!-- tweet Loading -->
<!-- Import Tempo -->
<script type="text/javascript" src="tempo.min.js"></script>
<!-- This example uses jQuery's ajax() method to retrieve data from Twitter -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
var twitter = Tempo.prepare('tweets').notify(function(event) {
if (event.type === TempoEvent.Types.RENDER_STARTING || event.type === TempoEvent.Types.RENDER_COMPLETE) {
$('ol').toggleClass('loading');
}
});
twitter.starting();
$.getJSON("http://search.twitter.com/search.json?q='bijogoyomi'&rpp=10&callback=?", function(data) {
twitter.render(data.results);
});
});
</script>
</head>
<body><a name="pagetop" id="pagetop"></a>
<div id="wrapper">
<!-- ヘッダー START -->
<div id="header">
<h1><a href="index.html"><img src="images/front/img_h1.png" alt="Vivian Eastwood" title="Vivian Eastwood" /></a></h1>
</div>
<!-- //ヘッダー END// -->
<!-- グローバルナビ START -->
<div id="gnav" class="floatClear">
<ul class="navi">
<li class="gnav_01"><a href="prof.html" title="Profile">Profile</a></li>
<li class="gnav_02"><a href="info.html" title="Information">Information</a></li>
<li class="gnav_03"><a href="favorite.html" title="Favorites!">Favorites!</a></li>
<li class="gnav_04"><a href="blog.html" title="Blog">Blog</a></li>
<li class="gnav_05"><a href="twitter.html" title="Twitter" class="current">Twitter</a></li>
</ul>
</div>
<!-- //グローバルナビ END// -->
<!-- コンテンツWrapper START -->
<div class="tiwitter_main clearfix">
<!-- コンテンツ START -->
<div id="main" class="clearfix">
<div class="twitter_stitle">
<h2 class="twitter">Twitter</h2>
<p><a href="#"><img src="./images/front/btn_follow.png" /></a></p>
</div>
<!-- タイムラインSTART -->
<div class="twitter_box br_box">
<ol id="tweets">
<li class="row" data-template style="display: none;">
<div class="column grid_4 user">
<img src="images/tweeter.png" data-src="{{profile_image_url}}" height="48" width="48" />
<h3>{{from_user}}</h3>
</div>
<p class="column grid_8 text">{{text | replace '@([A-z0-9_]+)', '@<a href="http://twitter.com/$1">$1</a>'}}<span class="time">, {{created_at | date '\at HH:mm on EEEE' }}</span>
</p>
</li>
<li class="error" data-template-fallback>Sorry, but you sort of need JavaScript for this one!</li>
</ol>
</div>
<!-- //タイムラインEND// -->
</div>
<!-- //コンテンツ END// -->
<!-- Pagetop START -->
<div class="pagetop">
<p><a href="#pagetop">▲Page Topに戻る</a></p>
</div>
<!-- //Pagetop END// -->
</div>
<!-- コンテンツWrapper END// -->
<!-- フッター START -->
<div id="footer">
<p>Copyright© LesPros Entertainment Co., Ltd. All rights reserved.</p>
</div>
<!-- //フッター END// -->
</div>
</body>
</html>
| 014miharu-hirayama | twitter.html | HTML | oos | 3,871 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="content-style-type" content="text/css">
<meta http-equiv="content-script-type" content="text/javascript">
<title>Information</title>
<link rel="stylesheet" type="text/css" href="base.css" media="all" />
<link rel="stylesheet" type="text/css" href="layout.css" media="all" />
<link rel="stylesheet" type="text/css" href="style.css" media="all" />
</head>
<body><a name="pagetop" id="pagetop"></a>
<div id="wrapper">
<!-- ヘッダー START -->
<div id="header">
<h1><a href="index.html"><img src="images/front/img_h1.png" alt="平山美春" title="平山美春" /></a></h1>
</div>
<!-- //ヘッダー END// -->
<!-- グローバルナビ START -->
<div id="gnav" class="floatClear">
<ul class="navi">
<li class="gnav_01"><a href="prof.html" title="Profile">Profile</a></li>
<li class="gnav_02"><a href="info.html" title="Information" class="current">Information</a></li>
<li class="gnav_03"><a href="favorite.html" title="Favorites!">Favorites!</a></li>
<li class="gnav_04"><a href="blog.html" title="Blog">Blog</a></li>
<li class="gnav_05"><a href="twitter.html" title="Twitter">Twitter</a></li>
</ul>
</div>
<!-- //グローバルナビ END// -->
<!-- コンテンツ START -->
<div class="info_main clearfix">
<div id="main" class="clearfix">
<h2 class="info">Information</h2>
<!-- 検索条件START -->
<div id="search_box">
<form>
<div class="category">
<p><img src="./images/front/stitle_cat.png" /></p>
<select name="Genre">
<option value="">All Schedule</option>
<option value="category_name">CD/DVD</option>
</select>
</div>
<div class="monthly">
<p><img src="./images/front/stitle_month.png" /></p>
<select name="monthly Archive">
<option value="">2011年8月</option>
<option value="month">2011年7月</option>
</select>
</div>
</form>
</div>
<!-- //検索条件END// -->
<!-- ページネーションSTART -->
<div class="pager clearfix">
<ul>
<li class="now">1</li>|
<li><a href="#">2</a></li>|
<li><a href="#">3</a></li>|
<li><a href="#">4</a></li>|
<li><a href="#">5</a></li>|
<li>...<a href="#">10</a></li>
<li><a href="#">>></a></li>
</ul>
</div>
<!-- //ページネーションEND// -->
<!-- インフォ詳細START -->
<div class="info_box">
<div class="info_top">
<h3><a href="#">インフォメーションタイトルインフォメーションタイトルインフォメーションタイトルインフォメーションタイトルインフォメーションタイトル</a></h3>
<span class="date">2011年12月31日</span>
</div>
<div class="info_body">
<p><img src="./images/front/img_info.jpg" /></p>
<p class="detail">ここにインフォメーション本文が入ります。</p>
</div>
</div>
<div class="info_bottom">
<iframe src="http://www.facebook.com/plugins/like.php?app_id=142967542457847&href&send=false&layout=button_count&width=72&show_faces=true&action=like&colorscheme=light&font&height=21" scrolling="no" frameborder="0" style="none; overflow:hidden; width:72px; height:21px;" allowTransparency="true"></iframe>
</div>
<!-- //インフォ詳細END// -->
<!-- インフォ詳細START -->
<div class="info_box">
<div class="info_top">
<h3><a href="#">インフォメーションタイトル</a></h3>
<span class="date">2011年12月31日</span>
</div>
<div class="info_body">
<p class="detail">ここにインフォメーション本文が入ります。ここにインフォメーション本文が入ります。ここにインフォメーション本文が入ります。ここにインフォメーション本文が入ります。ここにインフォメーション本文が入ります。</p>
</div>
</div>
<div class="info_bottom">
<iframe src="http://www.facebook.com/plugins/like.php?app_id=142967542457847&href&send=false&layout=button_count&width=72&show_faces=true&action=like&colorscheme=light&font&height=21" scrolling="no" frameborder="0" style="none; overflow:hidden; width:72px; height:21px;" allowTransparency="true"></iframe>
</div>
<!-- //インフォ詳細END// -->
</div>
<!-- //コンテンツ END// -->
<!-- Pagetop START -->
<div class="pagetop">
<p><a href="#pagetop">▲Page Topに戻る</a></p>
</div>
<!-- //Pagetop END// -->
</div>
<!-- フッター START -->
<div id="footer">
<p>Copyright© LesPros Entertainment Co., Ltd. All rights reserved.</p>
</div>
<!-- //フッター END// -->
</div>
</body>
</html>
| 014miharu-hirayama | info.html | HTML | oos | 5,849 |
<?php
/*
Template Name: Twitter
*/
?>
<?php get_header(); ?>
<!-- TwitterID取得 -->
<?php query_posts('post_type=twitter'); ?>
<?php if(have_posts()): ?>
<?php while(have_posts()): the_post(); ?>
<?php $twitter = get_post_meta($post->ID, 'Twitter', true); ?>
<?php endwhile; ?>
<?php endif; ?>
<!-- //TwitterID取得// -->
<!-- tweet Loading -->
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/tempo.min.js"></script>
<!-- This example uses jQuery's ajax() method to retrieve data from Twitter -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
var twitter = Tempo.prepare('tweets').notify(function(event) {
if (event.type === TempoEvent.Types.RENDER_STARTING || event.type === TempoEvent.Types.RENDER_COMPLETE) {
$('ol').toggleClass('loading');
}
});
twitter.starting();
$.getJSON("http://search.twitter.com/search.json?q='<?php echo $twitter; ?>'&rpp=10&callback=?", function(data) {
twitter.render(data.results);
});
});
</script>
<a name="top"></a>
<div id="wrapper">
<div id="google_translate_element"></div>
<!-- ヘッダー START -->
<div id="header">
<h1><a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/front/img_h1.png" alt="平山美春 " title="平山美春 " /></a></h1>
</div>
<!-- //ヘッダー END// -->
<!-- グローバルナビ START -->
<?php echo do_shortcode("[gnavi]"); ?>
<!-- //グローバルナビ END// -->
<!-- コンテンツWrapper START -->
<div class="tiwitter_main clearfix">
<!-- コンテンツWrapper START -->
<div class="tiwitter_main clearfix">
<!-- コンテンツ START -->
<div id="main" class="clearfix">
<div class="twitter_stitle">
<h2 class="twitter">Twitter</h2>
<p><a target="_blank" href="http://twitter.com/#!/miharu386"><img id="twimg" src="<?php bloginfo('template_url'); ?>/images/front/btn_follow.png" /></a></p>
</div>
</br>
<!-- タイムラインSTART -->
<div class="twitter_box br_box">
<ol id="tweets">
<li class="row" data-template style="display: none;">
<div class="column grid_4 user">
<img src="images/tweeter.png" data-src="{{profile_image_url}}" height="48" width="48" />
<h3>{{from_user}}</h3>
</div>
<p class="column grid_8 text">{{text | replace '@([A-z0-9_]+)', '@<a href="http://twitter.com/$1">$1</a>'}}<span class="time">, {{created_at | date '\at HH:mm on EEEE' }}</span>
</p>
</li>
<li class="error" data-template-fallback>Sorry, but you sort of need JavaScript for this one!</li>
</ol>
</div>
<!-- //タイムラインEND// -->
<!-- Pagetop START -->
<div class="pagetop">
<p><a href="#">▲Page Topに戻る</a></p>
</div>
<!-- //Pagetop END// -->
<?php get_footer(); ?>
| 014miharu-hirayama | custom_twitter.php | PHP | oos | 2,946 |
<?php
/*
Template Name: Discography
*/
?>
<?php get_header(); ?>
<a name="top"></a>
<div id="wrapper">
<div id="google_translate_element"></div>
<!-- ヘッダーSTART -->
<div id="header">
<h1><?php bloginfo('name'); ?></h1>
</div>
<!-- //ヘッダーEND// -->
<!-- グローバルナビSTART -->
<?php echo get_global_menu(); ?>
<!-- //グローバルナビEND// -->
<!-- パン屑START -->
<div id="bread">
<?php if(function_exists('bcn_display')){
bcn_display();
} ?>
</div>
<!-- //パン屑END// -->
<!-- コンテンツタイトルSTART -->
<div id="photo_title">
<h2>Discography</h2>
</div>
<!-- //コンテンツタイトルEND// -->
<!-- グッズSTART -->
<?php if(is_single()){ $displayablePostID = get_the_ID();}else{$displayablePostID = "";} ?>
<?php query_posts('post_type=discography'); ?>
<?php if(have_posts()): ?>
<?php while(have_posts()): the_post(); ?>
<!-- #シングルページなら -->
<?php if($displayablePostID !== "" && $displayablePostID == get_the_ID()): ?>
<!-- シングルページSTART -->
<?php if(get_post_meta($displayablePostID, '登録タイプ', true) == "ALBUM"): ?>
<?php echo wp_get_attachment_image(get_post_meta($displayablePostID, 'アルバム画像', true)) . "<br>"; ?>
<?php echo get_post_meta($displayablePostID, '発売日', true) . "<br>"; ?>
<?php echo get_post_meta($displayablePostID, '商品番号', true) . "<br>"; ?>
<?php echo '<a href="' . get_post_meta($displayablePostID, 'iTunesストア', true) . '" target=_blank>iTunes</a><br>'; ?>
<?php echo '<a href="' . get_post_meta($displayablePostID, 'Amazon', true) . '" target=_blank>Amazon</a><br>'; ?>
<?php echo '<a href="' . get_post_meta($displayablePostID, 'SonyMusicStore', true) . '" target=_blank>SonyMusicStore</a><br>'; ?>
<?php echo '<a href="' . get_post_meta($displayablePostID, 'HMV', true) . '" target=_blank>HMV</a><br>'; ?>
<?php echo '<a href="' . get_post_meta($displayablePostID, 'TowerRecords', true) . '" target=_blank>TowerRecords</a><br>'; ?>
<?php echo '<a href="' . get_post_meta($displayablePostID, 'レコチョク', true) . '" target=_blank>レコチョク</a><br>'; ?>
<?php echo '<a href="' . get_post_meta($displayablePostID, 'Spotify', true) . '" target=_blank>Spotify</a><br>'; ?>
<?php echo "<BR>"; ?>
<?php $songlist = explode(",", get_post_meta($displayablePostID, '収録曲リスト', true)); ?>
<?php
foreach($songlist as $key => $value){
echo get_the_title($value) . "<br>";
echo gethtml_discography_ext_links($value);
echo "<br>";
}
?>
<?php endif ?>
<!-- シングルページEND -->
<?php endif ?>
<!-- #シングルページでなければ -->
<?php if($displayablePostID == ""): ?>
<?php if(get_post_meta($post->ID, '登録タイプ', true) == "ALBUM"): ?>
<?php echo wp_get_attachment_image(get_post_meta($post->ID, 'アルバム画像', true)) . "<br>"; ?>
<?php echo get_post_meta($post->ID, '発売日', true) . "<br>"; ?>
<?php echo get_post_meta($post->ID, '商品番号', true) . "<br>"; ?>
<?php echo gethtml_discography_ext_links($post->ID); ?>
<?php echo '<a href="' . get_permalink() . '">⇒アルバム詳細</a><br>'; ?>
<?php endif ?>
<?php endif ?>
<?php endwhile; ?>
<?php endif; ?>
<!-- //グッズEND// -->
<!-- フッターSTART -->
<div id="footer" class="floatClear">
<p><a href="#top">Page Top</a></p>
</div>
<!-- //フッターEND// -->
</div>
<?php get_footer(); ?>
<?php
function gethtml_discography_ext_links($id){
$html = "";
if ( get_post_meta($id, 'iTunesストア', true) !== "" ){
$html .= '<a href="' . get_post_meta($id, 'iTunesストア', true) . '">iTunes</a><br />';
}
if ( get_post_meta($id, 'Amazon', true) !== "" ){
$html .= '<a href="' . get_post_meta($id, 'Amazon', true) . '">Amazon</a><br />';
}
if ( get_post_meta($id, 'SonyMusicStore', true) !== "" ){
$html .= '<a href="' . get_post_meta($id, 'SonyMusicStore', true) . '">SonyMusicStore</a><br />';
}
if ( get_post_meta($id, 'HMV', true) !== "" ){
$html .= '<a href="' . get_post_meta($id, 'HMV', true) . '">HMV</a><br />';
}
if ( get_post_meta($id, 'TowerRecords', true) !== "" ){
$html .= '<a href="' . get_post_meta($id, 'TowerRecords', true) . '">TowerRecords</a><br />';
}
if ( get_post_meta($id, 'レコチョク', true) !== "" ){
$html .= '<a href="' . get_post_meta($id, 'レコチョク', true) . '">レコチョク</a><br />';
}
if ( get_post_meta($id, 'Spotify', true) !== "" ){
$html .= '<a href="' . get_post_meta($id, 'Spotify', true) . '">Spotify</a><br />';
}
return $html;
}
| 014miharu-hirayama | custom_discography.php | PHP | oos | 4,709 |
/*
Theme Name: 014miharu_hirayama
Description: miharu_hirayama
Author: Stock Style
*/
@charset "utf-8";
/*------------------------------トップページ */
.top_main {
height:375px;
background:url(images/front/bg_top.jpg) 0 0 no-repeat;
position:relative;
}
.top_img {
width:337px;
height:375px;
top:0;
left:259px;
position:absolute;
}
.top_msg {
width:200px;
position:absolute;
top:100px;
left:70px;
text-align:center;
}
.top_msg em {
font-size:123.1%;
font-style: normal;
font-weight:bold;
color:#980000;
}
.top_msg p {
margin-top:10px;
line-height:1.5em;
text-align:left;
font-size:93%;
color:#000;
}
/*------------------------------プロフィール */
.prof_main {
background:url(./images/front/bg_main.png) left repeat-y;
}
.prof_img {
width:255px;
height:388px;
float:left;
display:inline;
margin:0 0 0 24px;
}
.prof_msg {
width:206px;
float:left;
display:inline;
color:#595959;
}
.prof_msg h3 {
font-size:138.5%;
font-weight:bold;
margin:10px 0 5px;
color:#595959;
}
.prof_msg p.bd {
margin-top:5px;
font-size:93%;
color:#595959;
}
.prof_msg p.p_data {
margin-top:10px;
line-height:1.5em;
font-size:93%;
}
/*------------------------------インフォメーション/イベント */
#search_box {
width:500px;
margin:10px auto 20px;
}
#search_box select{
margin-top:10px;
font-size:85%;
width:200px;
background-color:#ffffff;
}
#search_box .category {
width:200px;
float:left;
display:inline;
margin-right:50px;
padding-left:20px;
}
#search_box .month {
width:230px;
float:left;
}
.info_main {
background:url(./images/front/bg_main.png) left repeat-y;
}
.info_box {
width:460px;
margin:10px auto 7px auto;
background:#fff;
}
.info_top {
width:460px;
margin:0;
padding:0 0 20px 0;
position:relative;
background:url(images/front/line_lace.png) bottom repeat-x;
}
.info_top h3 {
width:350px;
padding:10px 0 0 10px;
font-size:138.5%;
font-weight:normal;
}
.info_top h3 a {
color:#7d7d7d;
}
.info_top .date {
width:90px;
font-size:85%;
position:absolute;
right:5px;
bottom:20px;
color:#7d7d7d;
}
.info_body {
clear:both;
}
.detail {
font-size: 93%;
line-height: 1.5em;
margin: 10px 20px 0 25px;
padding:10px;
}
.info_body p {
padding:10px;
color:#7d7d7d;
}
.info_bottom {
width:460px;
height:23px;
margin:0 auto 35px auto;
padding:0;
text-align:right;
}
/*------------------------------Favorite */
.fav_main {
background:url(./images/front/bg_main.png) left repeat-y;
}
.fav_box {
width:460px;
padding:0 0 18px 0;
margin:0 auto 18px auto;
background:url(images/front/bg_fav.png) bottom repeat-x;
}
.fav_img {
width:148px;
float:left;
}
.fav_item {
width:300px;
padding:0 0 0 12px;
float:right;
}
h3.fav_title {
padding:0 0 3px 0;
color:#000;
}
h3.fav_title a {
color:#000;
}
.fav_price {
padding:0 0 5px 0;
color:#000;
}
.fav_price span {
padding:0 0 0 1em;
font-size:12px;
}
.fav_detail {
padding:0 0 10px 0;
color:#595959;
}
.fav_item label {
padding:0 0 5px 0;
display:block;
color:#595959;
}
.fav_item label select {
width:100px;
margin:0 0 0 10px;
}
.fav_model {
padding:0 30px 0 0;
margin:0 0 10px 0;
text-align:right;
}
.fav_model a {
width:142px;
height:0;
padding:23px 0 0 0;
background:url(images/front/btn_model.jpg) 0 0 no-repeat;
display:block;
overflow:hidden;
float:right;
}
.fav_model a:hover {
opacity:0.8;
}
.fav_button {
text-align:center;
}
#fav_buy {
width:203px;
height:38px;
margin:0;
background:url(images/front/btn_buy.jpg) 0 0 no-repeat;
border:none;
cursor:pointer;
}
#fav_buy:hover {
opacity:0.8;
}
/*------------------------------ブログ */
.blog_main {
background:url(./images/front/bg_main.png) left repeat-y;
}
.blog_box {
width:460px;
margin:10px auto 7px auto;
background:#fff;
}
.blog_top {
width:460px;
margin:0;
padding:0 0 20px 0;
position:relative;
background:url(images/front/line_lace.png) bottom repeat-x;
}
.blog_top h3 {
width:350px;
padding:10px 0 0 10px;
font-size:138.5%;
font-weight:normal;
}
.blog_top h3 a {
color:#595959;
}
.blog_top .date {
font-size:85%;
position:absolute;
right:5px;
bottom:20px;
color:#595959;
}
.blog_body {
clear:both;
}
.blog_body p {
padding:10px;
/*font-size:1.2em;*/
line-height:1.5em;
color:#595959;
}
.blog_bottom {
width:460px;
height:23px;
margin:0 auto 15px auto;
padding:0;
text-align:right;
}
/*------------------------------twitter */
.tiwitter_main {
background:url(./images/front/bg_main.png) left repeat-y;
}
.twitter_box {
width:460px;
padding:0 10px 20px 10px;
margin:0 auto 7px auto;
background:#fff;
}
.twitter_stitle {
position:relative;
}
.twitter_stitle p {
position:absolute;
left:389px;
top:68px;
}
.twitter_stitle p:hover {
opacity:0.8;
}
.followme {
width:500px;
height:60px;
text-align:right;
background:url(./images/front/line_top.jpg) no-repeat center bottom;
}
.twitter_box a{
color:#ff3dff;
}
ol {
margin: 0;
padding: 0;
list-style: none outside none;
}
ol#tweets.loading {
padding: 6em 0;
}
ol#tweets li {
font-size:1.2em;
padding: 1.25em 0;
border-bottom: 1px dashed #ccc;
color:#000;
}
ol#tweets li.error {
margin: 50px 0 30px 0;
font-family: Georgia, "Times New Roman", serif;
text-align: center;
font-size: 1.0em;
}
ol#tweets p span.time {
font-size: 0.9em;
color: #999;
}
.user img {
float: left;
padding: 5px;
border: 1px solid #e9e9e9;
margin-right: 20px;
}
.user h3 {
float: left;
margin: 0 15px 0 0;
line-height: 60px;
}
ol#tweets p {
font-size: 1.0em;
clear:left;
}
/*------------------------------ショップ */
.shop_img {
width:335px;
float:left;
display:inline;
margin:0 10px;
}
.shop_msg {
width:150px;
float:left;
display:inline;
}
.shop_msg h3 {
font-size:1.6em;
font-weight:bold;
color:#993e7d;
margin:0;
}
.shop_msg p.p_data {
margin-top:10px;
font-size:1.2em;
line-height:1.5em;
}
.tablenav {
color: #2583ad;
margin: 1em auto;
line-height:2em;
text-align:center;
}
a.page-numbers, .tablenav .current {
color: #00019b;
padding: 2px .4em;
border:solid 1px #ccc;
text-decoration:none;
font-size:smaller;
}
a.page-numbers:hover {
color:white;
background: #328ab2;
}
.tablenav .current {
color: white;
background: #328ab2;
border-color: #328ab2;
font-weight:bold:
}
.tablenav .next, .tablenav .prev {
border:0 none;
background:transparent;
text-decoration:underline;
font-size:smaller;
font-weight:bold;
}
| 014miharu-hirayama | style.css | CSS | oos | 6,439 |
<?php get_header(); ?>
<a name="pagetop" id="pagetop"></a>
<div id="wrapper">
<!-- ヘッダー START -->
<div id="header">
<h1><a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/front/img_h1.png" alt="平山美春 " title="平山美春 " /></a></h1>
</div>
<!-- //ヘッダー END// -->
<!-- グローバルナビ START -->
<div id="gnav" class="floatClear">
<ul class="navi">
<li class="gnav_01"><a href="<?php bloginfo('template_url'); ?>/single/profile/46/" title="Profile">Profile</a></li>
<li class="gnav_02"><a href="<?php bloginfo('template_url'); ?>/event" title="Information">Information</a></li>
<li class="gnav_03"><a href="#" title="Favorites!">Favorites!</a></li>
<li class="gnav_04"><a href="<?php bloginfo('template_url'); ?>/blog" title="Blog">Blog</a></li>
<li class="gnav_05"><a href="<?php bloginfo('template_url'); ?>/twitter" title="Twitter">Twitter</a></li>
</ul>
</div>
<!-- //グローバルナビ END// -->
<!-- コンテンツ START -->
<div id="main" class="top_main clearfix">
<div class="top_img">
<img src="<?php bloginfo('template_url'); ?>/images/front/img_top.jpg" alt="kozue akimoto" title="kozue akimoto" />
</div>
<div class="top_msg clearfix">
<em>Welcome !!</em>
<p>平山 美春(ひらやま みはる)は、レプロエンタテインメント所属のファッションモデルとして活躍中です!</p>
<p>女性ファッション雑誌「CanCam」(小学館)の専属モデル。</p>
<p>趣味はスポーツ観戦、芸術鑑賞、ショッピング。</p>
</div>
</div>
<!-- //コンテンツ END// -->
<!-- フッター START -->
<div id="footer">
<p>Copyright© LesPros Entertainment Co., Ltd. All rights reserved.</p>
</div>
<!-- //フッター END// -->
</div>
<?php get_footer(); ?>
| 014miharu-hirayama | custom_topic.php | PHP | oos | 1,910 |
<?php
define("PACKAGE_ROOT", dirname(__FILE__));
include_once PACKAGE_ROOT.'/conf/facebook_const.php';
include_once PACKAGE_ROOT.'/lib/mastercontrol.php';
//+++++++++++++++++++++++++++++++++++++++++
//カスタムヘッダー
include_once 'lib/func_header.php';
include_once 'lib/func_footer.php';
include_once 'lib/layout/func.php';
include_once 'lib/design/func.php';
include_once 'lib/social.php';
function ogp_single_blog(){}
add_shortcode('ogp_single_blog', 'ogp_single_base_content');
function get_blog_like(){}
add_shortcode('blog_like', 'get_base_like');
/*
add_custom_image_header('','admin_header_style');
function admin_header_style() {}
//標準のヘッダー画像を指定
define('HEADER_IMAGE','%s/images/header.jpg');
//ヘッダー画像の横幅と高さを指定
define('HEADER_IMAGE_WIDTH','256');
define('HEADER_IMAGE_HEIGHT','88');
//ヘッダーの文字を隠す
define('NO_HEADER_TEXT',true);
//背景画像を指定
add_custom_background();
//記事のpタグを削除
remove_filter('the_content', 'wpautop');
*/
//+++++++++++++++++++++++++++++++++++++++++
//カスタムメニュー
include_once 'lib/func_gnavi.php';
/*
register_nav_menus(array(
'navbar' => 'ナビゲーションバー',
'sidebar' => 'サイドバー'
));
*/
//+++++++++++++++++++++++++++++++++++++++++
//エディタ・スタイルシート
add_editor_style();
//+++++++++++++++++++++++++++++++++++++++++
//ウィジェット登録
register_sidebar(array(
'description' => '',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => ''
)
);
register_sidebar(array(
'description' => '',
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => ''
)
);
//ウィジェットタイトル非表示
function my_widget_title( $title ) {
return '';
}
add_filter( 'widget_title', 'my_widget_title' );
//+++++++++++++++++++++++++++++++++++++++++
// アイキャチ画像
add_theme_support('post-thumbnails');
set_post_thumbnail_size(120, 90, true);
//set_post_thumbnail_size(120, 90);
//+++++++++++++++++++++++++++++++++++++++++
// アイキャチ画像のURLを取得
function get_featured_image_url() {
$image_id = get_post_thumbnail_id();
$image_url = wp_get_attachment_image_src($image_id, 'thumbnail', true);
echo $image_url[0];
}
//+++++++++++++++++++++++++++++++++++++++++
// 管理バーを消す
add_filter( 'show_admin_bar', '__return_false' );
//+++++++++++++++++++++++++++++++++++++++++
// ログイン画面ロゴ
function custom_login_logo() {
echo '<style type="text/css">h1 a { background: url('.get_bloginfo('template_directory').'/images/tool/master_control_image.png) 50% 50% no-repeat !important; }</style>';
}
add_action('login_head', 'custom_login_logo');
//+++++++++++++++++++++++++++++++++++++++++
// 管理画面左上のロゴ
add_action('admin_head', 'my_custom_logo');
function my_custom_logo() {
echo '<style type="text/css">#header-logo { background-image:url('.get_bloginfo('template_directory').'/images/tool/master_control_logo.png) !important; }</style>';
}
//+++++++++++++++++++++++++++++++++++++++++
// 管理画面フッターのテキスト
function custom_admin_footer() {
echo '© CYBIRD Co., Ltd All Rights Reserved.';
}
add_filter('admin_footer_text', 'custom_admin_footer');
//+++++++++++++++++++++++++++++++++++++++++
// HTML エディタのフォントを変更
function change_editor_font(){
echo "<style type='text/css'>
#editorcontainer textarea#content {
font-family: \"ヒラギノ角ゴ Pro W3\",
\"Hiragino Kaku Gothic Pro\",
Osaka,
\"MS Pゴシック\",
sans-serif;
font-size:14px;
color:#333;
}
</style>";
}
add_action("admin_print_styles", "change_editor_font");
//+++++++++++++++++++++++++++++++++++++++++
// アドミンバーを消す
add_filter('show_admin_bar','__return_false');
//+++++++++++++++++++++++++++++++++++++++++
// 管理者以外にアップデートのお知らせ非表示
if (!current_user_can('edit_users')) {
function wphidenag() {
remove_action( 'admin_notices', 'update_nag');
}
add_action('admin_menu','wphidenag');
}
//+++++++++++++++++++++++++++++++++++++++++
// 管理者以外にダッシュボードの内容非表示
if (!current_user_can('edit_users')) {
remove_all_actions('wp_dashboard_setup');
function example_remove_dashboard_widgets() {
global $wp_meta_boxes;
//Main column
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);
//Side Column
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts']);
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);
}
add_action('wp_dashboard_setup', 'example_remove_dashboard_widgets' );
}
//+++++++++++++++++++++++++++++++++++++++++
// 管理者以外は[表示オプション][ヘルプ]のタブを非表示にする
if (!current_user_can('edit_users')) {
function my_admin_print_styles(){
echo '
<style type="text/css">
#screen-options-link-wrap,
#contextual-help-link-wrap{display:none;}
</style>';
}
add_action('admin_print_styles', 'my_admin_print_styles', 21);
}
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト Event情報
include_once 'lib/module/info/func.php';
/*
register_post_type(
'event',
array(
'label' => 'イベント情報',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => get_bloginfo('template_url').'/images/tool/event.png',
'supports' => array(
'title',
'editor'
)
)
);
*/
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト photogallery
register_post_type(
'photogallery',
array(
'label' => 'フォトギャラリー',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => get_bloginfo('template_url').'/images/tool/media.png',
'supports' => array(
'title',
'editor',
'custom-fields',
'thumbnail'
)
)
);
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト DISCOGRAPHY
register_post_type(
'discography',
array(
'label' => 'ディスコグラフィー',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => get_bloginfo('template_url').'/images/tool/discography.png',
'supports' => array(
'title',
)
)
);
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト MEDIA
register_post_type(
'media',
array(
'label' => 'メディア/出演情報',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => get_bloginfo('template_url').'/images/tool/media.png',
'supports' => array(
'title',
'editor',
'custom-fields'
)
)
);
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト BLOG
include_once 'lib/module/blog/func.php';
/*
register_post_type(
'blog',
array(
'label' => 'ブログ',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => get_bloginfo('template_url').'/images/tool/blog.png',
'supports' => array(
'title',
'editor',
'custom-fields'
)
)
);
*/
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト MULTI-BLOG
register_post_type(
'multiblog',
array(
'label' => 'マルチブログ',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => get_bloginfo('template_url').'/images/tool/blog.png',
'supports' => array(
'title',
'editor',
'custom-fields'
)
)
);
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト ITUNES
register_post_type(
'itunes',
array(
'label' => 'iTunes',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => get_bloginfo('template_url').'/images/tool/itune.png',
'supports' => array(
'title',
'editor'
)
)
);
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト GOODS
register_post_type(
'goods',
array(
'label' => 'グッズ',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => get_bloginfo('template_url').'/images/tool/goods.png',
'supports' => array(
'title',
'thumbnail'
)
)
);
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト Twitter
include_once 'lib/module/twitter/func.php';
/*
register_post_type(
'twitter',
array(
'label' => 'Twitter',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => get_bloginfo('template_url').'/images/tool/twitter.png',
'supports' => array(
'title'
)
)
);
*/
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト YouTube
register_post_type(
'youtube',
array(
'label' => 'YouTube',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => get_bloginfo('template_url').'/images/tool/youtube.png',
'supports' => array(
'title'
)
)
);
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト Profile
register_post_type(
'profile',
array(
'label' => 'プロフィール',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => get_bloginfo('template_url').'/images/tool/profile.png',
'supports' => array(
'title',
'editor'
)
)
);
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト MasterControl Setting
register_post_type(
'mastercontrol',
array(
'label' => 'MasterControl',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => get_bloginfo('template_url').'/images/tool/master_control_logo.png',
'supports' => array(
'title'
)
)
);
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト おすすめコーデ
register_post_type(
'osusume',
array(
'label' => 'おすすめコーデ',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => get_bloginfo('template_url').'/images/tool/stockstyle.png',
'supports' => array(
'title',
'editor',
'custom-fields'
)
)
);
//+++++++++++++++++++++++++++++++++++++++++
//パンくずリスト用(未使用)
function get_breadcrumbs(){
global $wp_query;
if ( !is_home() ){
// Add the Home link
echo '<a href="'. get_settings('home') .'">TOP</a>';
if ( is_category() )
{
$catTitle = single_cat_title( "", false );
$cat = get_cat_ID( $catTitle );
echo '><span class="now">'. get_category_parents( $cat, TRUE, "" ) .'</span>';
}
elseif ( is_archive() && !is_category() )
{
echo '> <span class="now">Archives</span>';
}
elseif ( is_search() ) {
echo '> <span class="now">Search Results</span>';
}
elseif ( is_404() )
{
echo '> <span class="now">404 Not Found</span>';
}
elseif ( is_single() )
{
$category = get_the_category();
$category_id = get_cat_ID( $category[0]->cat_name );
echo '><span class="now">'. get_category_parents( $category_id, TRUE, ">" );
echo ' ' . the_title('','', FALSE) ."</span>";
}
elseif ( is_page() )
{
$post = $wp_query->get_queried_object();
if ( $post->post_parent == 0 ){
echo ' > <span class="now">'.the_title('','', FALSE).'</span>';
} else {
$title = the_title('','', FALSE);
$ancestors = array_reverse( get_post_ancestors( $post->ID ) );
array_push($ancestors, $post->ID);
foreach ( $ancestors as $ancestor ){
if( $ancestor != end($ancestors) ){
echo ' > <a href="'. get_permalink($ancestor) .'">'. strip_tags( apply_filters( 'single_post_title', get_the_title( $ancestor ) ) ) .'</a>';
} else {
echo ' > <span class="now">'. strip_tags( apply_filters( 'single_post_title', get_the_title( $ancestor ) ) ) .'</span>';
}
}
}
}
}
}
function get_breadcrumb(){
if(function_exists('bcn_display')){
return bcn_display(true);
}
return;
}
add_shortcode('bcn_display', 'get_breadcrumb');
//+++++++++++++++++++++++++++++++++++++++++
// ギャラリー用facebookいいねボタン追加
/* デフォルトのショートコードを削除 */
remove_shortcode('gallery', 'gallery_shortcode');
/* 新しい関数を定義 */
add_shortcode('gallery', 'my_gallery_shortcode');
function my_gallery_shortcode($attr) {
global $post, $wp_locale;
static $instpe = 0;
$instpe++;
// Allow plugins/themes to override the default gallery template.
$output = apply_filters('post_gallery', '', $attr);
if ( $output != '' )
return $output;
// We're trusting author input, so let's at least make sure it looks like a valid orderby statement
if ( isset( $attr['orderby'] ) ) {
$attr['orderby'] = sanitize_sql_orderby( $attr['orderby'] );
if ( !$attr['orderby'] )
unset( $attr['orderby'] );
}
extract(shortcode_atts(array(
'order' => 'ASC',
'orderby' => 'menu_order ID',
'id' => $post->ID,
'itemtag' => 'dl',
'icontag' => 'dt',
'captiontag' => 'dd',
'columns' => 3,
'size' => 'thumbnail',
'include' => '',
'exclude' => ''
), $attr));
$id = intval($id);
if ( 'RAND' == $order )
$orderby = 'none';
if ( !empty($include) ) {
$include = preg_replace( '/[^0-9,]+/', '', $include );
$_attachments = get_posts( array('include' => $include, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) );
$attachments = array();
foreach ( $_attachments as $key => $val ) {
$attachments[$val->ID] = $_attachments[$key];
}
} elseif ( !empty($exclude) ) {
$exclude = preg_replace( '/[^0-9,]+/', '', $exclude );
$attachments = get_children( array('post_parent' => $id, 'exclude' => $exclude, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) );
} else {
$attachments = get_children( array('post_parent' => $id, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) );
}
if ( empty($attachments) )
return '';
if ( is_feed() ) {
$output = "¥n";
foreach ( $attachments as $att_id => $attachment )
$output .= wp_get_attachment_link($att_id, $size, true) . "¥n";
return $output;
}
$itemtag = tag_escape($itemtag);
$captiontag = tag_escape($captiontag);
$columns = intval($columns);
$itemwidth = $columns > 0 ? floor(100/$columns) : 100;
$float = is_rtl() ? 'right' : 'left';
$selector = "gallery-{$instpe}";
$output = apply_filters('gallery_style', "
<style type='text/css'>
#{$selector} {
margin: auto;
}
#{$selector} .gallery-item {
float: {$float};
margin-top: 10px;
text-align: center;
width: {$itemwidth}%; }
#{$selector} img {
border: 2px solid #cfcfcf;
}
#{$selector} .gallery-caption {
margin-left: 0;
}
</style>
<!-- see gallery_shortcode() in wp-includes/media.php -->
<div id='$selector' class='gallery galleryid-{$id}'>");
$i = 0;
foreach ( $attachments as $id => $attachment ) {
$link = isset($attr['link']) && 'file' == $attr['link'] ? wp_get_attachment_link($id, $size, false, false) : wp_get_attachment_link($id, $size, true, false);
$output .= "<{$itemtag} class='gallery-item'>";
$output .= "
<{$icontag} class='gallery-icon'>
$link
</{$icontag}>";
if ( $captiontag && trim($attachment->post_excerpt) ) {
$output .= "
<{$captiontag} class='gallery-caption'>
" . wptexturize($attachment->post_excerpt) . "
</{$captiontag}>";
}
$url_thumbnail = wp_get_attachment_image_src($id, $size='thumbnail');
$url = urlencode(get_bloginfo('home') . '/?attachment_id=' . $id);
$url .= urlencode('&app_data=' . get_bloginfo('home') . '/?attachment_id=' . $id);
$output .= '<p><div class="btn_like"><iframe src="http://www.facebook.com/plugins/like.php?href=';
$output .= $url;
$output .= '&id=fb&send=false&layout=button_count&show_faces=false&width=120&action=like&colorscheme=light$amp;locale=ja_JA&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:120px; height:21px;" allowTransparency="true"></iframe></div></p>';
$output .= "</{$itemtag}>";
if ( $columns > 0 && ++$i % $columns == 0 )
$output .= '<br style="clear: both" />';
}
$output .= "</div>";
return $output;
}
function remove_gallery_css() {
return "<div id='gallery_box'>";
}
add_filter('gallery_style', 'remove_gallery_css');
function fix_gallery_output( $output ){
$output = preg_replace("%<br style=.*clear: both.* />%", "", $output);
$output = preg_replace("%<dl class='gallery-item'>%", "<div class='photobox'>", $output);
$output = preg_replace("%<dt class='gallery-icon'>%", "", $output);
$output = preg_replace("%</dl>%", "</div>", $output);
$output = preg_replace("%</dt>%", "", $output);
return $output;
}
add_filter('the_content', 'fix_gallery_output',11, 1);
//+++++++++++++++++++++++++++++++++++++++++
?>
| 014miharu-hirayama | functions.php | PHP | oos | 17,716 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="content-style-type" content="text/css">
<meta http-equiv="content-script-type" content="text/javascript">
<title>平山美春 facebook page</title>
<link rel="stylesheet" type="text/css" href="base.css" media="all" />
<link rel="stylesheet" type="text/css" href="layout.css" media="all" />
<link rel="stylesheet" type="text/css" href="style.css" media="all" />
</head>
<body><a name="pagetop" id="pagetop"></a>
<div id="wrapper">
<!-- ヘッダー START -->
<div id="header">
<h1><a href="index.html"><img src="images/front/img_h1.png" alt="平山美春" title="平山美春" /></a></h1>
</div>
<!-- //ヘッダー END// -->
<!-- グローバルナビ START -->
<div id="gnav" class="floatClear">
<ul class="navi">
<li class="gnav_01"><a href="prof.html" title="Profile">Profile</a></li>
<li class="gnav_02"><a href="info.html" title="Information">Information</a></li>
<li class="gnav_03"><a href="favorite.html" title="Favorites!">Favorites!</a></li>
<li class="gnav_04"><a href="blog.html" title="Blog">Blog</a></li>
<li class="gnav_05"><a href="twitter.html" title="Twitter">Twitter</a></li>
</ul>
</div>
<!-- //グローバルナビ END// -->
<!-- コンテンツ START -->
<div id="main" class="top_main clearfix">
<div class="top_img">
<img src="./images/front/img_top.jpg" alt="平山美春" width="261" height="375" title="平山美春" />
</div>
<div class="top_msg clearfix">
<em>Welcome !!</em>
<p>ここにお好きなメッセージを入れることが可能です。</p>
<p>文字色、文字サイズは変更が可能ですが、書体は変更ができませんので、ご注意ください。</p>
<p>ファンへのメッセージや伝えたいことなど、お好きにどうぞ・・・。</p>
</div>
</div>
<!-- //コンテンツ END// -->
<!-- フッター START -->
<div id="footer">
<p>Copyright© LesPros Entertainment Co., Ltd. All rights reserved.</p>
</div>
<!-- //フッター END// -->
</div>
</body>
</html>
| 014miharu-hirayama | index.html | HTML | oos | 2,242 |