Skip to content

Instantly share code, notes, and snippets.

View johanoloflindberg's full-sized avatar
💭
Ready to work 😃

WEBBAB johanoloflindberg

💭
Ready to work 😃
View GitHub Profile
<?php // https://gist.github.com/3950382
function toggle_monetization() {
global $post;
$custom = get_post_custom($post->ID);
if(isset($custom["toggle_monetization"][0])) {
$money = $custom["toggle_monetization"][0];
}
?>
<p style="margin-bottom:10px;">
@johanoloflindberg
johanoloflindberg / using-the-seo-plugin-to-the-max.md
Created July 4, 2017 01:46 — forked from germanny/using-the-seo-plugin-to-the-max.md
Google Plus stuff and PHP constants defined for Facebook Page ID, G+ Author Page, and Twitter Username from Yoast SEO plugin

Constants defined for Facebook Page ID, G+ Author Page, and Twitter Username

Using the Social fields in the SEO Plugin, we don't have to enter this data into the theme too:

/**
* Use Yoast SEO Plugin to create these constants
* http://wordpress.org/plugins/wordpress-seo/
* https://gist.github.com/germanny/6222479
*/

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

To shut off all comments/trackbacks/pingbacks in the WordPress Admin, the steps for cleanup are:

http://audiorpc.weblogs.com/RPC2
http://bing.com/webmaster/ping.aspx
http://blo.gs/ping.php
http://blog.goo.ne.jp/XMLRPC
http://blog.with2.net/ping.php
http://blogping.unidatum.com/RPC2
http://blogpingr.de/ping/rpc2
http://blogsearch.google.com/ping/RPC2
http://feedsky.com/api/RPC2
http://geourl.org/ping
@johanoloflindberg
johanoloflindberg / checkboxes.md
Created July 4, 2017 01:42 — forked from germanny/checkboxes.md
Markdown checkboxes
  • checkbox is done with the two brackets next to the P key
  • checkbox is done with the two brackets next to the P key
  • checkbox is done with the two brackets next to the P key
  • checkbox is done with the two brackets next to the P key

[LOGO]

[ADDRESS]

[PHONE]

[CONTACT EMAIL]

[DATE]

☐ WP Plugins list
☐ Gantry Template Framework
☐ SEO Ultimate
☐ Weptile Image Slider
☐ WP Lightbox 2
☐ XML Sitemap & Google News Feeds
☐ Easy WP SMTP
☐ W3 Total Cache
☐ Contact Formhttp://contactform7.com/
@johanoloflindberg
johanoloflindberg / Three Wise Monkeys.md
Created January 31, 2017 18:00
Three Wise Monkeys (NDA)

Date: [date]

Between us [company name] and you [customer name].

Summary:

In short; neither of us will share any confidential information about each-other, by any means, with anyone else.

What’s confidential information?

@johanoloflindberg
johanoloflindberg / Contract Killer 3.md
Created January 31, 2017 17:59
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post