This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 |