Make WordPress Core

Ticket #43715: 43715.3.diff

File 43715.3.diff, 12.1 KB (added by xkon, 7 years ago)
  • src/wp-content/themes/twentyeleven/footer.php

     
    2626
    2727                        <div id="site-generator">
    2828                                <?php do_action( 'twentyeleven_credits' ); ?>
     29                                <?php
     30                                $privacy_policy_url = get_privacy_policy_url();
     31                                if ( $privacy_policy_url ) :
     32                                ?>
     33                                        <span class="privacy-policy-page-link">
     34                                                <a href="<?php echo esc_url( $privacy_policy_url ); ?>" aria-label="<?php esc_attr_e( 'Privacy Policy', 'twentyeleven' ); ?>">
     35                                                        <?php _e( 'Privacy Policy', 'twentyeleven' ); ?>
     36                                                </a>
     37                                        </span>
     38                                <?php endif; ?>
    2939                                <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>
    3040                        </div>
    3141        </footer><!-- #colophon -->
  • src/wp-content/themes/twentyeleven/style.css

     
    23532353        font-weight: bold;
    23542354}
    23552355
     2356#site-generator .privacy-policy-page-link {
     2357        display: block;
     2358}
    23562359
     2360
    23572361/* =Responsive Structure
    23582362----------------------------------------------- */
    23592363
  • src/wp-content/themes/twentyfifteen/footer.php

     
    2222                                 */
    2323                                do_action( 'twentyfifteen_credits' );
    2424                        ?>
     25                        <?php
     26                        $privacy_policy_url = get_privacy_policy_url();
     27                        if ( $privacy_policy_url ) :
     28                        ?>
     29                                <span class="privacy-policy-page-link">
     30                                        <a href="<?php echo esc_url( $privacy_policy_url ); ?>" aria-label="<?php esc_attr_e( 'Privacy Policy', 'twentyfifteen' ); ?>">
     31                                                <?php _e( 'Privacy Policy', 'twentyfifteen' ); ?>
     32                                        </a>
     33                                </span>
     34                        <?php endif; ?>
    2535                        <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyfifteen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyfifteen' ), 'WordPress' ); ?></a>
    2636                </div><!-- .site-info -->
    2737        </footer><!-- .site-footer -->
  • src/wp-content/themes/twentyfifteen/style.css

     
    24342434        color: #333;
    24352435}
    24362436
     2437.site-info .privacy-policy-page-link:after {
     2438        content: "\002f";
     2439        display: inline-block;
     2440        opacity: 0.7;
     2441        padding: 0 5px;
     2442}
    24372443
     2444
    24382445/**
    24392446 * 14.0 Media
    24402447 */
  • src/wp-content/themes/twentyfourteen/footer.php

     
    1818
    1919                        <div class="site-info">
    2020                                <?php do_action( 'twentyfourteen_credits' ); ?>
     21                                <?php
     22                                $privacy_policy_url = get_privacy_policy_url();
     23                                if ( $privacy_policy_url ) :
     24                                ?>
     25                                        <span class="privacy-policy-page-link">
     26                                                <a href="<?php echo esc_url( $privacy_policy_url ); ?>" aria-label="<?php esc_attr_e( 'Privacy Policy', 'twentyfourteen' ); ?>">
     27                                                        <?php _e( 'Privacy Policy', 'twentyfourteen' ); ?>
     28                                                </a>
     29                                        </span>
     30                                <?php endif; ?>
    2131                                <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyfourteen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyfourteen' ), 'WordPress' ); ?></a>
    2232                        </div><!-- .site-info -->
    2333                </footer><!-- #colophon -->
  • src/wp-content/themes/twentyfourteen/style.css

     
    29162916        color: #41a62a;
    29172917}
    29182918
     2919.site-info .privacy-policy-page-link:after {
     2920        content: "\002f";
     2921        display: inline-block;
     2922        opacity: 0.7;
     2923        padding: 0 5px;
     2924}
    29192925
    29202926/**
    29212927 * 9.0 Featured Content
  • src/wp-content/themes/twentyseventeen/style.css

     
    23782378        width: 100%;
    23792379}
    23802380
     2381.site-info .privacy-policy-page-link:after {
     2382        content: "\002f";
     2383        display: inline-block;
     2384        opacity: 0.7;
     2385        padding: 0 3px;
     2386}
     2387
    23812388/*--------------------------------------------------------------
    2382238914.0 Comments
    23832390--------------------------------------------------------------*/
  • src/wp-content/themes/twentyseventeen/template-parts/footer/site-info.php

     
    1010
    1111?>
    1212<div class="site-info">
     13        <?php
     14        $privacy_policy_url = get_privacy_policy_url();
     15        if ( $privacy_policy_url ) :
     16        ?>
     17                <span class="privacy-policy-page-link">
     18                        <a href="<?php echo esc_url( $privacy_policy_url ); ?>" aria-label="<?php esc_attr_e( 'Privacy Policy', 'twentyseventeen' ); ?>">
     19                                <?php _e( 'Privacy Policy', 'twentyseventeen' ); ?>
     20                        </a>
     21                </span>
     22        <?php endif; ?>
    1323        <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyseventeen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyseventeen' ), 'WordPress' ); ?></a>
    1424</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                                $privacy_policy_url = get_privacy_policy_url();
     57                                if ( $privacy_policy_url ) :
     58                                ?>
     59                                        <span class="privacy-policy-page-link">
     60                                                <a href="<?php echo esc_url( $privacy_policy_url ); ?>" aria-label="<?php esc_attr_e( 'Privacy Policy', 'twentysixteen' ); ?>">
     61                                                        <?php _e( 'Privacy Policy', 'twentysixteen' ); ?>
     62                                                </a>
     63                                        </span>
     64                                <?php endif; ?>
    5565                                <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentysixteen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentysixteen' ), 'WordPress' ); ?></a>
    5666                        </div><!-- .site-info -->
    5767                </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                                $privacy_policy_url = get_privacy_policy_url();
     32                                if ( $privacy_policy_url ) :
     33                                ?>
     34                                        <span class="privacy-policy-page-link">
     35                                                <a href="<?php echo esc_url( $privacy_policy_url ); ?>" aria-label="<?php esc_attr_e( 'Privacy Policy', 'twentyten' ); ?>">
     36                                                        <?php _e( 'Privacy Policy', 'twentyten' ); ?>
     37                                                </a>
     38                                        </span>
     39                                <?php endif; ?>
    3040                        </div><!-- #site-info -->
    3141
    3242                        <div id="site-generator">
     
    3949                                do_action( 'twentyten_credits' );
    4050                                ?>
    4151                                <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>
     52                               
    4253                        </div><!-- #site-generator -->
    4354
    4455                </div><!-- #colophon -->
  • src/wp-content/themes/twentyten/style.css

     
    12991299        color: #000;
    13001300        text-decoration: none;
    13011301}
     1302#site-info .privacy-policy-page-link:before {
     1303        content: "\002f";
     1304        display: inline-block;
     1305        opacity: 0.7;
     1306        padding: 0 7px;
     1307}
    13021308#site-generator {
    13031309        font-style: italic;
    13041310        position: relative;
  • src/wp-content/themes/twentythirteen/footer.php

     
    1616
    1717                        <div class="site-info">
    1818                                <?php do_action( 'twentythirteen_credits' ); ?>
     19                                <?php
     20                                $privacy_policy_url = get_privacy_policy_url();
     21                                if ( $privacy_policy_url ) :
     22                                ?>
     23                                        <span class="privacy-policy-page-link">
     24                                                <a href="<?php echo esc_url( $privacy_policy_url ); ?>" aria-label="<?php esc_attr_e( 'Privacy Policy', 'twentythirteen' ); ?>">
     25                                                        <?php _e( 'Privacy Policy', 'twentythirteen' ); ?>
     26                                                </a>
     27                                        </span>
     28                                <?php endif; ?>
    1929                                <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentythirteen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentythirteen' ), 'WordPress' ); ?></a>
    2030                        </div><!-- .site-info -->
    2131                </footer><!-- #colophon -->
  • src/wp-content/themes/twentythirteen/style.css

     
    27052705        margin: -10px auto 0;
    27062706}
    27072707
     2708.site-info .privacy-policy-page-link {
     2709        display: block;
     2710}
    27082711
     2712
    27092713/**
    27102714 * 8.0 Media Queries
    27112715 * ----------------------------------------------------------------------------
  • 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                        $privacy_policy_url = get_privacy_policy_url();
     18                        if ( $privacy_policy_url ) :
     19                        ?>
     20                                <span class="privacy-policy-page-link">
     21                                        <a href="<?php echo esc_url( $privacy_policy_url ); ?>" aria-label="<?php esc_attr_e( 'Privacy Policy', 'twentytwelve' ); ?>">
     22                                                <?php _e( 'Privacy Policy', 'twentytwelve' ); ?>
     23                                        </a>
     24                                </span>
     25                        <?php endif; ?>
    1626                        <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>
    1727                </div><!-- .site-info -->
    1828        </footer><!-- #colophon -->
  • src/wp-content/themes/twentytwelve/style.css

     
    694694footer[role="contentinfo"] a:hover {
    695695        color: #21759b;
    696696}
     697.site-info .privacy-policy-page-link:after {
     698        content: "\002f";
     699        display: inline-block;
     700        opacity: 0.7;
     701        padding: 0 5px;
     702}
    697703
    698704
    699705/* =Main content and comment content