Skip to content

Instantly share code, notes, and snippets.

View CB9TOIIIA's full-sized avatar
💭
Make JBZoo Great Again ^_^

Eugene Kopylov CB9TOIIIA

💭
Make JBZoo Great Again ^_^
View GitHub Profile
@CB9TOIIIA
CB9TOIIIA / disqus_thread
Created December 9, 2021 19:21
disqus_thread
<div id="disqus_thread"></div>
<script>
window.addEventListener('message', receiveMessage, false);
function receiveMessage(event) {
if (event.data) {
var msg;
try {
msg = JSON.parse(event.data);
} catch (err) {
// Do nothing
##
# @package Joomla
# @copyright Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.
# @license GNU General Public License version 2 or later; see LICENSE.txt
##
##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
@CB9TOIIIA
CB9TOIIIA / README-ru-RU.md
Created August 22, 2019 17:13 — forked from Septdir/README-ru-RU.md
Joomla - Cleanup after install

Joomla - Очистка после установки

Скрипт отключает не нужные разширения.

Как использовать

  1. Залейте файл cleanup.php в папку administation
  2. Перейдите по адресу https://www.example.com/administrator/cleanup.php
  3. Выберите те раширение которые надо отключить
  4. Нажмите Cleanup
  5. Удалите файл cleanup.php
@CB9TOIIIA
CB9TOIIIA / gist:461fca90a3a4bb73cff9616d4cf39279
Created April 8, 2019 09:31
version_compare PHP_VERSION
if (version_compare(PHP_VERSION, '7.0', '>=')) {
require_once __DIR__ . '/test.php'; //
} else {
require_once __DIR__ . '/test2.php'; // legacy
}
<div id="simplecallback_callback_phone" class="simplecallback_callback_phone simplecallback_animation" style="display: block;"><svg id="simplecallback-callback-button" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" height="120px" viewBox="0 0 120 120" width="120px" version="1.1" y="0px" x="0px" xmlns:xlink="http://www.w3.org/1999/xlink"><g class="simplecallback-ring"><path id="simplecallback-track-background" d="m60 1c-32.585 0-59 26.415-59 59s26.415 59 59 59 59-26.415 59-59-26.415-59-59-59zm0 115c-30.928 0-56-25.072-56-56s25.072-56 56-56c30.928 0 56 25.072 56 56s-25.072 56-56 56z" fill="#1FB250"></path></g><g class="simplecallback-wrapper"><circle class="simplecallback-circle-back" cy="60" cx="60" r="34" fill="#1FB250"></circle><g class="simplecallback-circle-front"><circle cy="60" cx="60" r="34" fill="#1FB250"></circle><path class="simplecallback-icon-handset" d="m59.34 48.038c-0.843 0.181-1.681 0.434-2.504 0.778-6.003 2.52-9.252 8.718-8.221 14.78-0.042 0.26-0.04 0.527 0.072 0.786 0.316 0.733 1.
@CB9TOIIIA
CB9TOIIIA / sticky stickyMoveDown
Created March 8, 2019 06:55
sticky stickyMoveDown
.sticky-wrapper.is-sticky #sp-header{
animation:stickyMoveDown .6s;
}
@keyframes stickyMoveDown{0%{transform:translateY(-100%)}100%{transform:translateY(0)}}
@CB9TOIIIA
CB9TOIIIA / Ограничение количества вводимых символов
Created February 16, 2019 21:01
Ограничение количества вводимых символов
<?php
$desc = JString::trim(strip_tags($this->renderPosition('<ИМЯ ПОЗИЦИИ В ШАБЛОНЕ>')));
$descArr = explode(' ', $desc);
$descArr_tmp = array();
foreach ($descArr as $word) {
$word = JString::trim($word);
if ($word) {
$descArr_tmp[] = $word;
}
}
@CB9TOIIIA
CB9TOIIIA / shine blesk
Created January 31, 2019 22:12
shine blesk
.blesk {
width: 100%;
padding: 10px 15px;
/* background: #3260d6; */
border-radius: 7px;
margin-bottom: 20px;
display: block;
outline: 0;
border: 0;
@CB9TOIIIA
CB9TOIIIA / Joomla API
Created November 1, 2018 20:18
Joomla API
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$template = $app->getTemplate();
$option = $app->input->getCmd('option', '');
$view = $app->input->getCmd('view', '');
$layout = $app->input->getCmd('layout', '');
$task = $app->input->getCmd('task', '');
$itemid = $app->input->getCmd('Itemid', '');
@CB9TOIIIA
CB9TOIIIA / exec curl $fronturl
Created September 7, 2018 12:38
exec curl $fronturl
exec("/usr/bin/curl $fronturl");