Skip to content

Instantly share code, notes, and snippets.

// app.module.ts
import { LOCALE_ID } from '@angular/core';
import { registerLocaleData } from '@angular/common';
import localeDe from '@angular/common/locales/de';
registerLocaleData(localeDe);
providers: [
[{ provide: LOCALE_ID, useValue: 'de-DE'}]
],
// shortcode
[recent_products per_page="6" columns="6" orderby="rand" order="rand"]
// https://www.templatemonster.com/help/woocommerce-how-to-set-random-order-for-products.html
add_filter( 'woocommerce_get_catalog_ordering_args', 'custom_woocommerce_get_catalog_ordering_args' );
function custom_woocommerce_get_catalog_ordering_args( $args ) {
$orderby_value = isset( $_GET['orderby'] ) ? woocommerce_clean( $_GET['orderby'] ) : apply_filters( 'woocommerce_default_catalog_orderby', get_option( 'woocommerce_default_catalog_orderby' ) );
if ( 'random_list' == $orderby_value ) {
$args['orderby'] = 'rand';
$args['order'] = '';
// convert to number in currency format
var invValueFormat = new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR' }).format(response.result.sumCostPrice);
// remove dot and replace with space
invValueFormat = invValueFormat.replace(/\./g, ' ');
// myArray = is an accual array of objects
// param = is a parameter in object
// value = is what we are looking for
var index = myArray.findIndex((obj => obj.param == value));
For example do not remove comment in style css fpr WP theme
/*!
*/
/*!
Theme Name: Storefront Child Theme
Theme URI: https://github.com/stuartduff/storefront-child-theme
Author: Stuart Duff
Author URI: http://stuartduff.com
var browserIsIE = /*@@cc_on!@@*/false || !!document.documentMode;
if (browserIsIE) {
$('#ieWarningModal').modal('show'); //create html element as modal
console.log('WARNING: You are using Internet Explorer!');
}
/*Internet Explorer is not supported.
This browser is outdated and not fully supported for the css-portal.
Please note that some of the pages will not get displayed, so please use the latest version of Microsoft Edge, Google Chrome, or Mozilla Firefox
Yoast SEO https://wordpress.org/plugins/wordpress-seo/
Smush https://wordpress.org/plugins/wp-smushit/
TinyMCE Advanced https://wordpress.org/plugins/tinymce-advanced/
UpdraftPlus Backup https://wordpress.org/plugins/updraftplus/
W3 Total Cache https://wordpress.org/plugins/w3-total-cache/
WP Mail SMTP https://wordpress.org/plugins/wp-mail-smtp/
WP Mail Logging https://wordpress.org/plugins/wp-mail-logging/
Wordfence Security https://wordpress.org/plugins/wordfence/
Easy FancyBox https://wordpress.org/plugins/easy-fancybox/
Regenerate Thumbnails https://wordpress.org/plugins/regenerate-thumbnails/
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="ab-design.at">
<meta name="description" content="Landarztpraxis Mureck, Gruppenpraxis für Allgemeinmedizin Dr. Sabrina Gries, Dr. Jakob Dorner; office@landarzt-mureck.at; 03472 27 70; www.landarzt-mureck.at" />
<meta name="copyright" content="(c)2020 - Landarztpraxis Mureck" />
<meta name="keywords" content="landarztpraxis, landarzt, landarzt-mureck, gries, dorner, facharzt, ärztezentrum, gesundheitszentrum, mureck" />
<meta name="robots" content="follow,index" />
<meta property="og:title" content="Landarztpraxis Mureck">