Changeset 2272 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/wordcamp-budgets.php
- Timestamp:
- 01/11/2016 10:15:37 PM (10 years ago)
- Location:
- sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes
- Files:
-
- 1 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/wordcamp-budgets.php
r2270 r2272 4 4 * Main class to provide functionality common to all other classes 5 5 */ 6 class WordCamp_ Payments {6 class WordCamp_Budgets { 7 7 const VERSION = '0.1.1'; 8 8 … … 24 24 // Register our assets 25 25 wp_register_script( 26 'wordcamp- payments',27 plugins_url( 'javascript/wordcamp- payments.js', __DIR__ ),26 'wordcamp-budgets', 27 plugins_url( 'javascript/wordcamp-budgets.js', __DIR__ ), 28 28 array( 'jquery', 'jquery-ui-datepicker', 'media-upload', 'media-views' ), 29 29 self::VERSION, … … 34 34 'wcp-attached-files', 35 35 plugins_url( 'javascript/attached-files.js', __DIR__ ), 36 array( 'wordcamp- payments', 'backbone', 'wp-util' ),36 array( 'wordcamp-budgets', 'backbone', 'wp-util' ), 37 37 self::VERSION, 38 38 true … … 46 46 47 47 wp_register_style( 48 'wordcamp- payments',49 plugins_url( 'css/wordcamp- payments.css', __DIR__ ),48 'wordcamp-budgets', 49 plugins_url( 'css/wordcamp-budgets.css', __DIR__ ), 50 50 $soft_deps, 51 51 self::VERSION … … 56 56 57 57 if ( in_array( $current_screen->id, array( 'edit-wcp_payment_request', 'wcp_payment_request' ) ) ) { 58 wp_enqueue_script( 'wordcamp- payments' );59 wp_enqueue_style( 'wordcamp- payments' );58 wp_enqueue_script( 'wordcamp-budgets' ); 59 wp_enqueue_style( 'wordcamp-budgets' ); 60 60 61 61 if ( in_array( $current_screen->id, array( 'wcp_payment_request' ) ) && isset( $post->ID ) ) { … … 65 65 66 66 wp_localize_script( 67 'wordcamp- payments',68 'wcpLocalizedStrings', // todo merge into wordcamp Payments var67 'wordcamp-budgets', 68 'wcpLocalizedStrings', // todo merge into wordcampBudgets var 69 69 array( 70 70 'uploadModalTitle' => __( 'Attach Supporting Documentation', 'wordcamporg' ), … … 76 76 77 77 /** 78 * Log something with a payment request.78 * Insert an entry into a log for one of the custom post types 79 79 * 80 * @param int $post_id The payment requset ID.80 * @param int $post_id The post ID. 81 81 * @param string $message A log message. 82 * @param array $dataOptional data.82 * @param array $data Optional data. 83 83 */ 84 84 public static function log( $post_id, $message, $data = array() ) {
Note: See TracChangeset
for help on using the changeset viewer.