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
$('.gfield select').each(function(e) { | |
var selectID = $(this).attr('id'); | |
var selectName = $(this).attr('name'); | |
$('#'+selectID).ddslick({ | |
width: '100%', | |
background: '#ffffff', | |
onSelected: function(data){ | |
$('#'+selectID+' .dd-selected-value').attr('name', selectName); | |
} | |
}); |
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 to create widgetized area | |
function meetup_widgetized_area() { | |
$args = array( | |
'name' => __('Meetup Widgetized Area', 'sample-child'), | |
'id' => 'meetup-widgetized-area', | |
'description' => 'A sample widegetized area', | |
'class' => '', | |
'before_widget' => '<section id="%1$s" class="widget %2$s">', | |
'after_widget' => '</section>', | |
'before_title' => '<h2 class="widgettitle">', |
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
// Creating a Custom widget | |
/** | |
* Adds Foo_Widget widget. | |
*/ | |
class Foo_Widget extends WP_Widget { | |
/** | |
* Register widget with WordPress. | |
*/ | |
function __construct() { |
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
Prompt and prompt colors | |
# 30m - Black | |
# 31m - Red | |
# 32m - Green | |
# 33m - Yellow | |
# 34m - Blue | |
# 35m - Purple | |
# 36m - Cyan | |
# 37m - White | |
# 0 - Normal |
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
alias 4d3d3d3="/usr/bin/open -a '/Applications/Google Chrome.app' 'http://www.youtube.com/watch?v=XWX4GUYGQXQ'" |
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
<ifModule mod_gzip.c> | |
mod_gzip_on Yes | |
mod_gzip_dechunk Yes | |
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$ | |
mod_gzip_item_include handler ^cgi-script$ | |
mod_gzip_item_include mime ^text/.* | |
mod_gzip_item_include mime ^application/x-javascript.* | |
mod_gzip_item_exclude mime ^image/.* | |
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* | |
</ifModule> |
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
$users = get_users( array( 'role' => 'author' ) ); | |
foreach ( $users as $user ) { | |
the_field( 'field_name', 'user_' . $user->ID ); | |
} |
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
<?php | |
function reading_time_remove_front_page() { | |
if ( ! is_singular() ) { | |
global $readingTimeWP; | |
remove_filter('the_content', array($readingTimeWP, 'rt_add_reading_time_before_content')); | |
} | |
} | |
add_action( 'wp', 'reading_time_remove_front_page' ); |
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
$('.gfield select').each(function(e) { | |
// Hide the select element | |
$(this).css('display', 'none'); | |
// clone the select element | |
clone = $(this).clone(); | |
// append the cloned select after the first select | |
$(this).after(clone); | |
// store the original select ID | |
var selectID = $(this).attr('id'); | |
// Call ddslick on the cloned select |
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
<a class="fancybox-form" href="#contact-jess">Email Jess</a> | |
<div id="contact-jess" style="display: none;">[gravityform id="5" title="true" description="true" ajax="true"]</div> |
OlderNewer