Changeset 10117
- Timestamp:
- Jan 13, 2009, 8:35:49 PM (12 years ago)
- Location:
- OpenPNE3/trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE3/trunk/apps/pc_frontend/templates/_partsBox.php
r9603 r10117 1 1 <?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'] : '' ?>"> 3 3 4 4 <?php if ($title) : ?> … … 12 12 <div class="block"> 13 13 <?php if (empty($option['form'])) : ?> 14 <div class="body">14 <div <?php echo $option['padding'] ? 'class="body"' : '' ?> > 15 15 <?php include_customizes($id, 'bodyTop') ?> 16 16 <?php echo $sf_data->getRaw('body') ?> -
OpenPNE3/trunk/lib/helper/PartsHelper.php
r10035 r10117 82 82 $request = sfContext::getInstance()->getRequest(); 83 83 $option['url'] = $request->getParameter('module').'/'.$request->getParameter('action'); 84 } 85 86 if (!isset($option['padding'])) 87 { 88 $option['padding'] = true; 84 89 } 85 90 … … 164 169 } 165 170 171 /** 172 * Include news box 173 * 174 */ 175 function 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 */ 190 function 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 478 478 } 479 479 480 .box form.operation {480 .box .operation { 481 481 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; 482 532 } 483 533
Note: See TracChangeset
for help on using the changeset viewer.