This file contains 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
@mixin placeholder { | |
::-webkit-input-placeholder { | |
@content; | |
} | |
::-moz-placeholder { | |
@content; | |
} | |
:-ms-input-placeholder { | |
@content; | |
} |
This file contains 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
$(document).ready(() => { | |
$("#add_bookmark").click(() => { | |
// Mozilla Firefox Bookmark | |
window.sidebar && window.sidebar.addPanel(location.href, document.title,""); | |
// IE Favorite | |
window.external && window.external.AddFavorite(location.href, document.title); | |
// Opera Hotlist | |
if( window.opera && window.print ) { | |
this.title=document.title; | |
return true; |
This file contains 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 | |
class Loadmore_Button { | |
public $article_wrapper = 'article-card'; | |
public $post_per_load = 6; | |
public $button_text = 'Показать еще'; | |
public $button_loading_text = 'Загрузка...'; | |
public $button_data_attr = 'data-aos="fade-up"'; | |
public $orderby = 'date'; | |
public $article_class = '.all-news__item'; | |
public $button_class = 'all-news__btn-more'; |
This file contains 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 | |
if ($debug) { | |
$modx->setLogLevel(modx::LOG_LEVEL_DEBUG); | |
$mtime = microtime(); | |
$mtime = explode(" ", $mtime); | |
$mtime = $mtime[1] + $mtime[0]; | |
$tstart = $mtime; | |
} |
This file contains 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 | |
set_time_limit(0); //Включаю ошибки и убираю лимит по времени | |
error_reporting(E_ALL); | |
ini_set('php_flag display_errors','on'); | |
ini_set('php_value error_reporting', E_ALL); | |
ini_set('display_errors','on'); | |
ini_set('error_reporting', E_ALL); | |
$handles_out = fopen('assets/xml/comand.sh', 'a+'); | |
$import_type = "assets/xml/Parametrs.xml"; | |
fwrite($handles_out, "#!/bin/bash \r\n"); |
This file contains 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 | |
// provider id => array of packages | |
$listPackagesToInstall = array( | |
1 => array( // standart modx provider | |
'Console' | |
, 'HitsPage' | |
, 'versionX' | |
, 'SEO Pro' | |
, 'translit' |