Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[BUGFIX] Screenshot
[BUGFIX] Localization
[FEATURE] More detailed view of selected view
  • Loading branch information
kaystrobach committed Mar 17, 2013
1 parent 3515536 commit d601e30
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Classes/Domain/Model/Theme.php
Expand Up @@ -79,12 +79,12 @@ public function __construct($extensionName) {
$this->author['email'] = $EM_CONF[$this->getExtensionName()]['author_email'];
$this->author['company'] = $EM_CONF[$this->getExtensionName()]['author_company'];

if(t3lib_extMgm::extPath($this->getExtensionName()) . 'Resources/Public/Images/screenshot.png') {
if(is_file(t3lib_extMgm::extPath($this->getExtensionName()) . 'Resources/Public/Images/screenshot.png')) {
$this->previewImage = t3lib_extMgm::extRelPath($this->getExtensionName()) . 'Resources/Public/Images/screenshot.png';
} elseif(t3lib_extMgm::extPath($this->getExtensionName()) . 'Resources/Public/Images/screenshot.gif') {
} elseif (is_file(t3lib_extMgm::extPath($this->getExtensionName()) . 'Resources/Public/Images/screenshot.gif')) {
$this->previewImage = t3lib_extMgm::extRelPath($this->getExtensionName()) . 'Resources/Public/Images/screenshot.gif';
} else {
$this->previewImage = t3lib_extMgm::extRelPath('themes') . 'Resources/Public/Images/screenshot.gif';
$this->previewImage = t3lib_extMgm::extRelPath('themes') . 'Resources/Public/Images/screenshot.gif';
}
}
}
Expand Down Expand Up @@ -203,4 +203,4 @@ public function addTypoScriptForFe(&$params, &$pObj) {
$params['templateId']
);
}
}
}
15 changes: 14 additions & 1 deletion Resources/Private/Templates/ThemeSelector.html
Expand Up @@ -15,16 +15,29 @@ <h2>
<h3>
Currently selected skin is
<span title="{formField.row.tx_themes_skin}">&quot;{selectedSkin.title}&quot;</span>
<span class="t3-icon t3-icon-actions t3-icon-actions-selection t3-icon-selection-delete" onclick="$('tx_themes_skin').value = ''; TBE_EDITOR.submitForm();">unlink</span>
<span class="t3-icon t3-icon-actions t3-icon-actions-selection t3-icon-selection-delete" onclick="$('tx_themes_skin').value = ''; TBE_EDITOR.submitForm();"> </span>

</h3>
<div>
<ul>
<li class="previewTheme selectedTheme">
<div class="previewDescription">
<p>
<strong>
{selectedSkin.title}
</strong>
- (EXT:{selectedSkin.extensionName})
</p>
<p>
{selectedSkin.description}
</p>
<small>
by
<a href="mailto:{selectedSkin.author.email}">
{selectedSkin.author.name}
</a>
({selectedSkin.author.company})
</small>
</div>
<div class="previewImage">
<img src="{selectedSkin.previewImage}">
Expand Down
11 changes: 7 additions & 4 deletions Resources/Public/Stylesheet/ThemeSelector.css
@@ -1,13 +1,13 @@
.fixfloat {
clear: both;
}
.tx_themes_themeselector .t3-icon, .tx_themes_themeselector .previewImage {
.tx_themes_themeselector .t3-icon, .tx_themes_themeselector .tx_skinselector_availableThemes .previewImage {
cursor: pointer;
}

.tx_themes_themeselector ul li {
width: 130px;
height: 110px;
height: 120px;
float: left;
display: inline-block;
clear: none;
Expand All @@ -32,14 +32,17 @@
overflow: hidden;
}


.tx_themes_themeselector .previewImage img {
width: 130px;
}

.tx_themes_themeselector .previewTheme .previewOverlay {
display: none;
}

.tx_themes_themeselector .previewTheme:hover .previewOverlay {
position: absolute;
top: 125px;
top: 140px;
left: -1px;
width: 130px;
height: 80px;
Expand Down
2 changes: 1 addition & 1 deletion locallang_db.xml
Expand Up @@ -2,7 +2,7 @@
<T3locallang>
<meta type="array">
<type>database</type>
<description>Language labels for database tables/fields belonging to extension 'wec_config'</description>
<description>Language labels for database tables/fields belonging to extension 'themes'</description>
</meta>
<data type="array">
<languageKey index="default" type="array">
Expand Down

0 comments on commit d601e30

Please sign in to comment.