Skip to content

Instantly share code, notes, and snippets.

View frontend-coder's full-sized avatar
💭
WordPress, layout templates, smile and wine

frontend-coder frontend-coder

💭
WordPress, layout templates, smile and wine
View GitHub Profile
@frontend-coder
frontend-coder / index.html
Created October 25, 2023 19:28
Мультилевел меню #menu
<nav>
<ul class="topmenu">
<li><a href="#">munu 1 levels</a>
<ul class="submenu">
<li><a href="#">menu 2 level</a></li>
<li><a href="#">menu 2 level</a>
<ul class="submenu">
<li><a href="#">menu 3 level</a></li>
@frontend-coder
frontend-coder / Создание ссылок в документе
Last active September 13, 2023 17:19
Как вставить ссылки в документ html #links
<a href="tel: +74951234567">+7 (495) 123-45-67</a>
<a href="mailto: example@mail.ru">example@mail.ru</a>
<a href="skype: someskype?call">someskype</a>
<a href="skype:SkypeUser">someskype</a>
<a href="#metka">анкор</a> jn place <a name="metka"></a>
<a href="whatsapp://send?phone=79xxxxxxxxx">
<a href="viber://add?number=номер телефона">
<a href="tg://resolve?domain=имя">
@frontend-coder
frontend-coder / instraction.txt
Created January 21, 2023 17:05
Нейроносеть #neiroset
Нейроносеть
Перед этими промтами нужно вставить команду imagine prompt через / и описание изображения, которое хочешь получить от бота, на английском языке
photorealistic, cinematic composition, cinematic high detail, ultra realistic, cinematic lighting, Shot on 50mm lense, Ultra- Wide Angle, Depth of Field, hyper-detailed, beautifully color-coded, beautifully color graded, Unreal Engine, Cinematic, Color Grading, Editorial Photography, Photography, Photoshoot, Shot on 70mm lense, Depth of Field, DOF, Tilt Blur, Shutter Speed 1/1000, F/22, White Balance, 32k, Super-Resolution, Megapixel, ProPhoto RGB, VR, Lonely, Good, Massive, Halfrear Lighting, Backlight, Natural Lighting, Incandescent, Optical Fiber, Moody Lighting, Cinematic Lighting, Studio Lighting, Soft Lighting, Volumetric, Contre-Jour, Beautiful Lighting, Accent Lighting, Global Illumination, Screen Space Global Illumination, Ray Tracing Global Illumination, Optics, Scattering, Glowing, Shadows, Rough, Shimmering, Ray Tracing Reflections, Lumen
@frontend-coder
frontend-coder / Options
Last active January 10, 2023 09:56
Настройки VSC #vsc
{
"bracket-pair-colorizer-2.colors": [
"#E74C3C",
"#F1C40F",
"#00FFFF",
"#00FF00",
"#FF4500",
"#B71C1C",
"#2E7D32",
"#BF360C",
@frontend-coder
frontend-coder / 22.css
Last active January 9, 2023 12:26
Создать адаптивний миксин #adaptive
@media(min-width:576px) {
.container {
max-width: 100%;
padding-left:0.75rem;
padding-right:0.75rem;
}
}
@frontend-coder
frontend-coder / Simple Jquery Accordion
Created August 12, 2019 06:11
Simple Jquery Accordion #accordion
<div>
<div class="acc-btn">Button 1</div>
<div class="acc-content">
Content 1
</div>
</div>
<div>
<div class="acc-btn">Button 2</div>
<div class="acc-content show">
Content 2
@frontend-coder
frontend-coder / single.php
Last active August 8, 2022 15:23
47. Підключити шаблон видображення комментаріев в темі #wordpress
<?php
if( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
@frontend-coder
frontend-coder / function.php
Last active August 7, 2022 19:06
46. Створити віджет Share на сторінці поста #wordpress
function ale_share($type = 'fb') {
echo ale_get_share($type);
}
/**
* Get link for sharing
*
* @param string $type
* @return string
*/
@frontend-coder
frontend-coder / functuion.php
Last active August 7, 2022 16:52
45. Как изменить количество тумб постов на одной страницы при пагинации #wordpress
function domain_set_posts_per_page($query) {
$domein_custom_post_page = '';
// отримати значення кількості постів з адмінки
if(domain_get_option('domein_posts_per_page') ) {
$domein_custom_post_page = domain_get_option('domein_get_option');
}
if( !empty($domein_custom_post_page) ) {
if(!is_admin() && $query->is_main_query() && is_post_type_archive('name_custom_post_type') ) {
@frontend-coder
frontend-coder / index.php
Last active August 3, 2022 12:33
44. Вивід постів в single в залежності від формата постів #wordpress
<?php
if( get_the_post_thumbnail($post->ID, 'post-featured') ) { ?>
<div class="featured_image">
<?php
$domain_post_format = get_post_format();
if( $domain_post_format == 'video' ) {
echo get_the_post_thumbnail($post->ID, 'post-featured');
get_template_part('partials/format/video');
} elseif( $domain_post_format == 'gallery' ) {
get_template_part('partials/format/gallery', '', 'post-featured');