Advertisement
Guest User

Untitled

a guest
Apr 16th, 2011
672
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.35 KB | None | 0 0
  1. add_action( 'submitpost_box', 'third_column_edit_form' );
  2. add_action( 'submitpage_box', 'third_column_edit_form' );
  3. function third_column_edit_form() {
  4.     global $post_type, $post;
  5.     //if( 'your-type' != $post_type )
  6.     //  return;
  7.     $side_meta_boxes2 = do_meta_boxes( $post_type, 'column3', $post );
  8. }
  9.  
  10. add_action( 'admin_print_styles-post.php',     'third_column_css');
  11. add_action( 'admin_print_styles-post-new.php', 'third_column_css');
  12. function third_column_css () {
  13.     ?>
  14.     <style type="text/css">
  15.     #side-info-column {
  16.       width: 580px;
  17.     }
  18.  
  19.     #post-body {
  20.       margin-right: -620px !important;
  21.     }
  22.  
  23.     #post-body-content {
  24.       margin-right: 600px !important;
  25.     }
  26.  
  27.     #column3-sortables {
  28.       width: 280px;
  29.       float: right;
  30.       display: block;
  31.       min-height: 200px;
  32.     }
  33.  
  34.     #side-sortables {
  35.       float: left;
  36.       display: block;
  37.       min-height: 200px;
  38.     }
  39.  
  40.     /* Style copied from #side-sortables */
  41.  
  42.     #column3-sortables .category-tabs, #column3-sortables .category-tabs {
  43.       margin-bottom: 3px;
  44.     }
  45.  
  46.     #column3-sortables .category-tabs li, #column3-sortables .add-menu-item-tabs li {
  47.       display: inline;
  48.     }
  49.  
  50.     #column3-sortables .category-tabs a, #column3-sortables .add-menu-item-tabs a {
  51.       text-decoration: none;
  52.     }
  53.  
  54.     #column3-sortables .category-tabs .tabs a, #column3-sortables .add-menu-item-tabs .tabs a {
  55.       color: #333;
  56.     }
  57.     </style>
  58.     <?php
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement