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
//CSV contents must be in response.data.data | |
invoiceApi.createExport(this.dateFrom.picker, this.dateTo.picker).then(response => { | |
if (response.data.success == true) { | |
let blob = new Blob([response.data.data], {type: 'text/csv'}); | |
let link = document.createElement('a'); | |
link.href = window.URL.createObjectURL(blob); | |
link.download = 'FileName_'+this.dateFrom.picker+'_'+this.dateTo.picker+'.csv'; | |
link.click(); | |
this.createExportLoading = false; |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{SERVER_PORT} 80 | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}/%{REQUEST_URI} [L,R=301] | |
</IfModule> |
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
$params = array( | |
'credentials' => array( | |
'key' => 'AKIAI*****', | |
'secret' => 'tbgFh*****', | |
), | |
'region' => 'eu-west-1', // < your aws from SNS Topic region | |
'version' => 'latest' | |
); | |
/** @var SnsClient $sns */ |
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
/** | |
* Valid for SW 5.2 - 5.2.14 | |
* Since 5.2.15 cronjob.xml can be used https://developers.shopware.com/developers-guide/plugin-system/#plugin-cronjob | |
*/ | |
public static function getSubscribedEvents() { | |
return [ | |
'Shopware_CronJob_ReminderMail' => 'onCronRun' | |
]; | |
} |
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
<div class="iframe-wrapper"> | |
<iframe src="https://player.vimeo.com/video/123456789?autoplay=1&loop=1&byline=0&title=0"> | |
</div> | |
/* Makes a fixed background wrapper | |
which the user cannot interact with */ | |
.iframe-wrapper { | |
position: fixed; | |
top: 0; |
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 | |
/** | |
* The Template for displaying product archives, including the main shop page which is a post type archive | |
* | |
* This template can be overridden by copying it to yourtheme/woocommerce/archive-product.php. | |
* | |
* HOWEVER, on occasion WooCommerce will need to update template files and you | |
* (the theme developer) will need to copy the new files to your theme to | |
* maintain compatibility. We try to do this as little as possible, but it does | |
* happen. When this occurs the version of the template file will be bumped and |
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: Frontpage | |
*/ | |
//http://www.billerickson.net/full-width-landing-pages-in-genesis/ | |
/* Main Content */ | |
function custom_content() { | |
genesis_markup( 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
//Remove Post info & Post Title | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12); | |
// Add the Post Info & Post Title in different order | |
add_action( 'genesis_entry_header', 'genesis_post_info'); | |
add_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
function custom_remove_image_from_features() { | |
remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 ); | |
if ( in_array( 'feature', get_post_class() ) ) { |
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
/* font size & line height in px */ | |
$font-size-body-px: 14; | |
$line-height-px: 21; | |
/* calculate font-size (in %) and line-height (in em) */ | |
$font-size-body: pc($font-size-body-px, 16); | |
$line-height: em($line-height-px, $font-size-body-px); |
NewerOlder