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 ...
  • Mongolia
View GitHub Profile
@ulziibat-n
ulziibat-n / elementor-condition-example.php
Created September 10, 2019 14:01 — forked from Sharifur/elementor-condition-example.php
elementor condition example, elementor multiple condition example
<?php
class Elementor_Custom_Widget extends \Elementor\Widget_Base {
/*=================================
Single condition:-
====================================*/
/*=================================
Credit: Eqbal Rony
original gist: https://github.com/iqbalrony/elementor-conditions/blob/master/conditions.php
====================================*/
@ulziibat-n
ulziibat-n / elementor-controls.code-snippets
Last active September 10, 2019 10:56
Elementor Controls snippets for VS Code
{
"elementor control slider": {
"prefix": [
"elementor",
"control",
"slider"
],
"body": [
"$this->add_control(",
" '${1:value}',",
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(
@ulziibat-n
ulziibat-n / gist:13e66a99842a57ae79a3b6c6192cfc53
Last active February 18, 2019 02:51
win 10+ deepin + PhoenixOS
menuentry 'Phoenix OS' --class android-x86 {
insmod part_gpt
set root='hd0,3'
search --file --no-floppy --set=root /PhoenixOS/system.img
linux /PhoenixOS/kernel root=/dev/sda3 androidboot.hardware=Android_x86 androidboot.selinux=permissive CMDLINE
initrd /PhoenixOS/initrd.img
}