This file contains hidden or 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 cs_wc_loop_add_to_cart_scripts() { | |
if ( is_shop() || is_product_category() || is_product_tag() || is_product() ) : ?> | |
<script> | |
jQuery(document).ready(function($) { | |
$(document).on( 'change', '.quantity .qty', function() { | |
$(this).parent('.quantity').next('.add_to_cart_button').attr('data-quantity', $(this).val()); | |
}); | |
}); |
This file contains hidden or 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 | |
/* | |
Template Name: Print Processing Orders :) | |
*/ | |
if (!is_user_logged_in() || !current_user_can('manage_options')) wp_die('This page is private.'); | |
?> | |
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
This file contains hidden or 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
<article <?php post_class(); ?>> | |
<header class="entry-header"> | |
<h2 class="entry-title"> | |
<a href="<?php the_permalink(); ?>" title="<?php echo __( 'Link Permanente para ', 'odin' ) . get_the_title(); ?>" rel="bookmark"><?php the_title(); ?></a> | |
</h2> | |
<div class="entry-meta"> | |
<span class="sep"><?php _e( 'Por ', 'odin' ); ?></span> | |
<span class="author vcard"> | |
<a class="url fn n" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" title="<?php echo esc_attr( __( 'Ver todos os posts de ', 'odin') . get_the_author() ); ?>" rel="author"><?php echo get_the_author(); ?></a> | |
</span> |
This file contains hidden or 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 | |
/** | |
* Custom comment_form fields | |
* | |
* @param array $fields Default form fields | |
* | |
* @return array New Form fields | |
*/ | |
function custom_comment_form_field( $fields ) { |
This file contains hidden or 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
<h2><?php _e( 'Produtos em Destaque', 'odin' ); ?></h2> | |
<?php | |
global $woocommerce; | |
$query_args = array( | |
'posts_per_page' => 5, | |
'no_found_rows' => 1, | |
'post_status' => 'publish', | |
'post_type' => 'product' | |
); | |
$query_args['meta_query'] = array(); |
This file contains hidden or 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: WooCommerce Correios - Only Sedex Add-on | |
* Plugin URI: http://claudiosmweb.com/ | |
* Description: Este plugins serve para indicar que certos produtos não podem ser entregues por PAC | |
* Author: claudiosanches | |
* Author URI: http://claudiosmweb.com/ | |
* Version: 1.0 | |
* License: GPLv2 or later | |
*/ |
This file contains hidden or 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 | |
/** | |
* Custom Social Count Plus Number Format. | |
* | |
* @param int $number Default number. | |
* | |
* @return float New formated number. | |
*/ | |
function custom_social_count_plus_number_format( $number ) { |
This file contains hidden or 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: Fix WooCommerce Boleto ID with WooCommerce Sequential Order Numbers | |
* Plugin URI: http://claudiosmweb.com/ | |
* Description: WooCommerce Boleto is a brazilian payment gateway for WooCommerce | |
* Author: claudiosanches | |
* Author URI: http://claudiosmweb.com/ | |
* Version: 0.1 | |
* License: GPLv2 or later | |
*/ |
This file contains hidden or 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
@mixin linear-gradient($angle, $color-stops...) { | |
$_angle-with-vendor-prefix: ""; | |
$_angle: ""; | |
@if $angle == "to top" or $angle == "bottom" { | |
$_angle-with-vendor-prefix: bottom; | |
$_angle: to top; | |
} @else if $angle == "to right" or $angle == "left" { | |
$_angle-with-vendor-prefix: left; | |
$_angle: to right; | |
} @else if $angle == "to bottom" or $angle == "top" { |
This file contains hidden or 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
suPHP_ConfigPath /home/user/public_html | |
<Files php.ini> | |
order allow,deny | |
deny from all | |
</Files> |