Skip to content

Instantly share code, notes, and snippets.

View alexandreelise's full-sized avatar
💡
Votre Site Web. Augmenté.

Mr Alexandre J-S William ELISÉ alexandreelise

💡
Votre Site Web. Augmenté.
View GitHub Profile
@alexandreelise
alexandreelise / SmokeTest.php
Created October 2, 2022 04:18
SmokeTest using PhpUnit and Joomla Framework Http package
<?php
namespace AlexApi\Tests;
use Generator;
use Joomla\Http\HttpFactory;
use Joomla\Uri\Uri;
use PHPUnit\Framework\TestCase;
class SmokeTest extends TestCase
@alexandreelise
alexandreelise / customasset.php
Last active February 5, 2022 15:29
Load Custom Assets In Joomla! Core mod_custom using this layout override
<?php
declare(strict_types=1);
/**
* Custom Assets
*
* @version 1.0.0
* @package Customasset
* @author Alexandre ELISÉ <[email protected]>
* @copyright (c) 2009-2022 . Alexandre ELISÉ . Tous droits réservés.
@alexandreelise
alexandreelise / fancysubform.php
Created December 9, 2021 01:06
How to render a subform custom field manually by using php in Joomla! 4.0.x
<?php
/**
* @package Joomla.Plugin
* @subpackage Fields.Subform
*
* @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @contributor Alexandre ELISÉ <[email protected]> Modified version on 2021-12-08
* @description The content of this file needs to be copied in
* YOUR_JOOMLA_WEBSITE_ROOT/templates/cassiopeia/html/layouts/com_fields/field/fancysubform.php
@alexandreelise
alexandreelise / user.css
Last active November 16, 2021 15:07
Create full-width component area in Joomla! 4. It my implementation of an idea coming from my Super Joomler friend Marc DECHÈVRE
@supports (display: grid) {
body:not(.has-sidebar-left) .site-grid .container-component {
grid-column-start:span 6;
}
@media (min-width : 992px) {
/* Must add page-has-full-width in menu item custom css class for page */
body.site.page-has-full-width .site-grid {
grid-template-areas : ". banner banner banner banner ." ". top-a top-a top-a top-a ." ". top-b top-b top-b top-b ." "comp comp comp comp comp comp" ". side-l side-l side-r side-r ." ". bot-a bot-a bot-a bot-a ." ". bot-b bot-b bot-b bot-b .";
}
@alexandreelise
alexandreelise / README.md
Last active May 29, 2023 21:19
Render All Joomla! 4 Standard Form Fields

j4xall

Render All Joomla! 4 Standard Form Fields using a article layout override. To make it work, you can put this the j4xall.php file at this location:


JPATH_ROOT/templates/cassopeia/html/com_content/article/j4xall.php

@alexandreelise
alexandreelise / securely_share_gitpod_workspace.txt
Created May 20, 2021 19:28
Code snippet to add in tasks command of gitpod to make it more securely shareable
git config --global --unset-all user.name &&
git config --global --unset-all user.email &&
git config --global --unset-all credential.helper &&
@alexandreelise
alexandreelise / tinyhungryfoodie.swift
Last active October 7, 2023 19:39
Tiny hungry foodie Swift script. Originally made in PHP.
/**
* Tiny hungry foodie swift script
*
* @package tinyhungryfoodie
* @author Mr Alexandre J-S William ELISÉ <[email protected]>
* @copyright (c) 2009 - present . Mr Alexandre J-S William ELISÉ . Tous droits réservés.
* @license MIT
* @link https://apiadept.com
*/
var food: String? = "water"
@alexandreelise
alexandreelise / tinyhungryfoodie.kt
Last active October 7, 2023 19:40
Tiny hungry foodie kotlin script originally written in PHP
/**
* Tiny hungry foodie kotlin script
*
* @package tinyhungryfoodie
* @author Mr Alexandre J-S William ELISÉ <[email protected]>
* @copyright (c) 2009 - present . Mr Alexandre J-S William ELISÉ . Tous droits réservés.
* @license MIT
* @link https://apiadept.com
*/
fun main() {
@alexandreelise
alexandreelise / tinyhungryfoodie.c
Last active October 7, 2023 19:37
Tiny foodie hungry script now in C too. Originally in PHP.
/**
* Tiny hungry foodie c script
*
* @package tinyhungryfoodie
* @author Mr Alexandre J-S William ELISÉ <[email protected]>
* @copyright (c) 2009 - present . Mr Alexandre J-S William ELISÉ . Tous droits réservés.
* @license MIT
* @link https://apiadept.com
*/
#include <stdio.h>
@alexandreelise
alexandreelise / tinyhungryfoodie.php
Last active October 7, 2023 19:41
Tiny hungry foodie php script
<?php
/**
* Tiny hungry foodie php script
*
* @package tinyhungryfoodie
* @author Mr Alexandre J-S William ELISÉ <[email protected]>
* @copyright (c) 2009 - present . Mr Alexandre J-S William ELISÉ . Tous droits réservés.
* @license MIT
* @link https://apiadept.com
*/