Skip to content

Instantly share code, notes, and snippets.

View yaroslavthedev's full-sized avatar

Yaroslav U yaroslavthedev

View GitHub Profile
yaroslavthedev / gist:12232932d6aad88f3c32cecc3652f63d
Created April 25, 2017 22:27
Redux WP Framework. A simple working code example
In Config file find:
$opt_name = 'your_opt_name';
In functions.php or in theme:
global $your_opt_name;
echo $your_opt_name['webFonts'];
Or you can debug to get full info:
yaroslavthedev / gist:19ec990fe6b2669a33df1bcbe008abcb
Created March 12, 2017 16:42
Скачать сайт используя wget / Download website using wget
wget --page-requisites -r -l 10
yaroslavthedev / gist:356067ab3057242f932231727f9dca30
Created November 11, 2016 17:01
Включить кеширование через .htaccess / Enable the cache using .htaccess
# Включаем кэширование через .htaccess
# Автор: Nc_Soft
# 06.09.10
FileETag MTime Size
<ifmodule mod_expires.c>
<filesmatch ".(jpg|gif|png|css|js)$">
ExpiresActive on
ExpiresDefault "access plus 1 year"