This file contains 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
1. Dynamic font awesome icon | |
========================== | |
<div class="icon"> | |
<i class="fa fa-<?php echo get_post_meta($post->ID,'s_icon',true); ?>"></i> | |
</div> | |
2. WP trim words | |
========================== | |
<?php wp_trim_words( $text, $num_words = 55, $more = null ); ?> | |
<?php echo wp_trim_words( get_the_content(), 40, '...' ); ?> |
This file contains 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
Here is a list of scopes to use in Sublime Text 2 snippets - | |
ActionScript: source.actionscript.2 | |
AppleScript: source.applescript | |
ASP: source.asp | |
Batch FIle: source.dosbatch | |
C#: source.cs | |
C++: source.c++ | |
Clojure: source.clojure | |
CoffeeScript: source.coffee |
This file contains 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
—– BEGIN LICENSE —– | |
TwitterInc | |
200 User License | |
EA7E-890007 | |
1D77F72E 390CDD93 4DCBA022 FAF60790 | |
61AA12C0 A37081C5 D0316412 4584D136 | |
94D7F7D4 95BC8C1C 527DA828 560BB037 | |
D1EDDD8C AE7B379F 50C9D69D B35179EF | |
2FE898C4 8E4277A8 555CE714 E1FB0E43 | |
D5D52613 C3D12E98 BC49967F 7652EED2 |
This file contains 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
Important Blog for Flexbox: | |
=========================== | |
1. flex-basis: http://gedd.ski/post/the-difference-between-width-and-flex-basis/ | |
============== | |
2. complete guide to flexbox: https://css-tricks.com/snippets/css/a-guide-to-flexbox/ | |
============================= |
This file contains 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
Container Properties: | |
===================== | |
1. flex-direction | |
2. justify-content | |
3. flex-wrap | |
4. align-items | |
5. align-content | |
This file contains 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
A Note On Browser Support: | |
========================== | |
1. Subject:Flexbox: How to Deal with Older Browsers? | |
____________________________________________________ | |
https://medium.com/css-mine/flexbox-how-to-deal-with-older-browsers-fbf6eb8c7a65 | |
2. Browser Support Information and Their Prefixes: | |
__________________________________________________ |
This file contains 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
Emmet | Cheat Sheet | |
==================== | |
Margin and Padding: | |
==================== | |
.margin-and-padding{ | |
margin: 0; | |
padding: 0; | |
} |
This file contains 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
/*============================== | |
Sass Advanced Media Query | |
===============================*/ | |
@mixin mq($value){ | |
@if $value == 'medium' { | |
@media only screen and (min-width: 992px) and (max-width: 1200px) { | |
@content; | |
}/* Large devices (desktops, 992px and up) */ |
This file contains 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 ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly. | |
// =============================================================================================== | |
// ----------------------------------------------------------------------------------------------- | |
// METABOX OPTIONS | |
// ----------------------------------------------------------------------------------------------- | |
// =============================================================================================== | |
$options = array(); | |
// ----------------------------------------- |