File indexing completed on 2025-05-04 05:29:23

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 $tableProject = new Default_Model_Project();
0024 $helperUserRole = new Backend_View_Helper_UserRole();
0025 $userRoleName = $helperUserRole->userRole();
0026 
0027 $tableTags = new Default_Model_Tags();
0028 
0029 $authorTags = $tableTags->getTagsEbookAuthor($this->product->project_id);
0030 $editorTags = $tableTags->getTagsEbookEditor($this->product->project_id);
0031 $illuTags = $tableTags->getTagsEbookIllustrator($this->product->project_id);
0032 $transTags = $tableTags->getTagsEbookTranslator($this->product->project_id);
0033 $shelfTags = $tableTags->getTagsEbookShelf($this->product->project_id);
0034 $subjectTags = $tableTags->getTagsEbookSubject($this->product->project_id);
0035 
0036 
0037 $langTags = $tableTags->getTagsEbookLanguage($this->product->project_id);
0038 
0039 
0040 /*<a rel="nofollow" href="<?=$this->buildSearchTagUrl($tag)?>" class="topic-tag topic-tag-link usertagslabel"><?=$tag?></a>*/
0041 
0042 ?>
0043 <div class="prod-widget-box right details">
0044     <span class="title"> eBook Details </span>
0045 
0046     <div class="row">
0047         <!-- Author -->
0048         <?php if(!empty($authorTags)) { ?>
0049         <span class="col-lg-12 col-md-12 col-sm-12 col-xs-12"><b>Author/s:</b></span>
0050         <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
0051             <span class="value">
0052                 <?php
0053                 if(!empty($authorTags)) {
0054                     echo "<ul>";
0055                     foreach ($authorTags as $tag) {
0056                         echo "<li>";
0057                         echo $tag['tag_fullname'];
0058                         if(isset($tag['tag_description'])) {
0059                             echo ' (' . $tag['tag_description']. ')';
0060                         }
0061                         echo "</li>";
0062                     }
0063                     echo "</ul>";
0064                 }
0065                 ?>
0066             </span>
0067         </div>
0068         <?php } ?>
0069         
0070         <!-- Editor -->
0071         <?php if(!empty($editorTags)) { ?>
0072         <span class="col-lg-12 col-md-12 col-sm-12 col-xs-12"><b>Editor/s:</b></span>
0073         <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
0074             <span class="value">
0075                 <?php
0076                 echo "<ul>";
0077                 foreach ($editorTags as $tag) {
0078                     echo "<li>";
0079                     echo $tag['tag_fullname'];
0080                     if(isset($tag['tag_description'])) {
0081                         echo ' (' . $tag['tag_description']. ')';
0082                     }
0083                     echo "</li>";
0084                 }
0085                 echo "</ul>";
0086                 ?>
0087             </span>
0088         </div>
0089         <?php } ?>
0090         
0091         <!-- Illustrator -->
0092         <?php if(!empty($illuTags)) { ?>
0093         <span class="col-lg-12 col-md-12 col-sm-12 col-xs-12"><b>Illustrator/s:</b></span>
0094         <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
0095             <span class="value">
0096                 <?php
0097                 echo "<ul>";
0098                 foreach ($illuTags as $tag) {
0099                     echo "<li>";
0100                     echo $tag['tag_fullname'];
0101                     if(isset($tag['tag_description'])) {
0102                         echo ' (' . $tag['tag_description']. ')';
0103                     }
0104                     echo "</li>";
0105                 }
0106                 echo "</ul>";
0107                 ?>
0108             </span>
0109         </div>
0110         <?php } ?>
0111         
0112         <!-- Translator -->
0113         <?php if(!empty($transTags)) { ?>
0114         <span class="col-lg-12 col-md-12 col-sm-12 col-xs-12"><b>Translator/s:</b></span>
0115         <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
0116             <span class="value">
0117                 <?php
0118                 echo "<ul>";
0119                 foreach ($transTags as $tag) {
0120                     echo "<li>";
0121                     echo $tag['tag_fullname'];
0122                     if(isset($tag['tag_description'])) {
0123                         echo ' (' . $tag['tag_description']. ')';
0124                     }
0125                     echo "</li>";
0126                 }
0127                 echo "</ul>";
0128                 ?>
0129             </span>
0130         </div>
0131         <?php } ?>
0132         
0133         <!-- Language -->
0134         <?php if(!empty($langTags)) { ?>
0135         <span class="col-lg-12 col-md-12 col-sm-12 col-xs-12"><b>Language:</b></span>
0136         <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
0137             <span class="value">
0138                 <?php
0139                 echo "<ul>";
0140                 foreach ($langTags as $tag) {
0141                     echo "<li>";
0142                     echo $tag['tag_fullname'];
0143                     echo "</li>";
0144                 }
0145                 echo "</ul>";
0146                 ?>
0147             </span>
0148         </div>
0149         <?php } ?>
0150         
0151         <!-- Subjects -->
0152         <?php if(!empty($subjectTags)) { ?>
0153         <span class="col-lg-12 col-md-12 col-sm-12 col-xs-12"><b>Subject/s:</b></span>
0154         <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
0155             <span class="value">
0156                 <?php
0157                 echo "<ul>";
0158                 foreach ($subjectTags as $tag) {
0159                     echo "<li>";
0160                     echo $tag['tag_fullname'];
0161                     echo "</li>";
0162                 }
0163                 echo "</ul>";
0164                 ?>
0165             </span>
0166         </div>
0167         <?php } ?>
0168         
0169         <!-- Shelf -->
0170         <?php if(!empty($shelfTags)) { ?>
0171         <span class="col-lg-12 col-md-12 col-sm-12 col-xs-12"><b>Shelf/s:</b></span>
0172         <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
0173             <span class="value">
0174                 <?php
0175                 echo "<ul>";
0176                 foreach ($shelfTags as $tag) {
0177                     echo "<li>";
0178                     echo $tag['tag_fullname'];
0179                     echo "</li>";
0180                 }
0181                 echo "</ul>";
0182                 ?>
0183             </span>
0184         </div>
0185         <?php } ?>
0186         
0187     </div>
0188 
0189 </div>