Making WordPress.org


Ignore:
Timestamp:
11/29/2018 03:19:31 AM (6 years ago)
Author:
iandunn
Message:

CampTix Badge Generator: Apply coding standards.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/views/common/page-generate-badges.php

    r5819 r7915  
    22
    33namespace CampTix\Badge_Generator;
    4 defined( 'WPINC' ) or die();
     4defined( 'WPINC' ) || die();
     5
     6/**
     7 * @var string $html_customizer_url
     8 * @var string $indesign_page_url
     9 * @var string $notify_tool_url
     10 */
    511
    612?>
    713
    814<p>
    9     <?php _e(
     15    <?php esc_html_e(
    1016        'This tool will help you create personalized badges for attendees to wear during the event. There are two methods for this, depending on your preferences:',
    1117        'wordcamporg'
     
    1521<div id="cbg-method-overviews">
    1622    <div id="html-badge-overview">
    17         <h2><?php _e( 'HTML and CSS', 'wordcamporg' ); ?></h2>
     23        <h2>
     24            <?php esc_html_e( 'HTML and CSS', 'wordcamporg' ); ?>
     25        </h2>
    1826
    1927        <ul class="ul-disc">
    20             <li><?php _e( 'The Easiest method.',                                                                              'wordcamporg' ); ?></li>
    21             <li><?php _e( 'Can be as simple as using the default design and printing at home.',                               'wordcamporg' ); ?></li>
    22             <li><?php _e( 'Design is customizable by a designer or developer, but options are limited compared to InDesign.', 'wordcamporg' ); ?></li>
     28            <li><?php esc_html_e( 'The Easiest method.',                                                                              'wordcamporg' ); ?></li>
     29            <li><?php esc_html_e( 'Can be as simple as using the default design and printing at home.',                               'wordcamporg' ); ?></li>
     30            <li><?php esc_html_e( 'Design is customizable by a designer or developer, but options are limited compared to InDesign.', 'wordcamporg' ); ?></li>
    2331        </ul>
    2432
    2533        <a class="button button-primary" href="<?php echo esc_url( $html_customizer_url ); ?>">
    26             <?php _e( 'Create Badges with HTML and CSS', 'wordcamporg' ); ?>
     34            <?php esc_html_e( 'Create Badges with HTML and CSS', 'wordcamporg' ); ?>
    2735        </a>
    2836    </div>
    2937
    3038    <div id="indesign-badges-overview" class="cbg-method-overview">
    31         <h2><?php _e( 'InDesign', 'wordcamporg' ); ?></h2>
     39        <h2>
     40            <?php esc_html_e( 'InDesign', 'wordcamporg' ); ?>
     41        </h2>
    3242
    3343        <ul class="ul-disc">
    34             <li><?php _e( 'The best results, but requires more work.', 'wordcamporg' ); ?></li>
    35             <li><?php _e( 'Most flexible design options.',             'wordcamporg' ); ?></li>
     44            <li><?php esc_html_e( 'The best results, but requires more work.', 'wordcamporg' ); ?></li>
     45            <li><?php esc_html_e( 'Most flexible design options.',             'wordcamporg' ); ?></li>
    3646            <li>
    3747                <?php printf(
    38                     __( 'Requires a designer and a copy of InDesign. <a href="%s">Free trial copies are available</a>.', 'wordcamporg' ),
     48                    wp_kses_post( __( 'Requires a designer and a copy of InDesign. <a href="%s">Free trial copies are available</a>.', 'wordcamporg' ) ),
    3949                    'https://www.adobe.com/products/indesign.html'
    4050                ); ?>
     
    4353
    4454        <a class="button button-primary" href="<?php echo esc_url( $indesign_page_url ); ?>">
    45             <?php _e( 'Create Badges with InDesign', 'wordcamporg' ); ?>
     55            <?php esc_html_e( 'Create Badges with InDesign', 'wordcamporg' ); ?>
    4656        </a>
    4757    </div>
     
    5060<p>
    5161    <?php printf(
    52         // translators: 1: Gravatar.com URL, 2: Notify tool URL
    53         __(
     62        // translators: 1: Gravatar.com URL, 2: Notify tool URL.
     63        wp_kses_post( __(
    5464            'Regardless of which method you choose, you\'ll get the best results if you encourage attendees to create <a href="%1$s">Gravatar</a> accounts before you create the badges. You can use <a href="%2$s">the Notify tool</a> to e-mail everyone. Make sure to tell them to create their Gravatar account using the same e-mail address that provided when purchasing a ticket.',
    5565            'wordcamporg'
    56         ),
     66        ) ),
    5767        'https://gravatar.com',
    5868        esc_url( $notify_tool_url )
Note: See TracChangeset for help on using the changeset viewer.