<?php
/**
 * Sidebar
 *
 * PHP version 5
 *
 * @category  PHP
 * @package   PHP_Form_Builder
 * @author    Softdiscover <info@softdiscover.com>
 * @copyright 2013 Softdiscover
 * @license   http://www.php.net/license/3_01.txt  PHP License 3.01
 * @version   CVS: $Id: sidebar.php, v2.00 2013-11-30 02:52:40 Softdiscover $
 * @link      https://php-form-builder.zigaform.com/
 */
if ( ! defined( 'BASEPATH' ) ) {
	exit( 'No direct script access allowed' );
}
?>
<div class="sidebar-wrap">
   <ul class="nav navbar-nav side-nav">
	<li class="nav-profile">
		<div class="user_profile clearfix">
		<?php
		$gravatar = 'https://www.gravatar.com/avatar/'.md5( strtolower( trim( model_settings::$db_config['admin_mail'] ) ) ).'?s=50';
		if(Uiform_Form_Helper::urlIsValid($gravatar)){
			?>
			<img alt="" src="<?php echo $gravatar; ?>">
			<?php
		}
		?>	
		<h5><?php echo $this->session->userdata( 'use_login' ); ?></h5>
	</div>
	</li>
			<li><a href="<?php echo site_url(); ?>formbuilder/forms/list_uiforms"><i class="fa fa-th-list"></i> <?php echo __( 'Forms', 'FRocket_admin' ); ?></a></li>
 <?php if ( UIFORM_DEMO === 0 ) { ?>
			<li><a href="<?php echo site_url(); ?>user/intranet/index"><i class="fa fa-user"></i> <?php echo __( 'Users', 'FRocket_admin' ); ?></a></li>
			 <li><a href="<?php echo site_url(); ?>default/intranet/settings"><i class="fa fa-wrench"></i> <?php echo __( 'More Settings', 'FRocket_admin' ); ?></a></li>

			   <?php } ?>     
				
			<li><a href="<?php echo site_url(); ?>default/intranet/help"><i class="fa fa-question-circle"></i> <?php echo __( 'Help', 'FRocket_admin' ); ?></a></li>
			<li><a href="<?php echo site_url(); ?>default/intranet/about"><i class="fa fa-info"></i> <?php echo __( 'About', 'FRocket_admin' ); ?></a></li>
			<li><a href="<?php echo site_url(); ?>default/intranet/showfilemanager"><i class="fa fa-code"></i> <?php echo __( 'File manager', 'FRocket_admin' ); ?></a></li>
			<li><a href="<?php echo site_url(); ?>addon_mgtranslate/zfad_mgtranslate_back/show_list"><i class="fa fa-globe" aria-hidden="true"></i> <?php echo __( 'Translation Manager', 'FRocket_admin' ); ?></a></li>
			<?php if ( ZIGAFORM_F_LITE == 1 ) { ?>
			<li><a href="<?php echo site_url(); ?>default/intranet/gopro"><i class="fa fa-angle-right"></i> <?php echo __( 'Go Pro', 'FRocket_admin' ); ?></a></li>
			<?php } ?>
		  </ul> 
	<div id="zgfm-sidebar-show-ver">
		Zigaform Version <?php echo model_settings::$db_config['version']; ?> <?php echo (ZIGAFORM_F_LITE)?'Free':'Pro'; ?>
	</div>
</div>


