Changeset 1887 for trunk


Ignore:
Timestamp:
02/27/2011 04:25:04 AM (15 months ago)
Author:
Xiping.Wang
Message:

[trunk]fix blog's left sidebar

Location:
trunk/blogs/wp-content/themes/mike2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/blogs/wp-content/themes/mike2/functions.php

    r1883 r1887  
    99        </div></div><div class="portletContent">', 
    1010    )); 
    11      
     11    
    1212    register_sidebar(array( 
    13         'name' => 'sidebar2', 
    14         'before_widget' => '<li id="%1$s" class="widget %2$s">', 
    15         'after_widget' => '</li>', 
    16         'before_title' => '<h2 class="widgettitle">', 
    17         'after_title' => '</h2>', 
     13        'name' => 'LeftSideBar', 
     14        'before_widget' => '<div id="%1$s" class="portlet1 %2$s">', 
     15        'after_widget' => '</div><div class="portletBottom"></div></div>', 
     16        'before_title' => '<div class="portletHeader"><div class="portletTitle" widgettitle>', 
     17        'after_title' => '</div><div class="portletActions"> <img class="action_min" alt="Collapse" src="'.RR_COMMON_SKIN_DIRECTORY.'/images/blank.gif"/> <img class="action_max" alt="Expand" src="'.RR_COMMON_SKIN_DIRECTORY.'/images/blank.gif"/> <img class="action_close" alt="Close" src="'.RR_COMMON_SKIN_DIRECTORY.'/images/blank.gif"/> 
     18        </div></div><div class="portletContent">', 
    1819    )); 
     20     
    1921} 
    2022 
  • trunk/blogs/wp-content/themes/mike2/sidebar.php

    r1820 r1887  
    3232        </div> 
    3333    </div> 
     34<?php if ( is_active_sidebar(2) ) : ?> 
     35         <?php dynamic_sidebar(2); ?> 
     36<?php endif ?> 
     37 
    3438<?php include(OMCOLLAB_DOCROOT . '/home/portlets/member/Portlet.php'); ?> 
    3539<?php include(OMCOLLAB_DOCROOT . '/home/portlets/improve/Portlet.php'); ?> 
Note: See TracChangeset for help on using the changeset viewer.