<? global $vis_language;?>
<style type="text/css">.vh1{font-size:54px;}

</style>
<script src="<?= VIS_PATH_SCRIPT; ?>/svg-injector/svg-injector.min.js"></script>
<?php 
$chkbox=0;
if(((VIS_HEAD_MENU_SELFHELP==1 || (VIS_HEAD_MENU_SELFHELP==2 && IS_LOGIN)) && VIS_MODULE_ACCESS_SELFHELP==1)){$chkbox++; }
if(VIS_HEAD_MENU_FORUM==1 || (VIS_HEAD_MENU_FORUM==2 && IS_LOGIN)){$chkbox++;}	
if(VIS_HEAD_MENU_LOGIN==1 && IS_LOGIN!=1){$chkbox++;}
if(VIS_HEAD_MENU_VIEWTICKET==1 ){$chkbox++;}
if($chkbox==1){	
$arangebox='class="col-md-12 col-sm-12"';
}elseif($chkbox==2){	
$arangebox='class="col-md-6 col-sm-6"';
}elseif($chkbox==3){	
$arangebox='class="col-md-4 col-sm-4"';
}else{
$arangebox='class="col-md-3 col-sm-3"';	
}

?>
<section class="container m-t-md" id="main_div">
    <div class="row">
    <? if(VIS_HEAD_MENU_VIEWTICKET==1){?>
    <div <?php echo $arangebox; ?>>
         <div class="">
            <div class="panel-heading ">
          </div>
          <div class="panel-body">
             <div class="text-center"><a href="index.php?<?php echo (IS_LOGIN)?'/ticket/view-ticket':'/home/login';?>"><img class="svg-primary svg-size-lg inject-me" data-src="<?php echo VIS_PATH; ?>design/images/svg/ticket-view.svg" title="solution" alt="ticket view"><!--<i class="vh vh1 vh-self-help vh-warning"></i>--></a>
                 <h4 class="panel-title1"><a href="index.php?<?php echo (IS_LOGIN)?'/ticket/view-ticket':'/home/login';?>"><? echo $vis_language['TXTVIEWTICKETS']; ?></a></h4>
                </div>   
          </div> 
          </div>
  		</div> 
    <? }?>
    
    <? if((VIS_HEAD_MENU_SELFHELP==1 || (VIS_HEAD_MENU_SELFHELP==2 && IS_LOGIN)) && VIS_MODULE_ACCESS_SELFHELP==1){?>
    <div <?php echo $arangebox; ?>>
         <div class="">
            <div class="panel-heading ">
          </div>
          <div class="panel-body">
             <div class="text-center"><a href="index.php?<?php echo (VIS_HEAD_MENU_SELFHELP==1 || (VIS_HEAD_MENU_SELFHELP==2 && IS_LOGIN))?'/selfhelp/categories':'/home/login';?>"><img class="svg-primary svg-size-lg inject-me" data-src="<?php echo VIS_PATH; ?>design/images/svg/solution.svg" title="solution" alt="solution"><!--<i class="vh vh1 vh-self-help vh-warning"></i>--></a>
                 <h4 class="panel-title1"><a href="index.php?<?php echo (VIS_HEAD_MENU_SELFHELP==1 || (VIS_HEAD_MENU_SELFHELP==2 && IS_LOGIN))?'/selfhelp/categories':'/home/login';?>"><? echo $vis_language['TXTSELFHELP']; ?></a></h4>
                </div>   
          </div> 
          </div>
  		</div> 
    <? }?>

       <?php if((VIS_HEAD_MENU_FORUM==1 || (VIS_HEAD_MENU_FORUM==2 && IS_LOGIN)) && VIS_MODULE_ACCESS_FORUM==1){?>
       <div <?php echo $arangebox; ?>>
        <div class="">
            <div class="panel-heading ">
				
          </div>
          <div class="panel-body">
                <div class="text-center"><a href="index.php?<?php echo (VIS_HEAD_MENU_FORUM==1 || (VIS_HEAD_MENU_FORUM==2 && IS_LOGIN))?'/forums/forums':'/home/login';?>"><img class="svg-primary svg-size-lg inject-me " data-src="<?php echo VIS_PATH; ?>design/images/svg/forum.svg" title="forum" alt="forum"><!--<i class="vh vh1 vh-staff-group vh-warning"></i>--></a>
                 <h4 class="panel-title1"><a href="index.php?<?php echo (VIS_HEAD_MENU_FORUM==1 || (VIS_HEAD_MENU_FORUM==2 && IS_LOGIN))?'/forums/forums':'/home/login';?>"><? echo $vis_language['TXTFORUM']; ?></a></h4>
                </div>
          </div>
          </div>
  		</div>
    <? }?>
    
    <?php if(VIS_HEAD_MENU_LOGIN==1 && IS_LOGIN!=1){?>
    
    <div <?php echo $arangebox; ?>>
    <div class="">
            <div class="panel-heading ">

          </div>
          <div class="panel-body">
             <div class="text-center"><a href="index.php?/home/login"><img class="svg-primary svg-size-lg inject-me" data-src="<?php echo VIS_PATH; ?>design/images/svg/login.svg" title="login" alt="login"><!--<i class="vh vh1 vh-ticket-status vh-warning"></i>--></a>
                 <h4 class="panel-title1"><a href="index.php?/home/login"><? echo $vis_language['TXTLOGIN']; ?></a></h4>
                </div>   
          </div> 
          </div>
  		</div>
    
    <? }?>
    </div>
    <br /><br />
    <div class="row">

<? if(VIS_HEAD_MENU_SUBMITTICKET==1 || (VIS_HEAD_MENU_SUBMITTICKET==2 && IS_LOGIN!=0)){?>

<div class="text-center" style="background:#f2f4f8; padding:25px;" id="submittks">
<h2><? echo $vis_language['TXTLETSHELPU']; ?></h2>
<br />
<a class="btn btn-lg btn-primary" href="index.php?<?php echo (VIS_HEAD_MENU_SUBMITTICKET==1 || (VIS_HEAD_MENU_SUBMITTICKET==2  && IS_LOGIN))?'/ticket/submit-ticket':'/home/login';?>"><? echo $vis_language['TXTSUBMITATICKET']; ?></a>
</div>
   <? }?>  
       
    </div> <!-- /.row -->

</section>


<script type="text/javascript">
        // For testing in IE8
        if (!window.console) {
            console = {
                log: function () {}
            };
        };

        // Elements to inject
        var mySVGsToInject = document.querySelectorAll('img.inject-me');

        // Options
        var injectorOptions = {
            evalScripts: 'once',
            pngFallback: '<?php echo VIS_PATH; ?>design/images/png',
            each: function (svg) {
                // Callback after each SVG is injected
                if (svg) console.log('SVG injected: ' + svg.getAttribute('id'));
            }
        };

        // Trigger the injection
        SVGInjector(mySVGsToInject, injectorOptions, function (totalSVGsInjected) {
            // Callback after all SVGs are injected
            console.log('We injected ' + totalSVGsInjected + ' SVG(s)!');
        });
    </script>