Changeset 34563 for trunk/src/wp-admin/includes/widgets.php
- Timestamp:
- 09/25/2015 09:01:46 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/widgets.php
r34017 r34563 182 182 $add_new = isset($sidebar_args['_add']) ? $sidebar_args['_add'] : ''; 183 183 184 $before_form = isset( $sidebar_args['before_form'] ) ? $sidebar_args['before_form'] : '<form method="post">'; 185 $after_form = isset( $sidebar_args['after_form'] ) ? $sidebar_args['after_form'] : '</form>'; 186 $before_widget_content = isset( $sidebar_args['before_widget_content'] ) ? $sidebar_args['before_widget_content'] : '<div class="widget-content">'; 187 $after_widget_content = isset( $sidebar_args['after_widget_content'] ) ? $sidebar_args['after_widget_content'] : '</div>'; 188 184 189 $query_arg = array( 'editwidget' => $widget['id'] ); 185 190 if ( $add_new ) { … … 226 231 227 232 <div class="widget-inside"> 228 < form method="post">229 < div class="widget-content">230 <?php231 if ( isset( $control['callback']) )233 <?php echo $before_form; ?> 234 <?php echo $before_widget_content; ?> 235 <?php 236 if ( isset( $control['callback'] ) ) { 232 237 $has_form = call_user_func_array( $control['callback'], $control['params'] ); 233 else 234 echo "\t\t<p>" . __('There are no options for this widget.') . "</p>\n"; ?> 235 </div> 238 } else { 239 echo "\t\t<p>" . __('There are no options for this widget.') . "</p>\n"; 240 } 241 ?> 242 <?php echo $after_widget_content; ?> 236 243 <input type="hidden" name="widget-id" class="widget-id" value="<?php echo esc_attr($id_format); ?>" /> 237 244 <input type="hidden" name="id_base" class="id_base" value="<?php echo esc_attr($id_base); ?>" /> … … 253 260 <br class="clear" /> 254 261 </div> 255 < /form>262 <?php echo $after_form; ?> 256 263 </div> 257 264
Note: See TracChangeset
for help on using the changeset viewer.