Skip to content

Instantly share code, notes, and snippets.

View freezvd's full-sized avatar

Valentin Zmaranda freezvd

  • Bucharest, Romania
View GitHub Profile
/**
* Filter MailPoet tags not stripped out of emails - add table tags
*
* Located in wysija-newsletters/helpers/articles.php
*
* @link http://blackhillswebworks.com/?p=5648
*/
add_filter( 'mpoet_strip_tags_ignored', 'bhww_core_mailpoet_filter_tags_not_being_stripped' );
@freezvd
freezvd / Modified MailPoet css.html
Created January 18, 2016 14:20 — forked from bhwebworks/Modified MailPoet css.html
Modified MailPoet css.html - responsive images and larger table font size
<style type="text/css">
/* Based on The MailChimp Reset INLINE: Yes. */
/* Client-specific Styles */
body {
width:100% !important;
-webkit-text-size-adjust:100%;
-ms-text-size-adjust:100%;
margin:0;
padding:0;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" {if #is_rtl} dir="rtl" {/if} >
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>{#subject|default:Wysija template}</title>
{#css}
</head>
<body bgcolor="{#styles.html.background|color}" yahoo="fix">
<span style="margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;display:block;background:{#styles.html.background|color};">
@freezvd
freezvd / Contract Killer 3.md
Created December 17, 2015 16:45 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: October 8th 2015
  • Original post

@freezvd
freezvd / genesis_attr_add_class.php
Created December 17, 2015 13:56 — forked from lmartins/genesis_attr_add_class.php
Add classes and attributes to any element in Genesis
<?php
//* Add class to .site-container
add_filter('genesis_attr_site-container', 'jive_attributes_st_container');
function jive_attributes_st_container($attributes) {
$attributes['class'] .= ' st-container';
return $attributes;
}
//* Add class to .site-inner
jQuery( document ).ready( function( $ ) {
// @author Calvin Koepke (@cjkoepke)
// @link http://www.calvinkoepke.com/add-a-mobile-friendly-off-canvas-menu-in-genesis/
// @version 1.1
// @license Free to use as you wish. Please share if you appreciate and link to the post above.
// Store our jQuery objects as variables
var body = $( 'body' ),
toggleButtons = $( '.menu-btn, .close-btn, .site-overlay' );
@freezvd
freezvd / footerheaderwrap.php
Created November 28, 2015 16:11 — forked from neilgee/footerheaderwrap.php
Footer Widget Header Full Width Wrap
<?php
//do not add in opening php tag
/**
* Add a Header Row above the 3 footer widgets in Genesis Theme
*
* @package Add a Header Row above the 3 footer widgets
* @author Neil Gee
* @link http://coolestguidesontheplanet.com/add-full-width-row-footer-widgets-genesis-child-theme/
* @copyright (c)2014, Neil Gee
/* normal flexbox */
.flexbox .flex-container {
display: -webkit-flex;
display: -moz-flex;
display: -ms-flex;
display: flex;
}
.flexbox .flex-container.vertical {
display: -webkit-flex;
display: -moz-flex;
@freezvd
freezvd / functions.php
Created September 24, 2015 13:08 — forked from GaryJones/functions.php
Apply superfish enhancement to usual Genesis menus with different settings.
<?php
// For Genesis 2.0.0 and later:
add_filter( 'genesis_superfish_args_url', 'prefix_superfish_args_url' );
/**
* Filter in URL for custom Superfish arguments.
*
* @author Gary Jones
* @link http://code.garyjones.co.uk/change-superfish-arguments
@freezvd
freezvd / Genesis-page_archive.php-Menu-based-Site-Map
Last active September 15, 2015 08:58 — forked from sunriseweb/Genesis-page_archive.php-Menu-based-Site-Map
Genesis page_archive.php template for creating Site Map that contains all Menus instead of Page (i.e. get all menus using wp_get_nav_menus and steps through to display each using wp_nav_menu).
<?php
/**
* Template Name: Menu-based Site Map
* This file creates a site map based on existing menus instead of using wp_list_pages.
*
* This file is based on the core Genesis file of the same name.
*
* @category Page Template
* @package Templates
* @author Brad Trivers