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


PHP Helpers::htmlEntities方法代码示例

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


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

示例1: printPagetreeOptions

/**
 * PixelManager CMS (Community Edition)
 * Copyright (C) 2016 PixelProduction (http://www.pixelproduction.de)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
function printPagetreeOptions(&$pagetree, $pages, $preselectedParentId, $indent = '')
{
    foreach ($pagetree as $page) {
        print '<option value="' . $page['id'] . '"' . ($page['id'] == $preselectedParentId ? ' selected' : '') . '>' . $indent . Helpers::htmlEntities($pages->getAnyCaption($page['id'])) . '</option>';
        if (isset($page['children'])) {
            if ($page['children'] !== false) {
                if (count($page['children']) > 0) {
                    printPagetreeOptions($page['children'], $pages, $preselectedParentId, $indent . '&nbsp;-&nbsp;');
                }
            }
        }
    }
}
开发者ID:pixelproduction,项目名称:PixelManagerCMS,代码行数:30,代码来源:settings.php

示例2: gettabcontentAction

 public function gettabcontentAction()
 {
     $config = Config::getArray();
     $html = '';
     if ($config['showBackendModulesTab'] === true) {
         if (count($config['backendModules']) > 0) {
             $groups = $this->getModuleGroups();
             if (count($groups) > 0) {
                 foreach ($groups as $group_id => $group) {
                     if (count($group['modules']) > 0) {
                         $html .= '<div class="pixelmanager-backend-modules-group-heading">' . Helpers::htmlEntities($group['caption']) . '</div>' . '<div class="list-group">';
                         foreach ($group['modules'] as $module_id => $module) {
                             $module_name = Translate::get($module['name']);
                             $caption = $module_name;
                             $plugin_parameters = array('moduleId' => $module_id, 'moduleConfig' => $module);
                             Plugins::call(Plugins::GET_BACKEND_MODULES_TAB_CAPTION, $plugin_parameters, $caption);
                             $html .= '<a href="javascript:;" class="list-group-item open-module-in-tab" data-module-id="' . Helpers::htmlEntities($module_id) . '" data-module-url="' . Helpers::htmlEntities($module['url']) . '" data-module-name="' . Helpers::htmlEntities($module_name) . '">' . $caption . '</a>';
                         }
                         $html .= '</div>';
                     }
                 }
             }
         }
     }
     $this->success($html);
 }
开发者ID:pixelproduction,项目名称:PixelManagerCMS,代码行数:26,代码来源:Backendmodules.php

示例3:

        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h3><?php 
echo Translate::get('You have been logged out, please log in again');
?>
</h3>
                </div>
                <div class="modal-body">
                    <form action="#" class=".form-horizontal">
                        <label><?php 
echo Translate::get('Login');
?>
</label>
                        <input type="text" disabled value="<?php 
echo Helpers::htmlEntities(Auth::getLoginName());
?>
">
                        <label><?php 
echo Translate::get('Password');
?>
</label>
                        <input type="password" id="pixelmanager-main-synchronize-login-password">
                    </form>
                </div>
                <div class="modal-footer">
                    <a href="javascript:;" class="btn btn-default"
                       id="btn_login_retry"><?php 
echo Translate::get('Login');
?>
</a>
开发者ID:pixelproduction,项目名称:PixelManagerCMS,代码行数:31,代码来源:main.php

示例4:

                <div class="pixelmanager-input-block">
                    <div class="pixelmanager-input-block-headline">
                        <h2><?php 
echo Translate::get('Login');
?>
</h2>

                        <h3><?php 
echo Translate::get('The name used to login into the system. Must be uniqe.');
?>
</h3>
                    </div>
                    <div class="control-group">
                        <input name="login" id="login" class="form-control input-xlarge" type="text" autocomplete="off"
                               value="<?php 
echo Helpers::htmlEntities($var->account->login);
?>
">
                    </div>
                </div>
                <div class="pixelmanager-input-block">
                    <div class="pixelmanager-input-block-headline">
                        <h2><?php 
echo Translate::get('Password');
?>
</h2>

                        <h3><?php 
echo Translate::get('The password used to log into the system.<br><em>Only fill out this field if you want to set a new password.</em>');
?>
</h3>
开发者ID:pixelproduction,项目名称:PixelManagerCMS,代码行数:31,代码来源:useraccount.php


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