Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* @package Joomla.Site
* @subpackage Layout
*
* @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;
@esedic
esedic / ucm_remapper.php
Created November 18, 2015 11:26
Rebuilt Joomla's ucm_content and ucm_base tables for articles
<?php
/**
* @author Federico Liva <mail@federicoliva.info>
* @copyright Copyright (C)2015 Federico Liva. All rights reserved.
* @license GNU General Public License, version 2 or later
*/
error_reporting(E_ALL);
ini_set('display_errors', 1);
ini_set('max_execution_time', 0);
@esedic
esedic / config.json
Created November 24, 2015 12:15 — forked from anonymous/config.json
Bootstrap Customizer Config for abubu
{
"vars": {
"@gray-base": "#8f8f8f",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "#afe1d9",
"@brand-success": "#5cb85c",
(function($) {
var methods = {
init: function() {
var $ul = $("<ul/>").insertAfter(this);
var baseId = "_" + $(this).attr("id");
$(this).children("option").each(function(index) {
var $option = $(this);
var id = baseId + index;
var $li = $("<li/>").appendTo($ul);
<field name="myrepeatfield"
type="Repeatable"
icon="list"
description="Field Description here"
label="Field Label Here"
default="">
</field>
<field name="myrepeatfield"
type="Repeatable"
icon="list"
description="Field Description here"
label="Field Label Here"
default="">
<fieldset hidden="true" name="myrepeatfield_modal" repeat="true">
<field name="customfield1"
<field name="myrepeatfield"
type="Repeatable"
icon="list"
description="Field Description here"
label="Field Label Here"
default="">
<fieldset hidden="true" name="myrepeatfield_modal" repeat="true">
<field name="customfield1"
<field name="myrepeatfield"
type="Repeatable"
icon="list"
description="Field Description here"
label="Field Label Here"
default="{'customfield1':['Custom Field 1 value repeat1', 'Custom Field 1 value repeat2'], 'customfield2':['Custom Field 2 value repeat1','Custom Field 2 value repeat2']}">
<fieldset hidden="true" name="myrepeatfield_modal" repeat="true">
<field name="customfield1"