Making WordPress.org


Ignore:
Timestamp:
05/01/2017 09:23:28 PM (8 years ago)
Author:
ocean90
Message:

Plugin Directory: Add markup information (JSON+LD) for front page and plugin pages.

See #2661.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-meta.php

    r5248 r5457  
    3333
    3434        <h3 class="screen-reader-text"><?php echo apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Meta', 'wporg-plugins' ) : $instance['title'], $instance, $this->id_base ); ?></h3>
    35         <link itemprop="applicationCategory" href="http://schema.org/OtherApplication" />
    36         <span itemprop="offers" itemscope itemtype="http://schema.org/Offer">
    37             <meta itemprop="price" content="0.00" />
    38             <meta itemprop="priceCurrency" content="USD" />
    39             <span itemprop="seller" itemscope itemtype="http://schema.org/Organization">
    40                 <span itemprop="name" content="WordPress.org"></span>
    41             </span>
    42         </span>
    4335
    4436        <ul>
     
    5244                printf( __( 'Last updated: %s', 'wporg-plugins' ),
    5345                    /* Translators: Plugin modified time. */
    54                     '<strong>' . sprintf( __( '%s ago', 'wporg-plugins' ), '<span itemprop="dateModified" content="' . esc_attr( get_post_modified_time( 'c' ) ) . '">' . human_time_diff( get_post_modified_time() ) . '</span>' ) . '</strong>'
     46                    '<strong>' . sprintf( __( '%s ago', 'wporg-plugins' ), '<span>' . human_time_diff( get_post_modified_time() ) . '</span>' ) . '</strong>'
    5547                );
    5648                ?>
     
    7365            <?php endif; ?>
    7466
    75             <?php if ( ! get_query_var( 'plugin_advanced' ) ) : ?> 
     67            <?php if ( ! get_query_var( 'plugin_advanced' ) ) : ?>
    7668                <li class="hide-if-no-js">
    7769                    <?php
Note: See TracChangeset for help on using the changeset viewer.