public function __get($var)
 {
     switch ($var) {
         case 'has_file':
             return $this->has_file = $this->file_name != '';
             break;
         case 'file_path_server':
             return $this->file_path_server = 'var/' . $this->file_path . $this->file_name;
             break;
         case 'file_path_dir':
             return $this->file_path_server = 'var/' . $this->file_path;
             break;
         case 'pdftoimg_path':
             return $this->pdftoimg_path = 'var/' . $this->file_path . 'img/';
             break;
         case 'pdf_file_path_server':
             return $this->pdf_file_path_server = 'var/' . $this->file_path . $this->pdf_file;
             break;
         case 'file_name_upload_pdf':
             $nameParts = explode('.', $this->file_name_upload);
             array_pop($nameParts);
             return $this->file_name_upload_pdf = implode('.', $nameParts) . '.pdf';
             break;
         case 'pages_pdf':
             $this->pages_pdf = array();
             if ($this->pages_pdf_count) {
                 $links = array();
                 $i = 1;
                 while ($i <= $this->pages_pdf_count) {
                     $links[] = $this->pdftoimg_path . $this->id . '-' . $i . '.png';
                     $i++;
                 }
                 $this->pages_pdf = $links;
             }
             return $this->pages_pdf;
             break;
         case 'pdftoimg_url_path':
             return $this->pdftoimg_url_path = erLhcoreClassSystem::instance()->wwwDir() . '/var/' . $this->file_path . 'img/';
             break;
         case 'pages_pdf_url':
             $this->pages_pdf_url = array();
             if ($this->pages_pdf_count) {
                 $baseDir = erLhcoreClassSystem::instance()->wwwDir();
                 foreach ($this->pages_pdf as $img) {
                     $this->pages_pdf_url[] = $baseDir . '/' . $img;
                 }
             }
             return $this->pages_pdf_url;
             break;
         case 'book_data':
             return array('baseImagesDesgin' => erLhcoreClassDesign::design('images/BookReader/images') . '/', 'baseImg' => $this->id . '-', 'numLeafs' => $this->pages_pdf_count, 'bookTitle' => $this->name, 'urlPath' => $this->pdftoimg_url_path);
             break;
         default:
             break;
     }
 }
 /**
  * @desc returns expire options
  * 
  * @return array()
  */
 public static function getExpireOptions()
 {
     $expireOptionsFile = ltrim(erLhcoreClassDesign::design('expire_options/expire_options.php'), '/');
     if (file_exists($expireOptionsFile)) {
         return include $expireOptionsFile;
     }
     return array();
 }
<ul class="list-unstyled">				
      <li ng-repeat="chat in unread_chats.list track by chat.id"  >
      	<span ng-if="chat.country_code != undefined"><img ng-src="<?php 
echo erLhcoreClassDesign::design('images/flags');
?>
/{{chat.country_code}}.png" alt="{{chat.country_name}}" title="{{chat.country_name}}" /></span>
      	<a class="icon-info" title="ID - {{chat.id}}" ng-click="lhc.previewChat(chat.id)" ></a><a class="right-action-hide icon-chat" ng-click="lhc.startChat(chat.id,chat.nick)" title="<?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/syncadmininterface', 'Add chat');
?>
"></a><a class="icon-popup" ng-click="lhc.startChatNewWindow(chat.id,chat.nick)" title="<?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/syncadmininterface', 'Open in a new window');
?>
"></a> {{chat.nick}}, {{chat.time_created_front}}, {{chat.department_name}} | <b>{{chat.unread_time.hours}} <?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/syncadmininterface', 'h.');
?>
 {{chat.unread_time.minits}} <?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/syncadmininterface', 'm.');
?>
 {{chat.unread_time.seconds}} <?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/syncadmininterface', 's.');
?>
 <?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/syncadmininterface', 'ago');
?>
.</b>
      </li>					
</ul>
<p ng-show="unread_chats.list.length == 0"><?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('pagelayout/pagelayout', 'Empty...');
?>
</p>
Ejemplo n.º 4
0
       var statusTEXT = '<a id="faq-icon" class="status-icon" href="#" onclick="return lh_inst.lh_openchatWindow()" >'+LHCFAQOptions.status_text+'</a>';
       var raw_css = "#lhc_faq_container * {direction:<?php 
erConfigClassLhConfig::getInstance()->getOverrideValue('site', 'dir_language') == 'ltr' || erConfigClassLhConfig::getInstance()->getOverrideValue('site', 'dir_language') == '' ? print 'ltr;text-align:left;' : (print 'rtl;text-align:right;');
?>
;font-family:arial;line-height:100%;font-size:12px;box-sizing: content-box;zoom:1;margin:0;padding:0;}\n#lhc_faq_container .status-icon{text-decoration:none;font-size:12px;font-weight:bold;color:#<?php 
$theme !== false ? print $theme->text_color : (print '000');
?>
;display:block;padding:<?php 
echo $currentPosition['padding_text'];
?>
;background:url('<?php 
echo erLhcoreClassModelChatConfig::fetch('explicit_http_mode')->current_value;
?>
//<?php 
echo $_SERVER['HTTP_HOST'];
echo erLhcoreClassDesign::design('images/icons/help.png');
?>
') no-repeat <?php 
echo $currentPosition['background_position'];
?>
 center}\n#lhc_faq_container:hover{<?php 
echo $currentPosition['widget_hover'];
?>
}\n#lhc_faq_container{box-sizing: content-box;<?php 
echo $currentPosition['widget_radius'];
?>
-webkit-box-shadow: <?php 
echo $currentPosition['shadow'];
?>
 rgba(50, 50, 50, 0.17);-moz-box-shadow: <?php 
echo $currentPosition['shadow'];
Ejemplo n.º 5
0
include_once erLhcoreClassDesign::designtpl('pagelayouts/parts/page_head.tpl.php');
?>
</head>
<body>

<div class="content-row">
	<div class="row">
	    <div class="columns large-6">
	        <h1><a href="<?php 
echo erLhcoreClassDesign::baseurl();
?>
" title="<?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('pagelayout/pagelayout', 'Home');
?>
"><img src="<?php 
echo erLhcoreClassDesign::design('images/general/logo.png');
?>
" alt="<?php 
echo erConfigClassLhConfig::getInstance()->getSetting('site', 'title');
?>
" title="<?php 
echo erConfigClassLhConfig::getInstance()->getSetting('site', 'title');
?>
"></a></h1>
	    </div>	    
	</div>
	<div class="row">
		<div class="columns large-12">
		<?php 
echo $Result['content'];
?>
?>
,'disablejs':<?php 
echo erLhcoreClassModelChatConfig::fetch('disable_js_execution')->current_value == 1 ? 'true' : 'false';
?>
,options:{opcontrol:$('#status-icon-control'),opscroll:$('#sync-user-scroll'),opmouse:$('#show-operator-mouse'),scroll:$('#scroll-user-window')},'cpos':{w:<?php 
echo $browse->w;
?>
,wh:<?php 
echo $browse->wh;
?>
},'cursor':'<?php 
echo erLhcoreClassModelChatConfig::fetch('explicit_http_mode')->current_value;
?>
//<?php 
echo $_SERVER['HTTP_HOST'];
echo erLhcoreClassDesign::design('images/icons/cursor.png');
?>
','nodejssettings':{'nodejssocket':<?php 
echo json_encode(erLhcoreClassModelChatConfig::fetch('sharing_nodejs_sllocation')->current_value);
?>
,'nodejshost':<?php 
echo json_encode(erLhcoreClassModelChatConfig::fetch('sharing_nodejs_socket_host')->current_value);
?>
,'path':'<?php 
echo erLhcoreClassModelChatConfig::fetch('sharing_nodejs_path')->current_value;
?>
','secure':<?php 
if ((int) erLhcoreClassModelChatConfig::fetch('sharing_nodejs_secure')->current_value == 1) {
    ?>
true<?php 
} else {
        }
        ?>
           <a class="csfr-required" title="<?php 
        echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/closedchats', 'Delete chat');
        ?>
" href="<?php 
        echo erLhcoreClassDesign::baseurl('chatarchive/deletearchivechat');
        ?>
/<?php 
        echo $archive->id;
        ?>
/<?php 
        echo $chat->id;
        ?>
"><img class="action-image" align="absmiddle" src="<?php 
        echo erLhcoreClassDesign::design('images/icons/delete.png');
        ?>
" alt="<?php 
        echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/closedchats', 'Delete chat');
        ?>
" title="<?php 
        echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/closedchats', 'Delete chat');
        ?>
"></a> <a href="<?php 
        echo erLhcoreClassDesign::baseurl('chatarchive/viewarchivedchat');
        ?>
/<?php 
        echo $archive->id;
        ?>
/<?php 
        echo $chat->id;
Ejemplo n.º 8
0
        echo htmlspecialchars($chat->name);
        ?>
</td>
        <td><?php 
        echo htmlspecialchars($chat->identifier);
        ?>
</td>
        <td class="small-1" nowrap>
           <img class="action-image" align="absmiddle" onclick="lhinst.startChatNewWindow('<?php 
        echo $chat->chat_id;
        ?>
','<?php 
        echo htmlspecialchars($chat->nick);
        ?>
')" src="<?php 
        echo erLhcoreClassDesign::design('images/icons/application_add.png');
        ?>
" alt="<?php 
        echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/activechats', 'Open in a new window');
        ?>
" title="<?php 
        echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/activechats', 'Open in a new window');
        ?>
">
	       <?php 
        echo $chat->id;
        ?>
. <?php 
        echo htmlspecialchars($chat->nick);
        ?>
 <?php 
Ejemplo n.º 9
0
<script type="text/javascript">
var WWW_DIR_JAVASCRIPT = '<?php 
echo erLhcoreClassDesign::baseurl();
?>
';
var WWW_DIR_JAVASCRIPT_FILES = '<?php 
echo erLhcoreClassDesign::design('sound');
?>
';
var WWW_DIR_JAVASCRIPT_FILES_NOTIFICATION = '<?php 
echo erLhcoreClassDesign::design('images/notification');
?>
';
var confLH = {};
<?php 
$soundData = erLhcoreClassModelChatConfig::fetch('sync_sound_settings')->data_value;
?>
confLH.back_office_sinterval = <?php 
echo (int) ($soundData['back_office_sinterval'] * 1000);
?>
;
confLH.chat_message_sinterval = <?php 
echo (int) ($soundData['chat_message_sinterval'] * 1000);
?>
;
confLH.new_chat_sound_enabled = <?php 
echo (int) erLhcoreClassModelUserSetting::getSetting('new_chat_sound', (int) $soundData['new_chat_sound_enabled']);
?>
;
confLH.new_message_sound_admin_enabled = <?php 
echo (int) erLhcoreClassModelUserSetting::getSetting('chat_message', (int) $soundData['new_message_sound_admin_enabled']);
<span id="lhc_chatbox_title"><a title="Powered by Live Helper Chat" href="http://livehelperchat.com" target="_blank"><img src="<?php 
echo erLhcoreClassModelChatConfig::fetch('explicit_http_mode')->current_value;
?>
//<?php 
echo $_SERVER['HTTP_HOST'];
echo erLhcoreClassDesign::design('images/icons/emotion_amazing_16x16.png');
?>
" alt="Live Helper Chat" /></a></span>
<span id="lhc_title"><a title="Powered by Live Helper Chat" href="http://livehelperchat.com" target="_blank"><img src="<?php 
echo erLhcoreClassModelChatConfig::fetch('explicit_http_mode')->current_value;
?>
//<?php 
echo $_SERVER['HTTP_HOST'];
echo erLhcoreClassDesign::design('images/icons/user_green_chat_16x16.png');
?>
" alt="Live Helper Chat" /></a></span>
Ejemplo n.º 12
0
 public static function _make_flattr_embed($matches)
 {
     $in = $matches[1];
     $in = trim($in);
     $error = false;
     $in = str_replace(' ', '%20', $in);
     $inline = ')';
     $scheme = '[a-z\\d+\\-.]';
     // generated with regex generation file in the develop folder
     $exp_url = "[a-z]{$scheme}*:/{2}(?:(?:[a-z0-9\\-._~!\$&'({$inline}*+,;=:@|]+|%[\\dA-F]{2})+|[0-9.]+|\\[[a-z0-9.]+:[a-z0-9.]+:[a-z0-9.:]+\\])(?::\\d*)?(?:/(?:[a-z0-9\\-._~!\$&'({$inline}*+,;=:@|]+|%[\\dA-F]{2})*)*(?:\\?(?:[a-z0-9\\-._~!\$&'({$inline}*+,;=:@/?|]+|%[\\dA-F]{2})*)?(?:\\#(?:[a-z0-9\\-._~!\$&'({$inline}*+,;=:@/?|]+|%[\\dA-F]{2})*)?";
     $inline = ')';
     $www_url = "www\\.(?:[a-z0-9\\-._~!\$&'({$inline}*+,;=:@|]+|%[\\dA-F]{2})+(?::\\d*)?(?:/(?:[a-z0-9\\-._~!\$&'({$inline}*+,;=:@|]+|%[\\dA-F]{2})*)*(?:\\?(?:[a-z0-9\\-._~!\$&'({$inline}*+,;=:@/?|]+|%[\\dA-F]{2})*)?(?:\\#(?:[a-z0-9\\-._~!\$&'({$inline}*+,;=:@/?|]+|%[\\dA-F]{2})*)?";
     // Checking urls
     if (!preg_match('#^' . $exp_url . '$#i', $in) && !preg_match('#^' . $www_url . '$#i', $in)) {
         return '[flattr]' . $matches[1] . '[/flattr]';
     }
     if (!preg_match('#^[a-z][a-z\\d+\\-.]*:/{2}#i', $in)) {
         $in = 'http://' . $in;
     }
     return '<a href="' . $in . '" rel="nofollow" title="Flattr this"><img src="' . erLhcoreClassDesign::design('images/icons/flattr-badge-large.png') . '"</a>';
 }
 public function dependJs()
 {
     return '<script type="text/javascript" src="' . erLhcoreClassDesign::design('js/colorpicker.js') . '"></script>';
 }
Ejemplo n.º 14
0
<?php

$filter = array('offset' => 0, 'limit' => (int) $Params['user_parameters_unordered']['maxrows'], 'sort' => 'last_visit DESC');
$department = isset($Params['user_parameters_unordered']['department']) && is_numeric($Params['user_parameters_unordered']['department']) ? (int) $Params['user_parameters_unordered']['department'] : false;
if ($department !== false) {
    $filter['filter']['dep_id'] = $department;
}
/**
 * Append user departments filter
 * */
$departmentParams = array();
$userDepartments = erLhcoreClassUserDep::parseUserDepartmetnsForFilter($currentUser->getUserID());
if ($userDepartments !== true) {
    $departmentParams['filterin']['id'] = $userDepartments;
    if (!$currentUser->hasAccessTo('lhchat', 'sees_all_online_visitors')) {
        $filter['filterin']['dep_id'] = $userDepartments;
    }
}
$items = erLhcoreClassModelChatOnlineUser::getList($filter);
$returnItems = array();
foreach ($items as $item) {
    if ($item->lat != 0 && $item->lon != 0) {
        $returnItems[] = array("Id" => (string) $item->id, "Latitude" => $item->lat, "Longitude" => $item->lon, "icon" => $item->chat_id > 0 ? erLhcoreClassDesign::design('images/icons/home-chat.png') : ($item->operator_message == '' ? erLhcoreClassDesign::design('images/icons/home-unsend.png') : erLhcoreClassDesign::design('images/icons/home-send.png')));
    }
}
echo json_encode(array('result' => $returnItems));
exit;
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'has sent a message to the user');
?>
" />
		        <img ng-show="!ou.operator_user_send" src="<?php 
echo erLhcoreClassDesign::design('images/icons/user_suit_32_inactive.png');
?>
" title="<?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'No one has sent a message to the user yet');
?>
" />
		        <img src="<?php 
echo erLhcoreClassDesign::design('images/icons/ip.png');
?>
" title="{{ou.ip}}" />
		        <img src="<?php 
echo erLhcoreClassDesign::design('images/icons/information.png');
?>
" title="{{ou.first_visit_front}} - <?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'first visit');
echo "\n";
?>
{{ou.last_visit_front}} - <?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'last visit');
echo "\n";
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'Pageviews');
?>
 - {{ou.pages_count}} {{ou.identifier != '' ? '\nIdentifier - '+ou.identifier : ''}}" />
				<i ng-class="{'returned-user': ou.total_visits > 1}" class="icon-reply return-user" title="{{ou.total_visits}}"></i>
	        </div>
        </td>        
        <td>
 public static function createCustomer($instance)
 {
     $originalSiteAccess = erLhcoreClassSystem::instance()->SiteAccess;
     if ($instance->locale != '') {
         erLhcoreClassSystem::instance()->setSiteAccessByLocale($instance->locale);
     }
     $password = erLhcoreClassModelForgotPassword::randomPassword(10);
     $chat_box_hash = erLhcoreClassModelForgotPassword::randomPassword(10);
     $searchArray = array('{email_replace}', '{password_hash}', '{export_hash_chats}', '{chat_box_hash}', '{chat_box_hash_length}');
     $cfg = erConfigClassLhConfig::getInstance();
     $replaceArray = array($instance->email, sha1($password . $cfg->getSetting('site', 'secrethash') . sha1($password)), erLhcoreClassModelForgotPassword::randomPassword(10), $chat_box_hash, strlen($chat_box_hash));
     $db = ezcDbInstance::get();
     self::deleteDatabase($instance->id);
     self::createDatabase($instance->id);
     $db->query('USE ' . $cfg->getSetting('db', 'database_user_prefix') . $instance->id);
     $sql = file_get_contents('extension/instance/doc/db_3.sql');
     $sql = str_replace($searchArray, $replaceArray, $sql);
     $db->query($sql);
     $dbPostUpdate = ltrim(erLhcoreClassDesign::design('db_post_update/db.sql'), '/');
     if (file_exists($dbPostUpdate)) {
         $db->query(file_get_contents($dbPostUpdate));
     }
     // Insert default user language
     if ($instance->locale != '') {
         $stm = $db->prepare("INSERT INTO `lh_users_setting` (`user_id`, `identifier`, `value`) VALUES (1,'user_language',:value)");
         $stm->bindValue(':value', $instance->locale);
         $stm->execute();
     } else {
         $stm = $db->prepare("INSERT INTO `lh_users_setting` (`user_id`, `identifier`, `value`) VALUES (1,'user_language',:value)");
         $stm->bindValue(':value', 'en_EN');
         $stm->execute();
     }
     $tpl = erLhcoreClassTemplate::getInstance('lhinstance/email.tpl.php');
     $tpl->setArray(array('instance' => $instance, 'email' => $instance->email, 'password' => $password));
     $mail = new PHPMailer();
     $mail->CharSet = 'UTF-8';
     $mail->Sender = $mail->From = $cfg->getSetting('site', 'seller_mail');
     $mail->FromName = $cfg->getSetting('site', 'seller_title');
     $mail->Subject = $cfg->getSetting('site', 'seller_title');
     $mail->AddReplyTo($cfg->getSetting('site', 'seller_mail'), $cfg->getSetting('site', 'seller_title'));
     $mail->Body = $tpl->fetch();
     $mail->AddAddress($instance->email);
     erLhcoreClassChatMail::setupSMTP($mail);
     $mail->Send();
     $mail->ClearAddresses();
     // Dispatch event for listeners
     erLhcoreClassChatEventDispatcher::getInstance()->dispatch('instance.registered.created', array('instance' => $instance));
     $db->query('USE ' . $cfg->getSetting('db', 'database'));
     // Activate instance
     $sql = "UPDATE lhc_instance_client SET status = 1 WHERE id = {$instance->id}";
     $db->query($sql);
     if ($instance->locale != '') {
         erLhcoreClassSystem::instance()->setSiteAccess($originalSiteAccess);
     }
 }
Ejemplo n.º 17
0
    		} catch(err) {};
    	}
    },

    makeScreenshot : function() {    	
    	var inst = this;
    	if (typeof html2canvas == "undefined") {    					   		
		   		var th = document.getElementsByTagName('head')[0];
		        var s = document.createElement('script');
		        s.setAttribute('type','text/javascript');
		        s.setAttribute('src','<?php 
    echo erLhcoreClassModelChatConfig::fetch('explicit_http_mode')->current_value;
    ?>
//<?php 
    echo $_SERVER['HTTP_HOST'];
    echo erLhcoreClassDesign::design('js/html2canvas.min.js');
    ?>
');
		        th.appendChild(s);		        
		        s.onreadystatechange = s.onload = function(){
		        	inst.makeScreenshot();
		        };		        
    	} else {
		    	try {
				  	html2canvas(document.body, {
						  onrendered: function(canvas) {
						         var xhr = new XMLHttpRequest();
						         xhr.open( "POST", '<?php 
    echo erLhcoreClassModelChatConfig::fetch('explicit_http_mode')->current_value;
    ?>
//<?php 
<span id="lhc_questionary_title"><a title="Powered by Live Helper Chat" href="http://livehelperchat.com" target="_blank"><img src="<?php 
echo erLhcoreClassModelChatConfig::fetch('explicit_http_mode')->current_value;
?>
//<?php 
echo $_SERVER['HTTP_HOST'];
echo erLhcoreClassDesign::design('images/icons/plant16x16.png');
?>
" alt="Live Helper Chat" /></a></span>
			
						
		<style type="text/css">
		.lhc-no-transition{ -webkit-transition: none !important; -moz-transition: none !important;-o-transition: none !important;-ms-transition: none !important;transition: none !important;}
		.lhc-min{height:35px !important}
		#lhc_container * {direction:ltr;text-align:left;;font-family:arial;font-size:12px;line-height:100%;box-sizing: content-box;-moz-box-sizing:content-box;padding:0;margin:0;}
		#lhc_container img {border:0;}
		#lhc_title{float:left;}
		#lhc_header{position:relative;z-index:9990;height:{{ngModelAbstractInput_header_height > 0 ? ngModelAbstractInput_header_height : 15}}px;overflow:hidden;text-align:right;clear:both;background-color:#{{bactract_bg_color_header_background}};padding:{{ngModelAbstractInput_header_padding > 0 ? ngModelAbstractInput_header_padding : 5}}px;}
		#lhc_remote_window,#lhc_min,#lhc_close{padding:2px;float:right;}
		#lhc_close:hover,#lhc_min:hover,#lhc_remote_window:hover{opacity:0.4;}
		#lhc_container {background-color:#FFF;-moz-user-select:none; -khtml-user-drag:element;cursor: move;cursor: -moz-grab;cursor: -webkit-grab;overflow: hidden;transition-property: height;transition-duration: 0.4s;-webkit-transition: height 0.4s ease-in-out;transition: height 0.4s;z-index:9990;-webkit-box-shadow: -1px -1px 5px rgba(50, 50, 50, 0.17);-moz-box-shadow: -1px -1px 5px rgba(50, 50, 50, 0.17);box-shadow: -1px -1px 5px rgba(50, 50, 50, 0.17);-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px; }
		#lhc_container iframe{transition-property: height;transition-duration: 0.4s;-webkit-transition: height 0.4s ease-in-out;transition: height 0.4s;}
		#lhc_container #lhc_iframe_container{border: {{ngModelAbstractInput_widget_border_width > 0 ? ngModelAbstractInput_widget_border_width : 1}}px solid #{{bactract_bg_color_widget_border_color}};border-top: 0;border-bottom-left-radius: 5px;border-bottom-right-radius: 5px;overflow: hidden;}
		#lhc_container iframe.lhc-loading{background: #FFF url(<?php 
echo erLhcoreClassDesign::design('images/general/loading.gif');
?>
) no-repeat center center; }
		@media only screen and (max-width : 640px) {#lhc_container{margin-bottom:5px;position:relative;right:0 !important;bottom:0 !important;top:0 !important}#lhc_container iframe{width:100% !important}}
		</style>
				
		<style type="text/css">
		#lhc_need_help_container{font-size:12px;width:235px;border-radius:20px;background:#{{bactract_bg_color_need_help_bcolor}};color:#{{bactract_bg_color_need_help_tcolor}};padding:10px;border:1px solid #{{bactract_bg_color_need_help_border}};}
		#lhc_need_help_container:hover{background-color:#{{bactract_bg_color_need_help_hover_bg}} }#lhc_need_help_container:hover #lhc_need_help_triangle{border-top-color:#84A52E}
		#lhc_need_help_triangle{width: 0;height: 0;border-left: 20px solid transparent;border-right: 10px solid transparent;border-top: 15px solid #{{bactract_bg_color_offl_bcolor}};position:absolute;bottom:-14px;}
		#lhc_need_help_close{float:right;border-radius:10px;background:#{{bactract_bg_color_need_help_close_bg}};padding:0px 6px;color:#FFF;right:10px;font-size:16px;font-weight:bold;text-decoration:none;margin-top:0px;line-height:20px}#lhc_need_help_close:hover{background-color:#{{bactract_bg_color_need_help_close_hover_bg}};}
		#lhc_need_help_image{padding-right:10px;float:left;cursor:pointer;}#lhc_need_help_image img{border-radius:30px;border:1px solid #d0d0d0}#lhc_need_help_main_title{font-size:16px;font-weight:bold;cursor:pointer;line-height:1.5}#lhc_need_help_sub_title{cursor:pointer;line-height:1.5}
		</style>
			
		
	</div>
<script type="text/javascript">
var WWW_DIR_JAVASCRIPT = '<?php 
echo erLhcoreClassDesign::baseurl();
?>
';
var WWW_DIR_JAVASCRIPT_FILES = '<?php 
echo erLhcoreClassDesign::design('sound');
?>
';
var confLH = {};
confLH.back_office_sinterval = 11000;
confLH.chat_message_sinterval = 3600;
confLH.new_chat_sound_enabled = 1;
confLH.new_message_sound_admin_enabled =1;
confLH.new_message_sound_user_enabled = 1;
</script>
<script type="text/javascript" language="javascript" src="<?php 
echo erLhcoreClassDesign::designJS('js/jquery.js;js/modernizr.js;js/foundation.min.js;js/jquery.colorbox-min.js;js/lh.js;js/jquery.hotkeys-0.7.9.min.js');
?>
"></script>
Ejemplo n.º 21
0
" src="<?php 
echo erLhcoreClassDesign::design('images/icons/home-chat.png');
?>
" />
	    				<img data-tooltip class="tip-right" title="<?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'User does not have any message from operator');
?>
" src="<?php 
echo erLhcoreClassDesign::design('images/icons/home-unsend.png');
?>
" />
	    				<img data-tooltip class="tip-right" title="<?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'User has message from operator');
?>
" src="<?php 
echo erLhcoreClassDesign::design('images/icons/home-send.png');
?>
" />
					</div>
					<div class="columns large-3">
					<?php 
echo erLhcoreClassRenderHelper::renderCombobox(array('input_name' => 'department_map_id', 'optional_field' => erTranslationClassLhTranslation::getInstance()->getTranslation('chat/lists/search_panel', 'Select department'), 'selected_id' => $omapDepartment, 'list_function' => 'erLhcoreClassModelDepartament::getList'));
?>
				    </div>
					<div class="columns large-3">
						<select id="markerTimeout" title="<?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'Marker timeout before it dissapears from map');
?>
">
			    			<option value="30" <?php 
echo $omapMarkerTimeout == 30 ? 'selected="selected"' : '';
Ejemplo n.º 22
0
        ?>
	        <div class="message-row response" id="msg-<?php 
        echo $msg['id'];
        ?>
"><div class="msg-date"><?php 
        if (date('Ymd') == date('Ymd', $msg['time'])) {
            echo date(erLhcoreClassModule::$dateHourFormat, $msg['time']);
        } else {
            echo date(erLhcoreClassModule::$dateDateHourFormat, $msg['time']);
        }
        ?>
</div><span class="usr-tit"><?php 
        if (isset($sync_mode) && $sync_mode == 'widget' || isset($chat_widget_mode) && $chat_widget_mode == true) {
            ?>
<img src="<?php 
            echo erLhcoreClassDesign::design('images/icons/user_suit.png');
            ?>
" title="<?php 
            echo htmlspecialchars($msg['name_support']);
            ?>
" alt="<?php 
            echo htmlspecialchars($msg['name_support']);
            ?>
" /><?php 
        } else {
            echo htmlspecialchars($msg['name_support']);
            ?>
:<?php 
        }
        ?>
&nbsp;</span><?php 
Ejemplo n.º 23
0
 /**
  * Open, parse, and return the template file.
  *
  * @param $file string the template file name
  */
 function fetch($fileTemplate = null)
 {
     $instance = erLhcoreClassSystem::instance();
     $port = isset($_SERVER['SERVER_PORT']) ? $_SERVER['SERVER_PORT'] : 80;
     if (!$fileTemplate) {
         $fileTemplate = $this->file;
     }
     if ($this->cacheEnabled == true && key_exists(md5($fileTemplate . $instance->WWWDirLang . $instance->Language . $port), $this->cacheTemplates)) {
         try {
             return $this->fetchExecute($this->cacheTemplates[md5($fileTemplate . $instance->WWWDirLang . $instance->Language . $port)]);
         } catch (Exception $e) {
         }
     }
     $cfg = erConfigClassLhConfig::getInstance();
     $file = erLhcoreClassDesign::designtpl($fileTemplate);
     if ($this->templatecompile == true) {
         $contentFile = php_strip_whitespace($file);
         // Compile templates - 3 level of inclusions
         for ($i = 0; $i < 9; $i++) {
             $Matches = array();
             preg_match_all('/<\\?php(\\s*)include_once\\(erLhcoreClassDesign::designtpl\\(\'([a-zA-Z0-9-\\.-\\/\\_]+)\'\\)\\)(.*?)\\?\\>/i', $contentFile, $Matches);
             foreach ($Matches[2] as $key => $Match) {
                 $contentFile = str_replace($Matches[0][$key], php_strip_whitespace(erLhcoreClassDesign::designtpl($Match)), $contentFile);
             }
             //Compile templates inclusions first level.
             $Matches = array();
             preg_match_all('/<\\?php(\\s*)include\\(erLhcoreClassDesign::designtpl\\(\'([a-zA-Z0-9-\\.-\\/\\_]+)\'\\)\\)(.*?)\\?\\>/i', $contentFile, $Matches);
             foreach ($Matches[2] as $key => $Match) {
                 $contentFile = str_replace($Matches[0][$key], php_strip_whitespace(erLhcoreClassDesign::designtpl($Match)), $contentFile);
             }
         }
         //Compile image css paths. Etc..
         $Matches = array();
         preg_match_all('/<\\?php echo erLhcoreClassDesign::design\\(\'([a-zA-Z0-9-\\.-\\/\\_]+)\'\\)(.*?)\\?\\>/i', $contentFile, $Matches);
         foreach ($Matches[1] as $key => $Match) {
             $contentFile = str_replace($Matches[0][$key], erLhcoreClassDesign::design($Match), $contentFile);
         }
         //Compile translations, pure translations
         $Matches = array();
         preg_match_all('/<\\?php echo erTranslationClassLhTranslation::getInstance\\(\\)->getTranslation\\(\'(.*?)\',\'(.*?)\'\\)(.*?)\\?\\>/i', $contentFile, $Matches);
         foreach ($Matches[1] as $key => $TranslateContent) {
             $contentFile = str_replace($Matches[0][$key], erTranslationClassLhTranslation::getInstance()->getTranslation($TranslateContent, $Matches[2][$key]), $contentFile);
         }
         //Translations used in logical conditions
         $Matches = array();
         preg_match_all('/erTranslationClassLhTranslation::getInstance\\(\\)->getTranslation\\(\'(.*?)\',\'(.*?)\'\\)/i', $contentFile, $Matches);
         foreach ($Matches[1] as $key => $TranslateContent) {
             $contentFile = str_replace($Matches[0][$key], '\'' . erTranslationClassLhTranslation::getInstance()->getTranslation($TranslateContent, $Matches[2][$key]) . '\'', $contentFile);
         }
         // Compile url addresses
         $Matches = array();
         preg_match_all('/<\\?php echo erLhcoreClassDesign::baseurl\\((.*?)\\)(.*?)\\?\\>/i', $contentFile, $Matches);
         foreach ($Matches[1] as $key => $UrlAddress) {
             $contentFile = str_replace($Matches[0][$key], erLhcoreClassDesign::baseurl(trim($UrlAddress, '\'')), $contentFile);
         }
         // Compile url direct addresses
         $Matches = array();
         preg_match_all('/<\\?php echo erLhcoreClassDesign::baseurldirect\\((.*?)\\)(.*?)\\?\\>/i', $contentFile, $Matches);
         foreach ($Matches[1] as $key => $UrlAddress) {
             $contentFile = str_replace($Matches[0][$key], erLhcoreClassDesign::baseurldirect(trim($UrlAddress, '\'')), $contentFile);
         }
         // Compile url direct addresses
         $Matches = array();
         preg_match_all('/<\\?php echo erLhcoreClassDesign::baseurlsite\\(\\)(.*?)\\?\\>/i', $contentFile, $Matches);
         foreach ($Matches[1] as $key => $UrlAddress) {
             $contentFile = str_replace($Matches[0][$key], erLhcoreClassDesign::baseurlsite(), $contentFile);
         }
         // Compile css url addresses
         $Matches = array();
         preg_match_all('/<\\?php echo erLhcoreClassDesign::designCSS\\((.*?)\\)(.*?)\\?\\>/i', $contentFile, $Matches);
         foreach ($Matches[1] as $key => $UrlAddress) {
             $contentFile = str_replace($Matches[0][$key], erLhcoreClassDesign::designCSS(trim($UrlAddress, '\'')), $contentFile);
         }
         // Compile css url addresses
         $Matches = array();
         preg_match_all('/<\\?php echo erLhcoreClassDesign::designJS\\((.*?)\\)(.*?)\\?\\>/i', $contentFile, $Matches);
         foreach ($Matches[1] as $key => $UrlAddress) {
             $contentFile = str_replace($Matches[0][$key], erLhcoreClassDesign::designJS(trim($UrlAddress, '\'')), $contentFile);
         }
         // Compile url addresses in logical operations
         $Matches = array();
         preg_match_all('/erLhcoreClassDesign::baseurl\\((.*?)\\)/i', $contentFile, $Matches);
         foreach ($Matches[1] as $key => $UrlAddress) {
             $contentFile = str_replace($Matches[0][$key], '\'' . erLhcoreClassDesign::baseurl(trim($UrlAddress, '\'')) . '\'', $contentFile);
         }
         // Compile url addresses in logical operations
         $Matches = array();
         preg_match_all('/erLhcoreClassDesign::baseurldirect\\((.*?)\\)/i', $contentFile, $Matches);
         foreach ($Matches[1] as $key => $UrlAddress) {
             $contentFile = str_replace($Matches[0][$key], '\'' . erLhcoreClassDesign::baseurldirect(trim($UrlAddress, '\'')) . '\'', $contentFile);
         }
         // Compile config settings, direct output
         $Matches = array();
         preg_match_all('/<\\?php echo erConfigClassLhConfig::getInstance\\(\\)->getSetting\\((\\s?)\'([a-zA-Z0-9-\\.-\\/\\_]+)\'(\\s?),(\\s?)\'([a-zA-Z0-9-\\.-\\/\\_]+)\'(\\s?)\\)(.*?)\\?\\>/i', $contentFile, $Matches);
         foreach ($Matches[1] as $key => $UrlAddress) {
             $valueConfig = erConfigClassLhConfig::getInstance()->getSetting($Matches[2][$key], $Matches[5][$key]);
             $valueReplace = '';
             if (is_bool($valueConfig)) {
                 $valueReplace = $valueConfig == false ? 'false' : 'true';
             } elseif (is_integer($valueConfig)) {
                 $valueReplace = $valueConfig;
             } elseif (is_array($valueConfig)) {
                 $valueReplace = var_export($valueConfig, true);
             } else {
                 $valueReplace = $valueConfig;
             }
             $contentFile = str_replace($Matches[0][$key], $valueReplace, $contentFile);
         }
         // Compile config settings
         $Matches = array();
         preg_match_all('/erConfigClassLhConfig::getInstance\\(\\)->getSetting\\((\\s?)\'([a-zA-Z0-9-\\.-\\/\\_]+)\'(\\s?),(\\s?)\'([a-zA-Z0-9-\\.-\\/\\_]+)\'(\\s?)\\)/i', $contentFile, $Matches);
         foreach ($Matches[1] as $key => $UrlAddress) {
             $valueConfig = erConfigClassLhConfig::getInstance()->getSetting($Matches[2][$key], $Matches[5][$key]);
             $valueReplace = '';
             if (is_bool($valueConfig)) {
                 $valueReplace = $valueConfig == false ? 'false' : 'true';
             } elseif (is_integer($valueConfig)) {
                 $valueReplace = $valueConfig;
             } elseif (is_array($valueConfig)) {
                 $valueReplace = var_export($valueConfig, true);
             } else {
                 $valueReplace = '\'' . $valueConfig . '\'';
             }
             $contentFile = str_replace($Matches[0][$key], $valueReplace, $contentFile);
         }
         // Compile override config settings, used in title, description override
         $Matches = array();
         preg_match_all('/<\\?php echo erConfigClassLhConfig::getInstance\\(\\)->getOverrideValue\\((\\s?)\'([a-zA-Z0-9-\\.-\\/\\_]+)\'(\\s?),(\\s?)\'([a-zA-Z0-9-\\.-\\/\\_]+)\'(\\s?)\\)(.*?)\\?\\>/i', $contentFile, $Matches);
         foreach ($Matches[1] as $key => $UrlAddress) {
             $valueConfig = erConfigClassLhConfig::getInstance()->getOverrideValue($Matches[2][$key], $Matches[5][$key]);
             $valueReplace = '';
             if (is_bool($valueConfig)) {
                 $valueReplace = $valueConfig == false ? 'false' : 'true';
             } elseif (is_integer($valueConfig)) {
                 $valueReplace = $valueConfig;
             } elseif (is_array($valueConfig)) {
                 $valueReplace = var_export($valueConfig, true);
             } else {
                 $valueReplace = $valueConfig;
             }
             $contentFile = str_replace($Matches[0][$key], $valueReplace, $contentFile);
         }
         // Compile override config settings
         $Matches = array();
         preg_match_all('/erConfigClassLhConfig::getInstance\\(\\)->getOverrideValue\\((\\s?)\'([a-zA-Z0-9-\\.-\\/\\_]+)\'(\\s?),(\\s?)\'([a-zA-Z0-9-\\.-\\/\\_]+)\'(\\s?)\\)/i', $contentFile, $Matches);
         foreach ($Matches[1] as $key => $UrlAddress) {
             $valueConfig = erConfigClassLhConfig::getInstance()->getOverrideValue($Matches[2][$key], $Matches[5][$key]);
             $valueReplace = '';
             if (is_bool($valueConfig)) {
                 $valueReplace = $valueConfig == false ? 'false' : 'true';
             } elseif (is_integer($valueConfig)) {
                 $valueReplace = $valueConfig;
             } elseif (is_array($valueConfig)) {
                 $valueReplace = var_export($valueConfig, true);
             } else {
                 $valueReplace = '\'' . $valueConfig . '\'';
             }
             $contentFile = str_replace($Matches[0][$key], $valueReplace, $contentFile);
         }
         $Matches = array();
         preg_match_all('/<\\?php echo erConfigClassLhConfig::getInstance\\(\\)->getDirLanguage\\((\\s?)\'([a-zA-Z0-9-\\.-\\/\\_]+)\'(\\s?)\\)(.*?)\\?\\>/i', $contentFile, $Matches);
         foreach ($Matches[1] as $key => $UrlAddress) {
             $valueConfig = erConfigClassLhConfig::getInstance()->getDirLanguage($Matches[2][$key]);
             $valueReplace = '';
             if (is_bool($valueConfig)) {
                 $valueReplace = $valueConfig == false ? 'false' : 'true';
             } elseif (is_integer($valueConfig)) {
                 $valueReplace = $valueConfig;
             } elseif (is_array($valueConfig)) {
                 $valueReplace = var_export($valueConfig, true);
             } else {
                 $valueReplace = $valueConfig;
             }
             $contentFile = str_replace($Matches[0][$key], $valueReplace, $contentFile);
         }
         // Compile config settings
         $Matches = array();
         preg_match_all('/erConfigClassLhConfig::getInstance\\(\\)->getDirLanguage\\((\\s?)\'([a-zA-Z0-9-\\.-\\/\\_]+)\'(\\s?)\\)/i', $contentFile, $Matches);
         foreach ($Matches[1] as $key => $var) {
             $valueConfig = erConfigClassLhConfig::getInstance()->getDirLanguage($Matches[2][$key]);
             $valueReplace = '';
             if (is_bool($valueConfig)) {
                 $valueReplace = $valueConfig == false ? 'false' : 'true';
             } elseif (is_integer($valueConfig)) {
                 $valueReplace = $valueConfig;
             } elseif (is_array($valueConfig)) {
                 $valueReplace = var_export($valueConfig, true);
             } else {
                 $valueReplace = '\'' . $valueConfig . '\'';
             }
             $contentFile = str_replace($Matches[0][$key], $valueReplace, $contentFile);
         }
         if ($this->cacheDbVariables == true) {
             // Compile config completely
             $Matches = array();
             preg_match_all('/<\\?php echo erLhcoreClassModelChatConfig::fetch\\((\\s?)\'([a-zA-Z0-9-\\.-\\/\\_]+)\'(\\s?)\\)->current_value(.*?)\\?\\>/i', $contentFile, $Matches);
             foreach ($Matches[1] as $key => $UrlAddress) {
                 $valueConfig = erLhcoreClassModelChatConfig::fetch($Matches[2][$key])->current_value;
                 $contentFile = str_replace($Matches[0][$key], $valueConfig, $contentFile);
             }
             // Compile config settings in php scripts
             $Matches = array();
             preg_match_all('/erLhcoreClassModelChatConfig::fetch\\((\\s?)\'([a-zA-Z0-9-\\.-\\/\\_]+)\'(\\s?)\\)->current_value/i', $contentFile, $Matches);
             foreach ($Matches[1] as $key => $UrlAddress) {
                 $valueConfig = erLhcoreClassModelChatConfig::fetch($Matches[2][$key])->current_value;
                 $valueReplace = '';
                 $valueReplace = '\'' . str_replace("'", "\\'", $valueConfig) . '\'';
                 $contentFile = str_replace($Matches[0][$key], $valueReplace, $contentFile);
             }
             // Compile config settings in php scripts
             $Matches = array();
             preg_match_all('/erLhcoreClassModelChatConfig::fetch\\((\\s?)\'([a-zA-Z0-9-\\.-\\/\\_]+)\'(\\s?)\\)->data_value/i', $contentFile, $Matches);
             foreach ($Matches[1] as $key => $UrlAddress) {
                 $valueConfig = erLhcoreClassModelChatConfig::fetch($Matches[2][$key])->data_value;
                 $valueReplace = var_export($valueConfig, true);
                 $contentFile = str_replace($Matches[0][$key], $valueReplace, $contentFile);
             }
             // Compile config settings array
             $Matches = array();
             preg_match_all('/erLhcoreClassModelChatConfig::fetch\\((\\s?)\'([a-zA-Z0-9-\\.-\\/\\_]+)\'(\\s?)\\)->data\\[\'([a-zA-Z0-9-\\.-\\/\\_]+)\'\\]/i', $contentFile, $Matches);
             foreach ($Matches[1] as $key => $UrlAddress) {
                 $valueConfig = erLhcoreClassModelChatConfig::fetch($Matches[2][$key])->data[$Matches[4][$key]];
                 $valueReplace = '';
                 $valueReplace = '\'' . str_replace("'", "\\'", $valueConfig) . '\'';
                 $contentFile = str_replace($Matches[0][$key], $valueReplace, $contentFile);
             }
         }
         // Compile content language
         $contentFile = str_replace('<?php echo erLhcoreClassSystem::instance()->ContentLanguage?>', erLhcoreClassSystem::instance()->ContentLanguage, $contentFile);
         // Compile siteaccess
         $contentFile = str_replace('erLhcoreClassSystem::instance()->SiteAccess', '\'' . erLhcoreClassSystem::instance()->SiteAccess . '\'', $contentFile);
         // Atomoc template compilation to avoid concurent request compiling and writing to the same file
         $fileName = 'cache/compiledtemplates/' . md5(time() . rand(0, 1000) . microtime() . $file . $instance->WWWDirLang . $instance->Language . $port) . '.php';
         file_put_contents($fileName, erLhcoreClassTemplate::strip_html($contentFile));
         $file = 'cache/compiledtemplates/' . md5($file . $instance->WWWDirLang . $instance->Language . $port) . '.php';
         rename($fileName, $file);
         $this->cacheTemplates[md5($fileTemplate . $instance->WWWDirLang . $instance->Language . $port)] = $file;
         $this->storeCache();
     }
     return $this->fetchExecute($file);
 }
} else {
    echo erLhcoreClassDesign::design('images/icons/user_green_chat.png');
}
?>
" alt="" /><?php 
if ($theme !== false && $theme->online_text !== '') {
    print htmlspecialchars_decode($theme->online_text, ENT_QUOTES);
} else {
    echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/getstatus', 'Live help is online...');
}
?>
' : '<img src="<?php 
echo erLhcoreClassModelChatConfig::fetch('explicit_http_mode')->current_value;
?>
//<?php 
echo $_SERVER['HTTP_HOST'];
if ($theme !== false && $theme->offline_image_url !== false) {
    print $theme->offline_image_url;
} else {
    echo erLhcoreClassDesign::design('images/icons/user_gray_chat.png');
}
?>
" alt="" /><?php 
if ($theme !== false && $theme->offline_text != '') {
    print htmlspecialchars_decode($theme->offline_text, ENT_QUOTES);
} else {
    echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/getstatus', 'Live help is offline...');
}
?>
')+'</a></p>';
Ejemplo n.º 25
0
        ?>
&laquo;<?php 
        echo ' ';
    }
}
echo htmlspecialchars(erLhcoreClassModelChatConfig::fetch('application_name')->current_value);
?>
</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="icon" type="image/png" href="<?php 
echo erLhcoreClassDesign::design('images/favicon.ico');
?>
" />
<link rel="shortcut icon" type="image/x-icon" href="<?php 
echo erLhcoreClassDesign::design('images/favicon.ico');
?>
">
<meta name="Keywords" content="" />
<meta name="Description" content="<?php 
echo erConfigClassLhConfig::getInstance()->getOverrideValue('site', 'description');
?>
" />
<meta name="robots" content="noindex, nofollow">

<?php 
include_once erLhcoreClassDesign::designtpl('pagelayouts/parts/copyright_meta.tpl.php');
?>

<link rel="stylesheet" type="text/css" href="<?php 
echo erLhcoreClassDesign::designCSS('css/BookReader.css');
    ?>
    <img src="<?php 
    echo erLhcoreClassDesign::design('images/icons/user_suit_32.png');
    ?>
" title="<?php 
    echo htmlspecialchars($operator_user);
    ?>
 <?php 
    echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'has send message to user');
    ?>
" />
    <?php 
} else {
    ?>
    <img src="<?php 
    echo erLhcoreClassDesign::design('images/icons/user_suit_32_inactive.png');
    ?>
" title="<?php 
    echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'No one has send any message to user yet');
    ?>
" />
    <?php 
}
?>

<ul class="circle fs11">
    <li><?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/onlineusers', 'First visit');
?>
 - <?php 
echo $online_user->first_visit_front;
Ejemplo n.º 27
0
<img alt=":)" src="<?php 
echo erLhcoreClassDesign::design('images/smileys/emoticon_smile.png');
?>
" />||
<img alt=":D:" src="<?php 
echo erLhcoreClassDesign::design('images/smileys/emoticon_happy.png');
?>
" />||
<img alt=":(" src="<?php 
echo erLhcoreClassDesign::design('images/smileys/emoticon_unhappy.png');
?>
" />||
<img alt=":o:" src="<?php 
echo erLhcoreClassDesign::design('images/smileys/emoticon_surprised.png');
?>
" />||
<img alt=":p:" src="<?php 
echo erLhcoreClassDesign::design('images/smileys/emoticon_tongue.png');
?>
" />||
<img alt=";)" src="<?php 
echo erLhcoreClassDesign::design('images/smileys/emoticon_wink.png');
?>
" />
Ejemplo n.º 28
0
        if ($chat->status == 1 && ($can_close_global == true || $chat->user_id == $current_user_id)) {
            ?>
<a title="<?php 
            echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/activechats', 'Close chat');
            ?>
" href="<?php 
            echo erLhcoreClassDesign::baseurl('chat/closechat');
            ?>
/<?php 
            echo $chat->id;
            ?>
"><img class="action-image" align="absmiddle" onclick="lhinst.closeActiveChatDialog('<?php 
            echo $chat->id;
            ?>
',$('#tabs'),false)" src="<?php 
            echo erLhcoreClassDesign::design('images/icons/cancel.png');
            ?>
" alt="<?php 
            echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/activechats', 'Close chat');
            ?>
" title="<?php 
            echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/activechats', 'Close chat');
            ?>
"></a><?php 
        }
        ?>
	      <?php 
        if ($can_delete_global == true || $can_delete_general == true && $chat->user_id == $current_user_id) {
            ?>
<a class="csfr-required icon-cancel-squared" title="<?php 
            echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/activechats', 'Delete chat');
echo $chatOptionsVariable;
?>
.opt.nh_image != 'undefined') ? <?php 
echo $chatOptionsVariable;
?>
.opt.nh_image : '<?php 
if ($iconsStatuses['need_help_image_url'] == false) {
    echo erLhcoreClassModelChatConfig::fetch('explicit_http_mode')->current_value;
    ?>
//<?php 
    echo $_SERVER['HTTP_HOST'];
}
if ($theme !== false && $theme->need_help_image_url !== false) {
    print $theme->need_help_image_url;
} else {
    echo erLhcoreClassDesign::design('images/general/operator.png');
}
?>
';

subStatus = '<div id="lhc_need_help_container" style="<?php 
echo $currentPosition['nh_hor_pos'];
?>
">'+
'<span id="lhc_need_help_triangle" style="<?php 
echo $currentPosition['nh_tr_pos'];
?>
"></span>'+
'<a id="lhc_need_help_close" title="<?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/getstatus', 'Close');
?>
Ejemplo n.º 30
0
<div class="message-row"><div class="msg-date"><?php 
echo $msg->time_front;
?>
</div><span class="usr-tit"><?php 
if ($add_msg_mode == 'widget') {
    ?>
<img src="<?php 
    echo erLhcoreClassDesign::design('images/icons/user_green.png');
    ?>
" title="<?php 
    echo htmlspecialchars($chat->nick);
    ?>
" alt="<?php 
    echo htmlspecialchars($chat->nick);
    ?>
" /><?php 
} else {
    echo htmlspecialchars($chat->nick);
    ?>
:<?php 
}
?>
&nbsp;</span><?php 
echo erLhcoreClassBBCode::make_clickable(htmlspecialchars($msg->msg));
?>
</div>