Make WordPress Core

Ticket #38404: 38404.3.patch

File 38404.3.patch, 1.4 KB (added by davidakennedy, 9 years ago)

Refreshes patch since structure and output has changed. Only output placeholders in customizer preview.

  • src/wp-content/themes/twentyseventeen/inc/template-tags.php

     
    149149                get_template_part( 'template-parts/page/content', 'front-page-panels' );
    150150
    151151                wp_reset_postdata();
    152         } else {
     152        } elseif ( is_customize_preview() ) {
    153153                // The output placeholder anchor.
    154154                echo '<article class="panel-placeholder panel twentyseventeen-panel twentyseventeen-panel' . $id . '" id="panel' . $id . '"><span class="twentyseventeen-panel-title">' . sprintf( __( 'Panel %1$s Placeholder', 'twentyseventeen' ), $id ) . '</span></article>';
    155155        }
  • src/wp-content/themes/twentyseventeen/style.css

     
    29502950# Customizer
    29512951--------------------------------------------------------------*/
    29522952
    2953 /* Hide placeholders until we're in the front page sections section */
    2954 .panel-placeholder {
    2955         display: none;
    2956 }
    2957 
    29582953.highlight-front-sections.twentyseventeen-customizer.twentyseventeen-front-page .twentyseventeen-panel:after {
    29592954        border: 2px dashed #0085ba; /* Matches visible edit shortcuts. */
    29602955        bottom: 1em;