=$d3) print " ";
}
/******************************************
「今週号から」マークを表示します
引数で投稿日と「今週号から」マークを表示する期間を指定します
******************************************/
/*
例 <?php disp_thisweek("<$MTEntryCustomFieldDate field='magazine_number' format='%Y%m%d'$>"); ?>
*/
function disp_thisweek($d1){
$d3=date( "Ymd", mktime( 0,0,0,date("m") ,date("d"), date("Y") ) );
if($d1>$d3) print "
";
}
/******************************************
以下cssのクラス指定やurl指定等で
MTCategoryBasename以外の表記を行いたい時用
(例の"<>"は全角文字で記述しています)
******************************************/
/*
例 <?php echo($genreKey1["<$MTCategoryBasename$>"]); ?>
*/
$genreKey1 = array(
"world" => "World"
, "us" => "America"
, "business" => "Business"
, "movie" => "Cinema"
);
$genreKey2 = array(
"world" => "world"
, "us" => "usa"
, "business" => "business"
, "movie" => "cinema"
);
$genreKey3 = array(
"world" => "World"
, "us" => "Us"
, "business" => "Business"
, "movie" => "Movie"
);
$genreKey4 = array(
"world" => "World Affairs"
, "us" => "U.S. Affairs"
, "business" => "Business"
, "movie" => "Movie&Drama"
);
$genreKey5 = array(
"world" => "東西南北 世界の視点からニュースの深層を読む"
, "us" => "政治・経済・社会・カルチャー AMERICAはいま"
, "business" => "世界経済ウォッチ グローバル分析&リポート"
, "movie" => "話題の新作、知られざる傑作から最新業界事情まで"
);
$genreKey6 = array(
"world" => "world"
, "us" => "world"
, "business" => "business"
, "movie" => "entertainment"
);
?>