Ticket #14799: back-link-dre-v1.patch

File back-link-dre-v1.patch, 2.4 KB (added by dremeda, 2 years ago)

Moved backlink left and adjusted styles.

  • wp-content/themes/twentyten/footer.php

     
    2525                        <div id="site-info"> 
    2626                                <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> 
    2727                                        <?php bloginfo( 'name' ); ?> 
    28                                 </a> 
     28                                </a> -  
     29                    <a id="back-link" href="#site-title" title="<?php esc_attr_e( 'Back to Top', 'twentyten' ); ?>">  
     30                                                <?php _e( 'Back to Top <span class="meta-nav">&uarr;</span> ', 'twentyten' ); ?>  
     31                    </a><!-- #back-link -->                              
    2932                        </div><!-- #site-info --> 
    3033 
    3134                        <div id="site-generator"> 
    3235                                <?php do_action( 'twentyten_credits' ); ?> 
    33                                 <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyten' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyten' ); ?>" rel="generator"><?php printf( __( 'Proudly powered by %s.', 'twentyten' ), 'WordPress' ); ?></a> 
    34                         </div><!-- #site-generator --> 
     36                                <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyten' ) ); ?>" title="<?php esc_attr_e('Semantic Personal Publishing Platform', 'twentyten'); ?>" rel="generator">  
     37                                                <?php printf( __('Proudly powered by %s.', 'twentyten'), 'WordPress' ); ?>  
     38                </a>  
     39                </div><!-- #site-generator -->  
     40                  
     41                                  
     42             </div><!-- #colophon -->  
     43                          
     44                          
     45         </div><!-- #footer -->  
    3546 
    36                 </div><!-- #colophon --> 
    37         </div><!-- #footer --> 
     47</div><!-- #wrapper -->  
    3848 
    39 </div><!-- #wrapper --> 
    40  
    4149<?php 
    4250        /* Always have wp_footer() just before the closing </body> 
    4351         * tag of your theme, or you will break many plugins, which 
  • wp-content/themes/twentyten/style.css

     
    12141214#footer { 
    12151215        margin-bottom: 20px; 
    12161216} 
     1217#site-info a#back-link{ 
     1218        color: #888888; 
     1219        font-size: 12px; 
     1220        font-weight: normal;  
     1221        background:none;  
     1222}  
     1223#site-info a#back-link:hover { 
     1224        text-decoration: underline; 
     1225} 
    12171226#colophon { 
    12181227        border-top: 4px solid #000; 
    12191228        margin-top: -4px;