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;
CALL RAW FIELD in ITEM -> field name is type
<?php $fieldname = 'type';
if ( !isset($item->fields[$fieldname]->parameters) ) {
FlexicontentFields::loadFieldConfig($item->fields[$fieldname], $item);
}
$extra_props = array(); // use $extra_props = array('image'); // if radioimage or checkboximage field
$elements = FlexicontentFields::indexedField_getElements( $item->fields[$fieldname], $item, $extra_props );
@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 / Joomla-htaccess
Last active December 12, 2019 11:22
Joomla htaccess - siteground hosting 7.3
# ----------------------------------------------------------------------
# iamrobert.com
# JOOMLA 3 HTACCESS
# October 29, 2019
# Replace https://www.domain.com/ with current site URL (LINE 625)
# Update OSMAP SITEMAP.XML (LINE 637)
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# | SITEGROUND PHP 7 RULES
@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>