WordPress.org

Making WordPress.org

Changeset 4177


Ignore:
Timestamp:
10/02/16 17:38:29 (14 months ago)
Author:
kovshenin
Message:

WordCamp Docs: Add two new visa templates to the docs generator.

Location:
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-docs
Files:
3 added
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-docs/classes/class-wordcamp-docs.php

    r3870 r4177  
    5151     */ 
    5252    public static function default_templates( $templates ) { 
    53         require_once( WORDCAMP_DOCS__PLUGIN_DIR . 'templates/speaker-invitation.php' ); 
    5453        require_once( WORDCAMP_DOCS__PLUGIN_DIR . 'templates/sponsorship-agreement.php' ); 
     54        require_once( WORDCAMP_DOCS__PLUGIN_DIR . 'templates/speaker-visa.php' ); 
     55        require_once( WORDCAMP_DOCS__PLUGIN_DIR . 'templates/attendee-visa.php' ); 
    5556 
    56         $templates['speaker-invitation'] = new WordCamp_Docs_Template_Speaker_Invitation; 
    5757        $templates['sponsorship-agreement'] = new WordCamp_Docs_Template_Sponsorship_Agreement; 
     58        $templates['speaker-visa'] = new WordCamp_Docs_Template_Speaker_Visa; 
     59        $templates['attendee-visa'] = new WordCamp_Docs_Template_Attendee_Visa; 
    5860 
    5961        return $templates; 
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-docs/templates/sponsorship-agreement.php

    r3870 r4177  
    260260    public function sanitize( $input ) { 
    261261        $output = array(); 
    262         $data = wp_parse_args( $data, array( 
    263             'sponsor_name' => '', 
    264             'sponsor_rep_name' => '', 
    265             'sponsor_rep_title' => '', 
    266  
    267             'agreement_date' => '', 
    268             'wordcamp_location' => '', 
    269             'wordcamp_date' => '', 
    270  
    271             'sponsorship_amount' => '', 
    272             'sponsorship_amount_num' => '', 
    273             'sponsorship_benefits' => '', 
    274         ) ); 
    275  
    276262        foreach ( array( 
    277263            'sponsor_name', 
     
    299285 
    300286    public function get_assets() { 
    301         return array( 
    302             dirname( __FILE__ ) . '/assets/logo.png', 
    303         ); 
    304     } 
    305 } 
     287        return array(); 
     288    } 
     289} 
Note: See TracChangeset for help on using the changeset viewer.