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 | |
namespace Database\Seeders; | |
use EvolutionCMS\Models\{SiteTemplate, SiteTmplvarTemplate, SiteTmplvar}; | |
use Illuminate\Database\Seeder; | |
class CreateTVSeeder extends Seeder | |
{ | |
protected function getTemplateAliasesToAssign() |
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 | |
#%$ set -e # Прерывание работы скрипта в случае ошибки | |
REPOSITORY=https://github.com/<username>/<project> | |
BRANCH=master | |
WORK_PATH=/path/to/this/script | |
PROJECT_PATH=/path/to/project/base/path | |
TEMP_DIR_NAME=`date +%Y-%m-%d_%H:%M:%S` | |
PHP_BIN=/opt/php74/bin/php |
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
!function() { | |
var wrap = document.querySelector('.tdb-autoload-wrap'), | |
base = location.href; | |
if (wrap) { | |
window.addEventListener('scroll', function(e) { | |
var wndTop = window.scrollY, | |
wndBottom = wndTop + window.innerHeight, | |
wndHeight = window.innerHeight, | |
currentArticle, |
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 | |
# basic script, before use need change logins,passwords in this script | |
# put this script in project folder and run: sh evo.sh | |
#variables | |
EVO_VERSION="3.x-dev" | |
INSTALL_TYPE=1 | |
DATABASE_TYPE="mysql" | |
DATABASE_SERVER="localhost" | |
DATABASE_NAME="DB" |
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 CFormCustomValidatorPhone | |
{ | |
public function GetDescription() | |
{ | |
return [ | |
'NAME' => 'custom_phone', // идентификатор | |
'DESCRIPTION' => 'Телефон', // наименование | |
'TYPES' => ['text'], // типы полей |
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 (!class_exists('ZipArchive')) { | |
echo 'ZipArchive not available!'; | |
} | |
ini_set('memory_limit', -1); | |
ini_set('display_errors', 1); | |
error_reporting(E_ALL); |
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 ($modx->event->name == 'OnDocFormSave') { | |
$document = $modx->getDocument($id); | |
if ($document['template'] == 6) { | |
$content = $modx->runSnippet('PageBuilder', [ | |
'docid' => $id, | |
'container' => 'page', | |
'placement' => 'tv', | |
'tv' => '11', |
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 | |
return [ | |
'title' => 'Слайд', | |
'show_in_templates' => 1, | |
'container' => 'main_cycle', | |
'templates' => [ |
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 | |
/** | |
* Bitrix24 | |
* | |
* Интеграция с Битрикс24 - создание лидов | |
* | |
* @category snippet | |
* @version 0.1 | |
* @internal @properties &url=URL;text; &user_id=Assigned user ID;text; | |
* @internal @installset sample |
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 | |
/** | |
* UploadSeparator | |
* | |
* Separate upload folders for each user group | |
* | |
* @category plugin | |
* @version 0.1.0 | |
* @author kassio | |
* @internal @properties &folders=Groups to folders relation;text;1==44w9mFQp||2==jG7h8-Mv &common_folder=Name of the common folder;text;common |
NewerOlder