Make sure jQuery and Bootstrap's Tootip and Popover plugins are included: http://getbootstrap.com/javascript/ http://getbootstrap.com/customize/
Then add the following...
<?php | |
// This function will return true if we are looking at the page in question or one of its sub pages | |
function is_tree( $pid ) { // $pid = The ID of the page we're looking for pages underneath | |
global $post; // load details about this page | |
if ( is_page($pid) ) | |
return TRUE; // we're at the page or at a sub page | |
$anc = get_post_ancestors( $post->ID ); |
{"mjml":"<mjml><mj-head><mj-preview>%FIRSTNAME%, are you and %SPOUSE_FIRSTNAME% today's giveaway winners?<\/mj-preview><mj-attributes><mj-all font-family=\"Arial, Helvetica, sans-serif\" align=\"center\" \/><mj-button background-color=\"#55aaa4\" border=\"1px solid #499e98\" font-size=\"18px\" \/><mj-text color=\"#555555\" font-size=\"16px\" \/><mj-class name=\"footer-text\" align=\"center\" color=\"#AAAAAA\" font-size=\"11px\" line-height=\"13px\" \/><\/mj-attributes><\/mj-head> <mj-body><mj-section padding=\"0\"><mj-column><mj-image src=\"https:\/\/weddingvibe.com\/images\/email\/wv\/WV-Winner-Announced-header.jpg\" alt=\"WeddingVibe Giveaway Winner Announced\" title=\"WeddingVibe Giveaway Winner Announced\" align=\"center\" width=\"600px\" padding=\"10px 0\"><\/mj-image><\/mj-column><\/mj-section><mj-section padding-top=\"0\"><mj-column><mj-text>Check our Giveaway Winners page to see if you are the winner of...<\/mj-text><mj-text font-size=\"24px\" padding-bottom=\"5px\">Wedding Speech Help<\/mj-text><mj- |
{"mjml":"<mjml><mj-head><mj-preview>%FIRSTNAME%, are you and %SPOUSE_FIRSTNAME% today's giveaway winners?<\/mj-preview><mj-attributes><mj-all font-family=\"Arial, Helvetica, sans-serif\" align=\"center\" \/><mj-button background-color=\"#55aaa4\" border=\"1px solid #499e98\" font-size=\"18px\" \/><mj-text color=\"#555555\" font-size=\"16px\" \/><mj-class name=\"footer-text\" align=\"center\" color=\"#AAAAAA\" font-size=\"11px\" line-height=\"13px\" \/><\/mj-attributes><\/mj-head> <mj-body><mj-section padding=\"0\"><mj-column><mj-image src=\"https:\/\/weddingvibe.com\/images\/email\/wv\/WV-Winner-Announced-header.jpg\" alt=\"WeddingVibe Giveaway Winner Announced\" title=\"WeddingVibe Giveaway Winner Announced\" align=\"center\" width=\"600px\" padding=\"10px 0\"><\/mj-image><\/mj-column><\/mj-section><mj-section padding-top=\"0\"><mj-column><mj-text>Check our Giveaway Winners page to see if you are the winner of...<\/mj-text><mj-text font-size=\"24px\" padding-bottom=\"5px\">Wedding Speech Help<\/mj-text><mj- |
User-agent: * | |
Disallow: /wp-admin | |
Disallow: /wp-includes | |
Disallow: /wp-content/plugins | |
Disallow: /wp-content/cache | |
Disallow: /wp-content/themes | |
Disallow: /wp-includes/js | |
Disallow: /trackback | |
Disallow: /category/*/* | |
Disallow: */trackback |
<?php | |
// Shortcode: [SHORTCODE_TAG] | |
add_shortcode('SHORTCODE_TAG', 'intw_shortcode_SHORTCODE_TAG'); | |
function intw_shortcode_SHORTCODE_TAG($atts) { | |
extract( shortcode_atts( array( | |
'att1' => 'DEFAULT_VALUE', | |
'att2' => 'DEFAULT_VALUE', | |
), $atts ) ); | |
ob_start(); ?> |
<?php | |
// Delete form entry immediately after it is processed and saved | |
// change '_1' to the form ID | |
add_action('gform_post_submission_1', 'remove_form_entry', 10, 2); | |
function remove_form_entry($entry, $form){ | |
global $wpdb; | |
$lead_id = $entry['id']; | |
$lead_table = RGFormsModel::get_lead_table_name(); |
Make sure jQuery and Bootstrap's Tootip and Popover plugins are included: http://getbootstrap.com/javascript/ http://getbootstrap.com/customize/
Then add the following...
##Browser Compatibility
CSS filters are not currently supported in all browsers:
http://caniuse.com/#search=filters
For cross-browser compatibility, the image needs to be modified and uploaded in final form. CSS filters do, however, allow for quick testing of different filtering combos before editing an image with photo-editing software.
##Resources
<?php | |
// Remove WP version parameter from ALL enqueued styles and scripts | |
add_filter( 'style_loader_src', 'intw_remove_wp_ver_param', 9999 ); | |
add_filter( 'script_loader_src', 'intw_remove_wp_ver_param', 9999 ); | |
function intw_remove_wp_ver_param( $src ) { | |
if ( strpos( $src, 'ver=' ) ) | |
$src = remove_query_arg( 'ver', $src ); | |
return $src; | |
} |