/** * 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 . ' - '); } } } } }
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); }
<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>
<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>