Skip to content

Instantly share code, notes, and snippets.

JLoader::registerAlias('JRegistry', '\\Joomla\\Registry\\Registry', '6.0');
JLoader::registerAlias('JRegistryFormatIni', '\\Joomla\\Registry\\Format\\Ini', '6.0');
JLoader::registerAlias('JRegistryFormatJson', '\\Joomla\\Registry\\Format\\Json', '6.0');
JLoader::registerAlias('JRegistryFormatPhp', '\\Joomla\\Registry\\Format\\Php', '6.0');
JLoader::registerAlias('JRegistryFormatXml', '\\Joomla\\Registry\\Format\\Xml', '6.0');
JLoader::registerAlias('JStringInflector', '\\Joomla\\String\\Inflector', '6.0');
JLoader::registerAlias('JStringNormalise', '\\Joomla\\String\\Normalise', '6.0');
JLoader::registerAlias('JData', '\\Joomla\\Data\\DataObject', '6.0');
JLoader::registerAlias('JDataSet', '\\Joomla\\Data\\DataSet', '6.0');
JLoader::registerAlias('JDataDumpable', '\\Joomla\\Data\\DumpableInterface', '6.0');
@ghazal
ghazal / user.css
Created February 26, 2022 09:51
Very specific CSS for Atum template in a 13 inches MacBook Pro environment
.row {margin-right: calc(var(--gutter-x)*-0.8); margin-left: calc(var(--gutter-x)*-0.8);}
/* Tables */
.table tbody th {font-weight: 300}
.table > :not(caption) > * > * { font-size: .95em;padding: .30rem .15rem;}
.table > :not(caption) > * > .dd-none d-md-table-cell { font-size: .95em;padding: .30rem .15rem;}
#articleList > :not(caption) > * > * {padding: .30rem .2rem;}
#levelList > :not(caption) > * > * { font-size: .95em;padding: 1rem .4rem;}
#styleList > :not(caption) > * > * {padding: .30rem .8rem;}
#manageList > :not(caption) > * > * {padding: .30rem .3rem;}
@ghazal
ghazal / custom.css
Created December 22, 2020 11:47
Astroid Template one
.blog-featured .blog-items {
display: grid;
grid-gap: 2em;
grid-template-rows: repeat(2, minmax(300px, 1fr));
grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 575.98px) {
.blog-featured .blog-items {grid-template-columns: repeat(1, 1fr);}
////// POUR LE MODULE CUSTOM -- EFFACER CETTE LIGNE APRES USAGE
<div role="tabpanel" class="tab-pane" id="ptabreminder">
<p ng-hide="hasItems()">Pas de sélection</p>
<div ng-repeat="(day, daysessions) in sessions" ng-show="hasItems()">
<h5 class="myh5">{{ day }}</h5>
<ul>
<li ng-repeat="session in daysessions">
{{ session.slot }}, {{ session.room }}:<br /> <a ng-href="{{session.link}}">{{ session.title }}</a> - <span style="cursor:pointer" ng-click="toggleSession(session.id)">x</span>
</li>
<!DOCTYPE html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<title>O&ugrave; suis-je ?</title>
</head> <body> <div style="font-size:24px; font-weight:bold">D&eacute;termination des variables</div> <div style="border-top:1px solid
#FFCC00;font-size:14px;font-weight:bold;padding-top:15px;color:#FF6600">Ouvrez votre fichier configuration.php et remplacez
la valeur des variables par les &eacute;l&eacute;ments ci dessous :</div>
<?php
$db = JFactory::getDBO();
$query = "SELECT * FROM #__categories WHERE section = 1";
$db->setQuery($query);
$list = $db->loadObjectList();
foreach ($list as $item) {
{
"one": "Singular sensation",
"two": "Beady little eyes",
"three": "Little birds pitch by my doorstep"
}