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: UI Labs | |
Plugin URI: | |
Description: Experimental WordPress admin UI features, ooo shiny! | |
Author: John O'Nolan | |
Version: 1.0 | |
Author URI: http://john.onolan.org | |
*/ |
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: Post Meta for Events | |
* Plugin URI: | |
* Description: Add meta box to posts for events meta information ( using Kovshenin's Post Options API plugin ) | |
* Version: 0.1 | |
* Author: George Mamadashvili | |
*/ | |
// Remove test options |
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 | |
add_filter( 'post_class', 'mamaduka_add_parent_category_class' ); | |
/** | |
* Add parent category class to post_class() function | |
* | |
* @link http://wordpress.stackexchange.com/q/23259#23260 | |
*/ | |
function mamaduka_add_parent_category_class( $classes ) { | |
global $post; | |
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 | |
/** | |
* Filter chockout fields | |
*/ | |
function pf_woocommerce_checkout_fields( $fields ) { | |
global $woocommerce; | |
foreach ( $woocommerce->cart->get_cart() as $cart_item_key => $values ) : | |
if( ! in_array($values['product_id'], array(137, 139, 141) ) ) : | |
unset( $fields['account'] ); |
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: Mamaduka WooCommerce Right Now Widget | |
Plugin URI: http://mamaduka.wordpress.com/ | |
Description: Code for separated WooCommerce Right Now widget. | |
Version: 0.1 | |
Author: George Mamadashvili | |
Author URI: http://mamaduka.wordpress.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
#woocommerce_dashboard_right_now p.sub, | |
#woocommerce_dashboard_right_now .table, | |
#woocommerce_dashboard_right_now .versions { | |
margin: -12px; | |
} | |
#woocommerce_dashboard_right_now .inside { | |
font-size: 12px; | |
margin-bottom: 0; | |
padding-top: 20px; | |
} |
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 | |
/** | |
* Grouped price display | |
*/ | |
function mamaduka_wc_grouped_price_html( $price, $product ) { | |
$all_prices = array(); | |
foreach ( $product->get_children() as $child_id ) { | |
$all_prices[] = get_post_meta( $child_id, '_price', true ); | |
} |
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 | |
/** | |
* Returns the AJAX url | |
*/ | |
function mamaduka_ajax_url() { | |
$scheme = is_ssl() ? 'https' : 'http'; | |
return admin_url( 'admin-ajax.php', $scheme ); | |
} | |
?> |
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 woo_widget_tabs_latest( $posts = 5, $size = 45 ) { | |
global $post; | |
$latest = get_posts( 'ignore_sticky_posts=1&numberposts='. $posts .'&orderby=post_date&order=desc' ); | |
foreach($latest as $post) : | |
setup_postdata($post); | |
?> | |
<li class="fix"> | |
<?php if ($size <> 0) woo_image( 'height='.$size.'&width='.$size.'&class=thumbnail&single=true' ); ?> | |
<a title="<?php the_title(); ?>" href="<?php the_permalink() ?>"><?php the_title(); ?></a> |
OlderNewer