Skip to content

Instantly share code, notes, and snippets.

View jamesmehorter's full-sized avatar

James Mehorter jamesmehorter

  • Penske Media Corporation
  • Northport, Maine
View GitHub Profile
#!/bin/sh
# FuelPHP Install Script
#
# @author Kenji Suzuki https://github.com/kenjis
# @copyright 2011 Kenji Suzuki
# @license MIT License http://www.opensource.org/licenses/mit-license.php
if [ $# -lt 2 ]; then
echo "Install FuelPHP and Create Application Repository"
<form method="POST" name="wishlist" >
<input type="number" min="0" name="wl_quantity" value="1" />
<input type="hidden" name="wl_product" value="<?php echo $post->ID; ?>" />
<input type="submit" value="<?php printf( __( 'add product') ); ?>" />
</form>
<?php
// If user is logged in and has capability 'read'
if( current_user_can( 'read' ) ) {
// Create the wishlist array