Skip to content

Instantly share code, notes, and snippets.

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.bxslider.min.js"></script>
.bx-wrapper .testimonials-thumbnail{ margin: 0px 0px 15px; }
.bx-wrapper .testimonials-title{ text-align: center; margin: 25px 15px 3px; font-size: 24px; line-height: 1; }
.bx-wrapper .testimonials-carousel-thumbnail{ max-width: 35%; float: left; margin-right: 20px; }
.bx-wrapper .testimonials-carousel-thumbnail img{ display: block; margin-right: 20px;width: 100px;}
.bx-wrapper .testimonials-carousel-context{ overflow: hidden; }
.bx-wrapper .testimonials-name{ font-size: 18px; margin-bottom: 15px; color:#000000; font-weight:400;}
.bx-wrapper span{ font-size: 11px; margin-left:10px; color:#aaa; font-family: Georgia, Arial, Helvetica, sans-serif; font-style:italic; }
.bx-wrapper {position: relative;margin: 30px auto;padding: 0;width:100%;*zoom: 1;}
.bx-wrapper .slide {padding:0;margin:0;display: block;}
.bx-wrapper .bx-viewport {padding:10px;margin-left:0;z-index:1;width:100%;}
@janisdonis
janisdonis / html
Created October 16, 2016 09:49
How to Create a Testimonials Slider with jQuery
<div class="testimonials-slider">
<div class="slide">
<div class="testimonials-carousel-thumbnail"><img width="120" alt="" src="images/team1.jpg"></div>
<div class="testimonials-carousel-context">
<div class="testimonials-name">Bill Robinson <span>google.com</span></div>
@janisdonis
janisdonis / pricebox
Created January 27, 2016 00:23
Pricebox
<div class="row outer-margin">
<!-- PRICING TABLE 1 -->
<div class="col-md-4 ha-repeatable">
<div class="row pricing-title">BASIC</div>
<div class="row pricing">
<div class="col-lg-3 col-md-3 col-sm-3" >
<div class="row">
<span class="pricing-price"><span class="currency">$</span>20</span>
<span class="pricing-time">/mo</span>
<div class="billing-time">billed annually</div>
<?php
$list = explode( '-', $_GET['id'] );
$myarray = $list;
$args = array(
'post_type' => 'destination',
'post__in' => $myarray
);
@janisdonis
janisdonis / contact.php
Created January 22, 2016 12:05
Tilbud mail send
<?php
define('WP_USE_THEMES', false);
require('../wp-blog-header.php');
include 'config.php';
error_reporting (E_ALL ^ E_NOTICE);
$post = (!empty($_POST)) ? true : false;
if($post)
if (in_array($term->term_id, $regions)) {
$selected_region = 'selected';
}
else {
$selected_region = 'not';
}
if ($term->term_id == 2) {
$selected_region = 'varbut?';
}
<?php
/**
* The Template for displaying destination single page.
*
* @package Nethart
* @since Travel 1.0
*/
get_header(); ?>
<div class="header_banner destination_landing" style="background:none;">
<?php
/*
Template Name: Tilbud
*/
get_header();
require_once('SimpleCart.php');
SimpleCart::data('selectedItems', 'cartCollection');
SimpleCart::data('selectedRegions', 'regionsCollection');
?>
$('.sidr-cart').sidr({
displace: false,
name: 'sidr-cart-show',
side: 'right',
onOpen : function() {
$('#overlay').show();
var maxHeight=0;
var heights = new Array();
heights[0]=$('body').height();
heights[1]=$('.sidr').height();