Skip to content

Instantly share code, notes, and snippets.

View tecpromotion's full-sized avatar

Stefan Wendhausen tecpromotion

View GitHub Profile
@tecpromotion
tecpromotion / advent.php
Last active November 29, 2024 15:16
Override "Adventskalender" for Joomla 5.2 Articles Module
<?php
/**
* @package Joomla.Site
* @subpackage mod_articles
*
* @copyright (C) 2024 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
//define( 'SCRIPT_DEBUG', true );
@tecpromotion
tecpromotion / htaccess-www-to-non-www
Created May 25, 2023 15:54
.htaccess-www-to-non-www #htaccess
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.yourdomain.com [NC]
RewriteRule ^(.*)$ https://yourdomain.com/$1 [L,R=301]
@tecpromotion
tecpromotion / languages.js
Created December 3, 2022 09:54
Language File OTV
export const messages = {
"de-DE": {
location: {
headline:
"Bitte wählen Sie ihr gewünschtes Behandlungszentrum aus:",
select: "Bitte einen Behandlungsort wählen.",
},
customer: {
headline:
"Besuchen Sie uns zum ersten Mal?",
@tecpromotion
tecpromotion / README.md
Last active October 10, 2022 19:50
Secure-Joomla-Administrator-folder

Zugriffsschutz für das Joomla-Administrator Verzeichnis

Was muss ich tun?

  1. in der index.php Dateien die Werte ändern für:
HierDeinCookieWertGeheim
HierDeinCookieNameGeheim
@tecpromotion
tecpromotion / buttons-bottom.css
Last active January 23, 2024 22:25
[youtube video-container usercentrics css-snippets] #css #yootheme
.bottombuttons {
> div {
.uk-card-body {
flex-grow: 1;
display: flex !important;
flex-direction: column;
.el-meta, .el-title, .el-content {
flex-grow: 1;
}
@tecpromotion
tecpromotion / modules.php
Created September 10, 2018 12:00
Show Module:ID in Frontend
echo '<div style="padding: 10px; font-weight: bold; position:relative; z-index:9999; background:black; color:white; display: inline-block;">' . $module->id . ' - ' . $module->title . '</div>';
@tecpromotion
tecpromotion / delivery-information.less
Last active August 22, 2018 12:22
Shopware Theme: Defines the delivery status for products with custom colours.
/*
Delivery information
=========================================
Defines the delivery status for products (e.g. detail page, note).
The styling includes the base styling and the delivery states.
```
<div class="product--delivery">