Skip to content

Instantly share code, notes, and snippets.

View iqbalmalik89's full-sized avatar

Muhammad Iqbal iqbalmalik89

  • Karachi, Pakistan
View GitHub Profile
<div style="display:inline-block" id="kf-embed-container-8ed63bd4c9bfc2bf3b6d29858e630c95"></div>
<script type="text/javascript" src="https://ae0521ba008c6c6dd67f-667e6d5e490a1bc46688be42ea525d83.ssl.cf1.rackcdn.com/kf_embed_api-20131030.js"></script>
<script type="text/javascript">
KF.embed.embedKlip({
profile : "8ed63bd4c9bfc2bf3b6d29858e630c95",
settings : {"width":614,"theme":"light","borderStyle":"round","borderColor":"#cccccc"},
title : "Bar / Line Chart - Sample 1"
});
</script>
{
"kind": "drive#file",
"id": "0B2LGGwjHVuxONkVtZlBVSk1heHM",
"etag": "\"41zBgiQeVtkERrlow_o1l3GDE3o/MTQ3OTA0MzY3Mzk5Mg\"",
"selfLink": "https://www.googleapis.com/drive/v2/files/0B2LGGwjHVuxONkVtZlBVSk1heHM",
"webContentLink": "https://drive.google.com/uc?id=0B2LGGwjHVuxONkVtZlBVSk1heHM&export=download",
"alternateLink": "https://drive.google.com/file/d/0B2LGGwjHVuxONkVtZlBVSk1heHM/view?usp=drivesdk",
"embedLink": "https://drive.google.com/file/d/0B2LGGwjHVuxONkVtZlBVSk1heHM/preview?usp=drivesdk",
"iconLink": "https://ssl.gstatic.com/docs/doclist/images/icon_11_image_list.png",
"thumbnailLink": "https://lh4.googleusercontent.com/vhCrrr9K_d9aDeZn28zOlCHBkxEe0jbXmEyekAmpVess2oYpWrw6LshCrzI8ABeuVHEqXQ=s220",
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-79713188-1', 'auto');
ga('send', 'pageview');
</script>
-- phpMyAdmin SQL Dump
-- version 4.5.3.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Aug 17, 2016 at 03:39 AM
-- Server version: 5.7.10
-- PHP Version: 7.0.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
So on the front end of site users can orders tickets http://wordpress-4836-14042-80482.cloudwaysapps.com/netball-event/england-vs-australia-international-test-series-2/ with the book now functionality
This is build using woocommerce but has additional custom fields added for attendees
http://prntscr.com/bw4z2g
When the order is completed it is processed into the backend under wp-admin > woocommerce > orders
http://prntscr.com/bw4za1
this screenshot shows the orders section and missing attendee details
<?php
public function loginUser(Request $request)
{
$email = $request->input('email');
$password = $request->input('password');
$user = User::makeVisible('password')->where('email', $email);
if(!empty($user->count()))
{
$user = $user->toArray();
public function getHeading($headingCode)
{
$data = file_get_contents('https://www.gov.uk/trade-tariff/headings/'.$headingCode.'.json');
// $data = file_get_contents('http://localhost/widget/public/'.$headingCode.'.json');
if(!empty($data))
{
$data = json_decode($data, true);
// echo $this->makeTree(0, $data['commodities']);
// $r = $this->makeRecursive($data['commodities']);
1. The event categories are pulled dynamically under "step 1 select category" but the calendar icon is currently hard coded.
A custom field has been added to the event categories taxonomy terms for image upload. We just need you to configure the term
to display uploaded image for categories on front end. I assume this is a quick task.
2. The find events section needs a select element to display sub category names (colin will take care of css styling once you
have implemented)
3. The find events section needs a select element to display event months for filtering (again colin will take care of css
styling once you have implemented)
public function getClientIp() {
$ipaddress = '';
if ($_SERVER['HTTP_CLIENT_IP'])
$ipaddress = $_SERVER['HTTP_CLIENT_IP'];
else if($_SERVER['HTTP_X_FORWARDED_FOR'])
$ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR'];
else if($_SERVER['HTTP_X_FORWARDED'])
$ipaddress = $_SERVER['HTTP_X_FORWARDED'];
else if($_SERVER['HTTP_FORWARDED_FOR'])
$ipaddress = $_SERVER['HTTP_FORWARDED_FOR'];
<?php
session_start();
if(!isset($_SESSION['prelaunch']) || empty($_SESSION['prelaunch']))
{
header('location:http://airfcl.com/prelaunch');
die();
}
?>