Issue: User-Preferences JSON file color_scheme
and theme
revert back to original Monokai and Default theme.
Possible: Issue with Sublime, Material theme or other package updates, need to check!
Hardware & Software:
magnet:?xt=urn:btih:0595273ab674e05131a757f69f494a4285b429aa&dn=Facebook%20Leak%20%5B2019%5D%5B533M%20Records%5D%5B106%20Countries%5D |
preloadPhotographs() { | |
let photos = this.photographs; | |
let preloaded = new Array(); | |
photos.forEach(photo => { | |
let image = new Image(); | |
image.src = photo.source; | |
image.onload = () => { | |
preloaded.push(image); | |
if (preloaded.length === photos.length) { | |
this.loading = false; |
<?php | |
/** | |
* Get User Metadata. | |
*/ | |
$user_id = wp_get_current_user()->ID; | |
$user_data = get_user_meta($user_id); | |
var_dump($user_data); | |
/* |
{ | |
"ignored_packages":["Vintage"], | |
"overlay_scroll_bars": "enabled", | |
"line_padding_top": 3, | |
"line_padding_bottom": 3, | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"indent_guide_options": [ "draw_normal", "draw_active" ], | |
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", | |
"theme": "Material-Theme.sublime-theme", |
'use strict'; | |
const gulp = require('gulp'); | |
const elixir = require('laravel-elixir'); | |
elixir( (mix) => { | |
mix.browserSync({ | |
files: ['./resources/templates/**/*.twig'], | |
proxy: 'example.dev' | |
}); |
# Deny all access if user is not logged into WordPress | |
# | |
# | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} ^.*$ | |
RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$ [NC] | |
RewriteRule . - [R=403,L] |
<?php | |
/** | |
* File field returning ID | |
*/ | |
if ( get_post_meta($post->ID, 'ENTER_KEY', true) ) { | |
$id = $cfs->get('ENTER_KEY'); | |
$src = wp_get_attachment_image_src($id, 'large'); | |
$alt = get_post_meta($id, '_wp_attachment_image_alt', true); | |
echo '<img src="' . esc_url($src[0]) . '" alt="' . $alt . '">'; |
/** | |
* Display all images without ALT tag | |
*/ | |
var images = jQuery('img'); | |
images.each(function(index, value) { | |
var el = jQuery(this); | |
var attr = el.attr('alt'); | |
if ( typeof attr !== typeof undefined && attr !== false ) { | |
if ( attr === '' ) { |