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
#!/bin/bash | |
############## | |
echo "Welcome to MODx autoinstaller. | |
------------------------------------ | |
Enter MySQL root password" | |
read ROOTPASS | |
echo "Enter username for site and database" |
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
#!/bin/bash | |
############## | |
echo "Welcome to MODx autoinstaller. | |
Enter MySQL root password" | |
read ROOTPASS | |
echo "Enter username for site and database" |
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
#!/bin/bash | |
############## | |
echo " | |
////////////////////////////////////// | |
// // | |
// Welcome to MODx autoinstaller. // | |
// // | |
////////////////////////////////////// |
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 | |
/** | |
* Created by PhpStorm. | |
* User: Realetive | |
* Date: 13.10.14 | |
* Time: 9:49 | |
*/ | |
$group_city = [ | |
'spb' => [ |
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 | |
/** | |
* CercecUser | |
* | |
* @author Marc Elie <[email protected]> | |
* | |
* Event: OnUserFormSave | |
* | |
* Modified from Bob Ray's plugin tutorial, Official Guide p. 492-3 | |
* and Bob Ray's online explanation on create class: |
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
javascript:(function(){ | |
if (typeof MODx != 'undefined' && typeof MODx.load != 'undefined') { | |
var action = (MODx.action) ? MODx.action['workspaces'] : 'workspaces'; | |
if (action == MODx.request.a) { | |
var providerName = prompt('Пожалуйста, обязательно введите название поставщика пакетов (по умолчанию: Simple Dream)', 'Simple Dream') | |
, providerURL = prompt('Адрес магазина (тоже обязательно)', 'http://modstore.pro/extras/') | |
, userName = prompt('Имя пользователя', '') | |
, userKey = prompt('Ключ', '') | |
, desc = prompt('Описание', 'Магазин дополнений Simple Dream') | |
, win = MODx.load({ |
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 | |
/* | |
Output filter to retrieve names of TVs from a list of TV ids | |
[email protected] | |
Idea: | |
Use it with toogleTVSet plugin (included below) to handel different template options. | |
Usage: |
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
audio { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
font-size: 100%; | |
font: inherit; | |
} | |
audio { | |
width: 100%; | |
} |
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
/* Only extra small devices (phones, until 767px) */ | |
@media (max-width: @screen-xs-max) { | |
/* … */ | |
} | |
/* Small devices (tablets, 768px and up) */ | |
@media (min-width: @screen-sm-min) { | |
/* … */ | |
} |
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
<script type="text/javascript"> | |
window.onscroll = scroll; | |
function scroll () { | |
var scrollTop = window.pageYOffset; | |
console.log(scrollTop); | |
if( scrollTop > 363 ){ | |
document.getElementById('summary').style.top="20px"; | |
document.getElementById('summary').style.position="fixed"; | |
} | |
else |
OlderNewer