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
FOR %a IN (*.png) DO convert "%a" -strip -depth 24 -define png:compression-filter=2 \ -define png:compression-level=9 -define png:compression-strategy=1 "opt\%a" | |
FOR %a IN (*.jpg) DO convert "%a" -sampling-factor 4:2:0 -strip -quality 85 -interlace JPEG -colorspace sRGB "opt\%a" |
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
.row { | |
display: flex; | |
flex-wrap: wrap; | |
justify-content:space-between; | |
} | |
.row:after { | |
content: ""; | |
flex: auto; | |
flex-basis: 208px; //width of the other flex-items for right one-row display; if necessary | |
} |
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
function filter_projects_by_taxonomies( $post_type, $which ) { | |
if ( 'project' !== $post_type ) //your post type name instead of 'project' | |
return; | |
$taxonomies = array( 'type' ); //your post type taxonomy name instead of 'type' | |
foreach ( $taxonomies as $taxonomy_slug ) { | |
$taxonomy_obj = get_taxonomy( $taxonomy_slug ); | |
$taxonomy_name = $taxonomy_obj->labels->name; | |
$terms = get_terms( $taxonomy_slug ); |
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
.checkbox-wrapper | |
input(type="checkbox", id="checkboxId", name="checkboxName") | |
label(for="checkboxId") м. Семеновская | |
span |
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
.html-modal-opened { | |
padding-right: calc(100vw - 100%); | |
} | |
.body-modal-opened { | |
overflow-y: hidden; | |
} | |
.modal { | |
display: none; |
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
function initCustomSelects(selectors) { | |
$(selectors).each(function(){ | |
var $this = $(this), numberOfOptions = $(this).children('option').length; | |
$this.addClass('select-hidden'); | |
$this.wrap('<div class="select"></div>'); | |
$this.after('<div class="select-styled"></div>'); | |
var $styledSelect = $this.next('div.select-styled'); | |
$styledSelect.text($this.children('option').eq(0).text()); |
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
$(block) | |
.css("display", "flex") | |
.hide() | |
.fadeIn(); |
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
<title><?php showMeta('title');?></title> | |
<meta name="description" content="<?php showMeta('description');?>"> |
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
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
NewerOlder