Changeset 4967
- Timestamp:
- 02/21/2017 12:03:58 AM (6 years ago)
- Location:
- sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/budget-tool.php
r3859 r4967 9 9 10 10 public static function admin_menu() { 11 add_submenu_page( 'wordcamp-budget', __( 'WordCamp Budget', 'wordcamporg' ),__( 'Budget', 'wordcamporg' ), 'manage_options', 'wordcamp-budget' );11 add_submenu_page( 'wordcamp-budget', esc_html__( 'WordCamp Budget', 'wordcamporg' ), esc_html__( 'Budget', 'wordcamporg' ), 'manage_options', 'wordcamp-budget' ); 12 12 add_action( 'wcb_render_budget_page', array( __CLASS__, 'render' ) ); 13 13 register_setting( 'wcb_budget_noop', 'wcb_budget_noop', array( __CLASS__, 'validate' ) ); -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/payment-request.php
r3800 r4967 42 42 public function register_post_type() { 43 43 $labels = array( 44 'name' => _x( 'Vendor Payments', 'post type general name', 'wordcamporg' ),45 'singular_name' => _x( 'Vendor Payment', 'post type singular name', 'wordcamporg' ),46 'menu_name' => _x( 'Vendor Payments', 'admin menu', 'wordcamporg' ),47 'name_admin_bar' => _x( 'Vendor Payment', 'add new on admin bar', 'wordcamporg' ),48 'add_new' => _x( 'Add New', 'payment', 'wordcamporg' ),49 50 'add_new_item' => __( 'Add New Vendor Payment', 'wordcamporg' ),51 'new_item' => __( 'New Vendor Payment', 'wordcamporg' ),52 'edit_item' => __( 'Edit Vendor Payment', 'wordcamporg' ),53 'view_item' => __( 'View Vendor Payment', 'wordcamporg' ),54 'all_items' => __( 'Vendor Payments', 'wordcamporg' ),55 'search_items' => __( 'Search Vendor Payments', 'wordcamporg' ),56 'parent_item_colon' => __( 'Parent Vendor Payments:', 'wordcamporg' ),57 'not_found' => __( 'No Vendor Payments found.', 'wordcamporg' ),58 'not_found_in_trash' => __( 'No Vendor Payments found in Trash.', 'wordcamporg' )44 'name' => esc_html_x( 'Vendor Payments', 'post type general name', 'wordcamporg' ), 45 'singular_name' => esc_html_x( 'Vendor Payment', 'post type singular name', 'wordcamporg' ), 46 'menu_name' => esc_html_x( 'Vendor Payments', 'admin menu', 'wordcamporg' ), 47 'name_admin_bar' => esc_html_x( 'Vendor Payment', 'add new on admin bar', 'wordcamporg' ), 48 'add_new' => esc_html_x( 'Add New', 'payment', 'wordcamporg' ), 49 50 'add_new_item' => esc_html__( 'Add New Vendor Payment', 'wordcamporg' ), 51 'new_item' => esc_html__( 'New Vendor Payment', 'wordcamporg' ), 52 'edit_item' => esc_html__( 'Edit Vendor Payment', 'wordcamporg' ), 53 'view_item' => esc_html__( 'View Vendor Payment', 'wordcamporg' ), 54 'all_items' => esc_html__( 'Vendor Payments', 'wordcamporg' ), 55 'search_items' => esc_html__( 'Search Vendor Payments', 'wordcamporg' ), 56 'parent_item_colon' => esc_html__( 'Parent Vendor Payments:', 'wordcamporg' ), 57 'not_found' => esc_html__( 'No Vendor Payments found.', 'wordcamporg' ), 58 'not_found_in_trash' => esc_html__( 'No Vendor Payments found in Trash.', 'wordcamporg' ) 59 59 ); 60 60 … … 81 81 'paid', 82 82 array( 83 'label' => _x( 'Paid', 'post', 'wordcamporg' ),83 'label' => esc_html_x( 'Paid', 'post', 'wordcamporg' ), 84 84 'label_count' => _nx_noop( 'Paid <span class="count">(%s)</span>', 'Paid <span class="count">(%s)</span>', 'wordcamporg' ), 85 85 'public' => true, … … 91 91 'unpaid', 92 92 array( 93 'label' => _x( 'Unpaid', 'post', 'wordcamporg' ),93 'label' => esc_html_x( 'Unpaid', 'post', 'wordcamporg' ), 94 94 'label_count' => _nx_noop( 'Unpaid <span class="count">(%s)</span>', 'Unpaid <span class="count">(%s)</span>', 'wordcamporg' ), 95 95 'public' => true, … … 101 101 'incomplete', 102 102 array( 103 'label' => _x( 'Incomplete', 'post', 'wordcamporg' ),103 'label' => esc_html_x( 'Incomplete', 'post', 'wordcamporg' ), 104 104 'label_count' => _nx_noop( 'Incomplete <span class="count">(%s)</span>', 'Incomplete <span class="count">(%s)</span>', 'wordcamporg' ), 105 105 'public' => true, … … 121 121 add_meta_box( 122 122 'submitdiv', 123 __( 'Status', 'wordcamporg' ),123 esc_html__( 'Status', 'wordcamporg' ), 124 124 array( $this, 'render_status_metabox' ), 125 125 self::POST_TYPE, … … 130 130 add_meta_box( 131 131 'wcp_general_info', 132 __( 'General Information', 'wordcamporg' ),132 esc_html__( 'General Information', 'wordcamporg' ), 133 133 array( $this, 'render_general_metabox' ), 134 134 self::POST_TYPE, … … 139 139 $introduction_message = sprintf( 140 140 '<p>%s</p> <p>%s</p>', 141 __( 'Direct Deposit or Wire is the fastest way to pay a vendor. Checks and credit card payments can take 3-5 days for us and/or the bank to process.', 'wordcamporg' ),142 __( 'Each wire transfer costs us processing fees, so please try to avoid multiple wire requests for one vendor.', 'wordcamporg' )141 esc_html__( 'Direct Deposit or Wire is the fastest way to pay a vendor. Checks and credit card payments can take 3-5 days for us and/or the bank to process.', 'wordcamporg' ), 142 esc_html__( 'Each wire transfer costs us processing fees, so please try to avoid multiple wire requests for one vendor.', 'wordcamporg' ) 143 143 ); 144 144 145 145 add_meta_box( 146 146 'wcp_payment_details', 147 __( 'Payment Details', 'wordcamporg' ),147 esc_html__( 'Payment Details', 'wordcamporg' ), 148 148 array( $this, 'render_payment_metabox' ), 149 149 self::POST_TYPE, … … 158 158 add_meta_box( 159 159 'wcp_vendor_details', 160 __( 'Vendor Details', 'wordcamporg' ),160 esc_html__( 'Vendor Details', 'wordcamporg' ), 161 161 array( $this, 'render_vendor_metabox' ), 162 162 self::POST_TYPE, … … 165 165 ); 166 166 167 add_meta_box( 'wcp_log', __( 'Log', 'wordcamporg' ), array( $this, 'render_log_metabox' ),167 add_meta_box( 'wcp_log', esc_html__( 'Log', 'wordcamporg' ), array( $this, 'render_log_metabox' ), 168 168 self::POST_TYPE, 'normal', 'high' ); 169 169 } … … 220 220 $editable_statuses = array( 'auto-draft', 'draft', 'wcb-incomplete' ); 221 221 $current_user_can_edit_request = false; 222 $submit_text = _x( 'Update', 'payment request', 'wordcamporg' );222 $submit_text = esc_html_x( 'Update', 'payment request', 'wordcamporg' ); 223 223 $submit_note = ''; 224 224 … … 226 226 $current_user_can_edit_request = true; 227 227 } elseif ( in_array( $post->post_status, $editable_statuses ) ) { 228 $submit_text = __( 'Submit for Review', 'wordcamporg' );229 $submit_note = __( 'Once submitted for review, this request can not be edited.', 'wordcamporg' );228 $submit_text = esc_html__( 'Submit for Review', 'wordcamporg' ); 229 $submit_note = esc_html__( 'Once submitted for review, this request can not be edited.', 'wordcamporg' ); 230 230 $current_user_can_edit_request = true; 231 231 } … … 832 832 $columns = array( 833 833 'cb' => $_columns['cb'], 834 'author' => __( 'Author' ),834 'author' => esc_html__( 'Author' ), 835 835 'title' => $_columns['title'], 836 836 'date' => $_columns['date'], 837 'due_by' => __( 'Due by', 'wordcamporg' ),838 'vendor_name' => __( 'Vendor', 'wordcamporg' ),839 'payment_amount' => __( 'Amount', 'wordcamporg' ),837 'due_by' => esc_html__( 'Due by', 'wordcamporg' ), 838 'vendor_name' => esc_html__( 'Vendor', 'wordcamporg' ), 839 'payment_amount' => esc_html__( 'Amount', 'wordcamporg' ), 840 840 ); 841 841 -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/reimbursement-request.php
r3868 r4967 34 34 function register_post_type() { 35 35 $labels = array( 36 'name' => _x( 'Reimbursement Requests', 'general reimbursement requests', 'wordcamporg' ),37 'singular_name' => _x( 'Reimbursement Request', 'post type singular name', 'wordcamporg' ),38 'menu_name' => _x( 'Reimbursement Requests', 'admin menu', 'wordcamporg' ),39 'name_admin_bar' => _x( 'Reimbursement Requests', 'add new on admin bar', 'wordcamporg' ),40 'add_new' => _x( 'Add New', 'reimbursement request', 'wordcamporg' ),41 42 'add_new_item' => __( 'Add New Reimbursement Request', 'wordcamporg' ),43 'new_item' => __( 'New Reimbursement Request', 'wordcamporg' ),44 'edit_item' => __( 'Edit Reimbursement Request', 'wordcamporg' ),45 'view_item' => __( 'View Reimbursement Request', 'wordcamporg' ),46 'all_items' => __( 'Reimbursements', 'wordcamporg' ),47 'search_items' => __( 'Search Reimbursement Requests', 'wordcamporg' ),48 'not_found' => __( 'No Reimbursement Requests found.', 'wordcamporg' ),49 'not_found_in_trash' => __( 'No Reimbursement Requests found in Trash.', 'wordcamporg' ),36 'name' => esc_html_x( 'Reimbursement Requests', 'general reimbursement requests', 'wordcamporg' ), 37 'singular_name' => esc_html_x( 'Reimbursement Request', 'post type singular name', 'wordcamporg' ), 38 'menu_name' => esc_html_x( 'Reimbursement Requests', 'admin menu', 'wordcamporg' ), 39 'name_admin_bar' => esc_html_x( 'Reimbursement Requests', 'add new on admin bar', 'wordcamporg' ), 40 'add_new' => esc_html_x( 'Add New', 'reimbursement request', 'wordcamporg' ), 41 42 'add_new_item' => esc_html__( 'Add New Reimbursement Request', 'wordcamporg' ), 43 'new_item' => esc_html__( 'New Reimbursement Request', 'wordcamporg' ), 44 'edit_item' => esc_html__( 'Edit Reimbursement Request', 'wordcamporg' ), 45 'view_item' => esc_html__( 'View Reimbursement Request', 'wordcamporg' ), 46 'all_items' => esc_html__( 'Reimbursements', 'wordcamporg' ), 47 'search_items' => esc_html__( 'Search Reimbursement Requests', 'wordcamporg' ), 48 'not_found' => esc_html__( 'No Reimbursement Requests found.', 'wordcamporg' ), 49 'not_found_in_trash' => esc_html__( 'No Reimbursement Requests found in Trash.', 'wordcamporg' ), 50 50 ); 51 51 … … 89 89 'wcbrr_submitted', 90 90 array( 91 'label' => _x( 'Submitted', 'post', 'wordcamporg' ),91 'label' => esc_html_x( 'Submitted', 'post', 'wordcamporg' ), 92 92 'label_count' => _nx_noop( 'Submitted <span class="count">(%s)</span>', 'Submitted <span class="count">(%s)</span>', 'wordcamporg' ), 93 93 'public' => true, … … 99 99 'wcbrr_info_requested', 100 100 array( 101 'label' => _x( 'Information Requested', 'post', 'wordcamporg' ),101 'label' => esc_html_x( 'Information Requested', 'post', 'wordcamporg' ), 102 102 'label_count' => _nx_noop( 'Information Requested <span class="count">(%s)</span>', 'Information Requested <span class="count">(%s)</span>', 'wordcamporg' ), 103 103 'public' => true, … … 109 109 'wcbrr_rejected', 110 110 array( 111 'label' => _x( 'Rejected', 'post', 'wordcamporg' ),111 'label' => esc_html_x( 'Rejected', 'post', 'wordcamporg' ), 112 112 'label_count' => _nx_noop( 'Rejected <span class="count">(%s)</span>', 'Rejected <span class="count">(%s)</span>', 'wordcamporg' ), 113 113 'public' => true, … … 119 119 'wcbrr_in_process', 120 120 array( 121 'label' => _x( 'Payment in Process', 'post', 'wordcamporg' ),121 'label' => esc_html_x( 'Payment in Process', 'post', 'wordcamporg' ), 122 122 'label_count' => _nx_noop( 'Payment in Process <span class="count">(%s)</span>', 'Payment in Process <span class="count">(%s)</span>', 'wordcamporg' ), 123 123 'public' => true, … … 129 129 'wcbrr_paid', 130 130 array( 131 'label' => _x( 'Paid', 'post', 'wordcamporg' ),131 'label' => esc_html_x( 'Paid', 'post', 'wordcamporg' ), 132 132 'label_count' => _nx_noop( 'Paid <span class="count">(%s)</span>', 'Paid <span class="count">(%s)</span>', 'wordcamporg' ), 133 133 'public' => true, … … 148 148 add_meta_box( 149 149 'submitdiv', 150 __( 'Status', 'wordcamporg' ),150 esc_html__( 'Status', 'wordcamporg' ), 151 151 __NAMESPACE__ . '\render_status_metabox', 152 152 POST_TYPE, … … 157 157 add_meta_box( 158 158 'wcbrr_notes', 159 __( 'Notes', 'wordcamporg' ),159 esc_html__( 'Notes', 'wordcamporg' ), 160 160 __NAMESPACE__ . '\render_notes_metabox', 161 161 POST_TYPE, … … 166 166 add_meta_box( 167 167 'wcbrr_general_information', 168 __( 'General Information', 'wordcamporg' ),168 esc_html__( 'General Information', 'wordcamporg' ), 169 169 __NAMESPACE__ . '\render_general_information_metabox', 170 170 POST_TYPE, … … 175 175 $introduction_message = sprintf( 176 176 '<p>%s</p> <p>%s</p>', 177 __( 'This is where you can give us information on how we can reimburse you for approved expenses that you paid out-of-pocket.', 'wordcamporg' ),178 __( 'Each wire transfer and check costs us processing fees, so if you have multiple out-of-pocket expenses, please try to group them into one reimbursement request.', 'wordcamporg' )177 esc_html__( 'This is where you can give us information on how we can reimburse you for approved expenses that you paid out-of-pocket.', 'wordcamporg' ), 178 esc_html__( 'Each wire transfer and check costs us processing fees, so if you have multiple out-of-pocket expenses, please try to group them into one reimbursement request.', 'wordcamporg' ) 179 179 ); 180 180 181 181 add_meta_box( 182 182 'wcbrr_payment_information', 183 __( 'Payment Information', 'wordcamporg' ),183 esc_html__( 'Payment Information', 'wordcamporg' ), 184 184 array( $wcp_payment_request, 'render_payment_metabox' ), // todo centralize this instead of using directly from another module 185 185 POST_TYPE, … … 196 196 add_meta_box( 197 197 'wcbrr_expenses', 198 __( 'Expenses', 'wordcamporg' ),198 esc_html__( 'Expenses', 'wordcamporg' ), 199 199 __NAMESPACE__ . '\render_expenses_metabox', 200 200 POST_TYPE, … … 205 205 add_meta_box( 206 206 'wcp_log', 207 __( 'Log', 'wordcamporg' ),207 esc_html__( 'Log', 'wordcamporg' ), 208 208 __NAMESPACE__ . '\render_log_metabox', 209 209 POST_TYPE, … … 281 281 $editable_statuses = array( 'auto-draft', 'draft', 'wcb-incomplete' ); 282 282 $current_user_can_edit_request = false; 283 $submit_text = _x( 'Update', 'payment request', 'wordcamporg' );283 $submit_text = esc_html_x( 'Update', 'payment request', 'wordcamporg' ); 284 284 $submit_note = ''; 285 285 … … 287 287 $current_user_can_edit_request = true; 288 288 } elseif ( in_array( $post->post_status, $editable_statuses ) ) { 289 $submit_text = __( 'Submit for Review', 'wordcamporg' );290 $submit_note = __( 'Once submitted for review, this request can not be edited.', 'wordcamporg' );289 $submit_text = esc_html__( 'Submit for Review', 'wordcamporg' ); 290 $submit_note = esc_html__( 'Once submitted for review, this request can not be edited.', 'wordcamporg' ); 291 291 $current_user_can_edit_request = true; 292 292 } … … 297 297 $request_id = get_current_blog_id() . '-' . $post->ID; 298 298 $requested_by = \WordCamp_Budgets::get_requester_name( $post->post_author ); 299 $update_text = current_user_can( 'manage_network' ) ? __( 'Update Request', 'wordcamporg' ) :__( 'Send Request', 'wordcamporg' );299 $update_text = current_user_can( 'manage_network' ) ? esc_html__( 'Update Request', 'wordcamporg' ) : esc_html__( 'Send Request', 'wordcamporg' ); 300 300 301 301 require_once( dirname( __DIR__ ) . '/views/reimbursement-request/metabox-status.php' ); … … 350 350 function get_reimbursement_reasons() { 351 351 return array( 352 'last-minute-purchase' => __( 'Last-minute purchase', 'wordcamporg' ),353 'vendor-required-cash' => __( 'Vendor required cash payment', 'wordcamporg' ),354 'payment-on-delivery' => __( 'Vendor required payment at delivery', 'wordcamporg' ),355 'convenience' => __( 'Organizer convenience', 'wordcamporg' ),356 'central-missed-payment' => __( "Payment by Central didn't come through", 'wordcamporg' ),357 'other' => __( 'Other (describe in next field)', 'wordcamporg' ),352 'last-minute-purchase' => esc_html__( 'Last-minute purchase', 'wordcamporg' ), 353 'vendor-required-cash' => esc_html__( 'Vendor required cash payment', 'wordcamporg' ), 354 'payment-on-delivery' => esc_html__( 'Vendor required payment at delivery', 'wordcamporg' ), 355 'convenience' => esc_html__( 'Organizer convenience', 'wordcamporg' ), 356 'central-missed-payment' => esc_html__( "Payment by Central didn't come through", 'wordcamporg' ), 357 'other' => esc_html__( 'Other (describe in next field)', 'wordcamporg' ), 358 358 ); 359 359 } -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/sponsor-invoice.php
r3307 r4967 35 35 function register_post_type() { 36 36 $labels = array( 37 'name' => _x( 'Sponsor Invoices', 'general sponsor invoices', 'wordcamporg' ),38 'singular_name' => _x( 'Sponsor Invoice', 'post type singular name', 'wordcamporg' ),39 'menu_name' => _x( 'Sponsor Invoices', 'admin menu', 'wordcamporg' ),40 'name_admin_bar' => _x( 'Sponsor Invoices', 'add new on admin bar', 'wordcamporg' ),41 'add_new' => _x( 'Add New', 'invoice', 'wordcamporg' ),42 43 'add_new_item' => __( 'Add New Sponsor Invoice', 'wordcamporg' ),44 'new_item' => __( 'New Invoice', 'wordcamporg' ),45 'edit_item' => __( 'Edit Invoice', 'wordcamporg' ),46 'view_item' => __( 'View Invoice', 'wordcamporg' ),47 'all_items' => __( 'Sponsor Invoices', 'wordcamporg' ),48 'search_items' => __( 'Search Invoices', 'wordcamporg' ),49 'not_found' => __( 'No invoice found.', 'wordcamporg' ),50 'not_found_in_trash' => __( 'No invoice found in Trash.', 'wordcamporg' ),37 'name' => esc_html_x( 'Sponsor Invoices', 'general sponsor invoices', 'wordcamporg' ), 38 'singular_name' => esc_html_x( 'Sponsor Invoice', 'post type singular name', 'wordcamporg' ), 39 'menu_name' => esc_html_x( 'Sponsor Invoices', 'admin menu', 'wordcamporg' ), 40 'name_admin_bar' => esc_html_x( 'Sponsor Invoices', 'add new on admin bar', 'wordcamporg' ), 41 'add_new' => esc_html_x( 'Add New', 'invoice', 'wordcamporg' ), 42 43 'add_new_item' => esc_html__( 'Add New Sponsor Invoice', 'wordcamporg' ), 44 'new_item' => esc_html__( 'New Invoice', 'wordcamporg' ), 45 'edit_item' => esc_html__( 'Edit Invoice', 'wordcamporg' ), 46 'view_item' => esc_html__( 'View Invoice', 'wordcamporg' ), 47 'all_items' => esc_html__( 'Sponsor Invoices', 'wordcamporg' ), 48 'search_items' => esc_html__( 'Search Invoices', 'wordcamporg' ), 49 'not_found' => esc_html__( 'No invoice found.', 'wordcamporg' ), 50 'not_found_in_trash' => esc_html__( 'No invoice found in Trash.', 'wordcamporg' ), 51 51 ); 52 52 … … 72 72 function get_custom_statuses() { 73 73 return array( 74 'wcbsi_submitted' => __( 'Submitted', 'wordcamporg' ),75 'wcbsi_approved' => __( 'Sent', 'wordcamporg' ),76 'wcbsi_paid' => __( 'Paid', 'wordcamporg' ),74 'wcbsi_submitted' => esc_html__( 'Submitted', 'wordcamporg' ), 75 'wcbsi_approved' => esc_html__( 'Sent', 'wordcamporg' ), 76 'wcbsi_paid' => esc_html__( 'Paid', 'wordcamporg' ), 77 77 ); 78 78 } … … 87 87 'wcbsi_submitted', 88 88 array( 89 'label' => _x( 'Submitted', 'post', 'wordcamporg' ),89 'label' => esc_html_x( 'Submitted', 'post', 'wordcamporg' ), 90 90 'label_count' => _nx_noop( 'Submitted <span class="count">(%s)</span>', 'Submitted <span class="count">(%s)</span>', 'wordcamporg' ), 91 91 'public' => true, … … 97 97 'wcbsi_approved', 98 98 array( 99 'label' => _x( 'Sent', 'post', 'wordcamporg' ),99 'label' => esc_html_x( 'Sent', 'post', 'wordcamporg' ), 100 100 'label_count' => _nx_noop( 'Sent <span class="count">(%s)</span>', 'Sent <span class="count">(%s)</span>', 'wordcamporg' ), 101 101 'public' => true, … … 107 107 'wcbsi_paid', 108 108 array( 109 'label' => _x( 'Paid', 'post', 'wordcamporg' ),109 'label' => esc_html_x( 'Paid', 'post', 'wordcamporg' ), 110 110 'label_count' => _nx_noop( 'Paid <span class="count">(%s)</span>', 'Paid <span class="count">(%s)</span>', 'wordcamporg' ), 111 111 'public' => true, … … 124 124 add_meta_box( 125 125 'submitdiv', 126 __( 'Status', 'wordcamporg' ),126 esc_html__( 'Status', 'wordcamporg' ), 127 127 __NAMESPACE__ . '\render_status_metabox', 128 128 POST_TYPE, … … 133 133 add_meta_box( 134 134 'wcbsi_sponsor_invoice', 135 __( 'Sponsor Invoice', 'wordcamporg' ),135 esc_html__( 'Sponsor Invoice', 'wordcamporg' ), 136 136 __NAMESPACE__ . '\render_sponsor_invoice_metabox', 137 137 POST_TYPE, … … 249 249 wp_nonce_field( 'status', 'status_nonce' ); 250 250 251 $delete_text = EMPTY_TRASH_DAYS ? __( 'Move to Trash' ) :__( 'Delete Permanently' );251 $delete_text = EMPTY_TRASH_DAYS ? esc_html__( 'Move to Trash' ) : esc_html__( 'Delete Permanently' ); 252 252 253 253 /* … … 431 431 $columns = array( 432 432 'cb' => $_columns['cb'], 433 'author' => __( 'Author' ),433 'author' => esc_html__( 'Author' ), 434 434 'title' => $_columns['title'], 435 435 'date' => $_columns['date'], 436 'sponsor_name' => __( 'Sponsor', 'wordcamporg' ),437 'payment_amount' => __( 'Amount', 'wordcamporg' ),436 'sponsor_name' => esc_html__( 'Sponsor', 'wordcamporg' ), 437 'payment_amount' => esc_html__( 'Amount', 'wordcamporg' ), 438 438 ); 439 439 -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/wordcamp-budgets.php
r4524 r4967 23 23 24 24 register_post_status( 'wcb-incomplete', array ( 25 'label' => _x( 'Incomplete', 'payment request', 'wordcamporg' ),25 'label' => esc_html_x( 'Incomplete', 'payment request', 'wordcamporg' ), 26 26 'public' => false, 27 27 'protected' => true, … … 34 34 35 35 register_post_status( 'wcb-pending-approval', array ( 36 'label' => _x( 'Pending Approval', 'payment request', 'wordcamporg' ),36 'label' => esc_html_x( 'Pending Approval', 'payment request', 'wordcamporg' ), 37 37 'public' => false, 38 38 'protected' => true, … … 45 45 46 46 register_post_status( 'wcb-approved', array ( 47 'label' => _x( 'Approved', 'payment request', 'wordcamporg' ),47 'label' => esc_html_x( 'Approved', 'payment request', 'wordcamporg' ), 48 48 'public' => false, 49 49 'protected' => true, … … 56 56 57 57 register_post_status( 'wcb-pending-payment', array ( 58 'label' => _x( 'Payment Sent', 'payment request', 'wordcamporg' ),58 'label' => esc_html_x( 'Payment Sent', 'payment request', 'wordcamporg' ), 59 59 'public' => false, 60 60 'protected' => true, … … 67 67 68 68 register_post_status( 'wcb-paid', array ( 69 'label' => _x( 'Paid', 'payment request', 'wordcamporg' ),69 'label' => esc_html_x( 'Paid', 'payment request', 'wordcamporg' ), 70 70 'public' => false, 71 71 'protected' => true, … … 78 78 79 79 register_post_status( 'wcb-failed', array ( 80 'label' => _x( 'Failed', 'payment request', 'wordcamporg' ),80 'label' => esc_html_x( 'Failed', 'payment request', 'wordcamporg' ), 81 81 'public' => false, 82 82 'protected' => true, … … 89 89 90 90 register_post_status( 'wcb-cancelled', array ( 91 'label' => _x( 'Cancelled', 'payment request', 'wordcamporg' ),91 'label' => esc_html_x( 'Cancelled', 'payment request', 'wordcamporg' ), 92 92 'public' => false, 93 93 'protected' => true, … … 109 109 public function register_budgets_menu() { 110 110 add_menu_page( 111 __( 'WordCamp Budget', 'wordcamporg' ),112 __( 'Budget', 'wordcamporg' ),111 esc_html__( 'WordCamp Budget', 'wordcamporg' ), 112 esc_html__( 'Budget', 'wordcamporg' ), 113 113 'manage_options', 114 114 'wordcamp-budget', … … 145 145 'wcbLocalizedStrings', // todo merge into WordCampBudgets var 146 146 array( 147 'uploadModalTitle' => __( 'Attach Supporting Documentation', 'wordcamporg' ),148 'uploadModalButton' => __( 'Attach Files', 'wordcamporg' ),147 'uploadModalTitle' => esc_html__( 'Attach Supporting Documentation', 'wordcamporg' ), 148 'uploadModalButton' => esc_html__( 'Attach Files', 'wordcamporg' ), 149 149 ) 150 150 ); … … 746 746 public static function get_payment_categories() { 747 747 return array( 748 'after-party' => __( 'After Party', 'wordcamporg' ),749 'audio-visual' => __( 'Audio Visual', 'wordcamporg' ),750 'camera-shipping' => __( 'Camera Shipping', 'wordcamporg' ),751 'food-beverages' => __( 'Food & Beverage', 'wordcamporg' ),752 'office-supplies' => __( 'Office Supplies', 'wordcamporg' ),753 'signage-badges' => __( 'Signage & Badges', 'wordcamporg' ),754 'speaker-event' => __( 'Speaker Event', 'wordcamporg' ),755 'swag' => __( 'Swag (t-shirts, stickers, etc)', 'wordcamporg' ),756 'venue' => __( 'Venue', 'wordcamporg' ),757 'other' => __( 'Other', 'wordcamporg' ), // This one is intentionally last, regardless of alphabetical order748 'after-party' => esc_html__( 'After Party', 'wordcamporg' ), 749 'audio-visual' => esc_html__( 'Audio Visual', 'wordcamporg' ), 750 'camera-shipping' => esc_html__( 'Camera Shipping', 'wordcamporg' ), 751 'food-beverages' => esc_html__( 'Food & Beverage', 'wordcamporg' ), 752 'office-supplies' => esc_html__( 'Office Supplies', 'wordcamporg' ), 753 'signage-badges' => esc_html__( 'Signage & Badges', 'wordcamporg' ), 754 'speaker-event' => esc_html__( 'Speaker Event', 'wordcamporg' ), 755 'swag' => esc_html__( 'Swag (t-shirts, stickers, etc)', 'wordcamporg' ), 756 'venue' => esc_html__( 'Venue', 'wordcamporg' ), 757 'other' => esc_html__( 'Other', 'wordcamporg' ), // This one is intentionally last, regardless of alphabetical order 758 758 ); 759 759 } -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/budget-tool/main.php
r3858 r4967 20 20 <?php endif; ?> 21 21 22 <span> Preliminary Budget</span>22 <span><?php esc_html_e( 'Preliminary Budget', 'wordcamporg' ); ?></span> 23 23 </a> 24 24 <?php elseif ( $budget['status'] == 'approved' ) : ?> … … 27 27 <svg width="20" height="20" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg> 28 28 29 <span> Approved Budget</span>29 <span><?php esc_html_e( 'Approved Budget', 'wordcamporg' ); ?></span> 30 30 </a> 31 31 <a href="<?php echo esc_url( add_query_arg( 'wcb-view', 'working' ) ); ?>" 32 32 class="nav-tab <?php if ( $view == 'working' ) { ?>nav-tab-active<?php } ?>"> 33 <span> Working Budget</span>33 <span><?php esc_html_e( 'Working Budget', 'wordcamporg' ); ?></span> 34 34 </a> 35 35 <?php endif; ?> 36 <!--<a href="#" class="nav-tab"> Working Budget</a>-->36 <!--<a href="#" class="nav-tab"><?php esc_html_e( 'Working Budget', 'wordcamporg' ); ?></a>--> 37 37 </h2> 38 38 39 39 <?php if ( $budget['status'] == 'draft' ) : ?> 40 <p style="max-width: 800px;">Welcome to your WordCamp budget, it's time to crunch some numbers! When you're done with the preliminary budget, hit the "Submit for Approval" button below – a WordCamp deputy will be notified and will review your work. If you're having trouble with these numbers, or if you have any questions, don't hesitate to reach out to your mentor or Central.</p>41 42 <p style="max-width: 800px;">This budget has been submitted for approval. You will be notified when it is approved. Or not.</p>43 44 <p style="max-width: 800px;">This budget has been approved and can not be modified. Use the working budget if you'd like to play around with numbers.</p>45 46 <p style="max-width: 800px;">Welcome to your working budget. Feel free to play around with numbers here. They will not affect your approved budget.</p>40 <p style="max-width: 800px;"><?php esc_html_e( 'Welcome to your WordCamp budget, it\'s time to crunch some numbers! When you\'re done with the preliminary budget, hit the "Submit for Approval" button below – a WordCamp deputy will be notified and will review your work. If you\'re having trouble with these numbers, or if you have any questions, don\'t hesitate to reach out to your mentor or Central.', 'wordcamporg' ); ?></p> 41 <?php elseif ( $budget['status'] == 'pending' ) : ?> 42 <p style="max-width: 800px;"><?php esc_html_e( 'This budget has been submitted for approval. You will be notified when it is reviewed.', 'wordcamporg' ); ?></p> 43 <?php elseif ( $budget['status'] == 'approved' && $view == 'approved' ) : ?> 44 <p style="max-width: 800px;"><?php esc_html_e( "This budget has been approved and cannot be modified. Use the working budget if you'd like to play around with numbers.", 'wordcamporg' ); ?></p> 45 <?php elseif ( $view == 'working' ) : ?> 46 <p style="max-width: 800px;"><?php esc_html_e( 'Welcome to your working budget. Feel free to play around with numbers here. They will not affect your approved budget.', 'wordcamporg' ); ?></p> 47 47 <?php endif; ?> 48 48 49 49 <div class="left"> 50 <h2> Event Data</h2>50 <h2><?php esc_html_e( 'Event Data', 'wordcamporg' ); ?></h2> 51 51 <table class="wcb-budget-container"> 52 52 <tbody> 53 53 <tr class="wcb-group-header"> 54 <th style="width: 50%;"> Name</th>55 <th style="width: 50%;"> Value</th>54 <th style="width: 50%;"><?php esc_html_e( 'Name', 'wordcamporg' ); ?></th> 55 <th style="width: 50%;"><?php esc_html_e( 'Value', 'wordcamporg' ); ?></th> 56 56 </tr> 57 57 <tr class="wcb-meta-placeholder" style="display: none;"> … … 62 62 </div> 63 63 <div class="right"> 64 <h2> Summary</h2>64 <h2><?php esc_html_e( 'Summary', 'wordcamporg' ); ?></h2> 65 65 <div class="wcb-summary-placeholder"></div> 66 66 </div> … … 68 68 <div class="clear"></div> 69 69 70 <h2> Expenses</h2>70 <h2><?php esc_html_e( 'Expenses', 'wordcamporg' ); ?></h2> 71 71 <table class="wcb-budget-container"> 72 72 <tbody> 73 73 <tr class="wcb-group-header"> 74 <th style="width: 20%;"> Category</th>75 <th style="width: 40%;"> Detail</th>76 <th style="width: 25%;" class="amount"> Amount</th>74 <th style="width: 20%;"><?php esc_html_e( 'Category', 'wordcamporg' ); ?></th> 75 <th style="width: 40%;"><?php esc_html_e( 'Detail', 'wordcamporg' ); ?></th> 76 <th style="width: 25%;" class="amount"><?php esc_html_e( 'Amount', 'wordcamporg' ); ?></th> 77 77 <th style="width: 15%;"></th> 78 78 </tr> … … 80 80 <tr class="wcb-expense-placeholder"> 81 81 <?php if ( $editable ) : ?> 82 <td colspan="4"> New Expense Item</td>82 <td colspan="4"><?php esc_html_e( 'New Expense Item', 'wordcamporg' ); ?></td> 83 83 <?php endif; ?> 84 84 </tr> … … 86 86 </table> 87 87 88 <h2> Income</h2>88 <h2><?php esc_html_e( 'Income', 'wordcamporg' ); ?></h2> 89 89 <table class="wcb-budget-container"> 90 90 <tbody> 91 91 <tr class="wcb-group-header"> 92 <th style="width: 20%;"> Category</th>93 <th style="width: 40%;"> Detail</th>94 <th style="width: 25%;" class="amount"> Amount</th>92 <th style="width: 20%;"><?php esc_html_e( 'Category', 'wordcamporg' ); ?></th> 93 <th style="width: 40%;"><?php esc_html_e( 'Detail', 'wordcamporg' ); ?></th> 94 <th style="width: 25%;" class="amount"><?php esc_html_e( 'Amount', 'wordcamporg' ); ?></th> 95 95 <th style="width: 15%;"></th> 96 96 </tr> … … 98 98 <tr class="wcb-income-placeholder"> 99 99 <?php if ( $editable ) : ?> 100 <td colspan="4"> New Income Item</td>100 <td colspan="4"><?php esc_html_e( 'New Income Item', 'wordcamporg' ); ?></td> 101 101 <?php endif; ?> 102 102 </tr> … … 110 110 <?php if ( $budget['status'] == 'draft' ) : ?> 111 111 <p class="submit"> 112 <?php submit_button( 'Save Draft', 'secondary', 'wcb-budget-save-draft', false ); ?>113 <?php submit_button( 'Save & Request Review', 'secondary', 'wcb-budget-request-review', false ); ?>114 <a href="<?php echo admin_url( 'admin.php?page=wordcamp-budget' ); ?>" class="button"> Cancel Changes</a>115 <?php submit_button( 'Submit for Approval', 'primary', 'wcb-budget-submit', false ); ?>112 <?php submit_button( esc_html__( 'Save Draft', 'wordcamporg' ), 'secondary', 'wcb-budget-save-draft', false ); ?> 113 <?php submit_button( esc_html__( 'Save & Request Review', 'wordcamporg' ), 'secondary', 'wcb-budget-request-review', false ); ?> 114 <a href="<?php echo admin_url( 'admin.php?page=wordcamp-budget' ); ?>" class="button"><?php esc_html_e( 'Cancel Changes', 'wordcamporg' ); ?></a> 115 <?php submit_button( esc_html__( 'Submit for Approval', 'wordcamporg' ), 'primary', 'wcb-budget-submit', false ); ?> 116 116 </p> 117 117 <?php elseif ( $budget['status'] == 'pending' && current_user_can( 'wcb_approve_budget' ) ) : ?> 118 118 <p class="submit"> 119 <?php submit_button( 'Approve', 'primary', 'wcb-budget-approve', false ); ?>120 <?php submit_button( 'Reject', 'primary', 'wcb-budget-reject', false ); ?>119 <?php submit_button( esc_html__( 'Approve', 'wordcamporg' ), 'primary', 'wcb-budget-approve', false ); ?> 120 <?php submit_button( esc_html__( 'Reject', 'wordcamporg' ), 'primary', 'wcb-budget-reject', false ); ?> 121 121 </p> 122 122 <?php elseif ( $budget['status'] == 'approved' && $view == 'working' ) : ?> 123 123 <p class="submit"> 124 <?php submit_button( 'Update Working Budget', 'primary', 'wcb-budget-update-working', false ); ?>125 <a href="<?php echo admin_url( 'admin.php?page=wordcamp-budget&wcb-view=working' ); ?>" class="button"> Cancel Changes</a>126 <?php submit_button( 'Reset to Approved Budget', 'secondary', 'wcb-budget-reset', false ); ?>124 <?php submit_button( esc_html__( 'Update Working Budget', 'wordcamporg' ), 'primary', 'wcb-budget-update-working', false ); ?> 125 <a href="<?php echo admin_url( 'admin.php?page=wordcamp-budget&wcb-view=working' ); ?>" class="button"><?php esc_html_e( 'Cancel Changes', 'wordcamporg' ); ?></a> 126 <?php submit_button( esc_html__( 'Reset to Approved Budget', 'wordcamporg' ), 'secondary', 'wcb-budget-reset', false ); ?> 127 127 </p> 128 128 <?php endif; ?> … … 137 137 </tr> 138 138 <tr> 139 <td> Income</td>139 <td><?php esc_html_e( 'Income', 'wordcamporg' ); ?></td> 140 140 <td class="amount">{{data.income}}</td> 141 141 </tr> 142 142 <tr> 143 <td> Expenses</td>143 <td><?php esc_html_e( 'Expenses', 'wordcamporg' ); ?></td> 144 144 <td class="amount">{{data.expenses}}</td> 145 145 </tr> 146 146 <tr> 147 <td> Variance</td>147 <td><?php esc_html_e( 'Variance', 'wordcamporg' ); ?></td> 148 148 <td class="amount <# if (data.variance_raw < 0) { #>wcb-negative<# } #>">{{data.variance}}</td> 149 149 </tr> 150 150 <tr> 151 <td> Cost Per Person Per Day</td>151 <td><?php esc_html_e( 'Cost Per Person Per Day', 'wordcamporg' ); ?></td> 152 152 <td class="amount">{{data.per_person}}</td> 153 153 </tr> … … 164 164 <td class="amount"> 165 165 <# if (data.variance_raw < 0) { #> 166 <a href="#" target="_blank" class="inspire"> inspire me</a>166 <a href="#" target="_blank" class="inspire"><?php esc_html_e( 'inspire me', 'wordcamporg' ); ?></a> 167 167 <# } #> 168 168 </td> … … 210 210 <# } else { #> 211 211 <td style="width: 20%"> 212 Income212 <?php esc_html_e( 'Income', 'wordcamporg' ); ?> 213 213 <input type="hidden" class="category" value="{{data.category}}" /> 214 214 </td> … … 219 219 {{wcb.categories[data.category]}} 220 220 <# } else { #> 221 Income221 <?php esc_html_e( 'Income', 'wordcamporg' ); ?> 222 222 <# } #> 223 223 </td> … … 275 275 <td style="width: 15%" class="actions"> 276 276 <# if (wcb.editable) { #> 277 <a href="#" class="move"> Move</a>278 <a href="#" class="delete"> Delete</a>277 <a href="#" class="move"><?php esc_html_e( 'Move', 'wordcamporg' ); ?></a> 278 <a href="#" class="delete"><?php esc_html_e( 'Delete', 'wordcamporg' ); ?></a> 279 279 <# } #> 280 280 </td> -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/input-country.php
r2682 r4967 12 12 <?php __checked_selected_helper( $required, true, true, 'required' ); ?> 13 13 > 14 <option value=""> (None)</option>14 <option value=""><?php esc_html_e( '(None)', 'wordcamporg' ); ?></option> 15 15 <?php foreach ( $options as $value => $option_label ) : ?> 16 16 <option value="<?php echo esc_attr( $value ); ?>" <?php selected( $value, $selected ); ?>><?php -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/input-select.php
r2682 r4967 13 13 > 14 14 <option value="null-select-one"> 15 <?php printf( __( '-- Select a %s --', 'wordcamporg' ), $label ); ?>15 <?php printf( esc_html__( '-- Select a %s --', 'wordcamporg' ), $label ); ?> 16 16 </option> 17 17 <option value="null-separator1"></option> -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-general.php
r2700 r4967 1 1 <table class="form-table"> 2 2 <?php 3 $this->render_textarea_input( $post, 'Description', 'description' );4 $this->render_text_input( $post, 'Invoice Number', 'invoice_number' );5 $this->render_text_input( $post, 'Invoice date', 'invoice_date', '', 'date' );6 $this->render_text_input( $post, 'Requested date for payment/due by', 'due_by', '', 'date' );7 $this->render_text_input( $post, 'Amount', 'payment_amount', 'No commas, thousands separators or currency symbols. Ex. 1234.56');8 $this->render_select_input( $post, 'Currency', 'currency' );9 $this->render_select_input( $post, 'Category', 'payment_category' );3 $this->render_textarea_input( $post, esc_html__( 'Description', 'wordcamporg' ), 'description' ); 4 $this->render_text_input( $post, esc_html__( 'Invoice Number', 'wordcamporg' ), 'invoice_number' ); 5 $this->render_text_input( $post, esc_html__( 'Invoice date', 'wordcamporg' ), 'invoice_date', '', 'date' ); 6 $this->render_text_input( $post, esc_html__( 'Requested date for payment/due by', 'wordcamporg' ), 'due_by', '', 'date' ); 7 $this->render_text_input( $post, esc_html__( 'Amount', 'wordcamporg' ), 'payment_amount', esc_html__( 'No commas, thousands separators or currency symbols. Ex. 1234.56', 'wordcamporg' ) ); 8 $this->render_select_input( $post, esc_html__( 'Currency', 'wordcamporg' ), 'currency' ); 9 $this->render_select_input( $post, esc_html__( 'Category', 'wordcamporg' ), 'payment_category' ); 10 10 ?> 11 11 … … 13 13 $this->render_text_input( 14 14 $post, 15 'Other Category',15 esc_html__( 'Other Category', 'wordcamporg' ), 16 16 'other_category_explanation', 17 __( 'Please describe what category this request fits under.', 'wordcamporg' ),17 esc_html__( 'Please describe what category this request fits under.', 'wordcamporg' ), 18 18 'text', 19 19 isset( $assigned_category->name ) && 'Other' == $assigned_category->name ? array() : array( 'hidden') // todo i18n, see notes in insert_default_terms() … … 21 21 ?> 22 22 23 <?php $this->render_files_input( $post, 'Files', 'files', __( 'Attach supporting documentation including invoices, contracts, or other vendor correspondence. If no supporting documentation is available, please indicate the reason in the notes below.', 'wordcamporg' ) ); ?> 24 <?php $this->render_textarea_input( $post, 'Notes', 'general_notes', 'Any other details you want to share.', false ); ?> 23 <?php $this->render_files_input( 24 $post, 25 esc_html__( 'Files', 'wordcamporg' ), 26 'files', 27 esc_html__( 'Attach supporting documentation including invoices, contracts, or other vendor correspondence. If no supporting documentation is available, please indicate the reason in the notes below.', 'wordcamporg' ) 28 ); ?> 29 30 <?php $this->render_textarea_input( 31 $post, 32 esc_html__( 'Notes', 'wordcamporg' ), 33 'general_notes', 34 esc_html__( 'Any other details you want to share.', 'wordcamporg' ), 35 false 36 ); ?> 25 37 </table> 26 38 27 39 <p class="wcb-form-required"> 28 <?php _e( '* required', 'wordcamporg' ); ?>40 <?php esc_html_e( '* required', 'wordcamporg' ); ?> 29 41 </p> -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-payment.php
r2701 r4967 9 9 <table class="form-table"> 10 10 <?php if ( $box['args']['show_vendor_requested_payment_method'] ) : ?> 11 <?php $this->render_textarea_input( $post, 'Did the vendor request a specific type of payment?', 'vendor_requested_payment_method', 'Add any relevant details', false ); ?>11 <?php $this->render_textarea_input( $post, esc_html__( 'Did the vendor request a specific type of payment?', 'wordcamporg' ), 'vendor_requested_payment_method', esc_html__( 'Add any relevant details', 'wordcamporg' ), false ); ?> 12 12 <?php endif;?> 13 13 14 <?php $this->render_radio_input( $post, 'Payment Method', 'payment_method' ); ?>14 <?php $this->render_radio_input( $post, esc_html__( 'Payment Method', 'wordcamporg' ), 'payment_method' ); ?> 15 15 </table> 16 16 17 17 <table id="payment_method_direct_deposit_fields" class="form-table payment_method_fields <?php echo 'Direct Deposit' == $selected_payment_method ? 'active' : 'hidden'; ?>"> 18 <?php $this->render_text_input( $post, 'Bank Name', 'ach_bank_name'); ?>19 <?php $this->render_radio_input( $post, 'Account Type', 'ach_account_type'); ?>20 <?php $this->render_text_input( $post, 'Routing Number', 'ach_routing_number'); ?>21 <?php $this->render_text_input( $post, 'Account Number', 'ach_account_number'); ?>22 <?php $this->render_text_input( $post, 'Account Holder Name','ach_account_holder_name' ); ?>18 <?php $this->render_text_input( $post, esc_html__( 'Bank Name', 'wordcamporg' ), 'ach_bank_name' ); ?> 19 <?php $this->render_radio_input( $post, esc_html__( 'Account Type', 'wordcamporg' ), 'ach_account_type' ); ?> 20 <?php $this->render_text_input( $post, esc_html__( 'Routing Number', 'wordcamporg' ), 'ach_routing_number' ); ?> 21 <?php $this->render_text_input( $post, esc_html__( 'Account Number', 'wordcamporg' ), 'ach_account_number' ); ?> 22 <?php $this->render_text_input( $post, esc_html__( 'Account Holder Name', 'wordcamporg' ), 'ach_account_holder_name' ); ?> 23 23 </table> 24 24 25 25 <div id="payment_method_check_fields" class="form-table payment_method_fields <?php echo 'Check' == $selected_payment_method ? 'active' : 'hidden'; ?>"> 26 26 <table> 27 <?php $this->render_text_input( $post, 'Payable To', 'payable_to'); ?>28 <?php $this->render_text_input( $post, 'Street Address','check_street_address' ); ?>29 <?php $this->render_text_input( $post, 'City','check_city' ); ?>30 <?php $this->render_text_input( $post, 'State / Province','check_state' ); ?>31 <?php $this->render_text_input( $post, 'ZIP / Postal Code', 'check_zip_code' ); ?>32 <?php $this->render_country_input( $post, 'Country','check_country' ); ?>27 <?php $this->render_text_input( $post, esc_html__( 'Payable To', 'wordcamporg' ), 'payable_to' ); ?> 28 <?php $this->render_text_input( $post, esc_html__( 'Street Address', 'wordcamporg' ), 'check_street_address' ); ?> 29 <?php $this->render_text_input( $post, esc_html__( 'City', 'wordcamporg' ), 'check_city' ); ?> 30 <?php $this->render_text_input( $post, esc_html__( 'State / Province', 'wordcamporg' ), 'check_state' ); ?> 31 <?php $this->render_text_input( $post, esc_html__( 'ZIP / Postal Code', 'wordcamporg' ), 'check_zip_code' ); ?> 32 <?php $this->render_country_input( $post, esc_html__( 'Country', 'wordcamporg' ), 'check_country' ); ?> 33 33 </table> 34 34 </div> 35 35 36 36 <p id="payment_method_credit_card_fields" class="description payment_method_fields <?php echo 'Credit Card' == $selected_payment_method ? 'active' : 'hidden'; ?>"> 37 <?php _e( 'Please make sure that you upload an authorization form above, if one is required by the vendor.', 'wordcamporg' ); ?>37 <?php esc_html_e( 'Please make sure that you upload an authorization form above, if one is required by the vendor.', 'wordcamporg' ); ?> 38 38 </p> 39 39 40 40 <div id="payment_method_wire_fields" class="form-table payment_method_fields <?php echo 'Wire' == $selected_payment_method ? 'active' : 'hidden'; ?>"> 41 41 <h3> 42 <?php _e( "Beneficiary's Bank", 'wordcamporg' ); ?>42 <?php esc_html_e( 'Beneficiary’s Bank', 'wordcamporg' ); ?> 43 43 </h3> 44 44 45 45 <table> 46 <?php $this->render_text_input( $post, 'Beneficiary’s Bank Name', 'bank_name' ); ?>47 <?php $this->render_text_input( $post, 'Beneficiary’s Bank Street Address', 'bank_street_address' ); ?>48 <?php $this->render_text_input( $post, 'Beneficiary’s Bank City', 'bank_city' ); ?>49 <?php $this->render_text_input( $post, 'Beneficiary’s Bank State / Province', 'bank_state' ); ?>50 <?php $this->render_text_input( $post, 'Beneficiary’s Bank ZIP / Postal Code', 'bank_zip_code' ); ?>51 <?php $this->render_country_input( $post, 'Beneficiary’s Bank Country', 'bank_country_iso3166' ); ?>52 <?php $this->render_text_input( $post, 'Beneficiary’s Bank SWIFT BIC', 'bank_bic' ); ?>53 <?php $this->render_text_input( $post, 'Beneficiary’s Account Number or IBAN', 'beneficiary_account_number' ); ?>46 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Bank Name', 'wordcamporg' ), 'bank_name' ); ?> 47 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Bank Street Address', 'wordcamporg' ), 'bank_street_address' ); ?> 48 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Bank City', 'wordcamporg' ), 'bank_city' ); ?> 49 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Bank State / Province', 'wordcamporg' ), 'bank_state' ); ?> 50 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Bank ZIP / Postal Code', 'wordcamporg' ), 'bank_zip_code' ); ?> 51 <?php $this->render_country_input( $post, esc_html__( 'Beneficiary’s Bank Country', 'wordcamporg' ), 'bank_country_iso3166' ); ?> 52 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Bank SWIFT BIC', 'wordcamporg' ), 'bank_bic' ); ?> 53 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Account Number or IBAN', 'wordcamporg' ), 'beneficiary_account_number' ); ?> 54 54 </table> 55 55 56 56 <hr /> 57 57 <h3> 58 <?php _e( "Intermediary Bank", 'wordcamporg' ); ?>58 <?php esc_html_e( 'Intermediary Bank', 'wordcamporg' ); ?> 59 59 </h3> 60 60 61 61 <?php $this->render_checkbox_input( 62 62 $post, 63 __( 'Send this payment through an intermediary bank', 'wordcamporg' ),63 esc_html__( 'Send this payment through an intermediary bank', 'wordcamporg' ), 64 64 'needs_intermediary_bank' 65 65 ); ?> 66 66 67 67 <table id="intermediary_bank_fields"> 68 <?php $this->render_text_input( $post, 'Intermediary Bank Name', 'interm_bank_name' ); ?>69 <?php $this->render_text_input( $post, 'Intermediary Bank Street Address', 'interm_bank_street_address' ); ?>70 <?php $this->render_text_input( $post, 'Intermediary Bank City', 'interm_bank_city' ); ?>71 <?php $this->render_text_input( $post, 'Intermediary Bank State / Province', 'interm_bank_state' ); ?>72 <?php $this->render_text_input( $post, 'Intermediary Bank ZIP / Postal Code', 'interm_bank_zip_code' ); ?>73 <?php $this->render_country_input( $post, 'Intermediary Bank Country', 'interm_bank_country_iso3166' ); ?>74 <?php $this->render_text_input( $post, 'Intermediary Bank SWIFT BIC', 'interm_bank_swift' ); ?>75 <?php $this->render_text_input( $post, 'Intermediary Bank Account', 'interm_bank_account' ); ?>68 <?php $this->render_text_input( $post, esc_html__( 'Intermediary Bank Name', 'wordcamporg' ), 'interm_bank_name' ); ?> 69 <?php $this->render_text_input( $post, esc_html__( 'Intermediary Bank Street Address', 'wordcamporg' ), 'interm_bank_street_address' ); ?> 70 <?php $this->render_text_input( $post, esc_html__( 'Intermediary Bank City', 'wordcamporg' ), 'interm_bank_city' ); ?> 71 <?php $this->render_text_input( $post, esc_html__( 'Intermediary Bank State / Province', 'wordcamporg' ), 'interm_bank_state' ); ?> 72 <?php $this->render_text_input( $post, esc_html__( 'Intermediary Bank ZIP / Postal Code', 'wordcamporg' ), 'interm_bank_zip_code' ); ?> 73 <?php $this->render_country_input( $post, esc_html__( 'Intermediary Bank Country', 'wordcamporg' ), 'interm_bank_country_iso3166' ); ?> 74 <?php $this->render_text_input( $post, esc_html__( 'Intermediary Bank SWIFT BIC', 'wordcamporg' ), 'interm_bank_swift' ); ?> 75 <?php $this->render_text_input( $post, esc_html__( 'Intermediary Bank Account', 'wordcamporg' ), 'interm_bank_account' ); ?> 76 76 </table> 77 77 78 78 <hr /> 79 79 <h3> 80 <?php _e( "Beneficiary", 'wordcamporg' ); ?>80 <?php esc_html_e( 'Beneficiary', 'wordcamporg' ); ?> 81 81 </h3> 82 82 83 83 <table> 84 <?php $this->render_text_input( $post, 'Beneficiary’s Name', 'beneficiary_name' ); ?>85 <?php $this->render_text_input( $post, 'Beneficiary’s Street Address', 'beneficiary_street_address' ); ?>86 <?php $this->render_text_input( $post, 'Beneficiary’s City', 'beneficiary_city' ); ?>87 <?php $this->render_text_input( $post, 'Beneficiary’s State / Province', 'beneficiary_state' ); ?>88 <?php $this->render_text_input( $post, 'Beneficiary’s ZIP / Postal Code', 'beneficiary_zip_code' ); ?>89 <?php $this->render_country_input( $post, 'Beneficiary’s Country', 'beneficiary_country_iso3166' ); ?>84 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Name', 'wordcamporg' ), 'beneficiary_name' ); ?> 85 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s Street Address', 'wordcamporg' ), 'beneficiary_street_address' ); ?> 86 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s City', 'wordcamporg' ), 'beneficiary_city' ); ?> 87 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s State / Province', 'wordcamporg' ), 'beneficiary_state' ); ?> 88 <?php $this->render_text_input( $post, esc_html__( 'Beneficiary’s ZIP / Postal Code', 'wordcamporg' ), 'beneficiary_zip_code' ); ?> 89 <?php $this->render_country_input( $post, esc_html__( 'Beneficiary’s Country', 'wordcamporg' ), 'beneficiary_country_iso3166' ); ?> 90 90 </table> 91 91 </div> … … 93 93 94 94 <p class="wcb-form-required"> 95 <?php _e( '* required', 'wordcamporg' ); ?>95 <?php esc_html_e( '* required', 'wordcamporg' ); ?> 96 96 </p> -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-status.php
r3617 r4967 5 5 <div id="minor-publishing-actions"> 6 6 <div id="save-action"> 7 <?php submit_button( __( 'Save Draft', 'wordcamporg' ), 'button', 'wcb-save-draft', false ); ?>7 <?php submit_button( esc_html__( 'Save Draft', 'wordcamporg' ), 'button', 'wcb-save-draft', false ); ?> 8 8 <span class="spinner"></span> 9 9 </div> -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-vendor.php
r2701 r4967 1 1 <table class="form-table"> 2 2 <?php 3 $this->render_text_input( $post, 'Vendor Name', 'vendor_name' );4 $this->render_text_input( $post, 'Contact Person', 'vendor_contact_person' );5 $this->render_text_input( $post, 'Phone Number', 'vendor_phone_number', '', 'tel' );6 $this->render_text_input( $post, 'Email Address', 'vendor_email_address', '', 'email' );7 $this->render_text_input( $post, 'Street Address', 'vendor_street_address' );8 $this->render_text_input( $post, 'City', 'vendor_city' );9 $this->render_text_input( $post, 'State / Province', 'vendor_state' );10 $this->render_text_input( $post, 'ZIP / Postal Code', 'vendor_zip_code' );11 $this->render_country_input( $post, 'Country', 'vendor_country_iso3166' );3 $this->render_text_input( $post, __( 'Vendor Name', 'wordcamporg' ), 'vendor_name' ); 4 $this->render_text_input( $post, __( 'Contact Person', 'wordcamporg' ), 'vendor_contact_person' ); 5 $this->render_text_input( $post, __( 'Phone Number', 'wordcamporg' ), 'vendor_phone_number', '', 'tel' ); 6 $this->render_text_input( $post, __( 'Email Address', 'wordcamporg' ), 'vendor_email_address', '', 'email' ); 7 $this->render_text_input( $post, __( 'Street Address', 'wordcamporg' ), 'vendor_street_address' ); 8 $this->render_text_input( $post, __( 'City', 'wordcamporg' ), 'vendor_city' ); 9 $this->render_text_input( $post, __( 'State / Province', 'wordcamporg' ), 'vendor_state' ); 10 $this->render_text_input( $post, __( 'ZIP / Postal Code', 'wordcamporg' ), 'vendor_zip_code' ); 11 $this->render_country_input( $post, __( 'Country', 'wordcamporg' ), 'vendor_country_iso3166' ); 12 12 ?> 13 13 </table> 14 14 15 15 <p class="wcb-form-required"> 16 <?php _e( '* required', 'wordcamporg' ); ?>16 <?php esc_html_e( '* required', 'wordcamporg' ); ?> 17 17 </p> -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/reimbursement-request/metabox-expenses.php
r2683 r4967 18 18 </div> 19 19 20 <?php submit_button( __( 'Add Another Expense', 'wordcamporg' ), 'secondary', 'wcbrr-add-another-expense' ); ?>20 <?php submit_button( esc_html__( 'Add Another Expense', 'wordcamporg' ), 'secondary', 'wcbrr-add-another-expense' ); ?> 21 21 </fieldset> 22 22 -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/reimbursement-request/metabox-notes.php
r2396 r4967 35 35 36 36 <?php submit_button( 37 __( 'Add Note', 'wordcamporg' ),37 esc_html__( 'Add Note', 'wordcamporg' ), 38 38 'secondary', 39 39 'wcbrr_add_note' -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/reimbursement-request/metabox-status.php
r3105 r4967 11 11 <div id="minor-publishing-actions"> 12 12 <div id="save-action"> 13 <?php submit_button( __( 'Save Draft', 'wordcamporg' ), 'button', 'wcb-save-draft', false ); ?>13 <?php submit_button( esc_html__( 'Save Draft', 'wordcamporg' ), 'button', 'wcb-save-draft', false ); ?> 14 14 <span class="spinner"></span> 15 15 </div> -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/sponsor-invoice/metabox-status.php
r2692 r4967 11 11 <div id="minor-publishing-actions"> 12 12 <div id="save-action"> 13 <?php submit_button( __( 'Save Draft' ), 'secondary', 'wcb-save-draft', false ); ?>13 <?php submit_button( esc_html__( 'Save Draft' ), 'secondary', 'wcb-save-draft', false ); ?> 14 14 </div> 15 15 </div> … … 52 52 53 53 <div id="publishing-action"> 54 <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr( __( 'Send Invoice', 'wordcamporg' ) ) ?>" />54 <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr( esc_html__( 'Send Invoice', 'wordcamporg' ) ) ?>" /> 55 55 <?php submit_button( 56 __( 'Send Invoice', 'wordcamporg' ),56 esc_html__( 'Send Invoice', 'wordcamporg' ), 57 57 'primary button-large', 58 58 'send-invoice', -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/sponsor-payment/main.php
r4156 r4967 8 8 <div id="content" class="wcorg-sponsor-payment" role="main"> 9 9 10 <h1 class="entry-title"> Sponsorship Payment</h1>10 <h1 class="entry-title"><?php esc_html_e( 'Sponsorship Payment', 'wordcamporg' ); ?></h1> 11 11 12 12 <?php if ( ! empty( $data['errors'] ) ) : ?> 13 13 <?php foreach ( $data['errors'] as $error ) : ?> 14 <p><strong> Error:</strong> <?php echo esc_html( $error ); ?></p>14 <p><strong><?php esc_html_e( 'Error:', 'wordcamporg' ); ?></strong> <?php echo esc_html( $error ); ?></p> 15 15 <?php endforeach; ?> 16 16 <?php endif; ?> … … 18 18 <?php if ( $data['step'] == STEP_SELECT_INVOICE ) : ?> 19 19 20 <p> Use this form to pay your WordCamp sponsorship fee to WordPress Community Support, PBC. If you did not receive an invoice ID yet, please get in touch with the event's Sponsorships Coordinator for more information.</p>20 <p><?php esc_html_e( 'Use this form to pay your WordCamp sponsorship fee to WordPress Community Support, PBC. If you did not receive an invoice ID yet, please get in touch with the event\'s Sponsorships Coordinator for more information.', 'wordcamporg' ); ?></p> 21 21 22 22 <form method="POST"> … … 24 24 <input type="hidden" name="sponsor_payment_submit" value="1" /> 25 25 26 <label> Event</label>26 <label><?php esc_html_e( 'Event', 'wordcamporg' ); ?></label> 27 27 <div class="control"> 28 28 <select name="wordcamp_id"> 29 <option value="" disabled selected> Select a WordCamp</option>29 <option value="" disabled selected><?php esc_html_e( 'Select a WordCamp', 'wordcamporg' ); ?></option> 30 30 <?php foreach ( $data['wordcamps'] as $wordcamp ) : ?> 31 31 <option value="<?php echo esc_attr( $wordcamp->ID ); ?>"><?php echo esc_html( $wordcamp->post_title ); ?></option> … … 34 34 </div> 35 35 36 <label> Invoice ID</label>36 <label><?php esc_html_e( 'Invoice ID', 'wordcamporg' ); ?></label> 37 37 <div class="control"> 38 38 <input type="text" name="invoice_id" /> 39 39 </div> 40 40 41 <label> Currency</label>41 <label><?php esc_html_e( 'Currency', 'wordcamporg' ); ?></label> 42 42 <div class="control"> 43 43 <select name="currency"> 44 <option value="" disabled selected> Select a Currency</option>44 <option value="" disabled selected><?php esc_html_e( 'Select a Currency', 'wordcamporg' ); ?></option> 45 45 <?php foreach ( $data['currencies'] as $currency_key => $currency_name ) : ?> 46 46 <option value="<?php echo esc_attr( $currency_key ); ?>"> … … 51 51 </div> 52 52 53 <label> Amount</label>53 <label><?php esc_html_e( 'Amount', 'wordcamporg' ); ?></label> 54 54 <div class="control"> 55 55 <input type="text" name="amount" /> … … 58 58 <div class="clear"></div> 59 59 60 <input type="submit" value=" Continue" />60 <input type="submit" value="<?php esc_attr_e( 'Continue', 'wordcamporg' ); ?>" /> 61 61 </form> 62 62 63 63 <?php elseif ( $data['step'] == STEP_PAYMENT_DETAILS ) : ?> 64 64 65 <p> Please review the details below and hit "Make a Payment" when you're ready.</p>65 <p><?php esc_html_e( 'Please review the details below and hit "Make a Payment" when you\'re ready.', 'wordcamporg' ); ?></p> 66 66 67 67 <table> 68 68 <tr> 69 <td> Invoice</td>69 <td><?php esc_html_e( 'Invoice', 'wordcamporg' ); ?></td> 70 70 <td><?php echo esc_html( $data['payment']['invoice_id'] ); ?></td> 71 71 </tr> 72 72 <tr> 73 <td> Event</td>73 <td><?php esc_html_e( 'Event', 'wordcamporg' ); ?></td> 74 74 <td><?php echo esc_html( $data['payment']['wordcamp_obj']->post_title ); ?></td> 75 75 </tr> 76 76 <tr> 77 <td> Currency</td>77 <td><?php esc_html_e( 'Currency', 'wordcamporg' ); ?></td> 78 78 <td><?php echo esc_html( $data['payment']['currency'] ); ?></td> 79 79 </tr> 80 80 <tr> 81 <td> Amount</td>81 <td><?php esc_html_e( 'Amount', 'wordcamporg' ); ?></td> 82 82 <td><?php echo number_format( round( $data['payment']['amount'], 2 ), 2, '.', ' ' ); ?></td> 83 83 </tr> … … 95 95 data-currency="<?php echo esc_attr( $data['payment']['currency'] ); ?>" 96 96 data-name="WordPress Community Support, PBC" 97 data-description=" Event Sponsorship Payment"97 data-description="<?php esc_attr_e( 'Event Sponsorship Payment', 'wordcamporg' ); ?>" 98 98 data-image="https://stripe.com/img/documentation/checkout/marketplace.png" 99 99 data-locale="auto" 100 data-panel-label=" Pay"101 data-label=" Make a Payment"100 data-panel-label="<?php esc_attr_e( 'Pay', 'wordcamporg' ); ?>" 101 data-label="<?php esc_attr_e( 'Make a Payment', 'wordcamporg' ); ?>" 102 102 data-zip-code="true"> 103 103 </script> … … 106 106 <?php elseif ( $data['step'] == STEP_PAYMENT_SUCCESS ) : ?> 107 107 108 <p><strong> Success!</strong> Your payment has been received, thank you!</p>108 <p><strong><?php esc_html_e( 'Success!', 'wordcamporg' ); ?></strong> <?php esc_html_e( 'Your payment has been received, thank you!', 'wordcamporg' ); ?></p> 109 109 110 110 <ul> 111 <li><a href="<?php echo esc_url( add_query_arg( 'again', 1 ) ); ?>"> Make another payment</a></li>112 <li><a href="<?php echo esc_url( home_url( '/' ) ); ?>"> Go back to Central</a></li>111 <li><a href="<?php echo esc_url( add_query_arg( 'again', 1 ) ); ?>"><?php esc_html_e( 'Make another payment', 'wordcamporg' ); ?></a></li> 112 <li><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php esc_html_e( 'Go back to Central', 'wordcamporg' ); ?></a></li> 113 113 </ul> 114 114
Note: See TracChangeset
for help on using the changeset viewer.