- SSH into your homestead machine:
homestead ssh
<?php | |
/* | |
*Сортировка вставкой | |
*/ | |
$numbers = [1,13,9,2,4,7,11,8,6,10,5,3,12]; | |
/** | |
* @return @var Array|Number sort | |
*/ | |
function insertSort(array $arr) | |
{ |
/* | |
*первращение из этого вида backgorund-color в backgorundColor | |
*@str строка | |
*return преобразованную строку | |
*/ | |
function camelize(str){ | |
var result = str.split("-"); | |
for (var i = 1; i<result.length; i++){ |
/** | |
* Выборать все книги каталога с ID = 2 | |
*/ | |
if (CModule::IncludeModule('highloadblock')) { | |
$id_catalog = 2; | |
$arHLBlock = Bitrix\Highloadblock\HighloadBlockTable::getById(4)->fetch(); | |
$obEntity = Bitrix\Highloadblock\HighloadBlockTable::compileEntity($arHLBlock); |
<!doctype html> | |
<html lang="{{ app()->getLocale() }}"> | |
<head> | |
<!-- Required meta tags --> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=0, shrink-to-fit=no"> | |
<meta name="csrf-token" content="{{ csrf_token() }}"> | |
<!-- Bootstrap CSS --> | |
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous"> | |
<link rel="stylesheet" href="{{asset('css/app.css')}}" > |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width,initial-scale=1.0"> | |
<title>Animate icon content</title> | |
<link rel="stylesheet" type="text/css" href="css/bootstrap.css"> | |
<link rel="stylesheet" type="text/css" href="css/main.css"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css"> |
/* Based on https://github.com/kenwheeler/slick/issues/187#issuecomment-59123524 */ | |
/* bootstrap hack: fix content width inside hidden tabs */ | |
.tab-content > .tab-pane, | |
.pill-content > .pill-pane { | |
display: block; /* undo display:none */ | |
height: 0; /* height:0 is also invisible */ | |
overflow: hidden; /* no-overflow */ | |
} | |
.tab-content > .active, | |
.pill-content > .active { |
<div class="container-fluid" style="border:1px solid black;"> | |
<div class ="row"> | |
<div class="col-12"> | |
<h1 class="text-center">Примеры наших работ</h1> | |
<div id="recipeCarousel" class="carousel slide w-100" data-ride="carousel"> | |
<div class="carousel-inner w-100" role="listbox"> | |
<div class="carousel-item row no-gutters active"> | |
<div class="col-3 float-left"><img class="img-fluid" src="http://placehold.it/350x280/222/fff?text=1"></div> | |
<div class="col-3 float-left"><img class="img-fluid" src="http://placehold.it/350x280/444?text=2"></div> |
<div class="container-fluid d-none d-md-block d-sm-none "> | |
<div class="row"> | |
<div class="col-md-3 col-lg-3"> | |
<div class="nav flex-column nav-pills" id="v-pills-tab" role="tablist" aria-orientation="vertical"> | |
<a class="nav-link active" id="v-pills-tb1-tab" data-toggle="pill" href="#v-pills-tb1" role="tab" aria-controls="v-pills-tb1" aria-selected="true">Баня 1</a> | |
<a class="nav-link" id="v-pills-tb2-tab" data-toggle="pill" href="#v-pills-tb2" role="tab" aria-controls="v-pills-tb2" aria-selected="false">Баня 2</a> | |
<a class="nav-link" id="v-pills-tb3-tab" data-toggle="pill" href="#v-pills-tb3" role="tab" aria-controls="v-pills-tb3" aria-selected="false">Баня 3</a> |
<?php | |
$to = 'email address'; | |
$subject = 'важная тема3434234'; | |
$message = "hellofgdfgdfgfdddddddddddddddddddddd54645645645654"; | |
$headers = array( | |
'From' => '[email protected]', | |
'Reply-To' => '[email protected]', | |
'X-Mailer' => 'PHP/' . phpversion() | |
); |