-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
second batch of module tmpl codestyle #17852
Conversation
modules/mod_feed/tmpl/default.php
Outdated
<?php $lang = JFactory::getLanguage(); ?> | ||
<?php $myrtl = $params->get('rssrtl'); ?> | ||
<?php $direction = ' '; ?> | ||
<?php $isRtl = $lang->isRtl(); ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need the space before the > at the end?
@@ -27,7 +27,7 @@ | |||
<?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);" > | |||
<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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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';?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add space ?>
@@ -29,7 +29,7 @@ | |||
<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);"> | |||
<?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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing beginning and ending "
?> | ||
|
||
<?php // Show the form fields. ?> | ||
<?php echo $output; ?> | ||
<?php $show_advanced = $params->get('show_advanced'); ?> | ||
<?php if ($show_advanced == 2) : ?> | ||
<br /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Multiple lines below.
modules/mod_login/tmpl/default.php
Outdated
<?php echo JText::_('MOD_LOGIN_REMEMBER_ME'); ?> | ||
</label> | ||
<input id="modlgn-remember" type="checkbox" name="remember" class="inputbox" value="yes" /> | ||
</div> | ||
<?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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Multiple lines
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; ?>"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add space before />
modules/mod_feed/tmpl/default.php
Outdated
@@ -10,115 +10,80 @@ | |||
defined('_JEXEC') or die; | |||
?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 21: multiple lines like https://github.com/joomla/joomla-cms/pull/17852/files#diff-865b73156d929ab9f11d62196125ec9aL121
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