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
# >>>>>>>>> | |
# script to copy this structure - TO NEW DIRECTORY: | |
# slike1 | |
# ├── 12063DSC04233.JPG | |
# ├── 27454DSC04230.JPG | |
# └── sub1 | |
# ├── 15997DSC04140.JPG | |
# └── sub12 | |
# └── 25022DSC04150.JPG |
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
{ | |
"$schema": "http://schemas.wp.org/trunk/theme.json", | |
"version": 2, | |
"settings": { | |
"layout": { | |
"contentSize": "750px" | |
}, | |
"color": { | |
"background": false, | |
"custom": false, |
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 | |
// Define a constant to use with html emails | |
define("HTML_EMAIL_HEADERS", array('Content-Type: text/html; charset=UTF-8')); | |
// @email - Email address of the reciever | |
// @subject - Subject of the email | |
// @heading - Heading to place inside of the woocommerce template | |
// @message - Body content (can be HTML) | |
function send_email_woocommerce_style($email, $subject, $heading, $message) { |
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
#CACHE | |
set $condition ''; | |
if ($request_method = POST){ | |
set $condition "null"; | |
} | |
if ($query_string) { | |
set $condition "null"; | |
} | |
if ($http_cookie ~* (comment_author|comment_author_|wordpress_logged_in|wp_woocommerce_session)) { | |
set $condition "null"; |
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
// attach that to everywhere | |
add_action( 'template_redirect', function (){ | |
$w = new WP_Query( array( | |
'post__in' => array( 823, 817 ), | |
'post_type' => 'any' , | |
// 'posts_per_page' => 100, | |
// 'offset' => 400 | |
)); |
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
$(document).ready(function(e){ | |
// local storage var | |
var ls = localStorage; | |
var now = new Date(); | |
var old = ( ls.getItem( 'cachetime' ) ) ? new Date( JSON.parse ( ls.getItem( 'cachetime' ) ) ) : new Date( '2000' ); | |
var dis = now - old; | |
var day = dis / (1000 * 60 * 60 * 24 ) ; | |
// show popup when EITHER: | |
// 1) popup never shown before (original first visit) | |
// 2) or if more then TIME passed after shown |
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
Script by https://wpindexfixer.tools.managedwphosting.nl | |
These are the queries for WP version 5.3.2 | |
You need to replace wp_ with your site prefix — could be wp_ or something | |
-- Starting with wp_users | |
DELETE FROM wp_users WHERE ID = 0; | |
ALTER TABLE wp_users ADD PRIMARY KEY (ID); | |
ALTER TABLE wp_users ADD KEY user_login_key (user_login); |
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
<!-- "Rocket Man" by Chris Gannon https://cdpn.io/EjVyXN --> | |
<svg id="motionPath" viewBox="-20 0 557 190"> | |
<path id="path" d="M514.848,240.268 C514.848,240.268 462.662,309.218 412.151,283.486 360.531,257.176 424.152,258.407 369.053,201.105 311.913,141.681 165.959,196.156 231.489,257.236 266.054,289.453 337.87,332.206 321.33799,225.90001 315.616,189.108 133.021,268.325 123.252,316.289 110.777,377.48 227.33,329.843 281.915,305.464 335.673,281.454 173.976,283.356 86.665,300.815 6.436,316.844 20.851,252.546 20.851,252.546 "/> | |
<path id="path2" d="M6.931,91.47 C6.931,91.47 144.087,127.04 105.017,130.397 47.303,135.349 93.65999,62.66001 168.74799,36.56901 231.32099,14.82701 180.40899,65.70901 245.79799,65.03901 312.60199,64.35401 333.10199,116.64001 307.50799,134.80901 277.14599,156.36201 141.60999,64.21301 131.83799,112.16901 119.36699,173.36601 216.199,184.68 268.085,214.373 326.136,247.594 392.043,78.874 409.064,75.233 424.067,72.023 505.879,63.687 505.879,63.687 " /> | |
<image class="astronaut" xlink: |
NewerOlder