| @@ 56-59 (lines=4) @@ | ||
| 53 | echo '<span class="wpinv_email_cart_item_title">' . $item_title . '</span>'; | |
| 54 | ||
| 55 | $summary = ''; | |
| 56 |                                 if ( !empty( $wpi_item ) && $wpi_item->is_package() && !empty( $item['meta']['post_id'] ) ) { | |
| 57 | $post_link = '<a href="' . get_permalink( $item['meta']['post_id'] ) .'" target="_blank">' . (!empty($item['meta']['invoice_title']) ? $item['meta']['invoice_title'] : get_the_title( $item['meta']['post_id']) ) . '</a>'; | |
| 58 | $summary = wp_sprintf( __( '%s: %s', 'invoicing' ), $wpi_item->get_custom_singular_name(), $post_link ); | |
| 59 | } | |
| 60 | ||
| 61 | $summary = apply_filters( 'wpinv_email_invoice_line_item_summary', $summary, $item, $wpi_item, $invoice ); | |
| 62 |                                 if ( !empty( $summary ) ) { | |
| @@ 1070-1073 (lines=4) @@ | ||
| 1067 | } | |
| 1068 | $item_name = !empty($cart_item['name']) ? $cart_item['name'] : $item_name; | |
| 1069 | ||
| 1070 |                     if (!empty($item) && $item->is_package() && !empty($cart_item['meta']['post_id'])) { | |
| 1071 | $post_link = '<a href="' . get_edit_post_link( $cart_item['meta']['post_id'] ) .'" target="_blank">' . (!empty($cart_item['meta']['invoice_title']) ? $cart_item['meta']['invoice_title'] : get_the_title( $cart_item['meta']['post_id']) ) . '</a>'; | |
| 1072 | $summary = wp_sprintf( __( '%s: %s', 'invoicing' ), $item->get_custom_singular_name(), $post_link ); | |
| 1073 | } | |
| 1074 | $summary = apply_filters( 'wpinv_print_invoice_line_item_summary', $summary, $cart_item, $item, $invoice ); | |
| 1075 | ||
| 1076 | $item_tax = ''; | |
| @@ 1321-1324 (lines=4) @@ | ||
| 1318 | $can_remove = true; | |
| 1319 | ||
| 1320 | $summary = ''; | |
| 1321 |         if ($wpi_item->is_package() && !empty($cart_item['meta']['post_id'])) { | |
| 1322 | $post_link = '<a href="' . get_edit_post_link( $cart_item['meta']['post_id'] ) .'" target="_blank">' . (!empty($cart_item['meta']['invoice_title']) ? $cart_item['meta']['invoice_title'] : get_the_title( $cart_item['meta']['post_id']) ) . '</a>'; | |
| 1323 | $summary = wp_sprintf( __( '%s: %s', 'invoicing' ), $wpi_item->get_custom_singular_name(), $post_link ); | |
| 1324 | } | |
| 1325 | $summary = apply_filters( 'wpinv_admin_invoice_line_item_summary', $summary, $cart_item, $wpi_item, $invoice ); | |
| 1326 | ||
| 1327 | $item_tax = ''; | |