Skip to content

Instantly share code, notes, and snippets.

@renekreupl
renekreupl / MenuSubpages.html
Created January 28, 2019 22:37
Fluid Page List with Image
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Default" />
<f:section name="Main">
<section class="c-listing">
<div class="c-listing__filter">
<div class="c-listing__view">
<div class="c-listing__view-icon c-listing__view-icon--active" id="js__listing-grid">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>Grid</title><g id="Ebene_2" data-name="Ebene 2"><g id="grid"><path d="M0,0H6V6H0ZM9,0h6V6H9Zm9,0h6V6H18ZM0,9H6v6H0ZM9,9h6v6H9Zm9,0h6v6H18ZM0,18H6v6H0Zm9,0h6v6H9Zm9,0h6v6H18Z"/></g></g></svg>
</div>
tx_gridelements {
# TS Elemente haben Vorrang vor Datensätzen mit gleichen IDs
overruleRecords = 1
setup {
#OneColumns
container {
title = Container
description = Container Beispiel
frame = 1
<?php
if(isset($_POST['submit'])):
if(isset($_POST['g-recaptcha-response']) && !empty($_POST['g-recaptcha-response'])):
//your site secret key
$secret = 'InsertSiteSecretKey';
//get verify response data
$verifyResponse = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret='.$secret.'&response='.$_POST['g-recaptcha-response']);
$responseData = json_decode($verifyResponse);
$name = !empty($_POST['name'])?$_POST['name']:'';
"LaAldea" => array(
"zoom" => "16",
"center" => "lat: 10.791616226953243, lng: -84.50524806976318",
"image" => "https://lifeforestry.com/demo/Lageplan_LaAldea.png",
"point1" => "10.781734454748257, -84.5152178942871",
"point2" => "10.801463637739824, -84.49410354492187",
),
$('a[href*=#]:not([href=#])').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length) {
var scrollTarget = target.offset().top - 30;
$('html,body').animate({
scrollTop: scrollTarget
}, 1000);
return false;
//Navigation Highlight
var sections = {},
_height = $(window).height(),
i = 0;
// Grab positions of our sections
$('section').each(function(){
sections[this.id] = $(this).offset().top;
});
@renekreupl
renekreupl / gist:6088384
Created July 26, 2013 12:07
Google Maps Simple Api V3
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
function initialize() {
var latlng = new google.maps.LatLng(-34.397, 150.644);
var myOptions = {
zoom: 8,
center: latlng,
@renekreupl
renekreupl / gist:5502884
Created May 2, 2013 15:11
Navigation 3 Ebenen mit ID
tmp.navigation = HMENU
tmp.navigation.1 = TMENU
tmp.navigation.1 {
expAll = 1
wrap = <ul id="nav">|</ul>
NO {
wrapItemAndSub = <li>|</li>
}
ACT = 1
ACT {