Skip to content

Instantly share code, notes, and snippets.

View ulziibat-n's full-sized avatar
💭
Everyday Hard Working ...

Ulziibat Nansaltsog ulziibat-n

💭
Everyday Hard Working ...
View GitHub Profile
@ulziibat-n
ulziibat-n / aricolor.md
Created December 18, 2020 10:48 — forked from aristath/aricolor.md
ariColor PHP Library for WordPress plugins and themes

ariColor is a PHP library that will hopefully help WordPress theme developers do their job easier and more effectively.

It does not provide you with methods like lighten(), darken() etc. Instead, what it does is give you the ability to create these yourself with extreme ease by giving you all the properties of a color at hand, and allowing you to manipulate them however you see fit.

Example:

First, let's create our color object:

$color = ariColor::newColor( '#049CBE', 'hex' );
if ( ! function_exists( 'dimative_the_pagination_default' ) ) {
/**
* Default Pagination
*
* @see https://www.billerickson.net/custom-pagination-links/
*
* @param int $max_num_pages Max num pages.
* @param string $classes Pagination Classes.
*/
function dimative_the_pagination_default( $max_num_pages = null, $classes = '' ) {
@ulziibat-n
ulziibat-n / liquid-input-settings.code-snippets
Last active July 17, 2023 10:25
Snippets - Shopify input settings
{
"checkbox - Input settings for Shopify": {
"prefix": [
"liquid",
"shopify",
"liquid_checkbox"
],
"scope": "liquid",
"body": [
"{",
@ulziibat-n
ulziibat-n / liquid-snippets.code-snippets
Created March 6, 2023 14:35
Snippets - Shopify liquid
{
"for": {
"prefix": [
"liquid",
"liquid-for"
],
"scope": "liquid",
"body": [
"{% for ${1:item} in ${2:collection} %}",
" ${3:content}",