This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3.6 | |
# dror - datetime format edition | |
# Based on https://gist.github.com/dansku/9040240#file-dropboxorganize-py | |
# 2018-05-14: convert to Pathlib; remove .encode('utf-8'); add alt output template | |
__verstion__ = '0.5.2' | |
import os.path | |
import glob | |
from datetime import date | |
from pathlib import Path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def a(): | |
print("a") | |
def b(): | |
print("b") | |
def default(): | |
print("default") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* header__search {{{3 */ | |
/* use postcss-next */ | |
&__search { | |
text-align: right; | |
cursor: pointer; | |
position: relative; | |
@nest & .screen-reader-text { | |
position: absolute; | |
left: -9999px; | |
top: -99999px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="header__contacts col-9 col-m-12"> | |
<div class="col-8 col-m-12"> | |
<?php $_phone = get_field('site_phone', 'options'); | |
$_tel = preg_replace("/[^0-9]/", "", $_phone); ?> | |
<p><a href="tel:+<?php echo $_tel;?>" class="phone"><?php echo $_phone; ?></a></p> | |
<p><?php the_field('site_adress', 'options'); ?></p> | |
</div> | |
<div class="col-4 col-m-12 header__btns"><a class="btn js-mopen" href="#modal">Заказать консультацию</a></div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if( function_exists('acf_add_options_page') ) { | |
acf_add_options_page(array( | |
'menu_title' => 'Настройки контента', | |
'menu_slug' => 'theme-general-settings', | |
'capability' => 'edit_posts', | |
//'icon_url' => '/wp-content/themes/tt_landing/favicon.png', | |
'post_id' => 'options', | |
'position' => 2, | |
'redirect' => true | |
)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (1): ?> | |
<h1 class="title title-debug" style="position: fixed; bottom:20px; right: 0; margin: 16px 0; padding: 10px; border-radius: 8px 0 0 8px; font-size: 16px; background-color: #d4e0c1; opacity: .42; z-index: 9999; user-select: none; text-shadow: 1px 1px 0px green, 1px 2px 3px rgba(0,255,0,.3), 3px 3px 3px hsla(173, 67%,47%,.75), -1px -1px 0px red, -3px -3px 3px rgba(255,0,0,.3);"> | |
<!-- debug --> | |
<?php global $template; echo basename($template); ?> | |
</h1> | |
<?php endif; ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remove_filter( 'the_content', 'wpautop' ); | |
remove_filter( 'the_content', 'wptexturize' ); | |
remove_filter( 'the_excerpt', 'wpautop' ); | |
remove_filter( 'comment_text', 'wpautop' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// show tax id's in admin panel: | |
// https://wordpress.stackexchange.com/a/77536 | |
foreach ( get_taxonomies() as $taxonomy ) { | |
add_action( "manage_edit-${taxonomy}_columns", 't5_add_col' ); | |
add_filter( "manage_edit-${taxonomy}_sortable_columns", 't5_add_col' ); | |
add_filter( "manage_${taxonomy}_custom_column", 't5_show_id', 10, 3 ); | |
} | |
add_action( 'admin_print_styles-edit-tags.php', 't5_tax_id_style' ); | |
function t5_add_col( $columns ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.credits | |
{ | |
display: inline-block; | |
float: right; | |
color: var(--cl-credit); | |
} | |
.prostor | |
{ | |
color: var(--cl-credit); |