File indexing completed on 2024-12-29 05:24:48
0001 <?php 0002 /** 0003 * ocs-webserver 0004 * 0005 * Copyright 2016 by pling GmbH. 0006 * 0007 * This file is part of ocs-webserver. 0008 * 0009 * This program is free software: you can redistribute it and/or modify 0010 * it under the terms of the GNU Affero General Public License as 0011 * published by the Free Software Foundation, either version 3 of the 0012 * License, or (at your option) any later version. 0013 * 0014 * This program is distributed in the hope that it will be useful, 0015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0017 * GNU Affero General Public License for more details. 0018 * 0019 * You should have received a copy of the GNU Affero General Public License 0020 * along with this program. If not, see <http://www.gnu.org/licenses/>. 0021 **/ 0022 0023 $helperImage = new Default_View_Helper_Image(); 0024 $helpMemberUrl = new Default_View_Helper_BuildMemberUrl(); 0025 $this->tab = 'profiles'; 0026 $helperUserRole = new Backend_View_Helper_UserRole(); 0027 $userRoleName = $helperUserRole->userRole(); 0028 ?> 0029 <main class="user-admin-page"> 0030 <?php echo $this->render('user/partials/userHeader_settings_top.phtml'); ?> 0031 <section class="body-wrap"> 0032 <section class="wrapper product-page"> 0033 <!-- PAGE BODY --> 0034 <section class="my-products-page"> 0035 <!-- NAVIGATION --> 0036 <?php echo $this->render('user/partials/userHeader_settings.phtml'); ?> 0037 <!-- /NAVIGATION --> 0038 0039 <!-- PAGE BODY --> 0040 <section class="settings-page"> 0041 <h1 class="page-title"><?= $this->translate('Profile') ?></h1> 0042 <br/> 0043 0044 <div class="pling-nav-tabs"> 0045 <ul class="nav nav-tabs "> 0046 <li class="active"> 0047 <a href="#form-profile-panel" data-toggle="tab"> 0048 <span class="glyphicon glyphicon-user"></span> 0049 <?= $this->translate('Profile') ?> 0050 </a> 0051 </li> 0052 0053 <li> 0054 <a href="#form-picture-panel" data-toggle="tab"> 0055 <span class="glyphicon glyphicon-camera"></span> 0056 <?= $this->translate('Profile Picture') ?> 0057 </a> 0058 </li> 0059 0060 <li> 0061 <a href="#form-picture-background-panel" data-toggle="tab"> 0062 <span class="glyphicon glyphicon-picture"></span> 0063 <?= $this->translate('Background') ?> 0064 </a> 0065 </li> 0066 0067 0068 <li> 0069 <a href="#form-connected-accounts-panel" data-toggle="tab"> 0070 <span class="glyphicon glyphicon-link"></span> 0071 <?= $this->translate('Social Accounts') ?> 0072 </a> 0073 </li> 0074 0075 <li> 0076 <a href="#form-website-panel" data-toggle="tab"> 0077 <span class="glyphicon glyphicon-globe"></span> 0078 <?= $this->translate('Your Website') ?> 0079 </a> 0080 </li> 0081 0082 <?php if (Default_Model_DbTable_MemberRole::ROLE_NAME_ADMIN == $userRoleName) 0083 { 0084 ?> 0085 <li> 0086 <a href="#form-osuser-panel" data-toggle="tab"> 0087 <span class="glyphicon glyphicon-console"></span> 0088 <?= $this->translate('Your Computer Info') ?> 0089 </a> 0090 </li> 0091 <?php }?> 0092 </ul> 0093 </div> 0094 <div class="tab-content row settings-main "> 0095 <div class="tab-pane active " id="form-profile-panel"> 0096 <section class="panel container" id="form-profile"> 0097 <?php echo $this->render('settings/partials/profile.phtml'); ?> 0098 </section> 0099 </div> 0100 0101 0102 0103 <div class="tab-pane " id="form-connected-accounts-panel"> 0104 <section class="panel container" id="form-accounts"> 0105 <?php echo $this->render('settings/partials/accounts.phtml'); ?> 0106 </section> 0107 </div> 0108 0109 <div class="tab-pane " id="form-picture-panel"> 0110 <section class="panel container" id="form-picture"> 0111 <?php echo $this->render('settings/partials/picture.phtml'); ?> 0112 </section> 0113 </div> 0114 0115 0116 <div class="tab-pane " id="form-picture-background-panel"> 0117 <section class="panel container" id="form-picture-background"> 0118 <?php echo $this->render('settings/partials/picture-bg.phtml'); ?> 0119 </section> 0120 </div> 0121 0122 0123 0124 <div class="tab-pane " id="form-website-panel"> 0125 <section class="panel container" id="form-website"> 0126 <?php echo $this->render('settings/partials/website.phtml'); ?> 0127 </section> 0128 </div> 0129 0130 <?php if (Default_Model_DbTable_MemberRole::ROLE_NAME_ADMIN == $userRoleName) 0131 { 0132 ?> 0133 <div class="tab-pane " id="form-osuser-panel"> 0134 <section class="panel container" id="form-osuser"> 0135 <?php echo $this->render('settings/partials/osuser.phtml'); ?> 0136 </section> 0137 </div> 0138 <?php }?> 0139 0140 0141 </div> 0142 </section> 0143 <!-- /PAGE BODY --> 0144 </section> 0145 <!-- /PAGE BODY --> 0146 </section> 0147 </section> 0148 </main> 0149 <script> 0150 $(document).ready(function () { 0151 if (document.location.hash) { 0152 var hash = $(document.location.hash); 0153 $('a[href="' + document.location.hash + '"]').trigger("click"); 0154 } 0155 }); 0156 </script> 0157 0158 <?php $this->inlineScript()->appendScript(' 0159 $(document).ready(function(){ 0160 ImagePreview.setup(); 0161 PartialForms.setup(); 0162 }); 0163 ');