This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if ( !function_exists( 'yith_wcbm_shop_badge_container_start' ) && !function_exists( 'yith_wcbm_shop_badge_container_end' ) ) { | |
| add_action( 'jet-woo-builder/templates/products/before-item-thumbnail', 'yith_wcbm_shop_badge_container_start', 1 ); | |
| add_action( 'jet-woo-builder/templates/products/before-item-thumbnail', 'yith_wcbm_shop_badge_container_end', 2 ); | |
| function yith_wcbm_shop_badge_container_start() { | |
| do_action( 'yith_wcbm_theme_badge_container_start' ); | |
| } | |
| function yith_wcbm_shop_badge_container_end() { | |
| do_action( 'yith_wcbm_theme_badge_container_end' ); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get update | |
| sudo apt-get install -y apt-transport-https ca-certificates | |
| sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
| echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list | |
| sudo apt-get update | |
| sudo apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual | |
| sudo apt-get install -y docker-engine | |
| sudo curl -L "https://github.com/docker/compose/releases/download/1.9.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
| sudo chmod +x /usr/local/bin/docker-compose | |
| sudo groupadd docker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @media( max-width: 768px ) { | |
| .site-header, | |
| #site-navigation, | |
| #sticky-navigation { | |
| display: none !important; | |
| opacity: 0; | |
| } | |
| #mobile-header { | |
| display: block !important; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter ('wpforms_frontend_confirmation_message', 'restrict_form_formula', 10, 2); | |
| function restrict_form_formula($confirmation_message, $form_data) { | |
| if ($form_data['id'] == 642) { /* This number is form id - so that we only process the results for this form */ | |
| $monthly_recurring = $_POST['wpforms']['fields'][1]; /* The id for the field you want to use in calculation */ | |
| $ad_spent_month = $_POST['wpforms']['fields'][2]; /* The id for the field you want to use in calculation */ | |
| $total_budget = $_POST['wpforms']['fields'][3]; /* The id for the field you want to use in calculation */ | |
| $calculation = ($monthly_recurring * $ad_spent_month) / $total_budget; | |
| return $calculation; | |
| } | |
| else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // this is the background code... | |
| // listen for our browerAction to be clicked | |
| chrome.browserAction.onClicked.addListener(function (tab) { | |
| // for the current tab, inject the "inject.js" file & execute it | |
| chrome.tabs.executeScript(tab.ib, { | |
| file: 'inject.js' | |
| }); | |
| }); |