Skip to content

Instantly share code, notes, and snippets.

View ammaridris's full-sized avatar

Ammar Idris ammaridris

View GitHub Profile
<button type="button" class="header-item-content dms-button" style="border: none;">
<span class="header-item-icon">
<span style="margin: 3px; font-size: 1.2rem; transition: all .6s ease;">🌓</span>
</span>
<span class="header-item-text">Dark Mode Switcher</span>
</button>
<script>
(() => {
'use strict';
INI_MODULE_PERTAMA_SAYA="This is My First Module"
HARI_INI="Today's date"
<?php
defined('_JEXEC') or die('Restricted access');
$servername = "localhost";
$username = "root";
$password = "root";
$dbname = "SistemPendaftaranSyarikat";
$conn = new mysqli($servername, $username, $password, $dbname);
require_once('mod_senarai_'.$params->get('senarai').'.php');
<?xml version="1.0" encoding="utf-8"?>
<extension type="module" version="4.0" client="site" method="upgrade">
<name>Modul Memaparkan Senarai Data Dari Database Luar</name>
<author>Ammar Idris</author>
<creationDate>November 2022</creationDate>
<copyright>Copyright (C) AIEAC. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<authorEmail>am87mar@gmail.com</authorEmail>
<authorUrl>www.ammaridris.com</authorUrl>
<version>1.0</version>
<?php defined('_JEXEC') or die; ?>
<ul class="<?php echo $params->get('inline', 1) ? 'lang-inline' : 'lang-block';?>">
<?php foreach($list as $language):?>
<?php if ($params->get('show_active', 0) || !$language->active):?>
<li class="<?php echo $language->active ? 'lang-active' : '';?>" dir="<?php echo $language->rtl ? 'rtl' : 'ltr' ?>">
<?php if ($language->display) { ?>
<a href="<?php echo $language->link;?>" class="uk-button uk-button-secondary uk-button-small uk-text-uppercase uk-text-bold uk-text-small">
<?php if ($params->get('image', 1)):?>
<?php echo JHtml::_('image', $imagesPath.$language->image.'.'.$imagesType, $language->title_native, array('title'=>$language->title_native), $relativePath);?>
<?php
use Joomla\CMS\Language\Text;
// Config
$config->addAlias('~logo', '~theme.logo');
// Link
$attrs_link = [];
$attrs_link['href'] = $config('~theme.site_url');
.uk-breadcrumb li:first-child a:before {
display: inline-block;
font-family: "FontAwesome";
content: "\f015";
padding-right: 5px;
}
/* Nama class tu boleh ubah ikut kesesuaian nama class dalam template */
/* font-family tu juga boleh ubah */
@ammaridris
ammaridris / falang_default_list.php
Created November 20, 2019 05:49
Falang + JFontSize
<?php
/**
* @package Falang for Joomla!
* @author Stéphane Bouey <stephane.bouey@faboba.com> - http://www.faboba.com
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
* @copyright Copyright (C) 2010-2017. Faboba.com All rights reserved.
*/
// No direct access to this file
defined('_JEXEC') or die;
<?php defined('_JEXEC') or die; ?>
<form action="<?php echo htmlspecialchars(JUri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm">
<?php if ($this->params->get('filter_field') || $this->params->get('show_pagination_limit')) : ?>
<input
type="text"
name="filter-search"
id="filter-search"
value="<?php echo $this->escape($this->state->get('list.filter')); ?>"
class="inputbox"