Changeset 10983 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/single-wporg-pattern.php
- Timestamp:
- 05/17/2021 06:57:24 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/single-wporg-pattern.php
r10952 r10983 11 11 12 12 get_header(); 13 14 $user_has_reported = is_user_logged_in() ? user_has_flagged_pattern() : false; 15 13 16 ?> 14 17 <input id="block-data" type="hidden" value="<?php echo rawurlencode( wp_json_encode( get_the_content() ) ); ?>" /> … … 24 27 <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> 25 28 <p>A large hero section with an example background image and a heading in the center.</p> 26 <div id="pattern-actions" class="pattern-actions" >29 <div id="pattern-actions" class="pattern-actions" data-id="<?php the_ID(); ?>"> 27 30 <button class="button button-primary">Copy Pattern</button> 28 31 <button class="button">Add to favorites</button> … … 45 48 ?> 46 49 </div> 47 <div class="pattern__report"> 50 <div id="pattern-report" 51 class="pattern__report" 52 data-post-id="<?php echo intval( get_the_ID() ); ?>" 53 data-logged-in="<?php echo json_encode( is_user_logged_in() ); ?>" 54 data-user-has-reported="<?php echo json_encode( $user_has_reported ); ?>" 55 "> 48 56 <button class="button">Report this pattern</button> 49 57 </div>
Note: See TracChangeset
for help on using the changeset viewer.