e8bb29fdab3481949a0752b041c70bc411610d76.php 2.06 KB
<?php $__env->startSection('main_menu'); ?>
  <?php echo $__env->make('layout.main_menu', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('top_menu'); ?>
  <?php echo $__env->make('layout.top_menu', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('main_content'); ?>
  <script>
    $(document).ready(function(){
      if(document.location.hash=="")doAjax("dashboard?tz="+(new Date()).getTimezoneOffset()+'&d=<?php echo Input::get("d"); ?>','','content','ajax_dashboard','singlethis','GET',function(){try{}catch(e){}});
      else kstychHashFunction();
      
      <?php if(Config::get("app.extAuth")!=""){ ?>doAjax("dashboard/r",'','','ajax_dashboard_r','singlethis','GET');<?php } ?>
      if ($.browser.msie)document.location="msie";
      
      
      if (typeof kDesktopNotification === 'function')kDesktopNotification("","","",10);
      incomingPresense("","","");
    });
    
    
    
    
if (navigator.userAgent.match(/(iPad|iPhone|iPod touch);.*CPU.*OS/i)) 
{
    $("#menu-top").css({'padding-top':'20px','height':'60px'});
    $("#content").css({'margin-top':'60px'});
}
document.addEventListener('deviceready', function() {

    $(document).on('click', 'a[target="_system"],a[target="_blank"]', function (e) {
            e.preventDefault();
            var url = this.href;

            if(navigator.app)navigator.app.loadUrl(url, { openExternal:true });
            else if(innappbrowser)cordova.exec(function(){}, function(){}, "InAppBrowser", "open", [url, "_system", null]);
            else window.open(url,"_system");
            
            //$("#welcome_wizard_body").html("<iframe style='width:100%;min-height:400px;height:100%' src='"+url+"'></iframe>");
            //$("#welcome_wizard").modal('show');
  
  
    });
    
});
    
    
    
    
  </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layout.layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>