Skip to content

Instantly share code, notes, and snippets.

@chupzzz
chupzzz / variables.styl
Created August 30, 2017 07:20 — forked from shengt/variables.styl
Media queries variables for stylus
// Media queries breakpoints
// --------------------------------------------------
// Extra small screen / phone
$screen-xs ?= 480px
$screen-phone ?= $screen-xs
// Small screen / tablet
$screen-sm ?= 768px
$screen-tablet ?= $screen-sm
@chupzzz
chupzzz / taxonomy_node_count.php
Last active July 7, 2017 18:26
Drupal 7: Get Taxonomy node count
<?php
/**
* @param tid
* Term ID
* @param child_count
* TRUE - Also count all nodes in child terms (if they exists) - Default
* FALSE - Count only nodes related to Term ID
* @param node_type
* Count only nodes of one type (string).
*/