Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add template files to checks #2847

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
d3439fc
Added app/design to phpstan check [skip ci]
sreichel Dec 25, 2022
3c36477
Fixed docs for design/install [skip ci]
sreichel Dec 25, 2022
8034bfa
Fixed docs for design/adminhtml...openmage [skip ci]
sreichel Dec 25, 2022
e8493f2
Fixed docs for design/adminhtml...default [skip ci]
sreichel Dec 25, 2022
886607f
Fixed docs for design/frontend [skip ci]
sreichel Dec 25, 2022
f039774
Added app/design to php-cs-fixer check [skip ci]
sreichel Dec 25, 2022
885e416
php-cs-fixer fixes [skip ci]
sreichel Dec 25, 2022
4aacc47
Updated phpstan.dist.baseline.neon
sreichel Dec 25, 2022
36a18eb
Updated workflow
sreichel Dec 25, 2022
424de4f
Merge branch '1.9.4.x' into check-frontend-files
sreichel Dec 25, 2022
2001927
Merge branch '1.9.4.x' into check-frontend-files
sreichel Dec 27, 2022
6b58761
Temporary patch for phpstan
sreichel Dec 27, 2022
a6bafc1
Updated phpstan.dist.baseline.neon
sreichel Dec 27, 2022
ec6f194
Updated composer.lock hash
sreichel Dec 27, 2022
857308b
Removed test-code
sreichel Dec 28, 2022
8623e90
Merge branch '1.9.4.x' into check-frontend-files
sreichel Dec 30, 2022
4556bbf
Merge branch '1.9.4.x' into check-frontend-files
sreichel Jan 2, 2023
60c2536
Updated plugin
sreichel Jan 2, 2023
31824ea
Re-added spaces to "echo ("
sreichel Jan 2, 2023
1c1aed9
Run php-cs-fixer on complete - removed spaces
sreichel Jan 2, 2023
7c4b478
Merge branch '1.9.4.x' into check-frontend-files
sreichel Jan 2, 2023
d30d37b
Updated some docs ...
sreichel Jan 2, 2023
03d81a8
Merge remote-tracking branch 'upstream/check-frontend-files' into che…
sreichel Jan 2, 2023
46b9249
Another one
sreichel Jan 2, 2023
65d42f4
Fixed docs
sreichel Jan 2, 2023
fa581a5
Updated phpstan.dist.baseline.neon
sreichel Jan 2, 2023
4bfa9ba
Merge branch '1.9.4.x' into check-frontend-files
sreichel Jan 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions .github/workflows/check-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
php:
description: "Count changed PHP files"
value: ${{ jobs.check.outputs.php }}
phtml:
description: "Count changed Template files"
value: ${{ jobs.check.outputs.phtml }}
xml:
description: "Count changed XML files"
value: ${{ jobs.check.outputs.xml }}
Expand Down Expand Up @@ -43,6 +46,7 @@ jobs:
outputs:
composer: ${{ steps.all.outputs.composer }}
php: ${{ steps.all.outputs.php }}
phtml: ${{ steps.all.outputs.phtml }}
xml: ${{ steps.all.outputs.xml }}
workflow: ${{ steps.all.outputs.workflow }}
phpcs: ${{ steps.all.outputs.phpcs }}
Expand Down Expand Up @@ -77,6 +81,7 @@ jobs:
composer.*
*.php
**/*.php
**/*.phtml
**/*.xml
.github/workflows/**
**phpcs**
Expand All @@ -100,6 +105,10 @@ jobs:
echo "$count PHP file(s) changed"
echo "php=$count" >> $GITHUB_OUTPUT

count="$(grep -oE "*.phtml" <<< "${{ steps.changed-files-specific.outputs.all_modified_files }}" | wc -l)"
echo "$count Template file(s) changed"
echo "phtml=$count" >> $GITHUB_OUTPUT

count="$(grep -oE "*.xml" <<< "${{ steps.changed-files-specific.outputs.all_modified_files }}" | wc -l)"
echo "$count XML file(s) changed"
echo "xml=$count" >> $GITHUB_OUTPUT
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- 'composer.json'
- 'composer.lock'
- '**.php'
- '**.phtml'
- '**.xml'
- '.php-cs-fixer.dist.php'
- '.phpcs.xml.dist'
Expand All @@ -21,6 +22,7 @@ on:
- 'composer.json'
- 'composer.lock'
- '**.php'
- '**.phtml'
- '**.xml'
- '.php-cs-fixer.dist.php'
- '.phpcs.xml.dist'
Expand Down Expand Up @@ -66,6 +68,7 @@ jobs:
needs: [check, composer]
if: |
needs.check.outputs.php > 0 ||
needs.check.outputs.phtml > 0 ||
needs.check.outputs.php-cs-fixer > 0 ||
needs.check.outputs.composer > 0 ||
needs.check.outputs.workflow > 0
Expand All @@ -76,6 +79,7 @@ jobs:
needs: [check, composer, phpcs, php-cs-fixer]
if: |
needs.check.outputs.php > 0 ||
needs.check.outputs.phtml > 0 ||
needs.check.outputs.phpstan > 0 ||
needs.check.outputs.composer > 0 ||
needs.check.outputs.workflow > 0
Expand Down
4 changes: 3 additions & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
// There should be no empty lines after class opening brace.
'no_blank_lines_after_class_opening' => true,
// There must be a comment when fall-through is intentional in a non-empty case body.
'no_break_comment' => true,
'no_break_comment' => false,
// The closing `? >` tag MUST be omitted from files containing only PHP.
'no_closing_tag' => true,
// Remove leading slashes in `use` clauses.
Expand Down Expand Up @@ -96,12 +96,14 @@
PhpCsFixer\Finder::create()
->in([
'app/code/core/Mage/',
'app/design/',
'lib/Mage/',
'lib/Magento/',
'lib/Varien/',
'shell/',
])
->name('*.php')
->name('*.phtml')
->ignoreDotFiles(true)
->ignoreVCS(true)
);
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<script type="text/javascript">
<!--
<?php $myBlock = $this->getLayout()->getBlock('roleUsersGrid'); ?>
<?php if( is_object($myBlock) && $myBlock->getJsObjectName() ): ?>
<?php if (is_object($myBlock) && $myBlock->getJsObjectName()): ?>
var checkBoxes = $H({});
var warning = false;
var inRoleUsers = $H(<?php echo $myBlock->_getUsers(true) ?>);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
* @copyright Copyright (c) 2006-2020 Magento, Inc. (https://www.magento.com)
* @license https://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
/** @var $this Mage_Adminhtml_Block_Api_Tab_Roleinfo */
/** @var Mage_Adminhtml_Block_Api_Tab_Roleinfo $this */

?>
<div class="content-header">
<table cellspacing="0">
<tr>
<td style="width:50%;"><h3 class="icon-head head-permissions-role"><?php echo ($this->getRoleId() > 0 ) ? ($this->__('Edit Role') . " '{$this->escapeHtml($this->getRoleInfo()->getRoleName())}'") : $this->__('Add New Role') ?></h3></td>
<td style="width:50%;"><h3 class="icon-head head-permissions-role"><?php echo ($this->getRoleId() > 0) ? ($this->__('Edit Role') . " '{$this->escapeHtml($this->getRoleInfo()->getRoleName())}'") : $this->__('Add New Role') ?></h3></td>
<td class="form-buttons">
<?php echo $this->getBackButtonHtml() ?>
<?php echo $this->getResetButtonHtml() ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
<span class="field-row">
<label for="all"><?php echo $this->__('Resource Access') ?></label>
<select id="all" name="all" onchange="$('resources_container').toggle()" class="select">
<option value="0" <?php echo ($this->getEverythingAllowed()?'':'selected="selected"'); ?>><?php echo $this->__('Custom') ?></option>
<option value="1" <?php echo ($this->getEverythingAllowed()?'selected="selected"':''); ?>><?php echo $this->__('All') ?></option>
<option value="0" <?php echo($this->getEverythingAllowed() ? '' : 'selected="selected"'); ?>><?php echo $this->__('Custom') ?></option>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing space before echo. Is this intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, its not,

Added spaces. Run php-cs-fixer again. Nothing changed. Dont know why space got removed.

Copy link
Contributor Author

@sreichel sreichel Jan 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last commit added spaces to lines that did not changed before .... so it already was inconsistent.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems you've found a bug.

running php-cs-fixer ...

  • w/o custom path fixes (remove) that spaces
  • w/ custom path app/design/ finds nothing - wrong, BUT ...
  • w/ custom path app/ finds issues in code/core/Zend - correct, because directory is ignored in config

<option value="1" <?php echo($this->getEverythingAllowed() ? 'selected="selected"' : ''); ?>><?php echo $this->__('All') ?></option>
</select>
</span>

Expand All @@ -45,7 +45,7 @@
</div>
<!-- Draw Resources Tree -->
<script type="text/javascript">
<?php if($this->getEverythingAllowed()): ?>
<?php if ($this->getEverythingAllowed()): ?>
$('resources_container').hide();
<?php endif ?>
Ext.EventManager.onDocumentReady(function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<script type="text/javascript">
<!--
<?php $myBlock = $this->getLayout()->getBlock('user.roles.grid'); ?>
<?php if( is_object($myBlock) && $myBlock->getJsObjectName()): ?>
<?php if (is_object($myBlock) && $myBlock->getJsObjectName()): ?>
var radioBoxes = $H({});
var warning = false;
var userRoles = $H(<?php echo $myBlock->_getSelectedRoles(true) ?>);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<tr>
<td style="width:50%;">
<h3>
<?php if($this->getUser()->getUserId()): ?>
<?php if ($this->getUser()->getUserId()): ?>
<?php $_userName = $this->getUser()->getFirstname() . ' ' . $this->getUser()->getLastname() ?>
<?php echo $this->__("Edit User '%s'", $_userName) ?>
<?php else: ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@
<?php foreach ($roles as $role): ?>
<?php
$checked = false;
foreach( $user_roles->getItems() as $user_role )
{
if( $user_role->getParentId() == $role->getRoleId() ) {
foreach ($user_roles->getItems() as $user_role) {
if ($user_role->getParentId() == $role->getRoleId()) {
$checked = true;
}
}
?>
<input type="checkbox" value="<?php echo $role->getRoleId(); ?>" <?php echo ($checked ? "checked" : ""); ?> name="roles[]" id="_<?php echo $role->getRoleId(); ?>" /> <label for="_<?php echo $role->getRoleId(); ?>" class="normal"><?php echo $role->getRoleName(); ?></label><br />
<input type="checkbox" value="<?php echo $role->getRoleId(); ?>" <?php echo($checked ? "checked" : ""); ?> name="roles[]" id="_<?php echo $role->getRoleId(); ?>" /> <label for="_<?php echo $role->getRoleId(); ?>" class="normal"><?php echo $role->getRoleName(); ?></label><br />
<?php endforeach ?>
</fieldset>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* @copyright Copyright (c) 2006-2020 Magento, Inc. (https://www.magento.com)
* @license https://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
/** @var $this Mage_Api2_Block_Adminhtml_Attribute_Buttons */
/** @var Mage_Api2_Block_Adminhtml_Attribute_Buttons $this */

?>
<div class="content-header">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
<span class="field-row">
<label for="all"><?php echo $this->__('Resource Access') ?></label>
<select id="all" name="all" onchange="$('resources_container').toggle()" class="select">
<option value="0" <?php echo ($this->getEverythingAllowed()?'':'selected'); ?>><?php echo $this->__('Custom') ?></option>
<option value="1" <?php echo ($this->getEverythingAllowed()?'selected':''); ?>><?php echo $this->__('All') ?></option>
<option value="0" <?php echo($this->getEverythingAllowed() ? '' : 'selected'); ?>><?php echo $this->__('Custom') ?></option>
<option value="1" <?php echo($this->getEverythingAllowed() ? 'selected' : ''); ?>><?php echo $this->__('All') ?></option>
</select>
</span>

Expand All @@ -59,7 +59,7 @@
<!-- Draw Resources Tree -->
<script type="text/javascript">
//<![CDATA[
<?php if($this->getEverythingAllowed()): ?>
<?php if ($this->getEverythingAllowed()): ?>
$('resources_container').hide();
<?php endif ?>
Ext.EventManager.onDocumentReady(function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @license https://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
?>
<?php /** @var $this Mage_Adminhtml_Block_Api_Tab_Roleinfo */ ?>
<?php /** @var Mage_Adminhtml_Block_Api_Tab_Roleinfo $this */ ?>
<div class="content-header">
<table cellspacing="0">
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<script type="text/javascript">
//<![CDATA[
<?php
/** @var $myBlock Mage_Api2_Block_Adminhtml_Roles_Tab_Users */
/** @var Mage_Api2_Block_Adminhtml_Roles_Tab_Users $myBlock */
$myBlock = $this->getLayout()->getBlock('adminhtml.role.edit.tab.users');
$name = $myBlock->getJsObjectName();
?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
*/

/**
* @var $this Mage_Authorizenet_Block_Directpost_Iframe
* @var Mage_Authorizenet_Block_Directpost_Iframe $this
*/
?>
<?php
$_params = $this->getParams();
/* @var $_helper Mage_Authorizenet_Helper_Admin */
/** @var Mage_Authorizenet_Helper_Admin $_helper */
$_helper = $this->helper('authorizenet/admin');
?>
<html>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ $_orderUrl = $this->helper('authorizenet')->getPlaceOrderAdminUrl();
<?php $_ccType = $_form->getInfoData('cc_type') ?>
<option value=""></option>
<?php foreach ($_form->getCcAvailableTypes() as $_typeCode => $_typeName): ?>
<option value="<?php echo $_typeCode ?>" <?php if($_typeCode==$_ccType): ?>selected="selected"<?php endif ?>><?php echo $_typeName ?></option>
<option value="<?php echo $_typeCode ?>" <?php if ($_typeCode==$_ccType): ?>selected="selected"<?php endif ?>><?php echo $_typeName ?></option>
<?php endforeach ?>
</select>
</div>
Expand All @@ -59,18 +59,18 @@ $_orderUrl = $this->helper('authorizenet')->getPlaceOrderAdminUrl();
<select id="<?php echo $_code ?>_expiration" style="width:140px;" name="payment[cc_exp_month]" class="validate-cc-exp required-entry">
<?php $_ccExpMonth = $_form->getInfoData('cc_exp_month') ?>
<?php foreach ($_form->getCcMonths() as $k=>$v): ?>
<option value="<?php echo $k ?>" <?php if($k==$_ccExpMonth): ?>selected="selected"<?php endif ?>><?php echo $v ?></option>
<option value="<?php echo $k ?>" <?php if ($k==$_ccExpMonth): ?>selected="selected"<?php endif ?>><?php echo $v ?></option>
<?php endforeach ?>
</select>
<?php $_ccExpYear = $_form->getInfoData('cc_exp_year') ?>
<select id="<?php echo $_code ?>_expiration_yr" style="width:103px;" name="payment[cc_exp_year]" class="required-entry">
<?php foreach ($_form->getCcYears() as $k=>$v): ?>
<option value="<?php echo $k ? $k : '' ?>" <?php if($k==$_ccExpYear): ?>selected="selected"<?php endif ?>><?php echo $v ?></option>
<option value="<?php echo $k ? $k : '' ?>" <?php if ($k==$_ccExpYear): ?>selected="selected"<?php endif ?>><?php echo $v ?></option>
<?php endforeach ?>
</select>
</div>
</li>
<?php if($_form->hasVerification()): ?>
<?php if ($_form->hasVerification()): ?>
<li>
<div class="input-box">
<label for="<?php echo $_code ?>_cc_cid"><?php echo Mage::helper('payment')->__('Card Verification Number') ?> <span class="required">*</span></label><br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
?>

<?php /* @var $this Mage_Bundle_Block_Adminhtml_Catalog_Product_Composite_Fieldset_Bundle */ ?>
<?php /** @var Mage_Bundle_Block_Adminhtml_Catalog_Product_Composite_Fieldset_Bundle $this */ ?>
<?php $options = Mage::helper('core')->decorateArray($this->getOptions()); ?>
<?php if (count($options)): ?>
<div id="catalog_product_composite_configure_fields_bundle" class="<?php echo $this->getIsLastFieldset() ? 'last-fieldset' : '' ?>">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,32 @@
*/

?>
<?php /* @var $this Mage_Bundle_Block_Adminhtml_Catalog_Product_Composite_Fieldset_Options_Type_Checkbox */ ?>
<?php /** @var Mage_Bundle_Block_Adminhtml_Catalog_Product_Composite_Fieldset_Options_Type_Checkbox $this */ ?>
<?php $_option = $this->getOption(); ?>
<?php $_selections = $_option->getSelections(); ?>
<?php $_skipSaleableCheck = Mage::helper('catalog/product')->getSkipSaleableCheck(); ?>
<dt><label<?php if ($_option->getRequired()) echo ' class="required"' ?>><?php if ($_option->getRequired()) echo '<em>*</em>' ?><?php echo $this->escapeHtml($_option->getTitle()) ?></label></dt>
<dd<?php if ($_option->decoratedIsLast){?> class="last"<?php }?>>
<dt><label<?php if ($_option->getRequired()) {
echo ' class="required"';
} ?>><?php if ($_option->getRequired()) {
echo '<em>*</em>';
} ?><?php echo $this->escapeHtml($_option->getTitle()) ?></label></dt>
<dd<?php if ($_option->decoratedIsLast) {?> class="last"<?php }?>>
<div class="input-box">
<?php if (count($_selections) == 1 && $_option->getRequired()): ?>
<?php echo $this->getSelectionQtyTitlePrice($_selections[0]) ?>
<input type="hidden" name="bundle_option[<?php echo $_option->getId() ?>]" value="<?php echo $_selections[0]->getSelectionId() ?>" price="<?php echo $this->getSelectionPrice($_selections[0]) ?>"'/>
<?php else: ?>
<ul class="options-list">
<?php foreach($_selections as $_selection): ?>
<li><input class="change-container-classname checkbox bundle-option-<?php echo $_option->getId() ?> <?php if ($_option->getRequired()) echo 'validate-one-required-by-name' ?>" id="bundle-option-<?php echo $_option->getId() ?>-<?php echo $_selection->getSelectionId() ?>" type="checkbox" name="bundle_option[<?php echo $_option->getId() ?>][]"<?php if ($this->_isSelected($_selection)) echo ' checked="checked"' ?><?php if (!$_selection->isSaleable() && !$_skipSaleableCheck) echo ' disabled="disabled"' ?> value="<?php echo $_selection->getSelectionId() ?>" onclick="ProductConfigure.bundleControl.changeSelection(this)" price="<?php echo $this->getSelectionPrice($_selection) ?>"/>
<?php foreach ($_selections as $_selection): ?>
<li><input class="change-container-classname checkbox bundle-option-<?php echo $_option->getId() ?> <?php if ($_option->getRequired()) {
echo 'validate-one-required-by-name';
} ?>" id="bundle-option-<?php echo $_option->getId() ?>-<?php echo $_selection->getSelectionId() ?>" type="checkbox" name="bundle_option[<?php echo $_option->getId() ?>][]"<?php if ($this->_isSelected($_selection)) {
echo ' checked="checked"';
} ?><?php if (!$_selection->isSaleable() && !$_skipSaleableCheck) {
echo ' disabled="disabled"';
} ?> value="<?php echo $_selection->getSelectionId() ?>" onclick="ProductConfigure.bundleControl.changeSelection(this)" price="<?php echo $this->getSelectionPrice($_selection) ?>"/>
<span class="label"><label for="bundle-option-<?php echo $_option->getId() ?>-<?php echo $_selection->getSelectionId() ?>"><?php echo $this->getSelectionQtyTitlePrice($_selection) ?></label></span>
<?php if($_option->getRequired()): ?>
<?php if ($_option->getRequired()): ?>
<?php echo $this->setValidationContainer('bundle-option-'.$_option->getId().'-'.$_selection->getSelectionId(), 'bundle-option-'.$_option->getId().'-container') ?>
<?php endif ?>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,33 @@
*/

?>
<?php /* @var $this Mage_Bundle_Block_Adminhtml_Catalog_Product_Composite_Fieldset_Options_Type_Multi */ ?>
<?php /** @var Mage_Bundle_Block_Adminhtml_Catalog_Product_Composite_Fieldset_Options_Type_Multi $this */ ?>
<?php $_option = $this->getOption(); ?>
<?php $_selections = $_option->getSelections(); ?>
<?php $_skipSaleableCheck = Mage::helper('catalog/product')->getSkipSaleableCheck(); ?>
<dt><label<?php if ($_option->getRequired()) echo ' class="required"' ?>><?php if ($_option->getRequired()) echo '<em>*</em>' ?><?php echo $this->escapeHtml($_option->getTitle()) ?></label></dt>
<dd<?php if ($_option->decoratedIsLast){?> class="last"<?php }?>>
<dt><label<?php if ($_option->getRequired()) {
echo ' class="required"';
} ?>><?php if ($_option->getRequired()) {
echo '<em>*</em>';
} ?><?php echo $this->escapeHtml($_option->getTitle()) ?></label></dt>
<dd<?php if ($_option->decoratedIsLast) {?> class="last"<?php }?>>
<div class="input-box">
<?php if (count($_selections) == 1 && $_option->getRequired()): ?>
<?php echo $this->getSelectionQtyTitlePrice($_selections[0]) ?>
<input type="hidden" name="bundle_option[<?php echo $_option->getId() ?>]" value="<?php echo $_selections[0]->getSelectionId() ?>" price="<?php echo $this->getSelectionPrice($_selections[0]) ?>"/>
<?php else: ?>
<select multiple="multiple" size="5" id="bundle-option-<?php echo $_option->getId() ?>" name="bundle_option[<?php echo $_option->getId() ?>][]" class="bundle-option-<?php echo $_option->getId() ?><?php if ($_option->getRequired()) echo ' required-entry' ?> bundle-option-select multiselect change-container-classname" onchange="ProductConfigure.bundleControl.changeSelection(this)">
<?php if(!$_option->getRequired()): ?>
<select multiple="multiple" size="5" id="bundle-option-<?php echo $_option->getId() ?>" name="bundle_option[<?php echo $_option->getId() ?>][]" class="bundle-option-<?php echo $_option->getId() ?><?php if ($_option->getRequired()) {
echo ' required-entry';
} ?> bundle-option-select multiselect change-container-classname" onchange="ProductConfigure.bundleControl.changeSelection(this)">
<?php if (!$_option->getRequired()): ?>
<option value=""><?php echo $this->__('None') ?></option>
<?php endif ?>
<?php foreach ($_selections as $_selection): ?>
<option value="<?php echo $_selection->getSelectionId() ?>"<?php if ($this->_isSelected($_selection)) echo ' selected="selected"' ?><?php if (!$_selection->isSaleable() && !$_skipSaleableCheck) echo ' disabled="disabled"' ?> price="<?php echo $this->getSelectionPrice($_selection) ?>"><?php echo $this->getSelectionQtyTitlePrice($_selection, false) ?></option>
<option value="<?php echo $_selection->getSelectionId() ?>"<?php if ($this->_isSelected($_selection)) {
echo ' selected="selected"';
} ?><?php if (!$_selection->isSaleable() && !$_skipSaleableCheck) {
echo ' disabled="disabled"';
} ?> price="<?php echo $this->getSelectionPrice($_selection) ?>"><?php echo $this->getSelectionQtyTitlePrice($_selection, false) ?></option>
<?php endforeach ?>
</select>
<?php endif ?>
Expand Down
Loading