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
.video-container { | |
position: relative; | |
padding-bottom: 56.25%; | |
padding-top: 30px; | |
height: 0; | |
overflow: hidden; | |
} | |
.video-container iframe, | |
.video-container object, |
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
add_action ('woocommerce_after_add_to_cart_form', function () { | |
$personas = rand (1,20); | |
echo '<p>'.$personas.' personas están viendo esto</p>'; | |
}); |
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
//Detalles de facturación | |
function wc_billing_field_strings( $translated_text, $text, $domain ) { | |
switch ( $translated_text ) { | |
case 'Detalles de facturación' : | |
$translated_text = __( 'Nuevo Encabezado', 'woocommerce' ); | |
break; | |
} | |
return $translated_text; | |
} | |
add_filter( 'gettext', 'wc_billing_field_strings', 20, 3 ); |
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 custom_city_field( $city_fields ) { | |
//Obtiene el estado seleccionado | |
$estado_actual = WC()->customer->get_shipping_state(); | |
/* De requerirse esta devuelve la ciudad | |
$agency = WC()->customer->get_shipping_city();*/ | |
//Se generan los array que contienen los datos a mostrar en los select box |
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
//REGISTRO EN FUNCTIONS.PHP | |
function a_pr_widgets_init() { | |
/* | |
Sidebar regular (un widget area) | |
*/ | |
register_sidebar( array( | |
'name' => __( 'Sidebar', 'a-pr' ), | |
'id' => 'sidebar-widget-area', | |
'description' => __( 'Sidebar widget Articulos', 'a-pr' ), | |
'before_widget' => '<section class="%1$s %2$s">', |
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 | |
global $woocommerce; | |
$currency = get_woocommerce_currency_symbol(); | |
$price = get_post_meta( get_the_ID(), '_regular_price', true); | |
$sale = get_post_meta( get_the_ID(), '_sale_price', true); | |
?> | |
<?php if($sale) : ?> | |
<p class="product-price-tickr"><del><?php echo $currency; echo $price; ?></del> <?php echo $currency; echo $sale; ?></p> | |
<?php elseif($price) : ?> |
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
1-. En configuraciones de windows activar el modo desarrollador | |
2-. Ejecutar windows subsystem for linux, con power shell como administrador https://docs.microsoft.com/en-us/windows/wsl/install-win10 | |
3-. Ir a Marketplace e instalar ubuntu, consola ubuntu, configurar username y contraseña. Linux corriendo en windows. | |
4-. Instalar terminal multiplataforma Hyper. https://hyper.is/ | |
5-. Instalar ZSH. En terminal ubuntu usar el comando "sudo apt-get install zsh" introducir contraseña. sudo apt-get install git-flow | |
6-. Instalar y myZsh copiando el comando Manual inspection de https://github.com/robbyrussell/oh-my-zsh. | |
7-. ZSH como shell por defecto. en terminal de ubuntu comando chsh -s /usr/bin/zsh, introducir contraseña. bash -c zsh agregar linea a .bashrc | |
8-. OhMyZsh dentro de Hyper. Ir a preferencias de hyper editar/preference, buscar shel y copiar dentro la ruta de ejemplo de bash en windows, guardar. cambiar el theme de hyper a https://github.com/denysdovhan/spaceship-prompt | |
9-. Crear llaves ssh. ejecutr com |