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

Changeset 5803


Ignore:
Timestamp:
Mar 16, 2008, 4:34:11 AM (13 years ago)
Author:
ebihara
Message:

#333:入力した文字装飾が表示されるようにした

Location:
OpenPNE/branches/work/ebihara/prj_deco_diary/webapp
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/work/ebihara/prj_deco_diary/webapp/lib/db/etc.php

    r5568 r5803  
    970970}
    971971
     972function db_decoration_enable_list()
     973{
     974    $sql = 'SELECT tagname,is_enabled FROM c_config_decoration';
     975    $decoration_enable_list = db_get_all($sql);
     976
     977    $result = array();
     978    foreach ($decoration_enable_list as $value) {
     979        $tagname = strtr($value['tagname'], ':', '_');
     980        $result[$tagname] = $value['is_enabled'];
     981    }
     982
     983    return $result;
     984}
    972985
    973986?>
  • OpenPNE/branches/work/ebihara/prj_deco_diary/webapp/modules/pc/init.inc

    r4933 r5803  
    5858    $smarty->assign('INC_HEADER_inc_page_top', p_common_c_siteadmin4target_pagename('inc_page_top'));
    5959    $smarty->assign('INC_HEADER_inc_page_top2', p_common_c_siteadmin4target_pagename('inc_page_top2'));
     60    $smarty->assign('INC_HEADER_decoration_config', db_decoration_enable_list());
    6061
    6162    // INC_FOOTER_* (inc_footer.tpl)
  • OpenPNE/branches/work/ebihara/prj_deco_diary/webapp/modules/pc/templates/fh_diary.tpl

    r4285 r5803  
    455455
    456456<div class="lh_120" id="DOM_fh_diary_body">
    457 ({$target_diary.body|nl2br|t_url2cmd:'diary'|t_cmd:'diary'})
     457({$target_diary.body|nl2br|t_url2cmd:'diary'|t_cmd:'diary'|t_decoration})
    458458</div>
    459459
  • OpenPNE/branches/work/ebihara/prj_deco_diary/webapp/modules/pc/templates/h_diary_add_confirm.tpl

    r5082 r5803  
    8181<div class="padding_s">
    8282
    83 ({$form_val.body|nl2br|t_url2cmd:'diary'|t_cmd:'diary'})
     83({$form_val.body|nl2br|t_url2cmd:'diary'|t_cmd:'diary'|t_decoration})
    8484
    8585</div>
  • OpenPNE/branches/work/ebihara/prj_deco_diary/webapp/modules/pc/templates/inc_header.tpl

    r5740 r5803  
    249249({/if})
    250250
     251/* 文字装飾 */
     252({if $INC_HEADER_decoration_config.op_b})
     253span.op_b {
     254    font-weight : bold;
     255}
     256({/if})
     257
     258({if $INC_HEADER_decoration_config.op_u})
     259span.op_u {
     260    text-decoration : underline;
     261}
     262({/if})
     263
     264({if $INC_HEADER_decoration_config.op_s})
     265span.op_s {
     266    text-decoration : line-through;
     267}
     268({/if})
     269
     270({if $INC_HEADER_decoration_config.op_i})
     271span.op_i {
     272    font-style : italic;
     273}
     274({/if})
     275
     276({if $INC_HEADER_decoration_config.op_large})
     277span.op_large {
     278    font-size : 20px;
     279}
     280({/if})
     281
     282({if $INC_HEADER_decoration_config.op_small})
     283span.op_small {
     284    font-size : 8px;
     285}
     286({/if})
     287
     288({if !$INC_HEADER_decoration_config.op_color})
     289span.color {
     290    color : #000 !important;
     291}
     292({/if})
     293
    251294({$INC_HEADER_inc_custom_css|smarty:nodefaults})
    252295
Note: See TracChangeset for help on using the changeset viewer.