Skip to content

Commit

Permalink
Remove decorate functions and mark them as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
luigifab committed Jul 10, 2020
1 parent de59e00 commit 3e68ad7
Show file tree
Hide file tree
Showing 116 changed files with 19 additions and 267 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,5 @@
</tr>
<?php endfor; ?>
</table>
<script type="text/javascript">decorateTable('bundle-product-table')</script>
</div>
<?php endif ?>
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
<?php endif; ?>
<?php endforeach; ?>
</dl>
<script type="text/javascript">decorateDataList('narrow-by-list')</script>
<?php endif; ?>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
</ol>
</dd>
</dl>
<script type="text/javascript">decorateDataList('narrow-by-list2')</script>
</div>
</div>
<?php endif; ?>
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,7 @@ $_params = $this->escapeHtml(json_encode(array('form_key' => $this->getFormKey()
</span>
</div>
<script type="text/javascript">
decorateTable('product_comparison');

/**
* Send remove item request, after that reload windows
*/
// Send remove item request, after that reload windows
function removeItem(url)
{
new Ajax.Request(url, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ $_items = $_helper->getItemCount() > 0 ? $_helper->getItemCollection() : null;
</li>
<?php endforeach; ?>
</ol>
<script type="text/javascript">decorateList('compare-items')</script>
<div class="actions">
<a href="<?php echo $_helper->getClearListUrl() ?>" onclick="return confirm('<?php echo Mage::helper('core')->quoteEscape($this->__('Are you sure you would like to remove all products from your comparison?')) ?>');"><?php echo $this->__('Clear All') ?></a>
<button type="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Compare')) ?>" class="button" onclick="popWin('<?php echo $_helper->getListUrl() ?>','compare','top:0,left:0,width=820,height=600,resizable=yes,scrollbars=yes')"><span><span><?php echo $this->__('Compare') ?></span></span></button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@
</li>
<?php endforeach; ?>
</ol>
<script type="text/javascript">decorateList('products-list', 'none-recursive')</script>

<?php else: ?>

Expand Down Expand Up @@ -169,7 +168,6 @@
</ul>
<?php endif ?>
<?php endforeach ?>
<script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
<?php endif; ?>

<div class="toolbar-bottom">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
</li>
<?php endforeach ?>
</ol>
<script type="text/javascript">decorateList('block-related', 'none-recursive')</script>
</div>
<script type="text/javascript">
//<![CDATA[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,5 @@
</tr>
<?php endfor; ?>
</table>
<script type="text/javascript">decorateTable('upsell-product-table')</script>
</div>
<?php endif ?>
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@
<?php endforeach; ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('product-attribute-specs-table')</script>
<?php endif;?>
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
<?php endif;?>
</div>
<script type="text/javascript">decorateGeneric($$('#product-options-wrapper dl'), ['last']);</script>
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,3 @@
<?php endif; ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('super-product-table')</script>
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
</li>
<?php endforeach; ?>
</ol>
<script type="text/javascript">decorateList('widget-new-products-<?php echo $suffix; ?>', 'none-recursive')</script>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
</li>
<?php endforeach; ?>
</ol>
<script type="text/javascript">decorateList('widget-new-products-<?php echo $suffix; ?>', 'none-recursive')</script>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
</li>
<?php endforeach; ?>
</ol>
<script type="text/javascript">decorateList('widget-new-products-<?php echo $suffix; ?>', 'none-recursive')</script>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
this.toggleClassName('expanded');
$('<?php echo $this->getDetailsPlaceholderId() ?>').toggleClassName('no-display');
event.stop();
decorateTable('<?php echo $this->getDetailsPlaceholderId() ?>');
});
//]]>
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
</li>
<?php endforeach; ?>
</ul>
<script type="text/javascript">decorateList('advanced-search-list')</script>
</div>
<div class="buttons-set">
<button type="submit" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Search')) ?>" class="button"><span><span><?php echo $this->__('Search') ?></span></span></button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@
<?php endforeach ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('shopping-cart-table')</script>
</fieldset>
</form>
<div class="cart-collaterals">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,5 @@
</li>
<?php endforeach; ?>
</ul>
<script type="text/javascript">decorateList('crosssell-products-list', 'none-recursive')</script>
</div>
<?php endif; ?>
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
<?php echo $this->getItemHtml($_item) ?>
<?php endforeach; ?>
</ol>
<script type="text/javascript">decorateList('cart-sidebar', 'none-recursive')</script>
<?php else: ?>
<p class="empty"><?php echo $this->__('You have no items in your shopping cart.') ?></p>
<?php endif ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
<?php endforeach; ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('multiship-addresses-table')</script>
<div class="buttons-set">
<p class="back-link"><a href="<?php echo $this->getBackUrl() ?>"><small>&laquo; </small><?php echo $this->__('Back to Shopping Cart') ?></a></p>
<button type="submit" data-action="checkout-continue-shipping" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Continue to Shipping Information')) ?>" class="button<?php if ($this->isContinueDisabled()):?> disabled<?php endif; ?>" onclick="$('can_continue_flag').value=1"<?php if ($this->isContinueDisabled()):?> disabled="disabled"<?php endif; ?>><span><span><?php echo $this->__('Continue to Shipping Information') ?></span></span></button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
<?php endforeach; ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('unavailable-shipping-table')</script>
</div>
</div>
<?php endif; ?>
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@
<?php endforeach; ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('overview-table-<?php echo $_address->getId() ?>')</script>
</div>
<?php if($this->getShippingAddressCount()!=$_index+1): ?>
<div class="divider"></div>
Expand Down Expand Up @@ -183,7 +182,6 @@
<?php endforeach; ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('virtual-overview-table')</script>
</div>
</div>
<?php endif; ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@
<?php endforeach; ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('shipping-table-<?php echo $_address->getId() ?>')</script>
<?php echo $this->helper('giftmessage/message')->getInline('multishipping_adress', $_address); ?>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
?>
<?php
<?php
/**
* Mustishipping state
*
*
* @see Mage_Checkout_Block_Multishipping_State
*/
?>
Expand All @@ -36,4 +36,3 @@
<li title="<?php echo $_step->getLabel() ?>"<?php if($_step->getIsActive()): ?> class="active"<?php endif; ?>><span><?php echo $_step->getLabel() ?></span></li>
<?php endforeach; ?>
</ul>
<script type="text/javascript">decorateGeneric($$('#checkout-progress-state li'), ['first','last']);</script>
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,7 @@
</table>
</div>
<?php echo $this->getChildHtml('items_after'); ?>
<script type="text/javascript">
//<![CDATA[
decorateTable('checkout-review-table');
truncateOptions();
//]]>
</script>
<script type="text/javascript">truncateOptions();</script>
<div id="checkout-review-submit">
<?php echo $this->getChildHtml('agreements') ?>
<div class="buttons-set" id="review-buttons-container">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
<?php endforeach ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('my-orders-table')</script>
<?php else: ?>
<p><?php echo $this->__('You have placed no orders yet.') ?></p>
<?php endif ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
<?php endforeach; ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('my-downloadable-products-table')</script>
<?php else: ?>
<p><?php echo Mage::helper('downloadable')->__('You have not purchased any downloadable products yet.'); ?></p>
<?php endif; ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@
<?php endforeach; ?>
</tbody>
</table>
<script type="text/javascript">
//<![CDATA[
decorateTable('my-apps-table');
//]]>
</script>
<?php echo $this->getToolbarHtml() ?>
<?php else: ?>
<p><?php echo $this->__('You have no applications.'); ?></p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,3 @@
<?php endforeach ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('details-table');</script>
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
</li>
<?php endforeach; ?>
</ul>
<script type="text/javascript">decorateList('poll-answers');</script>
<?php endif; ?>
<div class="actions">
<button type="submit" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Vote')) ?>" class="button"><span><span><?php echo $this->__('Vote') ?></span></span></button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
</li>
<?php endforeach; ?>
</ol>
<script type="text/javascript">decorateList('poll-answers');</script>
<?php endif; ?>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
</li>
<?php endforeach; ?>
</ol>
<script type="text/javascript">decorateList('recently-compared-items');</script>
</div>
</div>
<?php endif; ?>
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
</li>
<?php endforeach; ?>
</ol>
<script type="text/javascript">decorateList('recently-viewed-items');</script>
</div>
</div>
<?php endif; ?>
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
</li>
<?php endforeach; ?>
</ol>
<script type="text/javascript">decorateList('widget-compared-<?php echo $suffix; ?>', 'none-recursive')</script>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
</li>
<?php endforeach; ?>
</ol>
<script type="text/javascript">decorateList('widget-compared-<?php echo $suffix; ?>', 'none-recursive')</script>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
</li>
<?php endforeach; ?>
</ol>
<script type="text/javascript">decorateList('widget-compared-<?php echo $suffix; ?>', 'none-recursive')</script>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
</li>
<?php endforeach; ?>
</ol>
<script type="text/javascript">decorateList('widget-viewed-<?php echo $suffix; ?>', 'none-recursive')</script>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
</li>
<?php endforeach; ?>
</ol>
<script type="text/javascript">decorateList('widget-viewed-<?php echo $suffix; ?>', 'none-recursive')</script>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
</li>
<?php endforeach; ?>
</ol>
<script type="text/javascript">decorateList('widget-viewed-<?php echo $suffix; ?>', 'none-recursive')</script>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
<?php endforeach; ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('my-reviews-table')</script>
<?php echo $this->getToolbarHtml() ?>
<?php else: ?>
<p><?php echo $this->__('You have submitted no reviews.') ?></p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,5 @@
</li>
<?php endforeach; ?>
</ol>
<script type="text/javascript">decorateList('my_recent_reviews');</script>
</div>
<?php endif; ?>
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
</tbody>
</table>
<input type="hidden" name="validate_rating" class="validate-rating" value="" />
<script type="text/javascript">decorateTable('product-review-table')</script>
<?php endif; ?>
<ul class="form-list">
<li>
Expand Down
6 changes: 0 additions & 6 deletions app/design/frontend/base/default/template/rss/list.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,6 @@
</tbody>
</table>
<?php endif; ?>
<script type="text/javascript">
//<![CDATA[
decorateTable('rss-table-misc');
decorateTable('rss-table-category');
//]]>
</script>
<?php else: ?>
<p><?php echo $this->__('There are no Rss Feeds'); ?></p>
<?php endif; ?>
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@
<?php endforeach; ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('related-orders-table');</script>
<?php endif; ?>
<div class="buttons-set">
<p class="back-link"><a href="<?php echo $this->getBackUrl() ?>"><small>&laquo; </small><?php echo $this->__('Back to Billing Agreements') ?></a></p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
<?php endforeach; ?>
</tbody>
</table>
<script type="text/javascript">decorateTable('billing-agreements')</script>
<?php else: ?>
<p><?php echo $this->__('There are no billing agreements yet.')?></p>
<?php endif; ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,5 @@
</tbody>
<?php endforeach; ?>
</table>
<script type="text/javascript">decorateTable('my-refund-table-<?php echo $_creditmemo->getId(); ?>', {'tbody' : ['odd', 'even'], 'tbody tr' : ['first', 'last']})</script>
<?php echo $this->getCommentsHtml($_creditmemo)?>
<?php endforeach; ?>
Loading

0 comments on commit 3e68ad7

Please sign in to comment.