second batch of module tmpl codestyle#17852
Conversation
| <?php $lang = JFactory::getLanguage(); ?> | ||
| <?php $myrtl = $params->get('rssrtl'); ?> | ||
| <?php $direction = ' '; ?> | ||
| <?php $isRtl = $lang->isRtl(); ?> |
There was a problem hiding this comment.
Not sure why the first three lines above are aligned on the = but the line below is not?
There was a problem hiding this comment.
they was aligned because they where PHP only code i have reset the aligned. (comming with the next commit)
| <?php endif; ?> | ||
| <?php if ($params->get('dropdown', 1) && !$params->get('dropdownimage', 0)) : ?> | ||
| <form name="lang" method="post" action="<?php echo htmlspecialchars(JUri::current(), ENT_COMPAT, 'UTF-8'); ?>"> | ||
| <select class="inputbox advancedSelect" onchange="document.location.replace(this.value);" > |
There was a problem hiding this comment.
do we need the space before the > at the end?
| <select class="inputbox advancedSelect" onchange="document.location.replace(this.value);" > | ||
| <select class="inputbox advancedSelect" onchange="document.location.replace(this.value);"> | ||
| <?php foreach ($list as $language) : ?> | ||
| <option dir=<?php echo $language->rtl ? '"rtl"' : '"ltr"'; ?> value="<?php echo $language->link; ?>" <?php echo $language->active ? 'selected="selected"' : ''; ?>> |
There was a problem hiding this comment.
Change to "<?php echo $language->rtl ? 'rtl' : 'ltr'; ?>"
modules/mod_feed/tmpl/default.php
Outdated
| <?php elseif ($myrtl == 0) : ?> | ||
| <?php $direction = ' redirect-ltr'; ?> | ||
| <?php elseif ($myrtl == 1): ?> | ||
| <?php $direction = ' redirect-ltr';?> |
| <select class="inputbox advancedSelect" onchange="document.location.replace(this.value);"> | ||
| <?php foreach ($list as $language) : ?> | ||
| <option dir=<?php echo $language->rtl ? '"rtl"' : '"ltr"'; ?> value="<?php echo $language->link; ?>" <?php echo $language->active ? 'selected="selected"' : ''; ?>> | ||
| <option dir=<?php echo $language->rtl ? 'rtl' : 'ltr'; ?> value="<?php echo $language->link; ?>" <?php echo $language->active ? 'selected="selected"' : ''; ?>> |
There was a problem hiding this comment.
Missing beginning and ending "
| <?php echo $output; ?> | ||
| <?php $show_advanced = $params->get('show_advanced'); ?> | ||
| <?php if ($show_advanced == 2) : ?> | ||
| <br /> |
modules/mod_login/tmpl/default.php
Outdated
| <?php endif; ?> | ||
| <div id="form-login-submit" class="control-group"> | ||
| <div class="controls"> | ||
| <button type="submit" tabindex="0" name="Submit" class="btn btn-primary login-button"><?php echo JText::_('JLOGIN'); ?></button> |
modules/mod_feed/tmpl/default.php
Outdated
| <?php endif; ?> | ||
| <?php // Feed image ?> | ||
| <?php if ($iUrl && $params->get('rssimage', 1)) : ?> | ||
| <img src="<?php echo $iUrl; ?>" alt="<?php echo @$iTitle; ?>"/> |
modules/mod_feed/tmpl/default.php
Outdated
| @@ -10,115 +10,80 @@ | |||
| defined('_JEXEC') or die; | |||
| ?> | |||
There was a problem hiding this comment.
Add line before ?> and delete line after ?>.
* Add space * Add space
modules/mod_login/tmpl/default.php
Outdated
| <div class="input-prepend input-append"> | ||
| <span class="add-on"> | ||
| <span class="icon-star hasTooltip" title="<?php echo JText::_('JGLOBAL_SECRETKEY'); ?>"> | ||
| </span> |
There was a problem hiding this comment.
Move </span> to line 71 to be consistent with https://github.com/joomla/joomla-cms/pull/17852/files#diff-865b73156d929ab9f11d62196125ec9aR50
| @@ -28,12 +28,16 @@ | |||
| <div class="input-prepend"> | |||
There was a problem hiding this comment.
Line 21: multiple lines like https://github.com/joomla/joomla-cms/pull/17852/files#diff-865b73156d929ab9f11d62196125ec9aL121
* coding style * Revert
|
I have tested this item ✅ successfully on 6cbe566 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17852. |
Summary of Changes
First batch of module tmpl codestyle
Testing Instructions
Please test and review the following frontend modules using the testing sampledata
Expected result
Still works
Actual result
Works with codestyle problems
Documentation Changes Required
none