Skip to content

Instantly share code, notes, and snippets.

View iamrobert's full-sized avatar

Robert Stark iamrobert

View GitHub Profile
@iamrobert
iamrobert / f6-top-nav.php
Last active January 7, 2020 13:46
zurb foundatio 6.5 top-nav | joomla | off and off-close classes
<?php
/**
* @package Joomla.Site
* @subpackage mod_menu
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
/*
@iamrobert
iamrobert / align-class.js
Last active February 5, 2020 06:24
innovastudio content builder - functions to help
/* + GLOBAL VARIABLES
======================================================================*/
var htmlElements = 'h1, h2, h3, h4, h5, h6, hr, p, div, a, b, span, sup, sub, strong, strike, em, i, br, ol, ul, li, pre, img, table, td, tr, th, tbody, thead, tfoot, caption, img, blockquote';
var alignButton = 'div.rte-align-options.is-rte-pop.active > div > button';
var h1Format = 'div.rte-paragraph-options.is-rte-pop.deactive > div > div';
/*
* =======================================================================
@iamrobert
iamrobert / .htaccess
Last active April 20, 2020 19:59
htaccess | Site Ground Basic for Joomla 7.3 and force www
AddHandler application/x-httpd-php73 .php .php5 .php4 .php3
##
# @package Joomla
# @copyright Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved.
# @license GNU General Public License version 2 or later; see LICENSE.txt
##
##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
@iamrobert
iamrobert / lazyloadforjoomla.php
Last active March 23, 2022 16:30
Update for codyHouse
<?php
/**
* @copyright
* @package Lazy Load for Joomla! Pro - LLFJ for Joomla! 3.x
* @author Viktor Vogel <[email protected]>
* @version 3.5.0-FREE - 2020-06-06
* @link https://kubik-rubik.de/llfj-lazy-load-for-joomla
* ---------------------------------------------------------------------------
- RECODED FOR JS-PLYR YOUTUBE + CODYHOUSE
@iamrobert
iamrobert / 1-rsform-foundation-override2.php
Last active April 20, 2020 17:41
RSForm! Pro 2.3.9 - overwrite for ZURB FOUNDATION 6.6.1 + reCAPTCHA 6.3
// Overwrite here:/administrator/components/com_rsform/layouts/foundation.php
<?php
/**
* @package RSForm! Pro
* @copyright (C) 2007-2019 www.rsjoomla.com
* @license GPL, http://www.gnu.org/copyleft/gpl.html
*/
// no direct access
@iamrobert
iamrobert / recaptcha-v3.js
Last active March 30, 2020 18:42
reCAPTCHA v3 + BARBA.JS + ZURB FOUNDATION 6.5 + RSFORM (JOOMLA!)
app.reCaptcha = {
init: function() {
var RSFormProReCAPTCHAv3 = {
forms: {},
add: function(key, action, formId) {
formId = parseInt(formId);
RSFormProReCAPTCHAv3.forms[formId] = {key: key, action: action};
@iamrobert
iamrobert / app.js
Created May 28, 2020 06:20
Removed from iamrobert app.js template
/* + SORTABLE NEWS with LIST.JS
//https://codepen.io/Log1x/pen/LajRyo
======================================================================*/
app.sortableNews = {
init: function () {
$(function () {
if (!$('#news_cat').length) {
@iamrobert
iamrobert / home-banner.php
Created June 2, 2020 04:25
banners for iamrobert
<div class="grid-container fluid no-padding home-banner">
<div class="grid-x align-center-middle">
<div class="cell m800-6 small-order-2 m800-order-1 align-self-middle">
<div class="banner-text">
<h2 class="chrs">We design digital brands that adapt &amp; thrive in a disruptive world.</h2>
<h3 class="lines ani-pause ani-quick p-lead-text">Attention is the new currency; brands resonate when understood. We make your brand clear, consistent and compelling. We help companies flourish in the connected age.</h3>
</div>
</div>
<div class="cell m800-6 small-order-1 m800-order-2">
<div class="svg-animation" id="js-home-banner">
REduce
var baseURL = window.location.href.split(/[?#]/)[0].split("/").slice(0, -1).join("/")+"/";
@iamrobert
iamrobert / app.banner.js
Created June 23, 2020 04:30
Banner - can't get subheading to remove animation
app.banner = {
init: function() {
if (!document.querySelector("#mainslider")) {
return;
}
var transitionEnd = whichTransitionEvent();