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
@media screen { | |
/** | |
* rtl grid | |
*/ | |
.row.rtl { | |
direction: rtl; | |
} | |
.row.rtl .col { | |
float: right; | |
margin-right: auto; |
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
add_action('wp_trash_post', 'restrict_post_deletion', 10, 1); | |
add_action('before_delete_post', 'restrict_post_deletion', 10, 1); | |
function restrict_post_deletion($post_id) { | |
if($post_id == 2632) wp_die('This page cannot be deleted'); | |
} |
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
/** | |
* Google tagmanager | |
*/ | |
add_action( 'wp_head', 'head_scripts' ); | |
function head_scripts() { ?> | |
<!-- Google Tag Manager --> | |
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | |
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | |
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | |
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); |
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
/** | |
* FCK | |
*/ | |
img.fr-dii.fr-fil { | |
float: left; | |
margin: 5px 5px 5px 0; | |
max-width: calc(100% - 5px); | |
} | |
img.fr-dii.fr-fir { | |
float: right; |
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
let d = ''; | |
$('.Grayed').each(function(){ | |
d = $(this).val().split('_').join(' '); | |
$(this).next().next().val(d); | |
$(this).next().next().keyup(); | |
}); |
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
sass --watch --sourcemap=none style.scss:style.css |
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
// const item = require('./data/data.json'); | |
const allItems = require('./data/data-hr.json'); | |
const fs = require('fs'); | |
let states = []; | |
const dir = "./data"; | |
try { | |
const files = fs.readdirSync(dir); | |
let filesProcessed = 0; |
OlderNewer