Models | Examples |
---|---|
Display ads | Yahoo! |
Search ads |
<?php | |
/** | |
* Gravity Wiz // Require Minimum Character Limit for Gravity Forms | |
* | |
* Adds support for requiring a minimum number of characters for text-based Gravity Form fields. | |
* | |
* @version 1.0 | |
* @author David Smith <david@gravitywiz.com> | |
* @license GPL-2.0+ | |
* @link http://gravitywiz.com/... |
<div class="sixcol first"> | |
<h2>This Month</h2> | |
<?php | |
//This gets the current month starting at day 1, and the next month starting at day 1 | |
$now = mktime(0, 0, 0, date("m"), 1, date('Y')); | |
$then = mktime(0, 0, 0, (date("m") % 12 + 1), 1, date('Y')); | |
query_posts( |
diff --git a/wp-content/plugins/qtranslate/qtranslate_core.php b/wp-content/plugins/qtranslate/qtranslate_core.php | |
index 17b4669..9ac128a 100644 | |
--- a/wp-content/plugins/qtranslate/qtranslate_core.php | |
+++ b/wp-content/plugins/qtranslate/qtranslate_core.php | |
@@ -414,6 +414,7 @@ function qtrans_updateTermLibrary() { | |
function qtrans_strftime($format, $date, $default = '', $before = '', $after = '') { | |
// don't do anything if format is not given | |
+ return $default; |
I have always struggled with getting all the various share buttons from Facebook, Twitter, Google Plus, Pinterest, etc to align correctly and to not look like a tacky explosion of buttons. Seeing a number of sites rolling their own share buttons with counts, for example The Next Web I decided to look into the various APIs on how to simply return the share count.
If you want to roll up all of these into a single jQuery plugin check out Sharrre
Many of these API calls and methods are undocumented, so anticipate that they will change in the future. Also, if you are planning on rolling these out across a site I would recommend creating a simple endpoint that periodically caches results from all of the APIs so that you are not overloading the services will requests.
/*************************************************************** | |
* Function media_custom_validation | |
* Check the media form for duplicate inputs on the same day | |
***************************************************************/ | |
add_filter('gform_validation', 'media_custom_validation'); | |
function media_custom_validation($validation_result) { | |
global $form_email, $file_id; |
The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
/* Gravity forms error handling - February 5, 2014 */ | |
/* ############################################### */ | |
/* Make the error stand out */ | |
.gfield_error{ | |
background-color: white; | |
color:#b94a48; | |
} | |
/* Prepend the error message to the missing but required field */ | |
.gfield_error:before { |
<?php | |
/** | |
* Custom "Download" custom type for tutorial on Jayj.dk | |
* | |
* @link http://jayj.dk/2011/download-cpt-wordpress | |
*/ | |
add_action( 'init', 'jayj_create_download_post_type' ); |