FluxBB.org

Changeset 728

Show
Ignore:
Timestamp:
11/12/08 14:28:41 (2 months ago)
Author:
Paul
Message:

See note to r.719

Location:
fluxbb/branches/fluxbb-1.3-dev/upload
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • fluxbb/branches/fluxbb-1.3-dev/upload/delete.php

    r630 r728  
    116116 
    117117// Setup form 
    118 $forum_page['group_count'] = $forum_page['item_count'] = $forum_page['fld_count'] = 0; 
     118$forum_page['fld_count'] = 0; 
    119119$forum_page['form_action'] = forum_link($forum_url['delete'], $id); 
    120120 
     
    131131); 
    132132 
    133 // Generate the post heading 
    134 $forum_page['post_ident'] = array(); 
    135 $forum_page['post_ident']['byline'] = '<span class="post-byline">'.sprintf((($cur_post['is_topic']) ? $lang_delete['Topic byline'] : $lang_delete['Reply byline']), '<strong>'.forum_htmlencode($cur_post['poster']).'</strong>').'</span>'; 
    136 $forum_page['post_ident']['link'] = '<span class="post-link"><a class="permalink" href="'.forum_link($forum_url['post'], $cur_post['tid']).'">'.format_time($cur_post['posted']).'</a></span>'; 
    137  
    138133($hook = get_hook('dl_pre_item_ident_merge')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
    139  
    140 // Generate the post title 
    141 if ($cur_post['is_topic']) 
    142         $forum_page['item_subject'] = sprintf($lang_delete['Topic title'], $cur_post['subject']); 
    143 else 
    144         $forum_page['item_subject'] = sprintf($lang_delete['Reply title'], $cur_post['subject']); 
    145  
    146 $forum_page['item_subject'] = forum_htmlencode($forum_page['item_subject']); 
    147134 
    148135// Setup breadcrumbs 
     
    154141); 
    155142 
     143// Setup main heading 
     144$forum_page['main_hd'] = end($forum_page['crumbs']); 
     145 
    156146($hook = get_hook('dl_pre_header_load')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 
    157147 
     
    159149require FORUM_ROOT.'header.php'; 
    160150 
    161 // START SUBST - <!-- forum_main --> 
     151// START SUBST - <!-- forum_main_content --> 
    162152ob_start(); 
    163153 
     
    165155 
    166156?> 
    167         <div class="main-content main-frm"> 
    168                 <div class="ct-box info-box"> 
    169                         <ul class="info-list"> 
    170                                 <?php echo implode("\n\t\t\t\t", $forum_page['frm_info'])."\n" ?> 
    171                         </ul> 
     157        <div class="content"> 
     158                <div id="post-delete" class="section section-1 datafrm"> 
     159<?php ($hook = get_hook('dl_pre_post_display')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
     160                        <div class="section-hd"> 
     161                                <ul class="info-list"> 
     162                                        <?php echo implode("\n\t\t\t\t", $forum_page['frm_info'])."\n" ?> 
     163                                </ul> 
     164                        </div> 
     165                        <div class="post-entry"> 
     166                                <div class="entry-content"> 
     167                                        <?php echo $cur_post['message']."\n" ?> 
     168                                </div> 
     169<?php ($hook = get_hook('dl_new_post_entry_data')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
     170                        </div> 
    172171                </div> 
    173 <?php ($hook = get_hook('dl_pre_post_display')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
    174                 <div class="post singlepost"> 
    175                         <div class="posthead"> 
    176                                 <h3 class="hn post-ident"><?php echo implode(' ', $forum_page['post_ident']) ?></h3> 
    177 <?php ($hook = get_hook('dl_new_post_head_option')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
    178                         </div> 
    179                         <div class="postbody"> 
    180                                 <div class="post-entry"> 
    181                                         <h4 class="entry-title hn"><?php echo $forum_page['item_subject'] ?></h4> 
    182                                         <div class="entry-content"> 
    183                                                 <?php echo $cur_post['message']."\n" ?> 
    184                                         </div> 
    185 <?php ($hook = get_hook('dl_new_post_entry_data')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
    186                                 </div> 
    187                         </div> 
    188                 </div> 
     172                <div class="section datafrm"> 
    189173                <form class="frm-form" method="post" accept-charset="utf-8" action="<?php echo $forum_page['form_action'] ?>"> 
    190174                        <div class="hidden"> 
    191175                                <?php echo implode("\n\t\t\t\t", $forum_page['hidden_fields'])."\n" ?> 
    192176                        </div> 
    193 <?php ($hook = get_hook('dl_pre_confirm_delete_fieldset')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
    194                         <fieldset class="frm-group group<?php echo ++$forum_page['group_count'] ?>"> 
    195                                 <legend class="group-legend"><strong><?php echo ($cur_post['is_topic']) ? $lang_delete['Delete topic'] : $lang_delete['Delete post'] ?></strong></legend> 
     177<?php ($hook = get_hook('dl_pre_confirm_delete_group')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
     178                        <div class="frm-group frm-group-1"> 
    196179<?php ($hook = get_hook('dl_pre_confirm_delete_checkbox')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
    197                                 <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>"> 
     180                                <div class="sf-set frm-set frm-set-1"> 
    198181                                        <div class="sf-box checkbox"> 
    199182                                                <span class="fld-input"><input type="checkbox" id="fld<?php echo ++$forum_page['fld_count'] ?>" name="req_confirm" value="1" checked="checked" /></span> 
    200                                                 <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_delete['Please confirm'] ?></span> <?php printf(((($cur_post['is_topic'])) ? $lang_delete['Delete topic label'] : $lang_delete['Delete post label']), forum_htmlencode($cur_post['poster']), format_time($cur_post['posted'])) ?></label> 
     183                                                <label for="fld<?php echo $forum_page['fld_count'] ?>"><span><?php echo $lang_delete['Please confirm'] ?></span> <br /><small><?php printf(((($cur_post['is_topic'])) ? $lang_delete['Delete topic label'] : $lang_delete['Delete post label']), forum_htmlencode($cur_post['poster']), format_time($cur_post['posted'])) ?></small></label> 
    201184                                        </div> 
    202185                                </div> 
    203186<?php ($hook = get_hook('dl_pre_confirm_delete_fieldset_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
    204                         </fieldset> 
     187                        </div> 
    205188<?php ($hook = get_hook('dl_confirm_delete_fieldset_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 
    206189                        <div class="frm-buttons"> 
    207                                 <span class="submit"><input type="submit" name="delete" value="<?php echo ($cur_post['is_topic']) ? $lang_delete['Delete topic'] : $lang_delete['Delete post'] ?>" /></span> 
    208                                 <span class="cancel"><input type="submit" name="cancel" value="<?php echo $lang_common['Cancel'] ?>" /></span> 
     190                                <p class="frm-actions"><span class="submit"><input type="submit" name="delete" value="<?php echo ($cur_post['is_topic']) ? $lang_delete['Delete topic'] : $lang_delete['Delete post'] ?>" /></span> <span class="cancel"><input type="submit" name="cancel" value="<?php echo $lang_common['Cancel'] ?>" /></span></p> 
    209191                        </div> 
    210192                </form> 
     193                </div> 
    211194        </div> 
    212195<?php 
     
    217200 
    218201$tpl_temp = forum_trim(ob_get_contents()); 
    219 $tpl_main = str_replace('<!-- forum_main -->', $tpl_temp, $tpl_main); 
     202$tpl_main = str_replace('<!-- forum_main_content -->', $tpl_temp, $tpl_main); 
    220203ob_end_clean(); 
    221 // END SUBST - <!-- forum_main --> 
     204// END SUBST - <!-- forum_main_content --> 
    222205 
    223206require FORUM_ROOT.'footer.php'; 
  • fluxbb/branches/fluxbb-1.3-dev/upload/lang/English/delete.php

    r564 r728  
    1616'Topic title'                   =>      'Topic: %s', 
    1717'Reply title'                   =>      'Reply to: %s', 
    18 'Please confirm'                =>      'Please confirm:', 
     18'Please confirm'                =>      'Please confirm', 
    1919'Post del redirect'             =>      'Post deleted. Redirecting 
', 
    2020'Topic del redirect'    =>      'Topic deleted. Redirecting 
',