This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
An Anonymous Pen | |
---------------- | |
This combination of javascript and CSS will redirect tablet users from the mobile version of your Blackbaud NetCommunity website to the desktop version of the site. See notes inline for more information. | |
Updated: This update allows developers to test the site in a desktop browser by appending "&DeliveryChannelID=3F6B7EA0-73E8-462B-A075-DE89431816A4" (for PID= URLs) and "?DeliveryChannelID=3F6B7EA0-73E8-462B-A075-DE89431816A4" (for friendly URLs) to the current page's URL. Before, doing so triggered the redirect. Happy mobile BBNCing! | |
I'd be remiss without mentioning that the kind folks in Blackbaud NetCommunity Support do not officially support this approach, and may not be able to help you resolve potential or future issues related to this script. | |
Special thanks to Daniel Buzzell, J. Schultz and Matthew Cira for pair-programming this solution. |
This file contains 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
<?php | |
/** | |
* Usage: | |
* Send the url you want to access url encoded in the url paramater, for example (This is with JS): | |
* /twitter-proxy.php?url='+encodeURIComponent('statuses/user_timeline.json?screen_name=MikeRogers0&count=2') | |
*/ | |
// The tokens, keys and secrets from the app you created at https://dev.twitter.com/apps | |
$config = array( |
This file contains 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
<?php | |
/** | |
* Standard Tab Code from woocommerce-hooks.php | |
*/ | |
/* Product page tabs */ | |
add_action( 'woocommerce_product_tabs', 'woocommerce_product_description_tab', 10 ); | |
add_action( 'woocommerce_product_tabs', 'woocommerce_product_attributes_tab', 20 ); | |
add_action( 'woocommerce_product_tabs', 'woocommerce_product_reviews_tab', 30 ); | |
add_action( 'woocommerce_product_tab_panels', 'woocommerce_product_description_panel', 10 ); |