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
UPDATE wp_posts SET guid = | |
REPLACE( | |
guid, | |
"localhost/example", | |
"example.com" | |
), | |
post_content = | |
REPLACE( | |
post_content, | |
"localhost/example", |
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_action('after_switch_theme', 'mytheme_install'); | |
function mytheme_install() { | |
//Sets permalink Structure | |
$wp_rewrite->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' ); | |
//Update rewrite rules, sets our custom rules | |
flush_rewrite_rules(); | |
} |
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
$(document).ready(function() { | |
$('.rollover').each(function() { | |
var rollover = $(this).data('rollover'); | |
var original = $(this).css('background-image'); | |
$(this).hover( | |
function() { | |
$(this).css('background-image', 'url('+rollover+')'); | |
}, | |
function() { | |
$(this).css('background-image', original); |
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 | |
//Hook into dynamic_sidebar_params filter | |
//found in dynamic_siderbar ( wp-include/widgets.php ) line 886 | |
add_filter( 'dynamic_sidebar_params', 'extend_widgets_sidebar_params', 10); | |
//I have my classes stored within an array in an option called widget_classes | |
if((!$widget_classes = get_option('widget_classes')) || !is_array($widget_classes) ) $widget_classes = array(); | |
/* Params callback on setting widget params */ |
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
<ul class="staff"> | |
<?php $recentPosts = new WP_Query(array('posts_per_page' => -1, 'post_type' => array('staff') )); | |
while( $recentPosts->have_posts() ) : $recentPosts->the_post(); ?> | |
<li> | |
<div class="thumb"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumbnail') ?></a></div> | |
<p class="info vcard"> | |
<span class="name"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></span> | |
<span class="title"><?php the_field('job_title'); ?></span> | |
<span class="email"><a href="mailto: <?php the_field('email'); ?>"><?php the_field('email'); ?></a></span> | |
<span class="phone"><?php the_field('phone'); ?></span> |
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
name = Checkout Pane AdWords | |
description = AdWords campaign tracking (hard-coded) | |
package = Commerce (contrib) | |
dependencies[] = commerce_checkout | |
core = 7.x | |
; Information added by drupal.org packaging script on 2012-12-09 | |
version = "7.x-1.x-dev" | |
core = "7.x" | |
project = "checkout_pane_adwords" |
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
{ "commerce_shipping_method_flat_rate" : { | |
"LABEL" : "Collect rates: Flat rate", | |
"PLUGIN" : "reaction rule", | |
"REQUIRES" : [ "rules", "commerce_shipping" ], | |
"ON" : [ "commerce_shipping_collect_rates" ], | |
"IF" : [ | |
{ "entity_has_field" : { | |
"entity" : [ "commerce-order" ], | |
"field" : "commerce_customer_shipping" | |
} |
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 | |
/* | |
Plugin Name: Responsive Facebook Like Box | |
Plugin URI: http://glamanate.com | |
Description: Adds a Facebook Like Box widget which is responsive | |
Author: Matt Glaman | |
Version: 0.1-alpha | |
Author URI: http://glamanate.com | |
*/ |
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
<div class="fb-like-box" data-href="https://www.facebook.com/FacebookDevelopers" data-width="292" data-show-faces="true" data-header="true" data-stream="true" data-show-border="true"></div> |
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
$(window).bind("load resize", function(){ | |
var container_width = $('#container').width(); | |
$('#container').html('<div class="fb-like-box" ' + | |
'data-href="https://www.facebook.com/FacebookDevelopers"' + | |
' data-width="' + container_width + '" data-height="730" data-show-faces="false" ' + | |
'data-stream="true" data-header="true"></div>'); | |
FB.XFBML.parse( ); | |
}); |
OlderNewer