Skip to content

Instantly share code, notes, and snippets.

@tmblog
tmblog / CalendarController.php
Created December 10, 2018 22:32 — forked from adijvlian/CalendarController.php
JQuery FullCalendar Integration with PHP and MySQL
<?php
class CalendarController extends ControllerBase
{
public function indexAction()
{
include "incld/load.php";
include "incld/insert.php";
include "incld/update.php";
include "incld/delete.php";
}
@tmblog
tmblog / wc-active-shipping-methods-widget.php
Created July 1, 2018 21:39 — forked from bekarice/wc-active-shipping-methods-widget.php
WooCommerce Active Shipping Methods Widget
<?php
/**
* Plugin Name: WooCommerce Active Shipping Widget
* Plugin URI: https://www.skyverge.com/blog/how-to-create-a-woocommerce-widget/
* Description: Adds a widget to display a list of active WooCommerce shipping methods
* Author: SkyVerge
* Author URI: https://www.skyverge.com/
* Version: 1.0.0
* Text Domain: wc-active-shipping-widget
*
@tmblog
tmblog / README.md
Created February 4, 2018 21:13 — forked from hofmannsven/README.md
Simple Ajax Polling Demo
@tmblog
tmblog / Woocommerce List Variations in table
Created September 17, 2017 14:52
Lists woocommerce variable products as a list next to it instead of drop down.
if( $product->is_type( 'variable' ) ){
global $product, $post;
$variations = $product->get_available_variations();
?>
<table>
<tbody>
<?php
foreach ($variations as $key => $value) {
?>
@tmblog
tmblog / page-contact-form.php
Created March 31, 2017 20:42
Simple WordPress Contact Form without Plugin - Bootstrap ready.
<?php /* Template Name: Contact Page */
$response = "";
//function to generate response
function my_contact_form_generate_response($type, $message){
global $response;
if($type == "success") $response = "<div class='alert alert-success'>{$message}</div>";
else $response = "<div class='alert alert-danger'>{$message}</div>";
@tmblog
tmblog / common_home_link.xml
Last active August 29, 2015 14:27 — forked from SammyLin/common_home_link.xml
opencart common_home_link remove index.php?route=common/home