Making WordPress.org


Ignore:
Timestamp:
02/26/2018 06:38:19 PM (7 years ago)
Author:
iandunn
Message:

WordCamp Post Types: Apply coding standards.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/views/sponsors/metabox-sponsor-agreement.php

    r5784 r6764  
    11<?php
    2 /* @var int $agreement_id */
    3 /* @var string $agreement_url */
    4 /* @var int $mes_id */
     2
     3/**
     4 * @var int    $agreement_id
     5 * @var string $agreement_url
     6 * @var int    $mes_id
     7 */
     8
    59?>
    610
     
    1115    <?php if ( $agreement_url ) : ?>
    1216        <p id="sponsor-agreement-view-container">
    13             <a id="sponsor-agreement-view" class="button secondary" href="<?php echo esc_url( $agreement_url ); ?>" target="sponsor-agreement"><?php esc_html_e( 'View Agreement', 'wordcamporg' ); ?></a>
     17            <a id="sponsor-agreement-view" class="button secondary" href="<?php echo esc_url( $agreement_url ); ?>" target="sponsor-agreement">
     18                <?php esc_html_e( 'View Agreement', 'wordcamporg' ); ?>
     19            </a>
    1420        </p>
    1521    <?php endif; ?>
     
    1925    <p id="sponsor-agreement-description-container" class="description hidden">
    2026        <?php
     27
    2128        printf(
    22             wp_kses(
    23                 __( '<strong>Instructions:</strong> You can generate an agreement for this sponsor <a href="%s">here</a>. Upload a PDF or image file of the signed, dated sponsor agreement.', 'wordcamporg' ),
    24                 array(
    25                     'a' => array( 'href' => true ),
    26                     'strong' => true,
    27                 )
    28             ),
     29            wp_kses_data( __(
     30                '<strong>Instructions:</strong> You can generate an agreement for this sponsor <a href="%s">here</a>. Upload a PDF or image file of the signed, dated sponsor agreement.', 'wordcamporg'
     31            ) ),
    2932            esc_url( add_query_arg( array( 'page' => 'wcdocs' ), admin_url( 'admin.php' ) ) )
    3033        );
     34
    3135        ?>
    3236    </p>
     37
    3338    <p id="sponsor-agreement-upload-container" class="hidden">
    34         <a id="sponsor-agreement-upload" class="button secondary" href="#"><?php esc_html_e( 'Attach Signed Agreement', 'wordcamporg' ); ?></a>
     39        <a id="sponsor-agreement-upload" class="button secondary" href="#">
     40            <?php esc_html_e( 'Attach Signed Agreement', 'wordcamporg' ); ?>
     41        </a>
    3542    </p>
    3643
    3744    <p id="sponsor-agreement-view-container" class="hidden">
    38         <a id="sponsor-agreement-view" class="button secondary<?php if ( ! $agreement_url ) echo ' hidden'; ?>" href="<?php echo esc_url( $agreement_url ); ?>" target="sponsor-agreement"><?php esc_html_e( 'View Agreement', 'wordcamporg' ); ?></a>
     45        <a id="sponsor-agreement-view"
     46           class="button secondary <?php if ( ! $agreement_url ) { echo ' hidden'; } ?>"
     47           href="<?php echo esc_url( $agreement_url ); ?>"
     48           target="sponsor-agreement">
     49            <?php esc_html_e( 'View Agreement', 'wordcamporg' ); ?>
     50        </a>
    3951    </p>
     52
    4053    <p id="sponsor-agreement-remove-container" class="hidden">
    41         <a id="sponsor-agreement-remove" href="#"><?php esc_html_e( 'Remove Agreement', 'wordcamporg' ); ?></a>
     54        <a id="sponsor-agreement-remove" href="#">
     55            <?php esc_html_e( 'Remove Agreement', 'wordcamporg' ); ?>
     56        </a>
    4257    </p>
    4358
    4459    <input id="sponsor-agreement-id" name="_wcpt_sponsor_agreement" type="hidden" value="<?php echo esc_attr( $agreement_id ); ?>" />
    4560
    46 <?php endif; ?>
     61<?php endif;
Note: See TracChangeset for help on using the changeset viewer.