ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 5988


Ignore:
Timestamp:
Mar 23, 2008, 3:21:49 AM (14 years ago)
Author:
ogawa
Message:

配色設定(一部)、スキン画像変更に対応

Location:
OpenPNE/branches/prj/xhtmlcss/OpenPNE-2.11.4/public_html
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/prj/xhtmlcss/OpenPNE-2.11.4/public_html/xhtml_style.php

    r5983 r5988  
    66
    77require_once './config.inc.php';
    8 
    9 // include_path の設定
    10 include_once OPENPNE_LIB_DIR . '/include/PHP/Compat/Constant/PATH_SEPARATOR.php';
    11 $include_paths = array(OPENPNE_LIB_DIR . '/include', OPENPNE_WEBAPP_DIR . '/lib', ini_get('include_path'));
    12 ini_set('include_path', implode(PATH_SEPARATOR, $include_paths));
    13 require_once OPENPNE_WEBAPP_DIR . '/lib/OpenPNE/DB.php';
    14 require_once OPENPNE_WEBAPP_DIR . '/lib/db/common.php';
    15 require_once OPENPNE_WEBAPP_DIR . '/lib/db/etc.php';
     8require_once OPENPNE_WEBAPP_DIR . '/init.inc';
     9require_once 'smarty_plugins/function.t_img_url_skin.php';
     10
     11$colors = util_get_color_config();
     12function getSkin($name)
     13{
     14    $params['filename'] = $name;
     15    return smarty_function_t_img_url_skin($params, $dummy);
     16}
    1617
    1718header('Content-Type: text/css');
     
    163164ul.moreInfo li {
    164165        padding: 2px 0 2px 20px;
    165         background: url(http://takai.sns.dazai.pne.jp/skin/default/img/icon_arrow_1.gif) no-repeat 0 0.4em;
     166        background: url(<?php echo getSkin('icon_arrow_1'); ?>) no-repeat 0 0.4em;
    166167}
    167168ul.moreInfo.button li {
     
    180181.input_submit {
    181182        border: 1px solid #888888;
    182         background: #dadce6 url(http://takai.sns.dazai.pne.jp/skin/default/img/bg_button.gif) repeat-x scroll 50% 0;
     183        background: #dadce6 url(<?php echo getSkin('bg_button'); ?>) repeat-x scroll 50% 0;
    183184        letter-spacing: 0;
    184185}
     
    293294        overflow: hidden;
    294295        padding: 2px 0 2px 36px;
    295         background: #36b3d1 url(http://takai.sns.dazai.pne.jp/skin/default/img/content_header_1.gif) no-repeat 0 0;
     296        background: #<?php echo $colors['bg_06']; ?> url(<?php echo getSkin('content_header_1'); ?>) no-repeat 0 0;
    296297        text-align: left;
    297298        font-size: 100%;
     
    299300#LayoutA #Left .partsHeading {
    300301        padding-left: 24px;
    301         background-image: url(http://takai.sns.dazai.pne.jp/skin/default/img/icon_title_1.gif);
     302        background-image: url(<?php echo getSkin('icon_title_1'); ?>);
    302303}
    303304.partsHeading h3 {
     
    386387}
    387388#globalNav {
    388         background: url(http://takai.sns.dazai.pne.jp/skin/005_openpne_blue/img/skin_after_header.jpg) 0 0 no-repeat;
     389        background: url(<?php echo getSkin('skin_after_header'); ?>) 0 0 no-repeat;
    389390}
    390391#globalNavBefore {
    391392        margin-bottom: 10px;
    392         background: url(http://takai.sns.dazai.pne.jp/skin/005_openpne_blue/img/skin_before_header.jpg) 0 0 no-repeat;
    393 }
    394 #Footer {
    395         position: relative;
    396         width: 720px;
    397         height: 21px;
    398         background: url(http://takai.sns.dazai.pne.jp/skin/default/img/skin_footer.jpg) 0 0 no-repeat;
    399 }
    400 #Footer p {
    401         padding-right: 12px;
    402         line-height: 21px;
    403         text-align: right;
     393        background: url(<?php echo getSkin('skin_before_header'); ?>) 0 0 no-repeat;
    404394}
    405395.localNav {
     
    410400}
    411401#globalNav li a:hover, #globalNav li a:active {
    412         background-image: url(http://takai.sns.dazai.pne.jp/skin/005_openpne_blue/img/skin_after_header_2.jpg);
     402        background-image: url(<?php echo getSkin('skin_after_header_2'); ?>);
    413403}
    414404#hLocalNav {
    415         background: url(http://takai.sns.dazai.pne.jp/skin/005_openpne_blue/img/skin_navi_h.jpg) 0 0 no-repeat;
     405        background: url(<?php echo getSkin('skin_navi_h'); ?>) 0 0 no-repeat;
    416406}
    417407#hLocalNav li a:hover, #hLocalNav li a:active {
    418         background-image: url(http://takai.sns.dazai.pne.jp/skin/005_openpne_blue/img/skin_navi_h_2.jpg);
     408        background-image: url(<?php echo getSkin('skin_navi_h_2'); ?>);
    419409}
    420410#fLocalNav {
    421         background: url(http://takai.sns.dazai.pne.jp/skin/005_openpne_blue/img/skin_navi_f.jpg) 0 0 no-repeat;
     411        background: url(<?php echo getSkin('skin_navi_f'); ?>) 0 0 no-repeat;
    422412}
    423413#fLocalNav li a:hover, #fLocalNav li a:active {
    424         background-image: url(http://takai.sns.dazai.pne.jp/skin/005_openpne_blue/img/skin_navi_f_2.jpg);
     414        background-image: url(<?php echo getSkin('skin_navi_f_2'); ?>);
    425415}
    426416#cLocalNav {
    427         background: url(http://takai.sns.dazai.pne.jp/skin/005_openpne_blue/img/skin_navi_c.jpg) 0 0 no-repeat;
     417        background: url(<?php echo getSkin('skin_navi_c'); ?>) 0 0 no-repeat;
    428418}
    429419#cLocalNav li a:hover, #cLocalNav li a:active {
    430         background-image: url(http://takai.sns.dazai.pne.jp/skin/005_openpne_blue/img/skin_navi_c_2.jpg);
     420        background-image: url(<?php echo getSkin('skin_navi_c_2'); ?>);
    431421}
    432422#globalNav h1,
     
    561551        width: 720px;
    562552        height: 21px;
    563         background: url(http://takai.sns.dazai.pne.jp/skin/default/img/skin_footer.jpg) 0 0 no-repeat;
     553        background: url(<?php echo getSkin('skin_footer'); ?>) 0 0 no-repeat;
    564554}
    565555#Footer p {
     
    650640.searchResultList td.operation {
    651641        padding: 0;
    652         background: url(http://takai.sns.dazai.pne.jp/skin/org/bg_border.gif) repeat-y 120px 0;
     642        background: url(<?php echo getSkin('bg_border'); ?>) repeat-y 120px 0;
    653643}
    654644.searchResultList span.text {
     
    692682        width: 4.3em;
    693683        padding-left: 13px;
    694         background: url(http://takai.sns.dazai.pne.jp/skin/default/img/icon_1.gif) 3px 50% no-repeat scroll;
     684        background: url(<?php echo getSkin('icon_1'); ?>) 3px 50% no-repeat scroll;
    695685}
    696686.homeMainTable dl.articleList dd {
     
    698688        margin-left: 5.3em;
    699689        padding-left: 18px;
    700         background: url(http://takai.sns.dazai.pne.jp/skin/org/articleList_marker.gif) 0 4px no-repeat scroll;
     690        background: url(<?php echo getSkin('articleList_marker'); ?>) 0 4px no-repeat scroll;
    701691}
    702692.homeMainTable div.moreInfo ul.moreInfo {
     
    726716.sideNav .pageNav li {
    727717        padding: 4px 0 4px 18px;
    728         background: url(http://takai.sns.dazai.pne.jp/skin/default/img/icon_1.gif) 8px 50% no-repeat scroll;
     718        background: url(<?php echo getSkin('icon_1'); ?>) 8px 50% no-repeat scroll;
    729719}
    730720.sideNav .pageNav li.looking {
     
    750740        background: no-repeat 6px 4px;
    751741}
    752 .sideNav .monthlyMessage li  { background-image: url(http://takai.sns.dazai.pne.jp/skin/default/img/icon_1.gif); }
    753 .sideNav .recentlyDiary li   { background-image: url(http://takai.sns.dazai.pne.jp/skin/default/img/icon_3.gif); }
    754 .sideNav .recentlyComment li { background-image: url(http://takai.sns.dazai.pne.jp/skin/default/img/icon_1.gif); }
    755 .sideNav .monthlyDiary li    { background-image: url(http://takai.sns.dazai.pne.jp/skin/default/img/icon_2.gif); }
    756 .sideNav .listCategory li    { background-image: url(http://takai.sns.dazai.pne.jp/skin/default/img/icon_2.gif); }
     742.sideNav .monthlyMessage li  { background-image: url(<?php echo getSkin('icon_1'); ?>); }
     743.sideNav .recentlyDiary li   { background-image: url(<?php echo getSkin('icon_3'); ?>); }
     744.sideNav .recentlyComment li { background-image: url(<?php echo getSkin('icon_1'); ?>); }
     745.sideNav .monthlyDiary li    { background-image: url(<?php echo getSkin('icon_2'); ?>); }
     746.sideNav .listCategory li    { background-image: url(<?php echo getSkin('icon_2'); ?>); }
    757747
    758748/*==============================================================================
     
    11751165        margin-right: 2px;
    11761166        padding: 1px 13px 0 0;
    1177         background: url(http://takai.sns.dazai.pne.jp/skin/default/img/icon_arrow_2.gif) no-repeat 100% 0;
     1167        background: url(<?php echo getSkin('icon_arrow_2'); ?>) no-repeat 100% 0;
    11781168}
    11791169
Note: See TracChangeset for help on using the changeset viewer.