Skip to content

Instantly share code, notes, and snippets.

View progreccor's full-sized avatar
👋

Vladimir Progreccor progreccor

👋
View GitHub Profile
@proweb
proweb / icon.js
Last active November 17, 2021 09:34
VK render in Yootheme builder
UIkit.icon.add('vk','<svg height="20px" style="enable-background:new 0 0 20 20;" version="1.1" viewBox="0 0 512 512" width="20px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="comp_x5F_364-vk"><g><path d="M475.515,137.899c3.16-10.674,0-18.53-15.2-18.53h-50.297c-12.809,0-18.702,6.746-21.861,14.261 c0,0-25.617,62.422-61.825,102.899c-11.698,11.699-17.078,15.457-23.482,15.457c-3.158,0-8.027-3.758-8.027-14.432v-99.655 c0-12.809-3.588-18.53-14.176-18.53h-79.075c-8.027,0-12.809,5.978-12.809,11.528c0,12.125,18.104,14.943,19.983,49.101v74.123 c0,16.225-2.904,19.212-9.308,19.212c-17.079,0-58.581-62.678-83.174-134.409c-4.952-13.919-9.821-19.555-22.715-19.555H43.25 c-14.346,0-17.25,6.746-17.25,14.261c0,13.32,17.079,79.502,79.502,166.945c41.587,59.689,100.167,92.056,153.453,92.056 c32.022,0,35.951-7.173,35.951-19.555c0-57.045-2.903-62.425,13.152-62.425c7.428,0,20.237,3.757,50.127,32.534 c34.155,34.158,39.792,49.445,58.92,49.445h50.297c14.347,0,21.606-7.173,17.421
@Septdir
Septdir / joomla-form-uikit.php
Last active October 11, 2019 11:15
Set uikit classes to joomla form
<?php
// Set uikit form
foreach ($this->form->getFieldsets() as $key => $fieldset)
{
foreach ($this->form->getFieldset($key) as $field)
{
$name = $field->fieldname;
$group = $field->group;
$type = strtolower($field->type);
$class = $this->form->getFieldAttribute($name, 'class', '', $group);
@Septdir
Septdir / default.php
Created July 15, 2019 14:41
com_content artcle for yootheme pro
<?php
/**
* @package Septdir Workshop Package
* @version __DEPLOY_VERSION__
* @author Septdir Workshop - septdir.com
* @copyright Copyright (c) 2018 - 2019 Septdir Workshop. All rights reserved.
* @license GNU/GPL license: https://www.gnu.org/copyleft/gpl.html
* @link https://www.septdir.com/
*/
@Septdir
Septdir / donate-solution.html
Last active August 16, 2019 21:21
Simple donate form for Yandex.Money and PayPal.Based on uikit3
<div class="uk-form uk-form-horizontal" donate-form="form">
<div class="uk-margin">
<div class="uk-form-label">Сервис</div>
<div class="uk-form-controls">
<div class="uk-button-group">
<a class="uk-button uk-button-default" donate-form="service_button"
data-service="yandex">Яндекс.Деньги</a>
<a class="uk-button uk-button-default" donate-form="service_button" data-service="paypal">PayPal</a>
</div>
<input type="hidden" donate-form="service">
@AlekVolsk
AlekVolsk / breadcrumb_schema.html
Last active April 6, 2022 10:10
Correct markup for breadcrumbs
<ul itemscope itemtype="http://schema.org/BreadcrumbList">
<li itemscope itemprop="itemListElement" itemtype="http://schema.org/ListItem">
<a title="Наименование сайта" itemprop="item" content="https://site.ru/" href="/">
<span itemprop="name">Главная</span>
</a>
<meta itemprop="position" content="1">
</li>
<li itemscope itemprop="itemListElement" itemtype="http://schema.org/ListItem">
<a title="Наименование раздела" itemprop="item" content="https://site.ru/category" href="/category">
<span itemprop="name">Раздел</span>
@Septdir
Septdir / joomla-ajax.js
Last active April 5, 2020 17:14
Ajax request for joomla
let request = new XMLHttpRequest(),
requestUrl = '', // Указываем url запроса
formData = new FormData(); // Перадаем <form> или просто добавляем ниже через append что нужно
request.open('POST', requestUrl);
request.send(formData);
request.onreadystatechange = function () {
if (this.readyState === 4 && this.status === 200) {
let response = false;
try {
![Иллюстрация к проекту](https://github.com/jon/coolproject/raw/master/image/image.png)
![Image alt](https://github.com/{username}/{repository}/raw/{branch}/{path}/image.png)
{username} — ваш ник на ГитХабе;
{repository} — репозиторий где хранятся картинки;
{branch} — ветка репозитория;
{path} — путь к месту нахождения картинки.