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

Changeset 10184


Ignore:
Timestamp:
Jan 15, 2009, 9:53:13 PM (11 years ago)
Author:
nagasawa
Message:

#3447:fixed Processing of padding which was being processed by include_box and css was divided into include_simple_box

Location:
OpenPNE3/trunk
Files:
1 added
3 edited

Legend:

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

    r10174 r10184  
    1 <?php include_customizes($id, 'before') ?>
    2 <div id="<?php echo $id ?>" class="dparts box"><div class="parts <?php echo isset($option['parts']) ? $option['parts'] : '' ?>">
    3 
    4 <?php if ($title) : ?>
    5 <div class="partsHeading">
    6 <?php include_customizes($id, 'headTop') ?>
    7 <h3><?php echo $title ?></h3>
    8 <?php include_customizes($id, 'headBottom') ?>
    9 </div>
    10 <?php endif; ?>
    11 
    12 <div class="block">
    131<?php if (empty($option['form'])) : ?>
    14 <div <?php echo $option['padding'] ? 'class="body"' : '' ?> >
     2<div class="body">
    153<?php include_customizes($id, 'bodyTop') ?>
    164<?php echo $sf_data->getRaw('body') ?>
     
    219<?php if (isset($option['form'])) : ?>
    2210<?php if (!empty($body)) : ?>
    23 <div <?php echo $option['padding'] ? 'class="body"' : '' ?> >
     11<div class="body">
    2412<?php include_customizes($id, 'bodyTop') ?>
    2513<?php echo $sf_data->getRaw('body') ?>
     
    5947</form>
    6048<?php endif; ?>
    61 
    62 </div>
    63 
    64 </div></div>
    65 <?php include_customizes($id, 'after') ?>
  • OpenPNE3/trunk/apps/pc_frontend/templates/_partsNewsPager.php

    r10126 r10184  
    1 <div class="<?php echo $id ?>">
    2 <div class="dparts searchResultList"><div class="parts partsNewsPager">
    3 <div class="partsHeading"><h3><?php echo $title ?></h3></div>
    4 
    51<div class="pagerRelative"><p class="number"><?php echo pager_navigation($pager, 'friend/list?page=%d&id=' . $sf_params->get('id')); ?></p></div>
    6 
    7 <div class="block">
    82<?php foreach ($list as $res): ?>
    93<dl>
     
    3327
    3428<div class="pagerRelative"><p class="number"><?php echo pager_navigation($pager, 'friend/list?page=%d&id=' . $sf_params->get('id')); ?></p></div>
    35 
    36 </div></div>
    37 </div>
  • OpenPNE3/trunk/lib/helper/PartsHelper.php

    r10117 r10184  
    7373}
    7474
     75function include_simple_box($id, $title = '', $block = '', $option = array())
     76{
     77  if(!isset($option['border']))
     78  {
     79    $option['border'] = true;
     80  }
     81  if(!isset($option['class']))
     82  {
     83    $option['class'] = '';
     84  }
     85
     86  $params = array(
     87    'id' => $id,
     88    'title' => $title,
     89    'block' => $block,
     90    'option' => $option,
     91  );
     92
     93  include_partial('global/partsSimpleBox', $params);
     94}
     95
    7596function include_box($id, $title = '', $body = '', $option = array())
    7697{
     
    84105  }
    85106
    86   if (!isset($option['padding']))
    87   {
    88     $option['padding'] = true;
    89   }
    90 
    91   $params = array(
    92     'id' => $id,
    93     'title' => $title,
     107  $params = array(
     108    'id' => $id,
    94109    'body' => $body,
    95110    'option' => $option,
    96111  );
    97 
    98   include_partial('global/partsBox', $params);
     112  include_simple_box($id, $title, get_partial('global/partsBox', $params), array('class' => 'box'));
    99113}
    100114
     
    170184
    171185/**
    172  * Include news box
     186 * Include news
    173187 *
    174188 */
    175189function include_news($id, $title = '', $list, $option = array())
    176190{
    177   $option['padding'] = false;
    178   $option['parts'] = 'newsParts';
     191  $option['class'] = 'partsNews';
    179192  $params = array(
    180193    'list' => $list,
    181194  );
    182195
    183  include_box( $id, $title, get_partial('global/partsNews', $params), $option);
     196 include_simple_box( $id, $title, get_partial('global/partsNews', $params), $option);
    184197}
    185198
     
    198211  );
    199212
    200  include_partial('global/partsNewsPager', $params);
    201 }
    202 
     213 include_simple_box( $id, $title, get_partial('global/partsNewsPager', $params), array('class' => 'partsNewsPager'));
     214}
     215
Note: See TracChangeset for help on using the changeset viewer.