slitaz-forge rev 86
Update/fix SCN theme for latest Worpress and Buddypress
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Feb 06 16:38:39 2012 +0100 (2012-02-06) |
parents | 38815f7d58ac |
children | fe2ed774d835 |
files | scn/themes/slitaz/footer.php scn/themes/slitaz/header.php scn/themes/slitaz/style.css |
line diff
1.1 --- a/scn/themes/slitaz/footer.php Mon Jan 09 13:17:36 2012 +0100 1.2 +++ b/scn/themes/slitaz/footer.php Mon Feb 06 16:38:39 2012 +0100 1.3 @@ -4,7 +4,7 @@ 1.4 <?php do_action( 'bp_before_footer' ) ?> 1.5 1.6 <div id="footer"> 1.7 - <p>Copyright © 2011 1.8 + <p>Copyright © 2012 1.9 <a href="http://www.slitaz.org">SliTaz</a> - SCN is 1.10 proudly powered by <a href="http://wordpress.org">WordPress</a> 1.11 and <a href="http://buddypress.org">BuddyPress</a>
2.1 --- a/scn/themes/slitaz/header.php Mon Jan 09 13:17:36 2012 +0100 2.2 +++ b/scn/themes/slitaz/header.php Mon Feb 06 16:38:39 2012 +0100 2.3 @@ -54,44 +54,6 @@ 2.4 2.5 <h1 id="logo"><a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php bp_site_name() ?></a></h1> 2.6 2.7 - <ul id="nav"> 2.8 - <li<?php if ( bp_is_front_page() ) : ?> class="selected"<?php endif; ?>> 2.9 - <a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a> 2.10 - </li> 2.11 - 2.12 - <?php if ( 'activity' != bp_dtheme_page_on_front() && bp_is_active( 'activity' ) ) : ?> 2.13 - <li<?php if ( bp_is_page( BP_ACTIVITY_SLUG ) ) : ?> class="selected"<?php endif; ?>> 2.14 - <a href="<?php echo site_url() ?>/<?php echo BP_ACTIVITY_SLUG ?>/" title="<?php _e( 'Activity', 'buddypress' ) ?>"><?php _e( 'Activity', 'buddypress' ) ?></a> 2.15 - </li> 2.16 - <?php endif; ?> 2.17 - 2.18 - <li<?php if ( bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() ) : ?> class="selected"<?php endif; ?>> 2.19 - <a href="<?php echo site_url() ?>/<?php echo BP_MEMBERS_SLUG ?>/" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?></a> 2.20 - </li> 2.21 - 2.22 - <?php if ( bp_is_active( 'groups' ) ) : ?> 2.23 - <li<?php if ( bp_is_page( BP_GROUPS_SLUG ) || bp_is_group() ) : ?> class="selected"<?php endif; ?>> 2.24 - <a href="<?php echo site_url() ?>/<?php echo BP_GROUPS_SLUG ?>/" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?></a> 2.25 - </li> 2.26 - 2.27 - <?php if ( bp_is_active( 'forums' ) && ( function_exists( 'bp_forums_is_installed_correctly' ) && !(int) bp_get_option( 'bp-disable-forum-directory' ) ) && bp_forums_is_installed_correctly() ) : ?> 2.28 - <li<?php if ( bp_is_page( BP_FORUMS_SLUG ) ) : ?> class="selected"<?php endif; ?>> 2.29 - <a href="<?php echo site_url() ?>/<?php echo BP_FORUMS_SLUG ?>/" title="<?php _e( 'Forums', 'buddypress' ) ?>"><?php _e( 'Forums', 'buddypress' ) ?></a> 2.30 - </li> 2.31 - <?php endif; ?> 2.32 - <?php endif; ?> 2.33 - 2.34 - <?php if ( bp_is_active( 'blogs' ) && bp_core_is_multisite() ) : ?> 2.35 - <li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) : ?> class="selected"<?php endif; ?>> 2.36 - <a href="<?php echo site_url() ?>/<?php echo BP_BLOGS_SLUG ?>/" title="<?php _e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?></a> 2.37 - </li> 2.38 - <?php endif; ?> 2.39 - 2.40 - <?php wp_list_pages( 'title_li=&depth=1&exclude=' . bp_dtheme_page_on_front() ); ?> 2.41 - 2.42 - <?php do_action( 'bp_nav_items' ); ?> 2.43 - </ul><!-- #nav --> 2.44 - 2.45 <div id="search-bar"> 2.46 <div class="padder"> 2.47 2.48 @@ -112,6 +74,10 @@ 2.49 </div><!-- .padder --> 2.50 </div><!-- #search-bar --> 2.51 2.52 + <div id="navigation" role="navigation"> 2.53 + <?php wp_nav_menu( array( 'container' => false, 'menu_id' => 'nav', 'theme_location' => 'primary', 'fallback_cb' => 'bp_dtheme_main_nav' ) ); ?> 2.54 + </div> 2.55 + 2.56 <?php do_action( 'bp_header' ) ?> 2.57 2.58 </div><!-- #header -->
3.1 --- a/scn/themes/slitaz/style.css Mon Jan 09 13:17:36 2012 +0100 3.2 +++ b/scn/themes/slitaz/style.css Mon Feb 06 16:38:39 2012 +0100 3.3 @@ -2,7 +2,7 @@ 3.4 Theme Name: SliTaz BuddyPress 3.5 Theme URI: http://www.slitaz.org 3.6 Description: The default SliTaz theme for BuddyPress. 3.7 -Version: 1.0 3.8 +Version: 1.1 3.9 Author: Christophe Lincoln 3.10 Author URI: http://people.slitaz.org/~pankso/ 3.11 Template: bp-default 3.12 @@ -42,21 +42,21 @@ 3.13 } 3.14 3.15 #header { 3.16 - position: relative; 3.17 color: #fff; 3.18 - background: #351a0a url(images/header-img.png) no-repeat top right; 3.19 + background: #351a0a; 3.20 -moz-border-radius-bottomleft: 0px; 3.21 -webkit-border-bottom-left-radius: 0px; 3.22 -moz-border-radius-bottomright: 0px; 3.23 -webkit-border-bottom-right-radius: 0px; 3.24 - height: 40px; 3.25 - padding-top: 0px; 3.26 + padding-top: 1px; 3.27 + margin: 0px; 3.28 + height: 39px; 3.29 } 3.30 3.31 #header #search-bar { 3.32 z-index: 100; 3.33 position: absolute; 3.34 - top: 80px; 3.35 + top: 76px; 3.36 right: 20px; 3.37 width: 386px; 3.38 text-align: right; 3.39 @@ -64,6 +64,7 @@ 3.40 -moz-border-radius: 4px; 3.41 -webkit-border-radius: 4px; 3.42 border-radius: 4px; 3.43 + height: 40px; 3.44 } 3.45 3.46 #header h1 { 3.47 @@ -88,7 +89,7 @@ 3.48 3.49 #network { 3.50 float: right; 3.51 - padding: 10px 5px 0; 3.52 + padding: 9px 5px 0; 3.53 font-size: 12px; 3.54 } 3.55 #network a { padding: 0 6px; color: #fff; font-weight: bold; text-decoration: none;} 3.56 @@ -98,7 +99,7 @@ 3.57 z-index: 20; 3.58 min-height: 120px; 3.59 position: absolute; 3.60 - top: 40px; 3.61 + /* top: 40px; */ 3.62 background: #d66018; 3.63 margin: 0 0 40px 0; 3.64 padding: 40px 12% 0; 3.65 @@ -122,7 +123,7 @@ 3.66 3.67 div#content .padder { padding: 0 19px 19px 0; } 3.68 3.69 -ul#nav { bottom: -160px; z-index: 120; } 3.70 +ul#nav { bottom: -130px; z-index: 120; } 3.71 ul#nav li a { background: #cc5b17; padding: 6px; } 3.72 ul#nav li.selected a, ul#nav li.current_page_item a { 3.73 background: #fff; } 3.74 @@ -133,6 +134,7 @@ 3.75 text-align: center; 3.76 color: #666; 3.77 text-shadow: #fafafa 0px 0px 0; 3.78 + margin: 0; 3.79 } 3.80 #footer a { color: #666; padding: 0 2px; } 3.81