Skip to content

Instantly share code, notes, and snippets.

@Retter241
Retter241 / yawebmaster.php
Created January 18, 2024 20:34 — forked from andronex/yawebmaster.php
Яндекс Вебмастер, добавление поддоменов в панель (юзать на MODX)
<?php
if (!isset($modx)) {
define('MODX_API_MODE', true);
while (!isset($modx) && ($i = isset($i) ? --$i : 10)) {
if (($file = dirname(!empty($file) ? dirname($file) : __FILE__) . '/index.php') AND !file_exists($file)) {
continue;
}
require_once $file;
}
if (!is_object($modx)) {
@Retter241
Retter241 / error-404-page-not-found-80s-hacker-theme.markdown
Created September 25, 2023 11:31
Error 404: Page not found – 80s hacker theme
@Retter241
Retter241 / cyberpunk-error-page.markdown
Created September 25, 2023 11:30
Cyberpunk Error page
@Retter241
Retter241 / PageTemplates_Faq.php
Created November 8, 2022 19:08 — forked from pxlrbt/PageTemplates_Faq.php
Filament Template
<?php
namespace App\Filament\PageTemplates;
use Filament\Forms\Components\Repeater;
use Filament\Forms\Components\RichEditor;
use Filament\Forms\Components\TextInput;
final class Faq
{
@Retter241
Retter241 / faq_section.html
Last active April 29, 2021 07:38
Faq block ( front )
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
/*
* Добавление поля экспресс доставка у товара
* https://wpruse.ru/woocommerce/custom-fields-in-products/
*/
add_action( 'woocommerce_product_options_general_product_data', 'art_woo_add_custom_fields' );
function art_woo_add_custom_fields() {
global $product, $post;
echo '<div class="options_group">';// Группировка полей
// Чекбокс
@Retter241
Retter241 / curlInit_once.php
Last active April 14, 2020 13:35
functions
<?php
/**
* Curl init function
* @param (string)$url
* @param (array)$params
* @return $response
*/
function curlInit($url = '', $params = array())
{