Permalink
Browse files

build 939: removed thumbnailTooltip

Signed-off-by: Fabian Vogelsteller <fabian@frozeman.de>
  • Loading branch information...
1 parent b044f42 commit c48188366a5ddc146c26d586883cba944c141337 @frozeman committed Jun 21, 2012
Showing with 7 additions and 4 deletions.
  1. +2 −1 CHANGELOG
  2. +5 −3 library/views/editor.php
View
@@ -1,7 +1,7 @@
feindura - Flat File Content Management System
Version
2.0
-Build 938
+Build 939
==================================================
Copyright (C) Fabian Vogelsteller [frozeman.de]
published under the GNU General Public License version 3
@@ -24,6 +24,7 @@ ChangeLog:
2.0
+ build 939: removed thumbnailTooltip
build 938: add the $linkActiveClass now also to the wrapping element like the <li> or the <td>
build 937: fixed link href in CKEditor when using files from the filemanager
build 936: add ZenCoding to the $errorTag property and the $menuTag parameter (of the createMenu..() methods); removed $errorId, $errorClass, $errorAttribute
View
@@ -283,6 +283,8 @@
<div class="content">
<?php
+ $thumbnailPath = (!empty($pageContent['thumbnail'] )) ? $adminConfig['uploadPath'].$adminConfig['pageThumbnail']['path'].$pageContent['thumbnail'] : '#';
+
// -> show LAST SAVE DATE TIME
$lastSaveDate = GeneralFunctions::formatDate(GeneralFunctions::dateDayBeforeAfter($pageContent['lastSaveDate'],$langFile));
$lastSaveTime = formatTime($pageContent['lastSaveDate']);
@@ -316,18 +318,18 @@
// thumbnailPreviewContainer
echo '<br><div id="thumbnailPreviewContainer" style="z-index:5; position:relative; margin-bottom: 10px; float:right; line-height:28px; text-align:center;'.$displayThumbnailContainer.'">';
- echo '<span class="thumbnailToolTip" title="::'.$adminConfig['uploadPath'].$adminConfig['pageThumbnail']['path'].$pageContent['thumbnail'].'">'.$langFile['THUMBNAIL_TEXT_NAME'].'</span><br>';
+ echo $langFile['THUMBNAIL_TEXT_NAME'].'<br>';
echo '<span class="deleteIcon">';
// see if the thumbnails are activated, add upload/delete buttons
if(($pageContent['category'] == 0 && $adminConfig['pages']['thumbnails']) || ($pageContent['category'] != 0 && $categoryConfig[$pageContent['category']]['thumbnails'])) {
echo '<a href="?site=pageThumbnailDelete&amp;category='.$_GET['category'].'&amp;page='.$_GET['page'].'" onclick="openWindowBox(\'library/views/windowBox/pageThumbnailDelete.php?site='.$_GET['site'].'&amp;category='.$_GET['category'].'&amp;page='.$_GET['page'].'\',\''.$langFile['BUTTON_THUMBNAIL_DELETE'].'\',false);return false;" title="'.$langFile['BUTTON_TOOLTIP_THUMBNAIL_DELETE'].'::"" class="deleteIcon toolTip"></a>';
echo '<a href="?site=pageThumbnailUpload&amp;category='.$_GET['category'].'&amp;page='.$_GET['page'].'" onclick="openWindowBox(\'library/views/windowBox/pageThumbnailUpload.php?site='.$_GET['site'].'&amp;category='.$_GET['category'].'&amp;page='.$_GET['page'].'\',\''.$langFile['BUTTON_THUMBNAIL_UPLOAD'].'\',false);return false;" class="image">';
- echo '<img src="'.$adminConfig['uploadPath'].$adminConfig['pageThumbnail']['path'].$pageContent['thumbnail'].'" id="thumbnailPreviewImage" class="thumbnailPreview thumbnailToolTip"'.$thumbnailWidthStyle.' data-width="'.$thumbnailWidth.'" alt="thumbnail" title="::'.$adminConfig['uploadPath'].$adminConfig['pageThumbnail']['path'].$pageContent['thumbnail'].'">';
+ echo '<img src="'.$thumbnailPath.'" id="thumbnailPreviewImage" class="thumbnailPreview"'.$thumbnailWidthStyle.' data-width="'.$thumbnailWidth.'" alt="thumbnail">';
echo '</a>';
// if not only show the thumbnailPreviewImage
} else
- echo '<img src="'.$adminConfig['uploadPath'].$adminConfig['pageThumbnail']['path'].$pageContent['thumbnail'].'" id="thumbnailPreviewImage" class="thumbnailPreview thumbnailToolTip"'.$thumbnailWidthStyle.' data-width="'.$thumbnailWidth.'" alt="thumbnail" title="::'.$adminConfig['uploadPath'].$adminConfig['pageThumbnail']['path'].$pageContent['thumbnail'].'">';
+ echo '<img src="'.$thumbnailPath.'" id="thumbnailPreviewImage" class="thumbnailPreview"'.$thumbnailWidthStyle.' data-width="'.$thumbnailWidth.'" alt="thumbnail">';
echo '</span>';
echo '</div>';

0 comments on commit c481883

Please sign in to comment.