<ul class="nav center ptl">
                        <li class="action">
                    <?php 
LinkHelper::url('Browse Widgets', 'Product');
?>
                        </li>
                    </ul>
                    
                    <div class="ptl">
                        <?php 
if (!isset($_SERVER['PATH_INFO']) || $_SERVER['PATH_INFO'] != '/Cart') {
    $linkImg = '<img class="center" src="' . WEBPATH . 'img/cart.png" alt="cart" width="45" height="39" />';
    if (isset($_SESSION['cart']) && !empty($_SESSION['cart'])) {
        LinkHelper::url($linkImg, 'Cart');
        echo '<div class="action center ptl">';
        LinkHelper::url('View your cart', 'Cart');
        echo '</div>';
    } else {
        echo $linkImg;
        echo '<div class="center ptl">';
        echo 'Your cart is empty';
        echo '</div>';
    }
}
?>
                    </div>
                </div>
                
                <div class="main">
                    <div class="innerCol ptm pbm">
                        <?php 
                <?php 
LinkHelper::url('Widget 1 Details', 'Product', 'view', '1');
?>
            </div>
        </div>
    </div>
    <div class="unit size1of3">
        <h3 class="tcenter">Widget2</h3>
        <img class="center" src="img/widget02.png" alt="Widget 2" />
        <div class="innerColWrap">
            <p>This paragraph describes how awesome widget2 is. You know you want it.</p>
            <div class="action center">
                <?php 
LinkHelper::url('Widget 2 Details', 'Product', 'view', '2');
?>
            </div>
        </div>
    </div>
    <div class="unit size1of3">
        <h3 class="tcenter">Widget3</h3>
        <img class="center" src="img/widget03.png" alt="Widget 3" />
        <div class="innerColWrap">
            <p>This paragraph describes how awesome widget3 is. You know you want it.</p>
            <div class="action center">
                <?php 
LinkHelper::url('Widget 3 Details', 'Product', 'view', '3');
?>
            </div>
        </div>
    </div>
</div>