当前位置: 首页>>代码示例>>PHP>>正文


PHP erLhcoreClassDesign::design方法代码示例

本文整理汇总了PHP中erLhcoreClassDesign::design方法的典型用法代码示例。如果您正苦于以下问题:PHP erLhcoreClassDesign::design方法的具体用法?PHP erLhcoreClassDesign::design怎么用?PHP erLhcoreClassDesign::design使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在erLhcoreClassDesign的用法示例。


在下文中一共展示了erLhcoreClassDesign::design方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __get

 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;
     }
 }
开发者ID:Topspot,项目名称:livehelperchat,代码行数:56,代码来源:erlhcoreclassmodeldocshare.php

示例2: getExpireOptions

 /**
  * @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();
 }
开发者ID:alisadali,项目名称:automated-hosting,代码行数:13,代码来源:erlhcoreclassinstance.php

示例3:

<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>
开发者ID:Joeboyc2,项目名称:livehelperchat,代码行数:31,代码来源:angular_unread_list.tpl.php

示例4: rgba

       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'];
开发者ID:nagyistoce,项目名称:livehelperchat,代码行数:31,代码来源:getstatus.tpl.php

示例5:

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'];
?>
开发者ID:sudogitguy,项目名称:livehelperchat,代码行数:31,代码来源:login.php

示例6: json_encode

?>
,'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 {
开发者ID:alisadali,项目名称:automated-hosting,代码行数:31,代码来源:operatorinit.tpl.php

示例7:

        }
        ?>
           <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;
开发者ID:Topspot,项目名称:livehelperchat,代码行数:31,代码来源:listarchivechats.tpl.php

示例8: htmlspecialchars

        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 
开发者ID:Adeelgill,项目名称:livehelperchat,代码行数:31,代码来源:list.tpl.php

示例9:

<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']);
开发者ID:sudogitguy,项目名称:livehelperchat,代码行数:31,代码来源:page_head_js.tpl.php

示例10:

<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>
开发者ID:noikiy,项目名称:livehelperchat-extensions,代码行数:8,代码来源:chatbox.tpl.php

示例11: _make_flattr_embed

 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>';
 }
开发者ID:Topspot,项目名称:livehelperchat,代码行数:21,代码来源:lhbbcode.php

示例12: dependJs

 public function dependJs()
 {
     return '<script type="text/javascript" src="' . erLhcoreClassDesign::design('js/colorpicker.js') . '"></script>';
 }
开发者ID:niravpatel2008,项目名称:north-american-nemesis-new,代码行数:4,代码来源:erlhabstractmodelwidgettheme.php

示例13: array

<?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;
开发者ID:mdb-webdev,项目名称:livehelperchat,代码行数:27,代码来源:jsononlineusers.php

示例14:

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>
开发者ID:paisdelconocimiento,项目名称:glpi-smartcities,代码行数:31,代码来源:section_online_users.tpl.php

示例15: createCustomer

 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);
     }
 }
开发者ID:jabaxalapa,项目名称:automated-hosting,代码行数:55,代码来源:erlhcoreclassinstance.php


注:本文中的erLhcoreClassDesign::design方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。