I hereby claim:
- I am fridaynext on github.
- I am nurseturkleton44 (https://keybase.io/nurseturkleton44) on keybase.
- I have a public key ASCkb-8KzPRYWIvwvb8uxEG2ETDkIEduL_5_XI1fupgjSQo
To claim this, I am signing this object:
import 'package:finamp/components/Buttons/cta_medium.dart'; | |
import 'package:finamp/components/global_snackbar.dart'; | |
import 'package:finamp/models/finamp_models.dart'; | |
import 'package:finamp/services/feedback_helper.dart'; | |
import 'package:finamp/services/queue_service.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:finamp/l10n/app_localizations.dart'; | |
import 'package:flutter_tabler_icons/flutter_tabler_icons.dart'; | |
import 'package:flutter_vibrate/flutter_vibrate.dart'; | |
import 'package:get_it/get_it.dart'; |
import 'dart:io'; | |
import 'dart:math'; | |
import 'package:finamp/components/PlayerScreen/player_split_screen_scaffold.dart'; | |
import 'package:finamp/models/finamp_models.dart'; | |
import 'package:finamp/services/finamp_settings_helper.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_blurhash/flutter_blurhash.dart'; | |
import 'package:flutter_riverpod/flutter_riverpod.dart'; | |
import 'package:octo_image/octo_image.dart'; |
I hereby claim:
To claim this, I am signing this object:
<?php | |
// custom post type permalinks | |
add_filter('post_type_link', 'deb_permalink', 10, 4); | |
function deb_permalink($permalink, $post_id, $leavename) { | |
if (strpos($permalink, '%taxonomy_name%') === FALSE) return $permalink; | |
// Get post | |
$post = get_post($post_id); | |
if (!$post) return $permalink; |
<?php | |
// Add text to ticket sales "from - to" products | |
function add_membership_text( $price ) { | |
$this_variable_product = new WC_Product_Variable( get_the_ID() ); | |
$prices = $this_variable_product->get_variation_prices( false ); | |
$min_price = current( $prices['price'] ); | |
$max_price = end( $prices['price'] ); | |
$price = '<span class="member-price">' . $min_price . '</span> TBNA Membership Rate <br />'; | |
$price .= '<span class="member-price">' . '$30' . '</span> Non-Member Rate'; |
<?php | |
// Get variation price for Ticket Sales | |
$the_min_price = null; | |
function this_variation_price( $price, $min_or_max = 'min', $display = false ) { | |
global $the_min_price; | |
$the_min_price = $price; | |
} | |
add_filter( 'woocommerce_get_variation_price', 'this_variation_price', 9 ); | |
// Add text to ticket sales "from - to" products |
<?php | |
// Get variation price for Ticket Sales | |
$the_min_price = null; | |
function this_variation_price( $price, $min_or_max = 'min', $display = false ) { | |
global $the_min_price; | |
$the_min_price = $price; | |
} | |
add_filter( 'woocommerce_get_variation_price', 'this_variation_price', 10, 1 ); |
<?php | |
// Change position of delivery/order time selction | |
add_filter('openinghours_chooser_position','change_position'); | |
function change_position( $m ) { | |
return 'woocommerce_before_order_notes'; | |
} | |
// Filter for message above time picker | |
add_filter('openinghours_frontendtext_choicelabel','change_closed_text'); |
<?php | |
//resize images uploaded to Gravity Form 1. | |
add_action("gform_after_submission_1", "gf_resize_images", 10, 2); | |
function gf_resize_images($entry, $form) | |
{ | |
if( $url = pathinfo( $entry[18] ) ) { | |
$image = wp_get_image_editor($url); | |
if ( ! is_wp_error( $image ) ) | |
{ | |
//replace 640,480 with desired dimensions. false indicates not to crop image. |
<?php | |
/* Change Upload Path of Files */ | |
add_filter( 'gform_upload_path', 'change_upload_path', 10, 2 ); | |
function change_upload_path( $path_info, $form_id ) { | |
$name = rgpost( 'input_1_3' ) . '_' . rgpost( 'input_1_6' ); | |
$date = getdate(); | |
$path_info['path'] = '/home/antonianawards/public_html/wp-content/uploads/entry-submissions/' . $name . '-' . $date['mon'] . '_' . $date['mday'] . '_' . $date['year'] . '_' . $date['hours'] . $date['minutes'] . $date['seconds'] . '/'; | |
$path_info['url'] = 'https://antonianawards.com/wp-content/uploads/entry-submissions/' . $name . '-' . $date['mon'] . '_' . $date['mday'] . '_' . $date['year'] . '/'; | |
return $path_info; |