This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// important: note the priority of 99, the js needs to be placed after tinymce loads | |
// important: note that this assumes you're using http://wordpress.org/extend/plugins/verve-meta-boxes/ | |
// to create the textarea - otherwise change your selector | |
function admin_add_wysiwyg_custom_field_textarea() | |
{ ?> | |
<script type="text/javascript">/* <![CDATA[ */ | |
jQuery(function($){ | |
var i=1; | |
$('.verve_meta_box_content textarea').each(function(e) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Add future posts to RSS feeds */ | |
function include_future_posts($where) { | |
global $wpdb; | |
if ( is_feed() ){ | |
// add SQL-syntax to default $where | |
$where .= " OR $wpdb->posts.post_status = 'future' " ; | |
} | |
return $where; | |
} | |
add_filter('posts_where','include_future_posts'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function() { | |
// Watermarks | |
// Watermark on contact form | |
jQuery('.gfield:not(.watermark-name)').each(function() { | |
$currLabel = jQuery(this).find('label').text(); | |
jQuery(this).find('input,textarea').watermark($currLabel, {className: 'childtheme-watermark'} ); | |
}); | |
// For complex name | |
jQuery('.ginput_complex span').each(function() { | |
$currLabel = jQuery(this).find('label').text(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function vimeo_thumb_size( $id, $size = 'large' ) { | |
// Sanitize the variables | |
$id = esc_attr( $id ); | |
$size = esc_attr( $size ); | |
// Stop if no video ID entered | |
if ( empty( $id ) ) | |
return 'Error - no video ID specified'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.gform_wrapper ul { | |
.list-unstyled(); | |
} | |
.gform_wrapper li { | |
.form-group(); | |
} | |
.gform_wrapper form { | |
margin-bottom: 0; | |
} | |
.gform_wrapper .gfield_required { |