A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);| afghanistan : Afghanistan | |
| albania : Albania | |
| algeria : Algeria | |
| american_samoa : American Samoa | |
| andorra : Andorra | |
| angola : Angola | |
| anguilla : Anguilla | |
| antigua_and_barbuda : Antigua and Barbuda | |
| argentina : Argentina | |
| armenia : Armenia |
| add_filter( 'tribe_event_label_singular', 'event_display_name' ); | |
| function event_display_name() { | |
| return 'XXXX'; | |
| } | |
| add_filter( 'tribe_event_label_plural', 'event_display_name_plural' ); | |
| function event_display_name_plural() { | |
| return 'XXXXs'; | |
| } |
| <?php | |
| //* Change the Add To Cart Link | |
| add_filter( 'woocommerce_loop_add_to_cart_link', 'sfws_add_product_link' ); | |
| function sfws_add_product_link( $link ) { | |
| global $product; | |
| $product_id = $product->id; | |
| $product_sku = $product->get_sku(); | |
| $link = '<a href="'.get_permalink().'" rel="nofollow" data-product_id="'.$product_id.'" data-product_sku="'.$product_sku.'" data-quantity="1" class="button add_to_cart_button product_type_variable">'.sfws_woocommerce_product_add_to_cart_text().'</a>'; | |
| return $link; | |
| } |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <templateSet group="WordPress"> | |
| <template name="aa" value="add_action( '$hook$', '$callback$' ); $END$" description="add_action" toReformat="false" toShortenFQNames="true"> | |
| <variable name="hook" expression="" defaultValue="" alwaysStopAt="true" /> | |
| <variable name="callback" expression="" defaultValue="" alwaysStopAt="true" /> | |
| <context> | |
| <option name="HTML_TEXT" value="false" /> | |
| <option name="HTML" value="false" /> | |
| <option name="XSL_TEXT" value="false" /> | |
| <option name="XML" value="false" /> |
| <?php | |
| /* | |
| * Plugin Name: Settings API Tabs Demo | |
| * Plugin URI: http://theme.fm/?p= | |
| * Description: This is a demo showing off usage of tabs with the WordPress Settings API | |
| * Version: 1.0 | |
| * Author: kovshenin | |
| * Author URI: http://theme.fm | |
| * License: GPL2 | |
| */ |
| DELETE o FROM `wp_posts` o | |
| LEFT OUTER JOIN `wp_posts` r | |
| ON o.post_parent = r.ID | |
| WHERE r.id IS null AND o.post_type = 'product_variation' |
| <?php | |
| /** | |
| * Hide editor on specific pages. | |
| * | |
| */ | |
| add_action( 'admin_init', 'hide_editor' ); | |
| function hide_editor() { | |
| // Get the Post ID. |
| <?php for( $i = 0; $i < 9; $i++ ) : ?> | |
| <p><?php echo cycle('one', 'two', 'three') ?></p> | |
| <?php endfor; ?> |