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

Changeset 10117


Ignore:
Timestamp:
Jan 13, 2009, 8:35:49 PM (11 years ago)
Author:
nagasawa
Message:

added The part for the newest information

Location:
OpenPNE3/trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/pc_frontend/templates/_partsBox.php

    r9603 r10117  
    11<?php include_customizes($id, 'before') ?>
    2 <div id="<?php echo $id ?>" class="dparts box"><div class="parts">
     2<div id="<?php echo $id ?>" class="dparts box"><div class="parts <?php echo isset($option['parts']) ? $option['parts'] : '' ?>">
    33
    44<?php if ($title) : ?>
     
    1212<div class="block">
    1313<?php if (empty($option['form'])) : ?>
    14 <div class="body">
     14<div <?php echo $option['padding'] ? 'class="body"' : '' ?> >
    1515<?php include_customizes($id, 'bodyTop') ?>
    1616<?php echo $sf_data->getRaw('body') ?>
  • OpenPNE3/trunk/lib/helper/PartsHelper.php

    r10035 r10117  
    8282    $request = sfContext::getInstance()->getRequest();
    8383    $option['url'] = $request->getParameter('module').'/'.$request->getParameter('action');
     84  }
     85
     86  if (!isset($option['padding']))
     87  {
     88    $option['padding'] = true;
    8489  }
    8590
     
    164169}
    165170
     171/**
     172 * Include news box
     173 *
     174 */
     175function include_news($id, $title = '', $list, $option = array())
     176{
     177  $option['padding'] = false;
     178  $option['parts'] = 'newsParts';
     179  $params = array(
     180    'list' => $list,
     181  );
     182
     183 include_box( $id, $title, get_partial('global/partsNews', $params), $option);
     184}
     185
     186/**
     187 * Include news pager
     188 *
     189 */
     190function include_news_pager($id, $title = '', $pager, $list, $link_to_detail)
     191{
     192  $params = array(
     193    'id' => $id,
     194    'title' => $title,
     195    'pager' => $pager,
     196    'list' => $list,
     197    'link_to_detail' => $link_to_detail,
     198  );
     199
     200 include_partial('global/partsNewsPager', $params);
     201}
     202
  • OpenPNE3/trunk/web/css/main.css

    r10106 r10117  
    478478}
    479479
    480 .box form .operation {
     480.box .operation {
    481481  padding: 10px 0;
     482}
     483
     484/*==============================================================================
     485 * news
     486 *----------------------------------------------------------------------------*/
     487.newsParts th, div.newsParts td {
     488  border-color:#CCCCCC;
     489  border-style:solid;
     490  border-width:1px 0 0 1px;
     491  padding: 5px;
     492}
     493
     494.newsParts th {
     495  width: 83px;
     496}
     497
     498.newsParts .block {
     499  border-width: 0;
     500}
     501
     502.newsParts div.moreInfo ul.moreInfo {
     503  margin: 0 2px 0 auto;
     504  width: 10em;
     505  padding-left: 85px;
     506  text-indent: -72px;
     507}
     508
     509/*==============================================================================
     510 * news pager
     511 *----------------------------------------------------------------------------*/
     512.newsPager .block {
     513  border-top-width: 0;
     514}
     515
     516.newsPager dl {
     517  border-top: 1px solid #CCCCCC;
     518  overflow: hidden;
     519}
     520
     521.newsPager dt {
     522  float: left;
     523  padding: 5px;
     524  text-align: center;
     525  width: 170px;
     526}
     527
     528.newsPager dd {
     529  border-left: 1px solid #CCCCCC;
     530  margin-left: 180px;
     531  padding: 5px;
    482532}
    483533
Note: See TracChangeset for help on using the changeset viewer.