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
// Backgrounds | |
.row{ | |
&.main-buttons{ | |
background: $primary-background-color; | |
margin-bottom: 70px; | |
.blocks-container{ |
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() { | |
var users = [ | |
{username: 'User 1', fullname: 'User Name 1'}, | |
{username: 'User 2', fullname: 'User Name 2'}, | |
{username: 'User 3', fullname: 'User Name 3'}, | |
]; | |
$( 'textarea' ).suggest('@', { | |
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
.dropdown{ | |
position: relative; | |
} | |
.dropdown-menu{ | |
position: absolute; | |
top: 100%; | |
left: 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
add_filter('manage_posts_columns', 'my_columns'); | |
function my_columns($columns) { | |
$columns['status'] = 'Status płatności'; | |
return $columns; | |
} | |
add_action('manage_posts_custom_column', 'my_show_columns'); | |
function my_show_columns($name) { | |
global $post; | |
switch ($name) { |
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 | |
/** | |
* Return an ID of an attachment by searching the database with the file URL. | |
* | |
* First checks to see if the $url is pointing to a file that exists in | |
* the wp-content directory. If so, then we search the database for a | |
* partial match consisting of the remaining path AFTER the wp-content | |
* directory. Finally, if a match is found the attachment ID will be | |
* returned. | |
* |
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 | |
/* | |
* dl-file.php | |
* | |
* Protect uploaded files with login. | |
* | |
* @link http://wordpress.stackexchange.com/questions/37144/protect-wordpress-uploads-if-user-is-not-logged-in | |
* | |
* @author hakre <http://hakre.wordpress.com/> | |
* @license GPL-3.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
<?php | |
class EmailConfirmation{ | |
// Create prefix | |
const PREFIX = 'email-confirmation-'; | |
public static function send($to, $subject, $message, $headers){ | |
$token = sha1(uniqid()); | |
$oldData = get_option(self::PREFIX .'data') ?: array(); |
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
img{ | |
-webkit-transition: all 3s ease; | |
-moz-transition: all 3s ease; | |
-o-transition: all 3s ease; | |
transition: all 3s ease; | |
} | |
article:hover img{ | |
-webkit-transform: scale(1.1); |
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
add_action( 'wp_head', function() { | |
?> | |
<script> | |
(function($) { | |
$(document).on('facetwp-loaded', function() { | |
var url = window.location.pathname; | |
return history.pushState(null, null, url.replace(/&view=.*(&?)/, '$1')); | |
}); | |
})(jQuery); |
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
<div id="main-slider" class=""><div class="flexslider"><ul class="slides"><!--fwp-loop--> | |
<li data-thumb="http://bedrijfsvaatwassers.buro210.com/wp-content/uploads/2017/06/slider-2.jpg" style='background-position: center;background-size: cover;background-repeat: no-repeat;background-image: url(http://bedrijfsvaatwassers.buro210.com/wp-content/uploads/2017/06/slider-2.jpg);'> | |
<div class='slider-content-container'> | |
<div class='full-row'> | |
<div class='slider-content'> | |
<h1 style="text-align: center;"><strong>Welkom</strong> bij bedrijfsvaatwassers.nl</h1> | |
<p style="text-align: center;">Bedrijfsvaatwassers.nl levert uit voorraad uitstekende professionele horeca vaatwassers en aanverwante producten tegen de scherpste prijs. Onze vaatwassers laten wij in Italië maken bij o.a. Silanos Krupps en Aristarco. Maar ook merken als Meiko, Hobart, Ecomax en Bar Aid ontbreken niet. Al deze merken zijn al jaren lang specialisten op vaatwas gebied. Samen met onze 35 jaar ervaring heeft dit geleid tot een hoogw |