<?php

/**
 * @Copyright Copyright (C) 2009-2010 Ahmad Bilal
 * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
 * Company:     Buruj Solutions
 + Contact:     https://www.burujsolutions.com , info@burujsolutions.com
 * Created on:  Nov 22, 2010
 ^
 + Project:     JS Jobs
 ^ 
 */
 
defined('_JEXEC') or die('Restricted access');
$commonpath = "index.php?option=com_jsjobs";
$pathway = $mainframe->getPathway();
if ($config['cur_location'] == 1) {
    switch ($layout) {
        case 'package_buynow':
            if ($nav == '23') {
                $pathway->addItem(JText::_('Packages'), $commonpath . '&c=employerpackages&view=employerpackages&layout=packages&Itemid=' . $itemid);
                $pathway->addItem(JText::_('Package Buy Now'), '');
            } elseif ($this->nav == '24') {
                $pathway->addItem(JText::_('Packages'), $commonpath . '&c=employerpackages&view=employerpackages&layout=packages&Itemid=' . $itemid);
                $pathway->addItem(JText::_('Package Details'), $commonpath . '&c=employerpackages&view=employerpackages&layout=package_details&gd=' . $result[0]->id . '&Itemid=' . $itemid);
                $pathway->addItem(JText::_('Package Buy Now'), '');
            }
            break;
        case 'package_details':
            $pathway->addItem(JText::_('Packages'), $commonpath . '&c=employerpackages&view=employerpackages&layout=packages&Itemid=' . $itemid);
            $pathway->addItem(JText::_('Package Details'), '');
            break;
        case 'packages':
            $pathway->addItem(JText::_('Packages'), '');
            break;
    }
}
?>
