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
<?php | |
global $wpdb; | |
$limit = 0; | |
$year_prev = null; | |
$months = $wpdb->get_results("SELECT DISTINCT MONTH( post_date ) AS month , YEAR( post_date ) AS year, COUNT( id ) as post_count FROM $wpdb->posts WHERE post_status = 'publish' and post_date <= now( ) and post_type = 'post' GROUP BY month , year ORDER BY post_date DESC"); | |
foreach($months as $month) : | |
$year_current = $month->year; | |
if ($year_current != $year_prev){ | |
if ($year_prev != null){?> | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/* From Chis Coyier: https://css-tricks.com/attribute-selectors/ */ | |
/* | |
Attribute exactly equals certain value | |
<h1 rel="external">Attribute Equals</h1> | |
*/ | |
h1[rel="external"] { color: red; } | |
/* | |
Attribute contains certain value somewhere |
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 developers: WordPress debugging mode. | |
* | |
* Change this to true to enable the display of notices during development. | |
* It is strongly recommended that plugin and theme developers use WP_DEBUG | |
* in their development environments. | |
*/ | |
// Enable WP_DEBUG mode | |
define('WP_DEBUG', true); |
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
orig: <iframe src="https://www.youtube.com/embed/%id%"?rel=1&autoplay=1&showinfo="0" frameborder="no"></iframe> | |
fix: <iframe src="https://www.youtube.com/embed/%id%?rel=1&autoplay=1&showinfo=0" frameborder="no"></iframe> |
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
Show hidden characters
{ | |
"bootstrapped": true, | |
"in_process_packages": | |
[ | |
], | |
"installed_packages": | |
[ | |
"1337 Color Scheme", | |
"ACF Snippets", | |
"Color Highlighter", |
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
# Option 1 | |
public/ | |
src/ | |
index.html | |
img/ | |
js/ | |
app.js | |
scss/ | |
dist/ |
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
/** | |
* TimeOuts | |
* ======== | |
* | |
* Use the functions below to handle mutliple timeouts | |
* | |
* New timeout | |
* timeOuts['ID'] = setTimeout(someFunction('values'), 250); | |
* | |
* Clear specific timeout |
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
gulp.task('scripts_insert', ['vendor_scripts', 'site_scripts'], function () { | |
var transform = function(filepath, file, i, length) { | |
return '<script src="' + filepath + '" async></script>'; | |
}; | |
return gulp.src(paths.js.template) | |
.pipe(inject(gulp.src(paths.js.dest.lib + '/*.js', {read: false}), {addRootSlash: false, transform: transform})) | |
.pipe(gulp.dest(base_paths.templates)); |
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
.wrapped-item { | |
display: inline-block; | |
*display: inline; | |
*zoom: 1; | |
text-overflow: ellipsis; | |
-ms-text-overflow: ellipsis; | |
white-space: nowrap; | |
overflow: hidden; | |
word-wrap: normal; | |
max-width: 100px; |
OlderNewer