/home/tbec71889672/public_html/helpers/newProductHelpers.php
if( in_array( strtolower( $option->name ), array( 'colour', 'color', 'colours', 'colours' ) ) ) :
$selectAttributes .= " class=\"product-filter\" onchange=\"check_price( this.value, '" . $product->id . "' )\" ";
else :
$selectAttributes .= " class=\"product-filter\" onchange=\"check_price( this.value, '" . $product->id . "' )\" ";
endif;
$options .= '<p class="attribute-name"><span>' . $option->name . ':</span>';
$options .= "<select {$selectAttributes}>";
foreach( $choices as $choice_key => $choice ) :
$selected = $value == $choice_key ? 'selected="selected"' : '';
$options .= "<option {$selected} value=\"{$choice_key}\">{$choice}</option>";
/home/tbec71889672/public_html/helpers/newProductHelpers.php
if( in_array( strtolower( $option->name ), array( 'colour', 'color', 'colours', 'colours' ) ) ) :
$selectAttributes .= " class=\"product-filter\" onchange=\"check_price( this.value, '" . $product->id . "' )\" ";
else :
$selectAttributes .= " class=\"product-filter\" onchange=\"check_price( this.value, '" . $product->id . "' )\" ";
endif;
$options .= '<p class="attribute-name"><span>' . $option->name . ':</span>';
$options .= "<select {$selectAttributes}>";
foreach( $choices as $choice_key => $choice ) :
$selected = $value == $choice_key ? 'selected="selected"' : '';
$options .= "<option {$selected} value=\"{$choice_key}\">{$choice}</option>";
/home/tbec71889672/public_html/themes/default/views/product/view.php
<h4>Purchased this product?</h4>
<a href="/product_review/add/<?php echo $product->id; ?>" class="fancybox fancybox.iframe btn btn-primary btn-sm"><i class="fa fa-star-half-o"></i> Submit a Review</a>
</div>
<?php endif; ?>
<div class="purchase-wrapper">
<?php echo Form::form_open( 'add_cart', BASE_URL . 'cart/add/' . $product->id, 'post', '' ); ?>
<?php prodHelpers::simpleAdd( $product, $post_values ); ?>
<?php echo Form::form_close(); ?>
<?php if( !$product->has_stock ) : ?>
/home/tbec71889672/public_html/src/PMCOM/Core/View.php
if(file_exists(Display::theme_path().'views/'.$view.'.php'))
{
if($data) extract($data);
//ob_start();
include Display::theme_path().'header.php';
include Display::theme_path().'views/'.$view.'.php';
include Display::theme_path().'footer.php';
/* $cachefile = ''.date('M-d-Y').'.html';
/home/tbec71889672/public_html/src/PMCOM/Core/View.php
public static function __callStatic( $method, $parameters )
{
if( is_null( static::$instance ) )
{
static::$instance = new View();
}
return call_user_func_array( array( static::$instance, '_' . $method ), $parameters );
}
/home/tbec71889672/public_html/src/PMCOM/Front/Product.php
if( ! $product->has_stock && ! $product->display_not_in_stock )
{
View::show404();
}
else
{
View::load('product/view', $this->data);
}
/home/tbec71889672/public_html/src/PMCOM/Front/Product.php
if( ! $product->has_stock && ! $product->display_not_in_stock )
{
View::show404();
}
else
{
View::load('product/view', $this->data);
}
/home/tbec71889672/public_html/src/PMCOM/Core/Router.php
} elseif( $method === 'index' ) {
$method = $class;
}
foreach( $controllers as $controller ) :
try {
$routed = $this->container->get( $controller );
if( $routed->exists( $method ) ) :
die( $routed->view( $method ) );
endif;
} catch( \Orno\Di\Exception\ReflectionException $e ) {}
/home/tbec71889672/public_html/src/PMCOM/Core/Router.php
public static function __callStatic( $method, $parameters )
{
if( is_null( static::$instance ) )
{
static::$instance = new Router();
}
return call_user_func_array( array( static::$instance, '_' . $method ), $parameters );
}
/home/tbec71889672/public_html/index.php
|---------------------------------------------------------------
| LOAD THE ROUTES CLASS
|---------------------------------------------------------------
|
| And away we go...
|
*/
PMCOM\Core\Router::get_route( $container );
/home/tbec71889672/public_html/index.php
|---------------------------------------------------------------
| LOAD THE ROUTES CLASS
|---------------------------------------------------------------
|
| And away we go...
|
*/
PMCOM\Core\Router::get_route( $container );