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
| <?php | |
| class acf_field_gravity_forms extends acf_field { | |
| function __construct() { | |
| $this->name = 'gravity_forms_field'; | |
| $this->label = __( 'Gravity Forms', 'acf' ); | |
| $this->category = __( "Relational", 'acf'); | |
| $this->defaults = array( | |
| 'multiple' => 0, |
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
| #Load dependencies | |
| library(XML) | |
| library(httr) | |
| # Sheet needs to be published, replace URL below & update tab number on line 19 | |
| # (if more than 1, L-R) where 'sheet = 1' | |
| # Be sure to unfreeze any cells to prevent empty rows on import | |
| url <- "https://docs.google.com/spreadsheets/d/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/pubhtml" |
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
| // Bootstrap Mid-Small - col-ms-* - the missing grid set for Bootstrap3. | |
| // | |
| // This is a hack to fill the gap between 480 and 760 pixels - a missing range | |
| // in the bootstrap responsive grid structure. Use these classes to style pages | |
| // on cellphones when they transition from portrait to landscape. | |
| // | |
| // NOTE: Here I use SASS instead of LESS for styling. To convert to LESS | |
| // replace '$screen' with '@screen' and '$grid' with '@grid'. | |
| // | |
| // See https://github.com/twbs/bootstrap/issues/10203 for more info. |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <script type="text/javascript" src="//maps.googleapis.com/maps/api/js?sensor=false"></script> | |
| <meta charset="UTF-8"> | |
| <title>Example Google Map</title> | |
| </head> | |
| <body> | |
| <div id="map-canvas" style="height:400px; width:600px;"></div> | |
| <script> |
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
| <?php | |
| /** | |
| * Plugin Name: WooCommerce - List Products by Tags | |
| * Plugin URI: http://www.remicorson.com/list-woocommerce-products-by-tags/ | |
| * Description: List WooCommerce products by tags using a shortcode, ex: [woo_products_by_tags tags="shoes,socks"] | |
| * Version: 1.0 | |
| * Author: Remi Corson | |
| * Author URI: http://remicorson.com | |
| * Requires at least: 3.5 | |
| * Tested up to: 3.5 |
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
| // Create the test | |
| var pixelRatio = (window.devicePixelRatio >= 1.5) ? "high" : "normal"; | |
| .. | |
| // Pass it along through GA | |
| var _gaq = _gaq || []; | |
| _gaq.push(['_setAccount', 'UA-xxxxxxxx-x']); | |
| // --- IMPORTANT LINE! | |
| // params: event method, custom variable slot, variable name, variable value, scope level |
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
| <input type="hidden" name="uenc" value="<?= Mage::helper('core')->urlEncode(Mage::app()->getStore()->getBaseUrl() . 'your_page_url_key') ?>"/> |
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
| <?php | |
| /* | |
| * A walker class to use that extends wp_dropdown_categories and allows it to use the term's slug as a value rather than ID. | |
| * | |
| * See http://core.trac.wordpress.org/ticket/13258 | |
| * | |
| * Usage, as normal: | |
| * wp_dropdown_categories($args); | |
| * |
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
| SELECT b.email, c.value AS name, a.updated_at, d.added_at, d.product_id, e.name, SUM(g.qty_ordered) AS purchased | |
| FROM `wishlist` AS a | |
| INNER JOIN customer_entity AS b ON a.customer_id = b.entity_id | |
| INNER JOIN customer_entity_varchar AS c ON a.customer_id = c.entity_id AND c.attribute_id = (SELECT attribute_id FROM eav_attribute WHERE attribute_code = 'firstname' AND entity_type_id = b.entity_type_id) | |
| INNER JOIN wishlist_item AS d ON a.wishlist_id = d.wishlist_id | |
| INNER JOIN catalog_product_flat_1 AS e ON d.product_id = e.entity_id | |
| LEFT JOIN sales_flat_order AS f ON f.customer_email = b.email | |
| LEFT JOIN sales_flat_order_item AS g ON (f.entity_id = g.order_id AND g.sku LIKE CONCAT(e.sku,'%') AND g.product_type = 'simple') | |
| GROUP BY b.email, c.value, a.updated_at, d.added_at, d.product_id, e.name |
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
| /** | |
| * Responsive WordPress Core Theme Styles | |
| * http://jeffsebring.com/responsive-wordpress-images/ | |
| --------------------------------------------------- */ | |
| .sticky, | |
| .bypostauthor, | |
| .gallery-caption { | |
| display: normal; | |
| } |
NewerOlder