Albanian (Albania) : sq_AL
Albanian : sq
Arabic (Algeria) : ar_DZ
Arabic (Bahrain) : ar_BH
Arabic (Egypt) : ar_EG
| <?php | |
| function modify_edd_get_discount_amount( $amount, $code_id ) { | |
| // Download requirements | |
| $download_id = 49; | |
| // Coupon code filtered | |
| $dcodes = array( 'YOUDONTHINKIKNOW', 'WHATYOURETRYINGTODO?', 'NICETRY!!' ); | |
| // Filter only the discount code above | |
| $code = edd_get_discount_code( $code_id ); | |
| if ( in_array( $code, $dcodes ) ) { | |
| // Check cart of requirements before filtering amount |
| <?php | |
| function modify_edd_get_cart_content_details_item_discount_amount( $discount, $item ) { | |
| // We are only worried about SI at this point. | |
| if ( $item['id'] == 49 ) { | |
| // Don't apply a discount since it should come off the signupfee. | |
| return 0; | |
| } | |
| return $discount; | |
| } | |
| add_filter( 'edd_get_cart_content_details_item_discount_amount', 'modify_edd_get_cart_content_details_item_discount_amount', 10, 2 ); |
| <?php | |
| function modify_edd_cart_contents( $cart ) { | |
| $discounts = edd_get_cart_discounts(); | |
| if ( !$discounts ) { | |
| return $cart; | |
| } | |
| $dcodes = array( 'YOUDONTHINKIKNOW', 'WHATYOURETRYINGTODO?', 'NICETRY!!' ); | |
| // Filter only the discount code above | |
| if ( !array_intersect( $discounts, $dcodes ) ) { |
| <script type="text/javascript" charset="utf-8"> | |
| jQuery( 'body' ).on({ | |
| edd_discount_applied: function() { | |
| window.location.reload(); | |
| jQuery('.edd_cart_discount_row').hide(); | |
| }, | |
| edd_discount_removed: function() { | |
| window.location.reload(); | |
| jQuery('.edd_cart_amount').each(function() { | |
| jQuery(this).text('...'); |
| <?php | |
| /** | |
| * SA Template Name: Spanish Template | |
| * | |
| */ | |
| do_action( 'pre_si_invoice_view' ); ?><!DOCTYPE html> | |
| <html <?php language_attributes(); ?>> | |
| <head> |
| <?php | |
| /** | |
| * Placed in the functions.php file of your theme this filter will override | |
| * the local used by Sprout Invoices (which is the local WordPress is configured to use). | |
| * | |
| * nl_NL is the local in this example, change it to your local. | |
| */ | |
| function set_sprout_invoices_locale() { | |
| return 'nl_NL'; // change nl_NL and leave the single quotes. | |
| } |
Albanian (Albania) : sq_AL
Albanian : sq
Arabic (Algeria) : ar_DZ
Arabic (Bahrain) : ar_BH
Arabic (Egypt) : ar_EG
| /** | |
| * Default Styling | |
| */ | |
| #hsd_conversations_table .pull-right { | |
| float: right !important; | |
| clear: right !important; | |
| } | |
| #hsd_conversations_table .pull-left { | |
| float: left !important; |
| <?php | |
| /** | |
| * This function file is loaded after the parent theme's function file. It's a great way to override functions, e.g. add_image_size sizes. | |
| * | |
| * | |
| */ | |
| function custom_states() { | |
| return array( |