Changeset 728
- Timestamp:
- 11/12/08 14:28:41 (2 months ago)
- Location:
- fluxbb/branches/fluxbb-1.3-dev/upload
- Files:
-
- 2 modified
-
delete.php (modified) (6 diffs)
-
lang/English/delete.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
fluxbb/branches/fluxbb-1.3-dev/upload/delete.php
r630 r728 116 116 117 117 // Setup form 118 $forum_page[' group_count'] = $forum_page['item_count'] = $forum_page['fld_count'] = 0;118 $forum_page['fld_count'] = 0; 119 119 $forum_page['form_action'] = forum_link($forum_url['delete'], $id); 120 120 … … 131 131 ); 132 132 133 // Generate the post heading134 $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 138 133 ($hook = get_hook('dl_pre_item_ident_merge')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 139 140 // Generate the post title141 if ($cur_post['is_topic'])142 $forum_page['item_subject'] = sprintf($lang_delete['Topic title'], $cur_post['subject']);143 else144 $forum_page['item_subject'] = sprintf($lang_delete['Reply title'], $cur_post['subject']);145 146 $forum_page['item_subject'] = forum_htmlencode($forum_page['item_subject']);147 134 148 135 // Setup breadcrumbs … … 154 141 ); 155 142 143 // Setup main heading 144 $forum_page['main_hd'] = end($forum_page['crumbs']); 145 156 146 ($hook = get_hook('dl_pre_header_load')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; 157 147 … … 159 149 require FORUM_ROOT.'header.php'; 160 150 161 // START SUBST - <!-- forum_main -->151 // START SUBST - <!-- forum_main_content --> 162 152 ob_start(); 163 153 … … 165 155 166 156 ?> 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> 172 171 </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"> 189 173 <form class="frm-form" method="post" accept-charset="utf-8" action="<?php echo $forum_page['form_action'] ?>"> 190 174 <div class="hidden"> 191 175 <?php echo implode("\n\t\t\t\t", $forum_page['hidden_fields'])."\n" ?> 192 176 </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"> 196 179 <?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"> 198 181 <div class="sf-box checkbox"> 199 182 <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> 201 184 </div> 202 185 </div> 203 186 <?php ($hook = get_hook('dl_pre_confirm_delete_fieldset_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 204 </ fieldset>187 </div> 205 188 <?php ($hook = get_hook('dl_confirm_delete_fieldset_end')) ? (defined('FORUM_USE_INCLUDE') ? include $hook : eval($hook)) : null; ?> 206 189 <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> 209 191 </div> 210 192 </form> 193 </div> 211 194 </div> 212 195 <?php … … 217 200 218 201 $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); 220 203 ob_end_clean(); 221 // END SUBST - <!-- forum_main -->204 // END SUBST - <!-- forum_main_content --> 222 205 223 206 require FORUM_ROOT.'footer.php'; -
fluxbb/branches/fluxbb-1.3-dev/upload/lang/English/delete.php
r564 r728 16 16 'Topic title' => 'Topic: %s', 17 17 'Reply title' => 'Reply to: %s', 18 'Please confirm' => 'Please confirm :',18 'Please confirm' => 'Please confirm', 19 19 'Post del redirect' => 'Post deleted. Redirecting âŠ', 20 20 'Topic del redirect' => 'Topic deleted. Redirecting âŠ',
