Version Notes
Version number: 1.0.3.6
Stability: Stable
Compatibility: 1.4, 1.5, 1.6, 1.7
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | CommerceLab_News |
| Version | 1.0.3.6 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.3.5 to 1.0.3.6
- app/code/community/CommerceLab/News/Block/Abstract.php +17 -7
- app/code/community/CommerceLab/News/Block/Adminhtml/Category/Edit/Form.php +2 -2
- app/code/community/CommerceLab/News/Block/News.php +1 -1
- app/code/community/CommerceLab/News/Block/Newsitem.php +3 -3
- app/code/community/CommerceLab/News/Model/News.php +2 -2
- app/code/community/CommerceLab/News/controllers/Adminhtml/CategoryController.php +1 -1
- app/code/community/CommerceLab/News/controllers/Adminhtml/CommentController.php +1 -1
- app/code/community/CommerceLab/News/controllers/Adminhtml/NewsController.php +1 -1
- app/code/community/CommerceLab/News/etc/system.xml +1 -1
- app/design/frontend/default/default/template/clnews/menu.phtml +5 -5
- app/locale/de_DE/CommerceLab_News.csv +4 -3
- app/locale/en_US/CommerceLab_News.csv +4 -3
- app/locale/it_IT/CommerceLab_News.csv +4 -3
- package.xml +5 -5
- skin/frontend/default/default/css/clnews/style.css +3 -3
- skin/frontend/default/default/css/commercelab/treeview/jquery.treeview.css +1 -0
app/code/community/CommerceLab/News/Block/Abstract.php
CHANGED
|
@@ -59,6 +59,21 @@ class CommerceLab_News_Block_Abstract extends Mage_Core_Block_Template
|
|
| 59 |
if ($category==null) {
|
| 60 |
$category = $this->getRequest()->getParam('category');
|
| 61 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
return $category;
|
| 63 |
}
|
| 64 |
|
|
@@ -159,7 +174,7 @@ class CommerceLab_News_Block_Abstract extends Mage_Core_Block_Template
|
|
| 159 |
->setOrder('sort_id', 'asc');
|
| 160 |
|
| 161 |
foreach ($collection as $item) {
|
| 162 |
-
$item->
|
| 163 |
}
|
| 164 |
return $collection;
|
| 165 |
}
|
|
@@ -174,7 +189,7 @@ class CommerceLab_News_Block_Abstract extends Mage_Core_Block_Template
|
|
| 174 |
}
|
| 175 |
|
| 176 |
public function getItemUrl($itemId) {
|
| 177 |
-
return $this->getUrl(
|
| 178 |
}
|
| 179 |
|
| 180 |
public function isFirstPage()
|
|
@@ -240,11 +255,6 @@ class CommerceLab_News_Block_Abstract extends Mage_Core_Block_Template
|
|
| 240 |
return $this->_pages;
|
| 241 |
}
|
| 242 |
|
| 243 |
-
public function getAlias()
|
| 244 |
-
{
|
| 245 |
-
return Mage::helper('clnews')->getRoute();
|
| 246 |
-
}
|
| 247 |
-
|
| 248 |
public function getCurrentCategory()
|
| 249 |
{
|
| 250 |
if ($this->getCategoryKey()) {
|
| 59 |
if ($category==null) {
|
| 60 |
$category = $this->getRequest()->getParam('category');
|
| 61 |
}
|
| 62 |
+
if (!preg_match('/^[0-9A-Za-z\-\_]+$/i', $category)) {
|
| 63 |
+
return null;
|
| 64 |
+
}
|
| 65 |
+
return $category;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
public function getCategory()
|
| 69 |
+
{
|
| 70 |
+
$category = $this->getData('category');
|
| 71 |
+
if ($category==null) {
|
| 72 |
+
$category = $this->getRequest()->getParam('category');
|
| 73 |
+
}
|
| 74 |
+
if (!preg_match('/^[0-9A-Za-z\-\_]+$/i', $category)) {
|
| 75 |
+
return null;
|
| 76 |
+
}
|
| 77 |
return $category;
|
| 78 |
}
|
| 79 |
|
| 174 |
->setOrder('sort_id', 'asc');
|
| 175 |
|
| 176 |
foreach ($collection as $item) {
|
| 177 |
+
$item->setUrl(Mage::getUrl(Mage::helper('clnews')->getRoute()).'category/'.$item->getUrlKey().Mage::helper('clnews')->getNewsitemUrlSuffix());
|
| 178 |
}
|
| 179 |
return $collection;
|
| 180 |
}
|
| 189 |
}
|
| 190 |
|
| 191 |
public function getItemUrl($itemId) {
|
| 192 |
+
return $this->getUrl(Mage::helper('clnews')->getRoute().'/newsitem/view', array('id' => $itemId));
|
| 193 |
}
|
| 194 |
|
| 195 |
public function isFirstPage()
|
| 255 |
return $this->_pages;
|
| 256 |
}
|
| 257 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 258 |
public function getCurrentCategory()
|
| 259 |
{
|
| 260 |
if ($this->getCategoryKey()) {
|
app/code/community/CommerceLab/News/Block/Adminhtml/Category/Edit/Form.php
CHANGED
|
@@ -69,6 +69,7 @@ class CommerceLab_News_Block_Adminhtml_Category_Edit_Form extends Mage_Adminhtml
|
|
| 69 |
/**
|
| 70 |
* Check is single store mode
|
| 71 |
*/
|
|
|
|
| 72 |
if ($pid = $this->getRequest()->getParam('parent_id')) {
|
| 73 |
$fieldset->addField('parent_id', 'hidden', array(
|
| 74 |
'name' => 'parent_id',
|
|
@@ -96,7 +97,6 @@ class CommerceLab_News_Block_Adminhtml_Category_Edit_Form extends Mage_Adminhtml
|
|
| 96 |
$store = $category->getStoreId();
|
| 97 |
|
| 98 |
$stores = Mage::getSingleton('adminhtml/system_store')->getStoreValuesForForm(false, true);
|
| 99 |
-
$parentStore = array();
|
| 100 |
foreach ($stores as $val) {
|
| 101 |
if (is_array($val['value'])) {
|
| 102 |
foreach ($val['value'] as $st) {
|
|
@@ -129,7 +129,7 @@ class CommerceLab_News_Block_Adminhtml_Category_Edit_Form extends Mage_Adminhtml
|
|
| 129 |
'label' => Mage::helper('cms')->__('Store View'),
|
| 130 |
'title' => Mage::helper('cms')->__('Store View'),
|
| 131 |
'required' => true,
|
| 132 |
-
'values' => $parentStore ? $parentStore : Mage::getSingleton('adminhtml/system_store')->getStoreValuesForForm(false, true),
|
| 133 |
));
|
| 134 |
}
|
| 135 |
|
| 69 |
/**
|
| 70 |
* Check is single store mode
|
| 71 |
*/
|
| 72 |
+
$parentStore = array();
|
| 73 |
if ($pid = $this->getRequest()->getParam('parent_id')) {
|
| 74 |
$fieldset->addField('parent_id', 'hidden', array(
|
| 75 |
'name' => 'parent_id',
|
| 97 |
$store = $category->getStoreId();
|
| 98 |
|
| 99 |
$stores = Mage::getSingleton('adminhtml/system_store')->getStoreValuesForForm(false, true);
|
|
|
|
| 100 |
foreach ($stores as $val) {
|
| 101 |
if (is_array($val['value'])) {
|
| 102 |
foreach ($val['value'] as $st) {
|
| 129 |
'label' => Mage::helper('cms')->__('Store View'),
|
| 130 |
'title' => Mage::helper('cms')->__('Store View'),
|
| 131 |
'required' => true,
|
| 132 |
+
'values' => count($parentStore) ? $parentStore : Mage::getSingleton('adminhtml/system_store')->getStoreValuesForForm(false, true),
|
| 133 |
));
|
| 134 |
}
|
| 135 |
|
app/code/community/CommerceLab/News/Block/News.php
CHANGED
|
@@ -34,7 +34,7 @@ class CommerceLab_News_Block_News extends CommerceLab_News_Block_Abstract
|
|
| 34 |
'title'=>Mage::helper('clnews')->__('Return to ' .Mage::helper('clnews')->__('News')),
|
| 35 |
);
|
| 36 |
if ($this->getCategoryKey()) {
|
| 37 |
-
$newsBreadCrumb['link'] = Mage::getUrl(
|
| 38 |
}
|
| 39 |
$breadcrumbs->addCrumb('news', $newsBreadCrumb);
|
| 40 |
|
| 34 |
'title'=>Mage::helper('clnews')->__('Return to ' .Mage::helper('clnews')->__('News')),
|
| 35 |
);
|
| 36 |
if ($this->getCategoryKey()) {
|
| 37 |
+
$newsBreadCrumb['link'] = Mage::getUrl(Mage::helper('clnews')->getRoute());
|
| 38 |
}
|
| 39 |
$breadcrumbs->addCrumb('news', $newsBreadCrumb);
|
| 40 |
|
app/code/community/CommerceLab/News/Block/Newsitem.php
CHANGED
|
@@ -56,7 +56,7 @@ class CommerceLab_News_Block_Newsitem extends Mage_Core_Block_Template
|
|
| 56 |
array(
|
| 57 |
'label'=>Mage::helper('clnews')->__(Mage::getStoreConfig('clnews/news/title')),
|
| 58 |
'title'=>Mage::helper('clnews')->__('Return to %s', Mage::helper('clnews')->__('News')),
|
| 59 |
-
'link'=> Mage::
|
| 60 |
));
|
| 61 |
|
| 62 |
if ($category = $newsitem->getCategory()) {
|
|
@@ -64,7 +64,7 @@ class CommerceLab_News_Block_Newsitem extends Mage_Core_Block_Template
|
|
| 64 |
array(
|
| 65 |
'label' => $category->getTitle(),
|
| 66 |
'title' => Mage::helper('clnews')->__('Return to %s', $category->getTitle()),
|
| 67 |
-
'link' => Mage::
|
| 68 |
));
|
| 69 |
}
|
| 70 |
|
|
@@ -130,7 +130,7 @@ class CommerceLab_News_Block_Newsitem extends Mage_Core_Block_Template
|
|
| 130 |
{
|
| 131 |
$newsitem = $this->getNewsItem();
|
| 132 |
if ($category = $newsitem->getCategory()) {
|
| 133 |
-
return Mage::
|
| 134 |
} else {
|
| 135 |
return $this->getUrl(Mage::helper('clnews')->getRoute());
|
| 136 |
}
|
| 56 |
array(
|
| 57 |
'label'=>Mage::helper('clnews')->__(Mage::getStoreConfig('clnews/news/title')),
|
| 58 |
'title'=>Mage::helper('clnews')->__('Return to %s', Mage::helper('clnews')->__('News')),
|
| 59 |
+
'link'=> Mage::getUrl(Mage::helper('clnews')->getRoute())
|
| 60 |
));
|
| 61 |
|
| 62 |
if ($category = $newsitem->getCategory()) {
|
| 64 |
array(
|
| 65 |
'label' => $category->getTitle(),
|
| 66 |
'title' => Mage::helper('clnews')->__('Return to %s', $category->getTitle()),
|
| 67 |
+
'link' => Mage::getUrl(Mage::helper('clnews')->getRoute()).'category/'.$category->getUrlKey().Mage::helper('clnews')->getNewsitemUrlSuffix()
|
| 68 |
));
|
| 69 |
}
|
| 70 |
|
| 130 |
{
|
| 131 |
$newsitem = $this->getNewsItem();
|
| 132 |
if ($category = $newsitem->getCategory()) {
|
| 133 |
+
return Mage::getUrl(Mage::helper('clnews')->getRoute()).'category/'.$category->getUrlKey().Mage::helper('clnews')->getNewsitemUrlSuffix();
|
| 134 |
} else {
|
| 135 |
return $this->getUrl(Mage::helper('clnews')->getRoute());
|
| 136 |
}
|
app/code/community/CommerceLab/News/Model/News.php
CHANGED
|
@@ -24,9 +24,9 @@ class CommerceLab_News_Model_News extends Mage_Core_Model_Abstract
|
|
| 24 |
|
| 25 |
public function getUrl($category = '') {
|
| 26 |
if ($category) {
|
| 27 |
-
$url = Mage::
|
| 28 |
} else {
|
| 29 |
-
$url = Mage::
|
| 30 |
}
|
| 31 |
return $url;
|
| 32 |
}
|
| 24 |
|
| 25 |
public function getUrl($category = '') {
|
| 26 |
if ($category) {
|
| 27 |
+
$url = Mage::getUrl(Mage::helper('clnews')->getRoute()).$category.'/'.$this->getUrlKey().Mage::helper('clnews')->getNewsitemUrlSuffix();
|
| 28 |
} else {
|
| 29 |
+
$url = Mage::getUrl(Mage::helper('clnews')->getRoute()).$this->getUrlKey().Mage::helper('clnews')->getNewsitemUrlSuffix();
|
| 30 |
}
|
| 31 |
return $url;
|
| 32 |
}
|
app/code/community/CommerceLab/News/controllers/Adminhtml/CategoryController.php
CHANGED
|
@@ -15,7 +15,7 @@
|
|
| 15 |
* @license http://commerce-lab.com/LICENSE.txt
|
| 16 |
*/
|
| 17 |
|
| 18 |
-
class CommerceLab_News_Adminhtml_CategoryController extends
|
| 19 |
{
|
| 20 |
public function preDispatch() {
|
| 21 |
parent::preDispatch();
|
| 15 |
* @license http://commerce-lab.com/LICENSE.txt
|
| 16 |
*/
|
| 17 |
|
| 18 |
+
class CommerceLab_News_Adminhtml_CategoryController extends Mage_Adminhtml_Controller_Action
|
| 19 |
{
|
| 20 |
public function preDispatch() {
|
| 21 |
parent::preDispatch();
|
app/code/community/CommerceLab/News/controllers/Adminhtml/CommentController.php
CHANGED
|
@@ -15,7 +15,7 @@
|
|
| 15 |
* @license http://commerce-lab.com/LICENSE.txt
|
| 16 |
*/
|
| 17 |
|
| 18 |
-
class CommerceLab_News_Adminhtml_CommentController extends
|
| 19 |
{
|
| 20 |
public function preDispatch() {
|
| 21 |
parent::preDispatch();
|
| 15 |
* @license http://commerce-lab.com/LICENSE.txt
|
| 16 |
*/
|
| 17 |
|
| 18 |
+
class CommerceLab_News_Adminhtml_CommentController extends Mage_Adminhtml_Controller_Action
|
| 19 |
{
|
| 20 |
public function preDispatch() {
|
| 21 |
parent::preDispatch();
|
app/code/community/CommerceLab/News/controllers/Adminhtml/NewsController.php
CHANGED
|
@@ -83,7 +83,7 @@ class CommerceLab_News_Adminhtml_NewsController extends Mage_Adminhtml_Controlle
|
|
| 83 |
$sameUrl = $newsCollection->getData();
|
| 84 |
}
|
| 85 |
if ($sameUrl != null) {
|
| 86 |
-
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('clnews')->__('
|
| 87 |
$this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
|
| 88 |
} else {
|
| 89 |
|
| 83 |
$sameUrl = $newsCollection->getData();
|
| 84 |
}
|
| 85 |
if ($sameUrl != null) {
|
| 86 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('clnews')->__('News Item with such url_key already exists'));
|
| 87 |
$this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
|
| 88 |
} else {
|
| 89 |
|
app/code/community/CommerceLab/News/etc/system.xml
CHANGED
|
@@ -315,7 +315,7 @@
|
|
| 315 |
<show_in_store>1</show_in_store>
|
| 316 |
</email_template>
|
| 317 |
<need_confirmation translate="label">
|
| 318 |
-
<label>
|
| 319 |
<frontend_type>select</frontend_type>
|
| 320 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 321 |
<sort_order>70</sort_order>
|
| 315 |
<show_in_store>1</show_in_store>
|
| 316 |
</email_template>
|
| 317 |
<need_confirmation translate="label">
|
| 318 |
+
<label>Should comments be pre-moderated</label>
|
| 319 |
<frontend_type>select</frontend_type>
|
| 320 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 321 |
<sort_order>70</sort_order>
|
app/design/frontend/default/default/template/clnews/menu.phtml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
<?php $categories = $this->getCategories()
|
| 2 |
<?php if (count($categories)): ?>
|
| 3 |
<div class="block news-categories">
|
| 4 |
<div class="head block-title">
|
|
@@ -14,21 +14,21 @@
|
|
| 14 |
<?php foreach ($categories as $category): ?>
|
| 15 |
<?php if ($count == 0 && $category->getLevel() == 0): ?>
|
| 16 |
<?php $level = $category->getLevel(); ?>
|
| 17 |
-
<li><a href="<?php echo $category->
|
| 18 |
<?php elseif ($count > 0 && $category->getLevel() == $level): ?>
|
| 19 |
<?php $level = $category->getLevel(); ?>
|
| 20 |
-
</li><li><a href="<?php echo $category->
|
| 21 |
<?php elseif ($count > 0 && $category->getLevel() != $level && $category->getLevel() > 0): ?>
|
| 22 |
<?php $children++; ?>
|
| 23 |
<?php $level = $category->getLevel(); ?>
|
| 24 |
-
<ul><li><a href="<?php echo $category->
|
| 25 |
<?php elseif ($count > 0 && $category->getLevel() != $level && $category->getLevel() == 0): ?>
|
| 26 |
<?php for ($i = 0; $i < $children; $i++): ?>
|
| 27 |
</ul></li>
|
| 28 |
<?php endfor; ?>
|
| 29 |
<?php $children = 0; ?>
|
| 30 |
<?php $level = $category->getLevel(); ?>
|
| 31 |
-
</li><li><a href="<?php echo $category->
|
| 32 |
<?php endif; ?>
|
| 33 |
<?php $count++; ?>
|
| 34 |
<?php endforeach; ?>
|
| 1 |
+
<?php $categories = $this->getCategories() ?>
|
| 2 |
<?php if (count($categories)): ?>
|
| 3 |
<div class="block news-categories">
|
| 4 |
<div class="head block-title">
|
| 14 |
<?php foreach ($categories as $category): ?>
|
| 15 |
<?php if ($count == 0 && $category->getLevel() == 0): ?>
|
| 16 |
<?php $level = $category->getLevel(); ?>
|
| 17 |
+
<li><a href="<?php echo $category->getUrl() ?>" ><?php echo $category->getTitle();?></a>
|
| 18 |
<?php elseif ($count > 0 && $category->getLevel() == $level): ?>
|
| 19 |
<?php $level = $category->getLevel(); ?>
|
| 20 |
+
</li><li><a href="<?php echo $category->getUrl() ?>" ><?php echo $category->getTitle() ?></a>
|
| 21 |
<?php elseif ($count > 0 && $category->getLevel() != $level && $category->getLevel() > 0): ?>
|
| 22 |
<?php $children++; ?>
|
| 23 |
<?php $level = $category->getLevel(); ?>
|
| 24 |
+
<ul><li><a href="<?php echo $category->getUrl() ?>" ><?php echo $category->getTitle();?></a>
|
| 25 |
<?php elseif ($count > 0 && $category->getLevel() != $level && $category->getLevel() == 0): ?>
|
| 26 |
<?php for ($i = 0; $i < $children; $i++): ?>
|
| 27 |
</ul></li>
|
| 28 |
<?php endfor; ?>
|
| 29 |
<?php $children = 0; ?>
|
| 30 |
<?php $level = $category->getLevel(); ?>
|
| 31 |
+
</li><li><a href="<?php echo $category->getUrl() ?>" ><?php echo $category->getTitle();?></a>
|
| 32 |
<?php endif; ?>
|
| 33 |
<?php $count++; ?>
|
| 34 |
<?php endforeach; ?>
|
app/locale/de_DE/CommerceLab_News.csv
CHANGED
|
@@ -26,7 +26,7 @@
|
|
| 26 |
"Edit Comment By '%s'","Kommentar von %s bearbeiten"
|
| 27 |
"Add Comment","Kommentar hinzufügen"
|
| 28 |
"Comment","Kommentar"
|
| 29 |
-
"
|
| 30 |
"User","Kunde"
|
| 31 |
"E-mail","Email"
|
| 32 |
"Created","Erstellt am"
|
|
@@ -87,7 +87,8 @@
|
|
| 87 |
"Comment was successfully saved","Kommentar wurde erfolgreich gespeichert"
|
| 88 |
"Comment was successfully deleted","Kommentar wurde erfolgreich gelöscht"
|
| 89 |
"News article does not exist","Gibt es keine solche Nachrichten"
|
| 90 |
-
"
|
|
|
|
| 91 |
"News article has been successfully saved","Nachricht Artikel wurde erfolgreich gespeichert"
|
| 92 |
"No items to save","Keine Artikel zu speichern"
|
| 93 |
"Platform version is not correct for News module!","Platform Version ist nicht unterstützt"
|
|
@@ -130,7 +131,7 @@
|
|
| 130 |
"Full Description Image Max Height","Vollständige Beschreibung Bild Max Höhe"
|
| 131 |
"Resize always to Max Values","Ändern immer Max Werte"
|
| 132 |
"Send comments to email","Kommentare an E-Mail senden"
|
| 133 |
-
"
|
| 134 |
"Should user be logged in to leave a comment","Sollten Anwender eingeloggt sein um einen Kommentar zu lassen?"
|
| 135 |
"Comments per Page","Kommentare pro Seite"
|
| 136 |
"The number of comments displayed per page","Die Anzahl der Kommentare pro Seite"
|
| 26 |
"Edit Comment By '%s'","Kommentar von %s bearbeiten"
|
| 27 |
"Add Comment","Kommentar hinzufügen"
|
| 28 |
"Comment","Kommentar"
|
| 29 |
+
"Newsitem Title","Nachrichtentitel"
|
| 30 |
"User","Kunde"
|
| 31 |
"E-mail","Email"
|
| 32 |
"Created","Erstellt am"
|
| 87 |
"Comment was successfully saved","Kommentar wurde erfolgreich gespeichert"
|
| 88 |
"Comment was successfully deleted","Kommentar wurde erfolgreich gelöscht"
|
| 89 |
"News article does not exist","Gibt es keine solche Nachrichten"
|
| 90 |
+
"News Item with such url_key already exists","Die gleiche url_key bereits existiert"
|
| 91 |
+
"News Category with such url_key already exists","Die gleiche url_key bereits existiert"
|
| 92 |
"News article has been successfully saved","Nachricht Artikel wurde erfolgreich gespeichert"
|
| 93 |
"No items to save","Keine Artikel zu speichern"
|
| 94 |
"Platform version is not correct for News module!","Platform Version ist nicht unterstützt"
|
| 131 |
"Full Description Image Max Height","Vollständige Beschreibung Bild Max Höhe"
|
| 132 |
"Resize always to Max Values","Ändern immer Max Werte"
|
| 133 |
"Send comments to email","Kommentare an E-Mail senden"
|
| 134 |
+
"Should comments be pre-moderated","Ist Bestätigung erforderlich"
|
| 135 |
"Should user be logged in to leave a comment","Sollten Anwender eingeloggt sein um einen Kommentar zu lassen?"
|
| 136 |
"Comments per Page","Kommentare pro Seite"
|
| 137 |
"The number of comments displayed per page","Die Anzahl der Kommentare pro Seite"
|
app/locale/en_US/CommerceLab_News.csv
CHANGED
|
@@ -29,7 +29,7 @@
|
|
| 29 |
"Edit Comment By '%s'","Edit Comment By '%s'"
|
| 30 |
"Add Comment","Add Comment"
|
| 31 |
"Comment","Comment"
|
| 32 |
-
"
|
| 33 |
"User","User"
|
| 34 |
"E-mail","E-mail"
|
| 35 |
"Created","Created"
|
|
@@ -93,7 +93,8 @@
|
|
| 93 |
"Comment was successfully saved","Comment was successfully saved"
|
| 94 |
"Comment was successfully deleted","Comment was successfully deleted"
|
| 95 |
"News article does not exist","News article does not exist"
|
| 96 |
-
"
|
|
|
|
| 97 |
"News article has been successfully saved","News article has been successfully saved"
|
| 98 |
"No items to save","No items to save"
|
| 99 |
"Platform version is not correct for News module!","Platform version is not correct for News module!"
|
|
@@ -135,7 +136,7 @@
|
|
| 135 |
"Resize always to Max Values","Resize always to Max Values"
|
| 136 |
"Send comments to email","Send comments to email"
|
| 137 |
"Templare email","Templare email"
|
| 138 |
-
"
|
| 139 |
"Should user be logged in to leave a comment","Should user be logged in to leave a comment"
|
| 140 |
"Comments per Page","Comments per Page"
|
| 141 |
"The number of comments displayed per page","The number of comments displayed per page"
|
| 29 |
"Edit Comment By '%s'","Edit Comment By '%s'"
|
| 30 |
"Add Comment","Add Comment"
|
| 31 |
"Comment","Comment"
|
| 32 |
+
"Newsitem Title","Newsitem Title"
|
| 33 |
"User","User"
|
| 34 |
"E-mail","E-mail"
|
| 35 |
"Created","Created"
|
| 93 |
"Comment was successfully saved","Comment was successfully saved"
|
| 94 |
"Comment was successfully deleted","Comment was successfully deleted"
|
| 95 |
"News article does not exist","News article does not exist"
|
| 96 |
+
"News Item with such url_key already exists","News Item with such url_key already exists"
|
| 97 |
+
"News Category with such url_key already exists","News Category with such url_key already exists"
|
| 98 |
"News article has been successfully saved","News article has been successfully saved"
|
| 99 |
"No items to save","No items to save"
|
| 100 |
"Platform version is not correct for News module!","Platform version is not correct for News module!"
|
| 136 |
"Resize always to Max Values","Resize always to Max Values"
|
| 137 |
"Send comments to email","Send comments to email"
|
| 138 |
"Templare email","Templare email"
|
| 139 |
+
"Should comments be pre-moderated","Should comments be pre-moderated"
|
| 140 |
"Should user be logged in to leave a comment","Should user be logged in to leave a comment"
|
| 141 |
"Comments per Page","Comments per Page"
|
| 142 |
"The number of comments displayed per page","The number of comments displayed per page"
|
app/locale/it_IT/CommerceLab_News.csv
CHANGED
|
@@ -29,7 +29,7 @@
|
|
| 29 |
"Edit Comment By '%s'","Modifica commento di %s"
|
| 30 |
"Add Comment","Aggiungi commento"
|
| 31 |
"Comment","Commento"
|
| 32 |
-
"
|
| 33 |
"User","Utente"
|
| 34 |
"E-mail","Email"
|
| 35 |
"Created","Creato"
|
|
@@ -93,7 +93,8 @@
|
|
| 93 |
"Comment was successfully saved","Commento salvato"
|
| 94 |
"Comment was successfully deleted","Commento eliminato"
|
| 95 |
"News article does not exist","La notizia non esiste"
|
| 96 |
-
"
|
|
|
|
| 97 |
"News article has been successfully saved","Notizia salvata"
|
| 98 |
"No items to save","Non vi e' nessun contenuto da salvare"
|
| 99 |
"Platform version is not correct for News module!","La versione del software non e' compatibile con l'estensione News!"
|
|
@@ -134,7 +135,7 @@
|
|
| 134 |
"Full Description Image Max Height","Max alt. immagine testo completo"
|
| 135 |
"Resize always to Max Values","Riporta sempre ai valori max"
|
| 136 |
"Send comments to email","Inoltra commenti a questa email"
|
| 137 |
-
"
|
| 138 |
"Should user be logged in to leave a comment","E' richiesto l'accesso per inviare commenti?"
|
| 139 |
"Comments per Page","Commenti per pagina"
|
| 140 |
"The number of comments displayed per page","Numero di commenti su ogni pagina"
|
| 29 |
"Edit Comment By '%s'","Modifica commento di %s"
|
| 30 |
"Add Comment","Aggiungi commento"
|
| 31 |
"Comment","Commento"
|
| 32 |
+
"Newsitem Title","Titolo notizia"
|
| 33 |
"User","Utente"
|
| 34 |
"E-mail","Email"
|
| 35 |
"Created","Creato"
|
| 93 |
"Comment was successfully saved","Commento salvato"
|
| 94 |
"Comment was successfully deleted","Commento eliminato"
|
| 95 |
"News article does not exist","La notizia non esiste"
|
| 96 |
+
"News Item with such url_key already exists","Lo stesso URL leggibile e' gia' stato usato"
|
| 97 |
+
"News Category with such url_key already exists","Lo stesso URL leggibile e' gia' stato usato"
|
| 98 |
"News article has been successfully saved","Notizia salvata"
|
| 99 |
"No items to save","Non vi e' nessun contenuto da salvare"
|
| 100 |
"Platform version is not correct for News module!","La versione del software non e' compatibile con l'estensione News!"
|
| 135 |
"Full Description Image Max Height","Max alt. immagine testo completo"
|
| 136 |
"Resize always to Max Values","Riporta sempre ai valori max"
|
| 137 |
"Send comments to email","Inoltra commenti a questa email"
|
| 138 |
+
"Should comments be pre-moderated","E' richiesta conferma?"
|
| 139 |
"Should user be logged in to leave a comment","E' richiesto l'accesso per inviare commenti?"
|
| 140 |
"Comments per Page","Commenti per pagina"
|
| 141 |
"The number of comments displayed per page","Numero di commenti su ogni pagina"
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>CommerceLab_News</name>
|
| 4 |
-
<version>1.0.3.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -35,13 +35,13 @@
|
|
| 35 |
<br />
|
| 36 |
<p><strong>CommerceLab – stay open for the world!</strong></p>
|
| 37 |
<br /></description>
|
| 38 |
-
<notes>Version number: 1.0.3.
|
| 39 |
Stability: Stable
|
| 40 |
Compatibility: 1.4, 1.5, 1.6, 1.7</notes>
|
| 41 |
<authors><author><name>CommerceLab</name><user>auto-converted</user><email>support@commerce-lab.com</email></author></authors>
|
| 42 |
-
<date>2013-
|
| 43 |
-
<time>
|
| 44 |
-
<contents><target name="mage"><dir name="app"><dir name="code"><dir name="community"><dir name="CommerceLab"><dir name="News"><dir name="Block"><dir name="Adminhtml"><dir name="Category"><dir name="Edit"><file name="Form.php" hash="
|
| 45 |
<compatible/>
|
| 46 |
<dependencies/>
|
| 47 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>CommerceLab_News</name>
|
| 4 |
+
<version>1.0.3.6</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
| 35 |
<br />
|
| 36 |
<p><strong>CommerceLab – stay open for the world!</strong></p>
|
| 37 |
<br /></description>
|
| 38 |
+
<notes>Version number: 1.0.3.6
|
| 39 |
Stability: Stable
|
| 40 |
Compatibility: 1.4, 1.5, 1.6, 1.7</notes>
|
| 41 |
<authors><author><name>CommerceLab</name><user>auto-converted</user><email>support@commerce-lab.com</email></author></authors>
|
| 42 |
+
<date>2013-05-06</date>
|
| 43 |
+
<time>13:44:35</time>
|
| 44 |
+
<contents><target name="mage"><dir name="app"><dir name="code"><dir name="community"><dir name="CommerceLab"><dir name="News"><dir name="Block"><dir name="Adminhtml"><dir name="Category"><dir name="Edit"><file name="Form.php" hash="55c764e89bcac5a515537a4a5fab18bf"/></dir><dir name="Grid"><dir name="Column"><dir name="Renderer"><file name="Action.php" hash="768aa10696beb070c5fc9eec9f0141c2"/><file name="SubCategories.php" hash="cc1eac066648cee1cabe3667625a5662"/></dir></dir></dir><file name="Edit.php" hash="5352d9211733adeb9c1c9b463d229fb4"/><file name="Grid.php" hash="fe20f872e49926e54fa91d9b616eccd2"/></dir><dir name="Comment"><dir name="Edit"><file name="Form.php" hash="8d52c5840c93dc462ab7d07a21d875e4"/></dir><file name="Edit.php" hash="44647da407fffe74595a7787d99addca"/><file name="Grid.php" hash="8ae3a0eb316e5ea705408e04f1d8d227"/></dir><dir name="News"><dir name="Edit"><dir name="Tab"><file name="Additional.php" hash="48b6bca5f84a413a7c2abc188aa7f7d7"/><file name="Info.php" hash="97c5caa914d207044776129b1a87f5f2"/></dir><file name="Form.php" hash="c137eca6d32e407cc6313b943ec3ef13"/><file name="Tabs.php" hash="2a24e69b73d59b1e6e8b8aca166b27e9"/></dir><file name="Edit.php" hash="ad5e3b0e2911d187b5a489ab826fcea4"/><file name="Grid.php" hash="55ecd86836803996343b7d282c7b6576"/></dir><file name="Category.php" hash="39f20ab1d793ab32a9cc1fcebdd6f9ac"/><file name="Comment.php" hash="1d652f6c740eaa2a1b28edb2cb03cc01"/><file name="News.php" hash="5a4483a050582fc9738582988439fea2"/></dir><file name="Abstract.php" hash="844226d79f778415b1b69b76acbfacbc"/><file name="News.php" hash="da9ce6ed6c5827445eca6c1993f3f7bd"/><file name="Newsitem.php" hash="679a9f6edc314b5f28d23b9489ee9f5f"/><file name="Rss.php" hash="70d3ffe74cbb107893782f5c8f40ab65"/><file name="Settings.php" hash="5572127ed9b5ec94cf447c591ee9c0c7"/></dir><dir name="Controller"><file name="Router.php" hash="b24028480568dbc4b1e4ff4a7902a4ba"/></dir><dir name="Helper"><file name="Data.php" hash="c0c2e68a27af5c159772ce4cbcbdbdf2"/><file name="Versions.php" hash="1a57f869d355cf167f64eb7e9070294b"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Category"><file name="Collection.php" hash="d38fe5d97a94566ea9a764e0a22616c1"/></dir><dir name="Comment"><file name="Collection.php" hash="2c7ce498edac7667c17ecdefb1e01ce3"/></dir><dir name="News"><file name="Collection.php" hash="6476e44afa6eb8b4e75fa937ff5bcb53"/></dir><file name="Category.php" hash="b5d406f334591f2c17148c1a2beb57b2"/><file name="Comment.php" hash="95c98f86dd1a056ad1d81d9f09040d64"/><file name="News.php" hash="43a2482fbb9fd3c38c39c0aeb75d7698"/></dir><dir name="Wysiwyg"><file name="Config.php" hash="6eead5875889bfb7d3d8aabd635a3754"/></dir><file name="Category.php" hash="9452474484a934f4d4ac32bddf7fc534"/><file name="Check.php" hash="1ad77d86702648a3149cce1de6cacb84"/><file name="Comment.php" hash="2dbdccefbe89486e952b0c9ccbc74ad1"/><file name="News.php" hash="78ed288affc44d3d3ec883523af87b77"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="CategoryController.php" hash="e278629f36176a788ef9057040154967"/><file name="CommentController.php" hash="7901d7438610aa6d30f5a6f6251824dd"/><file name="NewsController.php" hash="34588119ab53439c3823d9ae7b95f9e3"/></dir><file name="IndexController.php" hash="b6caf5dce8e69ca0bccb4f741676245d"/><file name="NewsitemController.php" hash="64085b5addc8fd71e8ff4a9bfef9e310"/><file name="RssController.php" hash="f829908e5558e2d2b92422a51e54f0a3"/></dir><dir name="etc"><file name="config.xml" hash="ae7c7e41eb57773e839ddee015d0eac8"/><file name="system.xml" hash="690f7380bb14ddde58fad997ae00c4ab"/></dir><dir name="sql"><dir name="clnews_setup"><file name="mysql4-install-1.0.0.php" hash="1ac289b76f5999eb73839252c26185fa"/><file name="mysql4-upgrade-1.0.1-1.0.2.php" hash="3efb7204344043f03de7287073b310a8"/></dir></dir></dir></dir></dir></dir><dir name="design"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="clnews.xml" hash="37bfd859db6cdd24bc2599108c0d2e65"/></dir><dir name="template"><dir name="clnews"><file name="latest.phtml" hash="a8d422f6fc17af733668e2c46871bd30"/><file name="list.phtml" hash="993af6a99dc4b1fa9bbb6b5338cda206"/><file name="menu.phtml" hash="e1afcaf9580522f434434faeab5b3066"/><file name="news_print.phtml" hash="75b7c6ecc6c4d3d98072a6848576985c"/><file name="newsitem.phtml" hash="e509973b0e8dea633b16bedb912024d1"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="clnews.xml" hash="f15b74649d6bd46af20a6cc4dd2aade4"/></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="CommerceLab_News.xml" hash="8da22cde4606bb3f8a30d40c4dbda6ee"/></dir></dir><dir name="locale"><dir name="en_US"><file name="CommerceLab_News.csv" hash="f92dcba3fad8347c24f8d34cb94d364a"/></dir><dir name="it_IT"><file name="CommerceLab_News.csv" hash="7b5c54cf0c9b33336dc1d4974755285a"/></dir><dir name="de_DE"><file name="CommerceLab_News.csv" hash="6a6df96fc463f5b1f7de4721bbe99cd6"/></dir></dir></dir><dir name="js"><dir name="commercelab"><dir name="treeview"><file name="jquery.treeview.pack.js" hash="d1acfe09a5cb97d93ab167952c550a7d"/></dir><dir name="clnews"><file name="news.js" hash="063c7018b7b4f7895d78a63b5a58448f"/></dir><file name="noconflict.js" hash="22e97cd4bf445c956c7ccee56fa433c2"/><file name="category_tree.js" hash="2369a2d52e678de6f5fc0669492d2fda"/></dir><dir name="jquery"><file name="jquery-1.4.4.js" hash="1e2ef16563c5939f247626c6147045aa"/><file name="jquery-1.7.1-min.js" hash="de56dbfca517764d9d056e82068f8d39"/></dir><dir name="prototype"><dir name="windows"><dir name="themes"><dir name="commercelab"><dir name="magento"><file name="btn_bg.gif" hash="37c51a4d48a92da9648dcd3ca011039f"/><file name="content_bg.gif" hash="21278ea0da2d4256f4ced96b6080ba2e"/><file name="top_bg.gif" hash="26f28090de87d64f9b01bf624f89bfe2"/><file name="window_close.png" hash="3af14f053f360bf31f8ba2df73ec7f1e"/></dir><file name="magento.css" hash="a0b153cee7655dad31ee2923657cc08a"/></dir></dir></dir></dir></dir><dir name="skin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><dir name="clnews"><dir name="images"><file name="i-tags.gif" hash="d8acce70b98a2c5827ba8bd6ee166d6d"/><file name="i_attached.gif" hash="4e277173b6372b1a90b0f19e0388ad54"/><file name="i_print.gif" hash="0aed138181495642e9ab29e55d194d40"/><file name="rss.gif" hash="d17678b5dab15949ed62bea2b602090f"/></dir><file name="style.css" hash="ed7080608764f8efa7bac8e6638112fb"/></dir><dir name="commercelab"><dir name="treeview"><dir name="images"><file name="file.gif" hash="9ab0e28d85d8ab5eb954fc28f6ac1e80"/><file name="folder-closed.gif" hash="262d69b7ca267be1994fca2aba46be32"/><file name="folder.gif" hash="9f41e1454905fd7416f89aa4380a65e1"/><file name="minus.gif" hash="e009322a00011359f76cf7ae59b4d33d"/><file name="plus.gif" hash="6c46b98e0c60e6dc2ef14f9d4a6607b8"/><file name="treeview-black-line.gif" hash="0cdd968bdb2f2852ec71e0264b3292cc"/><file name="treeview-black.gif" hash="a3ffb8abd978b0464f7b5b508fcfdef0"/><file name="treeview-default-line.gif" hash="5e3c0e0c48f48c23c45aef7b72c739c0"/><file name="treeview-default.gif" hash="46878a9b3ede269c4e234550c9c89cd0"/><file name="treeview-famfamfam-line.gif" hash="18b3e43abad26bdac6f4cea944777b62"/><file name="treeview-famfamfam.gif" hash="dc335e786863262f594737e26198009c"/><file name="treeview-gray-line.gif" hash="9c2613b4de53f939bc770983976f66cd"/><file name="treeview-gray.gif" hash="02b42894653cfd82e52aac669ad078ed"/><file name="treeview-red-line.gif" hash="feda280e7bffb057ca4c87491aab6943"/><file name="treeview-red.gif" hash="c94a07253c14c98fe69dffafb59228a5"/></dir><file name="jquery.treeview.css" hash="0f9005d3c08bc3057ed4100a3cf7afdd"/></dir></dir></dir><dir name="images"><dir name="clnews"><file name="ajax-loader.gif" hash="7b9776076d5fceef4993b55c9383dedd"/></dir></dir></dir></dir></dir></dir><dir name="."><file name="EULA.pdf" hash="11b09816c8f293f077309b2abd85da66"/><file name="News 2.2 - User Guide.pdf" hash="18b2690a2a9ca066fdd38b3d309bbb44"/></dir></target></contents>
|
| 45 |
<compatible/>
|
| 46 |
<dependencies/>
|
| 47 |
</package>
|
skin/frontend/default/default/css/clnews/style.css
CHANGED
|
@@ -146,7 +146,7 @@ label .required {
|
|
| 146 |
}
|
| 147 |
|
| 148 |
#comment_block .comment-item div {
|
| 149 |
-
padding-left:
|
| 150 |
}
|
| 151 |
|
| 152 |
/*-- pager --*/
|
|
@@ -168,10 +168,10 @@ label .required {
|
|
| 168 |
}
|
| 169 |
.news-item-comment .pager span.current {
|
| 170 |
cursor:default;
|
| 171 |
-
background:#
|
| 172 |
}
|
| 173 |
.news-item-comment .pager span:hover {
|
| 174 |
-
background:#
|
| 175 |
}
|
| 176 |
.news-item-comment .pager #prev,
|
| 177 |
.news-item-comment .pager #next {
|
| 146 |
}
|
| 147 |
|
| 148 |
#comment_block .comment-item div {
|
| 149 |
+
padding-left:10px;
|
| 150 |
}
|
| 151 |
|
| 152 |
/*-- pager --*/
|
| 168 |
}
|
| 169 |
.news-item-comment .pager span.current {
|
| 170 |
cursor:default;
|
| 171 |
+
background:#c6c6c6;
|
| 172 |
}
|
| 173 |
.news-item-comment .pager span:hover {
|
| 174 |
+
background:#c6c6c6;
|
| 175 |
}
|
| 176 |
.news-item-comment .pager #prev,
|
| 177 |
.news-item-comment .pager #next {
|
skin/frontend/default/default/css/commercelab/treeview/jquery.treeview.css
CHANGED
|
@@ -39,6 +39,7 @@
|
|
| 39 |
#treecontrol { margin: 1em 0; display: none; }
|
| 40 |
|
| 41 |
.treeview .hover { color: red; cursor: pointer; }
|
|
|
|
| 42 |
|
| 43 |
.treeview li { background: url(images/treeview-default-line.gif) 0 0 no-repeat; }
|
| 44 |
.treeview li.collapsable, .treeview li.expandable { background-position: 0 -176px; }
|
| 39 |
#treecontrol { margin: 1em 0; display: none; }
|
| 40 |
|
| 41 |
.treeview .hover { color: red; cursor: pointer; }
|
| 42 |
+
.treeview .category_selected { color: red; cursor: pointer; }
|
| 43 |
|
| 44 |
.treeview li { background: url(images/treeview-default-line.gif) 0 0 no-repeat; }
|
| 45 |
.treeview li.collapsable, .treeview li.expandable { background-position: 0 -176px; }
|
