Skip to content

Instantly share code, notes, and snippets.

View iamrobert's full-sized avatar

Robert Stark iamrobert

View GitHub Profile
@iamrobert
iamrobert / select-all.html
Created November 4, 2015 17:57
CHECKBOX SELECT ALL ON LOAD with SELECT/DESELECT BUTTON
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>SELECT ALL</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>
1. CREATE CSS FONTS
https://fontie.flowyapps.com/home
@iamrobert
iamrobert / gist:35f809b7187896d60cb7
Last active November 22, 2015 16:00
Show only FIELD in FLEXICONTENT MODULE eg Huge Gallery
<?php
/**
* $caching
* $ordering
* $count
* $featured
*
* // Display parameters
* $moduleclass_sfx
* $layout
@iamrobert
iamrobert / gist:cc76a321636be50f6403
Created March 9, 2016 08:10
JOOMLA! CALL TEMPLATE IN MODULE
//CALL TEMPLATE IN MODULE
$app = JFactory::getApplication();
$tpath = JURI::base(true).'/templates/'.$app->getTemplate();
@iamrobert
iamrobert / .css
Created May 11, 2016 13:11
DEFAULT MARGIN/PADDING
/*
* =======================================================================
+ SPACERS
+ MARGINS
+ PADDING
+ OVERRIDES
* =======================================================================
*/
.m-5 {
margin: 0.313rem 0;
@iamrobert
iamrobert / social.php
Created July 16, 2016 09:29
JOOMLA SOCIAL SHARE BUTTONS
// Create social links in Joomla template or in FLEXIcontent items:
<?php
//GET CURRENT PAGE URL - need to urlencode;
$social_link = urlencode(JURI::current());
//GET CURRENT PAGE TITLE - need to urlencode;
$doc = JFactory::getDocument();
$page_title = urlencode($doc->getTitle());
@iamrobert
iamrobert / details.php
Created August 1, 2017 03:56
Prestashop | Add Category Links to SmartBlog for posts.php
//modules/smartblog/controllers/front/details.php
//Also need to add in details.php:
// {foreach from=$postcategory item=post}
// {include file="./item_category_loop.tpl" postcategory=$postcategory}
// {/foreach}
<?php
include_once(dirname(__FILE__).'/../../classes/controllers/FrontController.php');
class smartblogDetailsModuleFrontController extends smartblogModuleFrontController
@iamrobert
iamrobert / f6.html
Created September 5, 2017 06:16
Portfolio Blocks for iamrobert.com
### FULL WIDTH GRID ### IMAGE RIGHT ### 3 images
<div class="grid-x">
<div class="cell small-12 medium-4">
<div class="grid-y min-100vh">
<div class="cell small-6">
Left Cell Top
</div>
<?php
/**
* @package Joomla.Site
* @subpackage mod_login
*
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
@iamrobert
iamrobert / default.php
Last active March 12, 2018 13:21
Overwrite Joomla Login for Foundation 5 - templats/your_template/html/mod_login/default.php
<?php
/**
* @package Joomla.Site
* @subpackage mod_login
*
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;