Make WordPress Core

Ticket #43715: 43715.2.diff

File 43715.2.diff, 7.9 KB (added by xkon, 8 years ago)

footer link on bundled themes

  • src/wp-content/themes/twentyeleven/footer.php

     
    2626
    2727                        <div id="site-generator">
    2828                                <?php do_action( 'twentyeleven_credits' ); ?>
     29                                <?php
     30                                if ( $url = get_privacy_policy_url() ) {
     31                                        echo '<span class="privacy-policy-page-link"><a href="' . esc_attr( $url ) . '" title="' . esc_html( 'Privacy Policy', 'twentyten' ) . '">' . esc_html( 'Privacy Policy', 'twentyten' ) . '</a></span><br>';
     32                                }
     33                                ?>
    2934                                <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyeleven' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); ?></a>
    3035                        </div>
    3136        </footer><!-- #colophon -->
  • src/wp-content/themes/twentyfifteen/footer.php

     
    2222                                 */
    2323                                do_action( 'twentyfifteen_credits' );
    2424                        ?>
     25                        <?php
     26                        if ( $url = get_privacy_policy_url() ) {
     27                                echo '<span class="privacy-policy-page-link"><a href="' . esc_attr( $url ) . '" title="' . esc_html( 'Privacy Policy', 'twentyten' ) . '">' . esc_html( 'Privacy Policy', 'twentyten' ) . '</a> - </span>';
     28                        }
     29                        ?>
    2530                        <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyfifteen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyfifteen' ), 'WordPress' ); ?></a>
    2631                </div><!-- .site-info -->
    2732        </footer><!-- .site-footer -->
  • src/wp-content/themes/twentyfourteen/footer.php

     
    1818
    1919                        <div class="site-info">
    2020                                <?php do_action( 'twentyfourteen_credits' ); ?>
     21                                <?php
     22                                if ( $url = get_privacy_policy_url() ) {
     23                                        echo '<span class="privacy-policy-page-link"><a href="' . esc_attr( $url ) . '" title="' . esc_html( 'Privacy Policy', 'twentyten' ) . '">' . esc_html( 'Privacy Policy', 'twentyten' ) . '</a> - </span>';
     24                                }
     25                                ?>
    2126                                <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyfourteen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyfourteen' ), 'WordPress' ); ?></a>
    2227                        </div><!-- .site-info -->
    2328                </footer><!-- #colophon -->
  • src/wp-content/themes/twentyseventeen/template-parts/footer/site-info.php

     
    1010
    1111?>
    1212<div class="site-info">
     13        <?php
     14        if ( $url = get_privacy_policy_url() ) {
     15                echo '<span class="privacy-policy-page-link"><a href="' . esc_attr( $url ) . '" title="' . esc_html( 'Privacy Policy', 'twentyten' ) . '">' . esc_html( 'Privacy Policy', 'twentyten' ) . '</a> - </span>';
     16        }
     17        ?>
    1318        <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyseventeen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyseventeen' ), 'WordPress' ); ?></a>
    1419</div><!-- .site-info -->
  • src/wp-content/themes/twentysixteen/footer.php

     
    5252                                        do_action( 'twentysixteen_credits' );
    5353                                ?>
    5454                                <span class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span>
     55                                <?php
     56                                if ( $url = get_privacy_policy_url() ) {
     57                                        echo '<span class="privacy-policy-page-link"><a href="' . esc_attr( $url ) . '" title="' . esc_html( 'Privacy Policy', 'twentyten' ) . '">' . esc_html( 'Privacy Policy', 'twentyten' ) . '</a></span>';
     58                                }
     59                                ?>
    5560                                <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentysixteen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentysixteen' ), 'WordPress' ); ?></a>
    5661                        </div><!-- .site-info -->
    5762                </footer><!-- .site-footer -->
  • src/wp-content/themes/twentysixteen/style.css

     
    24352435        font-weight: 400;
    24362436}
    24372437
    2438 .site-footer .site-title:after {
     2438.site-footer .site-title:after,
     2439.privacy-policy-page-link:after {
    24392440        content: "\002f";
    24402441        display: inline-block;
    24412442        font-family: Montserrat, sans-serif;
  • src/wp-content/themes/twentyten/footer.php

     
    2727                                <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
    2828                                        <?php bloginfo( 'name' ); ?>
    2929                                </a>
     30                                <?php
     31                                if ( $url = get_privacy_policy_url() ) {
     32                                        echo '<span class="privacy-policy-page-link"> - <a href="' . esc_attr( $url ) . '" title="' . esc_html( 'Privacy Policy', 'twentyten' ) . '">' . esc_html( 'Privacy Policy', 'twentyten' ) . '</a></span>';
     33                                }
     34                                ?>
    3035                        </div><!-- #site-info -->
    3136
    3237                        <div id="site-generator">
     
    3944                                do_action( 'twentyten_credits' );
    4045                                ?>
    4146                                <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyten' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyten' ); ?>"><?php printf( __( 'Proudly powered by %s.', 'twentyten' ), 'WordPress' ); ?></a>
     47                               
    4248                        </div><!-- #site-generator -->
    4349
    4450                </div><!-- #colophon -->
  • src/wp-content/themes/twentythirteen/footer.php

     
    1616
    1717                        <div class="site-info">
    1818                                <?php do_action( 'twentythirteen_credits' ); ?>
     19                                <?php
     20                                if ( $url = get_privacy_policy_url() ) {
     21                                        echo '<span class="privacy-policy-page-link"><a href="' . esc_attr( $url ) . '" title="' . esc_html( 'Privacy Policy', 'twentyten' ) . '">' . esc_html( 'Privacy Policy', 'twentyten' ) . '</a></span><br>';
     22                                }
     23                                ?>
    1924                                <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentythirteen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentythirteen' ), 'WordPress' ); ?></a>
    2025                        </div><!-- .site-info -->
    2126                </footer><!-- #colophon -->
  • src/wp-content/themes/twentytwelve/footer.php

     
    1313        <footer id="colophon" role="contentinfo">
    1414                <div class="site-info">
    1515                        <?php do_action( 'twentytwelve_credits' ); ?>
     16                        <?php
     17                        if ( $url = get_privacy_policy_url() ) {
     18                                echo '<span class="privacy-policy-page-link"><a href="' . esc_attr( $url ) . '" title="' . esc_html( 'Privacy Policy', 'twentyten' ) . '">' . esc_html( 'Privacy Policy', 'twentyten' ) . '</a> - </span>';
     19                        }
     20                        ?>
    1621                        <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentytwelve' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentytwelve' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentytwelve' ), 'WordPress' ); ?></a>
    1722                </div><!-- .site-info -->
    1823        </footer><!-- #colophon -->