Skip to content

Instantly share code, notes, and snippets.

View paulslugocki's full-sized avatar

Paul Slugocki paulslugocki

  • 17:47 (UTC +01:00)
View GitHub Profile
<?php
class CachedTourCMS {
// General settings
protected $marketp_id = 0;
protected $private_key = "";
protected $result_type = "";
// Cache settings
public $cache_dir = 'cache';
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/mootools/1.4.5/mootools-yui-compressed.js"></script>
</head>
<body>
<p>Accommodation rating:
<?php
@paulslugocki
paulslugocki / gist:2024161
Created March 12, 2012 19:30
Mobile booking engine hack
body, textarea, select, input, a, strong {
font-size:18px;
}
/*Change Font size for Mobiles in Posts*/
@media screen and (-webkit-device-pixel-ratio: 1.5) {
/* CSS for high-density screens */
body, textarea, select, input, a, strong {
font-size:30px;
}
<?php
class Tour extends Mustache {
public function populate($id) {
global $tourcms;
global $channel_id;
$result = $tourcms->show_tour($id, $channel_id);
$this->error = (string)$result->error;
@paulslugocki
paulslugocki / gist:1235012
Created September 22, 2011 15:09
Step 1 "Book" link styling
#tourcms-step1 table table a {
border: 1px solid #ddd;
padding: 8px 10px 8px 10px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
text-decoration: none;
color: #888;
font-size: 13px;
font-weight: normal;
@paulslugocki
paulslugocki / gist:1180886
Created August 30, 2011 13:34
summary_sale_table
<table class="tourcmstable salesummary">
<thead>
<tr class="align-right">
<th scope="col" class="hidden align-left">Item</th>
<th scope="col">Quantity</th>
<th scope="col" class="nowrap">Sale price</th>
<th scope="col" class="nowrap">Sale price total</th>
</tr>
</thead>
<tfoot>
@paulslugocki
paulslugocki / gist:1164952
Created August 23, 2011 12:05
List your Shopzilla reviews on a separate page to your main product description (see comment)
$('.pr_snippet_product').bind('click', function(event) {
if(event.target.hash == "#ReviewHeader") {
event.preventDefault();
window.location = "http://www.example.com/foo.html";
}
});
@paulslugocki
paulslugocki / xml.inc.php
Created August 23, 2011 08:50
Modified buildSelect.php to better handle multiple comma separated values
<?php
/**
* Copyright (c) 2009 Travel UCD
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*